Hello there,
I am currently trying to figure out how to create a 4-state switch/ control, that would allow me to send 4 different Modbus commands (same function code and address, 4 different register values). In my configuration.yaml so far I was able to create only a 2-state switch:
switches:
- name: "Quiet mode"
unique_id: 6646bbb7-0644-4d4e-af22-9d00d0355954
slave: 1
address: 21
write_type: coil
command_on: 1
command_off: 0
scan_interval: 30
verify:
input_type: coil
address: 21
delay: 1
state_on: 1
state_off: 0
What I need to do now is to create a control that would allow me to modify a holding register with different register values (1, 2, and 4), to control the Heat Pump heating mode:
I am not very proficient with HA yet. In case of any hints, I would appreciate some code/ syntax examples!
I would appreciate all help!