#OutDoor Light IF the sun is not up..

1 messages · Page 1 of 1 (latest)

cursive pine
#

I what to turn on some light outdore, at a fix's clock in the morning IF is befor sunrise..
Do this look right ?

alias: Morgen lys indkørsel
description: ""
triggers:

  • at: "06:15:00"
    trigger: time
    conditions:
  • condition: state
    entity_id: sun.sun
    attribute: elevation
    state: below_horizon

    actions:
  • type: turn_on
    device_id: a639765c63327559c830c4ad5c577c0e
    entity_id: 24d51873320e42603986478ed89728b7
    domain: switch
  • type: turn_on
    device_id: 8a34add1fef5f0c176ee7cb46a9797db
    entity_id: a0cf83d5b906879be23c8d97aeddf4bf
    domain: switch
    mode: single
old basalt
#

triggers:

  • trigger: time
    at: "06:15:00"
    conditions:
  • condition: sun
    before: sunrise
    actions: []
cursive pine
#

looks neat.. TY 🙂

#

But.. It give a error 😦

old basalt
#

alias: test for balcony light
description: ""
triggers:

  • trigger: time
    at: "06:15:00"
    conditions:
  • condition: sun
    before: sunrise
    actions:
  • action: light.turn_on
    metadata: {}
    data: {}
    target:
    device_id: dc44a3b10c80ccf8679bb7cf10110020
    mode: single
#

Core
2025.4.4
Supervisor
2025.04.1
Operating System
15.2
Frontend
20250411.0

tulip tree
#

You both should use code formatting

lusty remnantBOT
#

To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.

cursive pine
#

Hmm, I do not get this... : Core
2025.4.4
Supervisor
2025.04.1
Operating System
15.2
Brugerflade
20250411.0