Activating Scene At Sun Elevation Angle

Wanting to activate a night time lighting scene at -6 elevation…I believe what I have will work, but it seems like it will keep activating the scene constantly because the trigger is sun elevation is below -6. How do I insure that this will only activate once when the sun crosses the -6 elevation trigger?

alias: Outdoor Lighting On At Sun Elevation Below -6.0
description: ‘’

  • platform: numeric_state
    entity_id: sun.sun
    attribute: elevation
    below: ‘-6.0’
    condition: []
  • scene: scene.night_outdoor_lighting
    mode: single

That is not the case.

The trigger only occurs when the elevation crosses from above -6 to below -6.

Also, for future posts please format your pasted code correctly as per point 11 here.

1 Like