Hi there, I’m new to home assistant/home automation/raspberry pi/z-wave etc…
I have been trying for many weeks to get some simple light automations working. However once I have one light working another fails for one reason or another, constant whack-a-mole. I am running hassio and I am up to date, two leviton switches, a aeotec multi-6 sensor, z-stick and a ge 26933 motion switch (with multiple instances of the light and motion sensor but that I would consider a separate issue, and likely one that can be ignored).
I began trying to use UI to make automations but I couldn’t get the light to turn off after 15minutes (many various reasons). So I have recently tried to rewrite the UI yaml into hand written yaml. In my example below, the UI generated code lets HA startup, I will add the hand written code and click the check config button and it will be valid, but a restart results in HA not starting up.
Any help is greatly appreciated. -Thanks
action:
- data:
entity_id: light.leviton_unknown_type3201_id0001_level
service: light.turn_on
alias: PlantLightOn
condition:
id: ‘1510522028672’
trigger:- at: 09:00
platform: timeaction:
- data:
entity_id: light.leviton_unknown_type3201_id0001_level
service: light.turn_off
alias: PlantLightOff
condition:
id: ‘1510522133474’
trigger:- at: ‘20:30’
platform: timealias: Bathroom On
trigger:
platform: numeric_state
entity_id: sensor.ge_26933_smart_motion_dimmer_burglar
below: 7
action:
service: homeassistant.turn_on
entity_id: light.ge_26933_smart_motion_dimmer_levelalias: Bathroom off
trigger:
platform: numeric_state
entity_id: sensor.ge_26933_smart_motion_dimmer_burglar
above: 7
for:
minutes: 15
action:
service: homeassistant.turn_off
entity_id: light.ge_26933_smart_motion_dimmer_level