alias: Flurlicht einschalten description: "" trigger:
- platform: sun event: sunset offset: 0
- platform: zone entity_id: person.person2 zone: zone.home_2 event: enter
- platform: zone entity_id: person.person1 zone: zone.home_2 event: enter
- platform: zone entity_id: person.thomas zone: zone.home_2 event: enter condition:
- condition: and
conditions:
- condition: sun before: sunrise after: sunset
- condition: or
conditions:
- condition: zone entity_id: person.person1 zone: zone.home_2
- condition: zone entity_id: person.thomas zone: zone.home_2
- condition: zone entity_id: person.person2 zone: zone.home_2
- condition: time
before: “23:00:00”
weekday:
- mon
- tue
- wed
- thu
- fri
- sat
- sun action:
- type: turn_on device_id: 9017fefcc2dc56b6ce57ab1854cf6405 entity_id: switch.wiz_socket_b40287 domain: switch mode: single