Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rs485
#3
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!
Reply


Messages In This Thread
Rs485 - by Savino - 05-23-2024, 04:07 AM
RE: Rs485 - by admin - 05-23-2024, 05:54 AM
RE: Rs485 - by Savino - 05-26-2024, 06:46 AM
RE: Rs485 - by admin - 05-26-2024, 06:51 AM
RE: Rs485 - by Savino - 06-27-2024, 05:01 PM
RE: Rs485 - by Savino - 05-26-2024, 04:49 PM
RE: Rs485 - by admin - 05-26-2024, 11:46 PM
RE: Rs485 - by admin - 06-27-2024, 10:31 PM
RE: Rs485 - by Savino - 06-28-2024, 06:33 PM
RE: Rs485 - by Savino - 07-07-2024, 08:17 PM
RE: Rs485 - by admin - 06-29-2024, 01:34 AM
RE: Rs485 - by Savino - 06-29-2024, 02:48 PM
RE: Rs485 - by admin - 06-29-2024, 11:51 PM
RE: Rs485 - by admin - 07-07-2024, 11:13 PM
RE: Rs485 - by Savino - 07-08-2024, 06:57 AM
RE: Rs485 - by admin - 07-08-2024, 07:39 AM

Forum Jump:


Users browsing this thread: