Hi all,
i have a modbus switch that turn on/off a thermostat. My issue is that the register change if it’s set on winter or summer mode.
How i can manage it ?
this it the code to configure the switch
climate:
- platform: modbus
registers:
name: “Kitchen Switch_Winter”
slave: 11
register: 12
command_on: 3
command_off: 1name: “Kitchen_Cucina Switch_Summer”
slave: 11
register: 12
command_on: 7
command_off: 5
I have a sensor that said to me if it’s set to winter or summer (modbusBit is a custom code that i wrote to extact a bit from a register, like a bitwise)
sensor:
- platform: modbusBit
scan_interval: 10
registers:
- name: Kitchen Winter-Summer mode
slave: 11
register: 12
count: 1
length: 5
bit: 2