I’m looking for a way to set single automation to turn on and off a Kasa device based on outside temperature. I have the following to turn it on at 30F but would like to have a parameter included that turns it off if external temp goes above 30F for more than an hour.
Any help is appreciated.
You will need to check Developer Tools > States to confirm that notify.mobile_app exists. If it doesn’t, modify the example to use whatever it’s actually named in your system.
The reason I changed the Device Actions in your example to service calls is because Device Actions don’t support templates.
FWIW, the Device Triggers in your example can be changed to a Numeric State Trigger but it’s not necessary.
Also, if you know the user-friendly version of the entity_id 16faae6421a0a29e291afaecc4fb4b29 then I suggest you use that in the service call (it makes it easier to understand which switch is used). It will look something like switch.some_name_you_created. Perhaps it’s switch.garage_heater.
You’ll get that message if the Device Triggers lack a value for id or if you attempted to test the automation using its Run command (which doesn’t exercise the triggers, thereby failing to define trigger.id, and simply executes the actions).