I’ve been using HA for a while but lately started using automations. I made simple automation with the UI tool but I cant get it to trigger. Running it manually will do the modbus write.
Sensor.x value will change and sensor.y is input_number that is manually set and if sensor.x value is less than sensor.y it should do the job…but doesnt. No errors regarding this in logs.
Thanks
alias: Test automation
description: Test automation
trigger:
- platform: template
value_template: >-
"{{float(states('sensor.x'),0)|float<=float(states('sensor.y'),0)|float}}"
condition: []
action:
- service: modbus.write_register
data:
address: 3
value: 2
hub: modbushub
mode: single