การใช้งานร่วมกับ +Home Assistant
การเชื่อมต่อ HOME Assistant กับบอร์ด HONE Modbus IO
การควบคุมบอร์ด Modbus IO ผ่าน HOME Assistant ( Modbus TCP )
ตัวอย่างการ config
modbus:
- name: "HONEY_MODBUS_IO"
type: tcp
host: 192.168.1.180
port: 502
delay: 5
timeout: 2
switches:
- name: "Y0"
address: 0
write_type: coil
verify:
input_type: coil
scan_interval: 10
- name: "Y1"
address: 1
write_type: coil
verify:
input_type: coil
scan_interval: 10
- name: "Y2"
address: 2
write_type: coil
verify:
input_type: coil
scan_interval: 10
- name: "Y3"
address: 3
write_type: coil
verify:
input_type: coil
scan_interval: 10
- name: "Y4"
address: 4
write_type: coil
verify:
input_type: coil
scan_interval: 10
- name: "Y5"
address: 5
write_type: coil
verify:
input_type: coil
scan_interval: 10
- name: "Y6"
address: 6
write_type: coil
verify:
input_type: coil
scan_interval: 10
- name: "Y7"
address: 7
write_type: coil
verify:
input_type: coil
scan_interval: 10
binary_sensors:
- name: "X0"
address: 0
input_type: discrete_input
scan_interval: 10
- name: "X1"
address: 1
input_type: discrete_input
scan_interval: 10
- name: "X2"
address: 2
input_type: discrete_input
scan_interval: 10
- name: "X3"
address: 3
input_type: discrete_input
scan_interval: 10
- name: "X4"
address: 4
input_type: discrete_input
scan_interval: 10
- name: "X5"
address: 5
input_type: discrete_input
scan_interval: 10
- name: "X6"
address: 6
input_type: discrete_input
scan_interval: 10
- name: "X7"
address: 7
input_type: discrete_input
scan_interval: 10y
วิธีการใช้งานผ่าน Modbus IO ( Home Assistant )
Last updated