Thanks to https://www.cncwiki.org/index.php?title=HHC-N8I8OP I managed to connect this buggy module to home assistant using modbus integration:
It is important to have verify delay big to not break logic.
modbus:
- type: tcp
host: 192.168.222.222
port: 5000
name: "modbus1"
switches:
- name: "hhc_r8"
address: 16
write_type: coil
verify:
delay: 36
- name: "hhc_r7"
address: 17
write_type: coil
verify:
delay: 37
- name: "hhc_r6"
address: 18
write_type: coil
verify:
delay: 39
- name: "hhc_r5"
address: 19
write_type: coil
verify:
delay: 48
- name: "hhc_r4"
address: 20
write_type: coil
verify:
delay: 28
- name: "hhc_r3"
address: 21
write_type: coil
verify:
delay: 33
- name: "hhc_r2"
address: 22
write_type: coil
unique_id: "inwater_2"
verify:
address: 22
input_type: coil
delay: 18
- name: "hhc_r1"
address: 23
write_type: coil
unique_id: "inwater_1"
verify:
address: 23
input_type: coil
delay: 18
binary_sensors:
- name: "hhc_i1"
address: 32
# scan_interval: 1
input_type: discrete_input
- name: "hhc_i2"
address: 33
# scan_interval: 1
input_type: discrete_input
- name: "hhc_i3"
address: 34
scan_interval: 1
input_type: discrete_input
unique_id: "water_alarm_service_room"
- name: "hhc_i4"
address: 35
# scan_interval: 1
input_type: discrete_input
- name: "hhc_i5"
address: 36
# scan_interval: 1
input_type: discrete_input
- name: "hhc_i6"
address: 37
# scan_interval: 1
input_type: discrete_input
- name: "hhc_i7"
address: 38
# scan_interval: 1
input_type: discrete_input
- name: "hhc_i8"
address: 39
# scan_interval: 1
input_type: discrete_input
Коментарі
Дописати коментар