Help with dusk dawn lighting

Hi there,

I have a dusk / dawn automation to turn on my exterior lights, but now the mornings are getting brighter, my lights are coming on way too early.

Is there a way I can say turn lights on at dawn but not before 05:30am?

This is my code:

- id: '1515599346253'
  alias: Outside AM on
  trigger:
    - event: sunrise
      offset: '-01:30:00'
      platform: sun
  condition: []
  action:
    - service: light.turn_on
      entity_id: light.outside_back_lights
    - delay: '00:00:01'
    - service: light.turn_on
      entity_id: light.outside_front_lights
    - service: notify.pushbullet
      data:
        message: 'Outside lights switched on'
        target: 'device/Google Pixel 2'

You can add a condition for after 5:30

To make sure they still come on if sunrise is to early add a trigger for 5:31.

do you mean replace the current trigger? Not sure that I get you??

You can have multiple triggers.

Trigger 1: sunrise
Trigger 2: 5:31

Condition: after 5:30

Action: lights on

I’m on my phone so excuse the rough outline I’m on my phone. That should only trigger if sunrise is after 5:30 and is trigger 1 doesn’t turn them on the trigger at 5:31 will.

1 Like

Gotcha - many thanks for the reply - I’ll give it a go :slight_smile: