Really sorry if it’s in the docs but I couldn’t find an answer. I have an automation set up that monitors the power on the socket that the TV’s plugged into. When it detects below a certain wattage (50W) it will assume the TV is on standby and turn off the plug.
My question is, if I then turn the plug straight back on and it’s still drawing less than the stated Wattage (50W), when will home assistant re-trigger the automation? Or have I overridden the automation by turning it back on? And if so, how do I re-load the automation?
Forgive my ignorance, very new to this. Thanks in advance
Thanks for that, I did have it set for 5 minutes but it just wasn’t triggering for whatever reason so I removed the time criteria.
I guess my question is just more general, what does HA do if I switch it straight back on and it satisfies the triggers? I would’ve thought after the next cron (or however HA does it) like a minute later it would just trigger. But this wasn’t the case, it just stayed on.
probably because you set it to trigger when the wattage changes to below 50. therefore it wont trigger because it was already below 50. you need to trigger on change of wattage then condition with below 50. Just a guess and may not be the best way of doing it.
triggers only fire when the monitored trigger definition goes from false to true.
in your case the watts need to go above 50 (trigger false) to below 50 (trigger true) before the trigger will fire again.
it really has nothing to do with time. Only when the monitored trigger state changes. it then determines if the trigger has transitioned false to true.