Illuminance

This commit is contained in:
2022-03-07 17:27:11 +01:00
parent 6674af5c1a
commit 53a2c312ac
+27 -27
View File
@@ -8,18 +8,18 @@
entity_id: binary_sensor.arbejdsdag
state: 'on'
- condition: numeric_state
entity_id: sensor.gang_sensor_light_level
entity_id: sensor.gang_sensor_illuminance
below: '70'
- condition: time
before: '19:30:00'
- condition: time
after: '06:15:00'
after: '06:30:00'
action:
- service: light.turn_on
- service: scene.turn_on
data:
entity_id: light.gang
brightness: 255
color_temp: 396
entity_id: scene.gang_bright
# brightness: 255
# color_temp: 396
- alias: 'Sluk Lys i gang - arbejdsdag - dag'
trigger:
@@ -33,13 +33,13 @@
entity_id: binary_sensor.arbejdsdag
state: 'on'
- condition: time
after: '06:15:10'
after: '06:30:10'
- condition: time
before: '19:30:00'
action:
service: light.turn_off
data:
entity_id: light.gang
entity_id: light.gang_2
- alias: 'Lys i gang - ikke arbejdsdag - dag'
trigger:
@@ -51,18 +51,18 @@
entity_id: binary_sensor.arbejdsdag
state: 'off'
- condition: numeric_state
entity_id: sensor.gang_sensor_light_level
entity_id: sensor.gang_sensor_illuminance
below: 70
- condition: time
after: '08:00:00'
- condition: time
before: '20:30:00'
action:
- service: light.turn_on
- service: scene.turn_on
data:
entity_id: light.gang
brightness: 255
color_temp: 396
entity_id: scene.gang_bright
# brightness: 255
# color_temp: 396
- alias: 'Sluk Lys i gang - ikke arbejdsdag - dag'
trigger:
@@ -82,7 +82,7 @@
action:
service: light.turn_off
data:
entity_id: light.gang
entity_id: light.gang_2
########## NIGHT
@@ -96,17 +96,17 @@
entity_id: binary_sensor.arbejdsdag
state: 'on'
- condition: numeric_state
entity_id: sensor.gang_sensor_light_level
entity_id: sensor.gang_sensor_illuminance
below: '70'
- condition: time
before: '06:15:00'
before: '06:30:00'
after: '19:30:00'
action:
- service: light.turn_on
- service: scene.turn_on
data:
entity_id: light.gang_syd
brightness_pct: 1
color_temp: 396
entity_id: scene.gang_daempet_nat
# brightness_pct: 1
# color_temp: 396
- alias: 'Sluk Lys i gang - arbejdsdag - nat'
trigger:
@@ -121,11 +121,11 @@
state: 'on'
- condition: time
after: '19:30:10'
before: '06:15:00'
before: '06:30:00'
action:
service: light.turn_off
data:
entity_id: light.gang_syd
entity_id: light.gang_2
- alias: 'Lys i gang - ikke arbejdsdag - nat'
trigger:
@@ -143,11 +143,11 @@
after: '20:30:00'
before: '08:00:00'
action:
- service: light.turn_on
- service: scene.turn_on
data:
entity_id: light.gang_syd
brightness_pct: 1
color_temp: 396
entity_id: scene.gang_daempet_nat
# brightness_pct: 1
# color_temp: 396
- alias: 'Sluk Lys i gang - ikke arbejdsdag - nat'
@@ -167,5 +167,5 @@
action:
- service: light.turn_off
data:
entity_id: light.gang_syd
entity_id: light.gang_2