Configuration invalid
Error loading /config/configuration.yaml: while parsing a block collection
in “/config/automations.yaml”, line 1, column 3
expected , but found ‘?’
in “/config/automations.yaml”, line 31, column 3
Easy, these three lines need pushing in two spaces…
condition:
condition: and
conditions:
At a guess “line 31, column 3” in the errors coincides with the ‘c’ in the first ‘condition:’, use an editor that shows line numbers and it’s easy to find where errors like that are.
I don’t use a sensor to handle my lights, so I donno. I mean it could make sense to have those conditions. I’ve never really thought about needing the light on in the daytime with cloud cover.
Thanks for your help, could you also point me in the right direction with this one? I want to turn some lights one when the first person arrives home if its dark. I have added this but if someone else is already home it still turns the lights on. How do I make it only turn the lights on for the first one home?
alias: Turn the lamps on after dark when arriving home
initial_state: True
hide_entity: False
trigger:
platform: state
entity_id: group.all_door_sensors
to: ‘on’
condition:
condition: and
conditions:
condition: sun
after: sunset
after_offset: “-00:30:00”
condition: state
entity_id: group.all_devices
state: ‘home’
action: