I have a few Leviton Decora wifi switches and I can’t figure out how to automate them. I read online on how to get them added and that’s working. They show up under entities only and not devices, but I can access them and turn them off and on.
Now I want to do some automation using them but since they aren’t listed under devices, I can’t trigger off of them. I want to automate an action that turns them off after they’ve been on for 30 min. I looked online and couldn’t find anything to help me figure it out.
To automate the Leviton Decora WiFi switches using Home Assistant, you will need to create an automation using the Home Assistant Automation Editor. The Automation Editor allows you to define triggers and actions that will be performed when a specified condition is met.
To create an automation that turns off the switches after they have been on for 30 minutes, follow these steps:
In the Home Assistant UI, go to the Configuration tab and select Automations.
Click the Add Automation button to create a new automation.
In the Trigger section, select the switch state as the trigger. This will cause the automation to be triggered when the switch state changes.
In the Condition section, specify that the automation should only be triggered when the switch state is “on”.
In the Action section, select the switch as the action and specify that the switch should be turned off.
In the Delay section, specify a delay of 30 minutes. This will cause the switch to be turned off after 30 minutes.
Click the Save button to save the automation.
After the automation is saved, it will be active and will automatically turn off the switches after they have been on for 30 minutes. You can edit or delete the automation at any time using the Automation Editor.
Thanks all! I think I got this working using jerrm’s instructions. I see you can trigger using state in the UI which allows me to choose entities. I think this is the same thing as bastero’s comments just via the UI.