I am building a garden irrigation project for my home assistant implementation. I would like to be able to send values from HA via MQTT and change the duration of espeasy timer. I have MQTT import device up and working. Is it possible to pass the value from my MQTT import to the timer function? I have tried this
Code: Select all
on System#Boot do
gpio,2,1 // Prevent relay turning on during boot
endon
on valve#Switch=0 do
timerSet,1,watertime#duration // turn on water valve
endon
on Rules#Timer=1 do
gpio,2,1 // Turn off relay
endon