Sobald die Helligkeit nach Sonnenaufgang und vor 22 Uhr unter 20 fällt, soll das Licht angehen.
Und um 22 Uhr ausgehen?
description: ""
mode: single
triggers:
- trigger: sun
event: sunrise
offset: 0
id: einschalten
- trigger: numeric_state
entity_id:
- sensor.shelly_blu_motion_illuminance
below: 20
id: einschalten
- trigger: time
at: "22:00:00"
id: ausschalten
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id:
- einschalten
- condition: numeric_state
entity_id: sensor.shelly_blu_motion_illuminance
below: 20
- condition: time
before: "22:00:00"
- condition: sun
after: sunrise
- condition: state
entity_id: switch.xyz
state:
- "off"
sequence:
- action: switch.turn_on
metadata: {}
data: {}
target:
entity_id: switch.xyz
- conditions:
- condition: trigger
id:
- ausschalten
- condition: state
entity_id: switch.xyz
state:
- "on"
sequence:
- action: switch.turn_off
metadata: {}
data: {}
target:
entity_id: switch.xyz
switch.xyz musst Du noch gegen Deinen eignen Switch Entität ersetzen.
Gruß Osorkon