I’m learning as I go forward, so I chose a seemingly simple automation to grow from.
- HA OS in a VM via UnRaid
- using Innr Smart Plugs with Hue Hub
- connected plugs to the hub via the Hue app
I know that it is something simple that I’m missing, but I’m not figuring it out based on my searches and review of the documentation. I’m not a programmer, nor do I have much experience with it. I find it fascinating though, so that’s why I’m trying to learn via practical implementations of code.
I want to have the sound machine turn on at 630p and off at 730a everyday. The config below turns it on, but it immediately turns off. Below is the yaml for the automation:
alias: Bedroom - Sound Machine Timer
description: Turns on sound machine at 630pm and off at 730am every day.
trigger:
- platform: time
at: '18:30:00'
condition: []
action:
- type: turn_on
device_id: fe691ae86e3d2bfc163cc0fcf56b6a6b
entity_id: light.bedroom_smart_plug_soundmachine
domain: light
- condition: time
after: '07:30:00'
- type: turn_off
device_id: fe691ae86e3d2bfc163cc0fcf56b6a6b
entity_id: light.bedroom_smart_plug_soundmachine
domain: light
mode: restart
initial_state: false
Thank you for any help that you can give.