Once you have the Nibe modbus integration setup, you can use call service “Modbus: Write coil” and just enter address, state, slave and hub name and you’re set.
Example to create a switch to turn on/off “More Hot Water”:
- name: nibe_morehotwater
write_type: holding
address: 697
slave: 1
command_on: 2
command_off: 0
You can use the same principle for many others functions, such as offset.
I control the pump with the above switch for the hot water and for heating, I’ve created an input select list to control the heater power limit with an automation, using the call service mentioned above.
I’ve even managed to automate this with our solar panels, with triggers, that if solar production > 1kw, increase heater power limit by 1kw.
If buying > 1kw from grid, decrease heater power limit by 1kw.
Basically minimizing consumption from the heater when in “buying” mode and maximizing when we have more energy being produced from the solar panels.
To save energy from when the heater isn’t needed, I can just turn the heating function off completely by setting the power limit to 0kw.