My automation tests have not worked … and there are no errors in the logs; I tried quoting the time and separating the entities as separate service calls
########### XMas Lights On
- id: xmas_lights_on_morning
alias: Turn Xmas Lights On
# initial_state: 'off'
trigger:
- platform: sun
event: sunrise
offset: -01:15:00
action:
- service: switch.turn_on
entity_id: switch.sonoff_switch_2, switch.sonoff_switch_3
########## XMas Lights off in the Morning
- id: xmas_lights_off_morning
alias: Turn Xmas Lights Off in the Morning
# initial_state: 'off'
trigger:
- platform: time
at: 07:45:00
action:
- service: switch.turn_off
entity_id: switch.sonoff_switch_2, switch.sonoff_switch_3
I would appreciate some extra eyes to help point out my errors if any.
Your syntax is not correct, under entity_id they need to be listed.
this is how I have mine:
- alias: 'Turn On Lamps 20 min Before Sunset'
trigger:
platform: sun
event: sunset
offset: "-00:20:00"
action:
service: homeassistant.turn_on
entity_id:
- light.living_room_lamp_1
- light.living_room_lamp_2
- light.hue_white_lamp_1
- switch.sues_lamp
Reason I have used “home assistant.turn_on” and not “switch.turn_on” is because my list of entities contains both a switch and lights so if I had used “switch.turn_on” only the switch entity would work
Tips and tricks like @Bluey 's post make this forum - helpful and inspirational !!
After a few (many) days I got my OwnTracks implementation working and my next project is proximity sensors to make the presence detection - more robust.
@TerroBladeZ Thanks for the detailed listing - I will definitely take some tips from the settings but I’m afraid to ask… Valentine’s day Lighting - seriously does “deeppink” work?