Posts: 23
Threads: 7
Joined: Oct 2023
Reputation:
0
Hi, could anyone show me how to solve the following?
I have mini server with home assistant and kc868 - A6 with kincony firmware. I'd like to connect the boards via Rs485 and manage relay and DI of kc868 - A6 from home assistant using Rs485.
Posts: 23
Threads: 7
Joined: Oct 2023
Reputation:
0
Thanks admin.
I need one more info.
1) It's mandatory to install ESP home in my home assistant to make my Server Mini able to communicate with KC868-A6 via RS485? or it's possible without installing ESP home?
Actually I modified the configuration.yaml in my home assistant as you see
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
uart:
id: mbus
tx_pin: GPIO14
rx_pin: GPIO15
baud_rate: 9600
modbus:
id: modbus1
uart_id: mbus
send_wait_time: 200ms
modbus_controller:
- id: a6
address: 1
modbus_id: modbus1
update_interval: 1s
switch:
- platform: rpi_gpio
switches:
- port: 5
name: "OUT1"
- port: 22
name: "OUT2"
- port: 17
name: "OUT3"
- port: 4
name: "OUT4"
- port: 6
name: "OUT5"
- port: 13
name: "OUT6"
- port: 19
name: "OUT7"
- port: 26
name: "OUT8"
- platform: modbus_controller
name: 'modbus-switch1'
address: 0 # 0:relay1 1:relay2 ......
register_type: coil
bitmask: 1
binary_sensor:
- platform: rpi_gpio
sensors:
- port: 18
name: "IN1"
- port: 23
name: "IN2"
- port: 24
name: "IN3"
- port: 25
name: "IN4"
- port: 12
name: "IN5"
- port: 16
name: "IN6"
- port: 20
name: "IN7"
- port: 21
name: "IN8"
and then restarted home Assistant...unfortunatly there is no modbus-switch1 in the Entity list!
Posts: 6,615
Threads: 844
Joined: Oct 2020
Reputation:
162
MUST need use RS485 for connection? if use by wifi will be very easy.
let server-mini and A6 connect to same router is ok. install ESPHome, config yaml file for A6.
Posts: 23
Threads: 7
Joined: Oct 2023
Reputation:
0
Ok. Installed ESP home.
Where could I find a basic yaml file for the A6 board?
Thanks in advance.
Posts: 6,615
Threads: 844
Joined: Oct 2020
Reputation:
162
download KCS firmware to A6 board, enable RS485 using MODBUS-RTU. just login KCS webpage to set.