05-26-2024, 06:46 AM
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!
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!