I have made some progress with my Modbus controller. I can now read temperature value from it using Modbus TCP. Next step is to create a switch for turning on/off the heating. In my configuration.yaml I have:
Idea is to write first “1” to register 130 and after a short delay to write to register 132 either 0 (=off) or 100 (=on). My problem is that I donät understand how to pass the on/off information from the switch in the configuration.yaml to script.yaml. Any help would be appreciated. Thanks.
I’m playing with modbus.
So far I’m able to read all sensors that I need but no sure what to do to write.
My goal is to set temp to the heatpump controller.
To read I’m using
- name: "DHW temperature setpoint - comfort"
unique_id: "DHW temperature setpoint - comfort"
device_class: temperature
data_type: int16
address: 703
scale: 0.1
precision: 1
input_type: holding
unit_of_measurement: °C
state_class: measurement
scan_interval: 20
I’m able write to his register a value with node-red but how to do that in HA?
In node-read I’m using function code 06 (single)