This commit is contained in:
2023-04-11 07:08:32 +02:00
parent dfe18853d5
commit e3db44bced
10 changed files with 38 additions and 91 deletions
+1 -53
View File
@@ -1,65 +1,13 @@
- alias: 'Lys sauna dag - arbejdsdag'
- alias: 'Lys sauna dag'
trigger:
platform: state
entity_id: binary_sensor.sauna_motion_motion
to: 'on'
condition:
- condition: numeric_state
entity_id: sensor.sauna_motion_illuminance
below: 90
- condition: state
entity_id: binary_sensor.arbejdsdag
state: 'on'
- condition: time
before: '22:30:00'
- condition: time
after: '06:00:00'
action:
- service: scene.turn_on
data:
entity_id: scene.sauna_klar
- alias: 'Lys sauna dag - ikke arbejdsdag'
trigger:
platform: state
entity_id: binary_sensor.sauna_motion_motion
to: 'on'
condition:
- condition: numeric_state
entity_id: sensor.sauna_motion_illuminance
below: 90
- condition: state
entity_id: binary_sensor.arbejdsdag
state: 'off'
- condition: time
before: '22:30:00'
- condition: time
after: '06:00:00'
action:
- service: scene.turn_on
data:
entity_id: scene.sauna_klar
- alias: 'Lys i sauna - nat'
trigger:
platform: state
entity_id: binary_sensor.sauna_motion_motion
to: 'on'
condition:
- condition: numeric_state
entity_id: sensor.sauna_motion_illuminance
below: '70'
- condition: time
after: '22:30:00'
- condition: time
before: '06:00:00'
action:
- service: scene.turn_on
data:
entity_id: scene.sauna_daempet
- alias: 'Sluk lys i sauna'