Illuminance
This commit is contained in:
@@ -8,18 +8,18 @@
|
|||||||
entity_id: binary_sensor.arbejdsdag
|
entity_id: binary_sensor.arbejdsdag
|
||||||
state: 'on'
|
state: 'on'
|
||||||
- condition: numeric_state
|
- condition: numeric_state
|
||||||
entity_id: sensor.gang_sensor_light_level
|
entity_id: sensor.gang_sensor_illuminance
|
||||||
below: '70'
|
below: '70'
|
||||||
- condition: time
|
- condition: time
|
||||||
before: '19:30:00'
|
before: '19:30:00'
|
||||||
- condition: time
|
- condition: time
|
||||||
after: '06:15:00'
|
after: '06:30:00'
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: scene.turn_on
|
||||||
data:
|
data:
|
||||||
entity_id: light.gang
|
entity_id: scene.gang_bright
|
||||||
brightness: 255
|
# brightness: 255
|
||||||
color_temp: 396
|
# color_temp: 396
|
||||||
|
|
||||||
- alias: 'Sluk Lys i gang - arbejdsdag - dag'
|
- alias: 'Sluk Lys i gang - arbejdsdag - dag'
|
||||||
trigger:
|
trigger:
|
||||||
@@ -33,13 +33,13 @@
|
|||||||
entity_id: binary_sensor.arbejdsdag
|
entity_id: binary_sensor.arbejdsdag
|
||||||
state: 'on'
|
state: 'on'
|
||||||
- condition: time
|
- condition: time
|
||||||
after: '06:15:10'
|
after: '06:30:10'
|
||||||
- condition: time
|
- condition: time
|
||||||
before: '19:30:00'
|
before: '19:30:00'
|
||||||
action:
|
action:
|
||||||
service: light.turn_off
|
service: light.turn_off
|
||||||
data:
|
data:
|
||||||
entity_id: light.gang
|
entity_id: light.gang_2
|
||||||
|
|
||||||
- alias: 'Lys i gang - ikke arbejdsdag - dag'
|
- alias: 'Lys i gang - ikke arbejdsdag - dag'
|
||||||
trigger:
|
trigger:
|
||||||
@@ -51,18 +51,18 @@
|
|||||||
entity_id: binary_sensor.arbejdsdag
|
entity_id: binary_sensor.arbejdsdag
|
||||||
state: 'off'
|
state: 'off'
|
||||||
- condition: numeric_state
|
- condition: numeric_state
|
||||||
entity_id: sensor.gang_sensor_light_level
|
entity_id: sensor.gang_sensor_illuminance
|
||||||
below: 70
|
below: 70
|
||||||
- condition: time
|
- condition: time
|
||||||
after: '08:00:00'
|
after: '08:00:00'
|
||||||
- condition: time
|
- condition: time
|
||||||
before: '20:30:00'
|
before: '20:30:00'
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: scene.turn_on
|
||||||
data:
|
data:
|
||||||
entity_id: light.gang
|
entity_id: scene.gang_bright
|
||||||
brightness: 255
|
# brightness: 255
|
||||||
color_temp: 396
|
# color_temp: 396
|
||||||
|
|
||||||
- alias: 'Sluk Lys i gang - ikke arbejdsdag - dag'
|
- alias: 'Sluk Lys i gang - ikke arbejdsdag - dag'
|
||||||
trigger:
|
trigger:
|
||||||
@@ -82,7 +82,7 @@
|
|||||||
action:
|
action:
|
||||||
service: light.turn_off
|
service: light.turn_off
|
||||||
data:
|
data:
|
||||||
entity_id: light.gang
|
entity_id: light.gang_2
|
||||||
|
|
||||||
########## NIGHT
|
########## NIGHT
|
||||||
|
|
||||||
@@ -96,17 +96,17 @@
|
|||||||
entity_id: binary_sensor.arbejdsdag
|
entity_id: binary_sensor.arbejdsdag
|
||||||
state: 'on'
|
state: 'on'
|
||||||
- condition: numeric_state
|
- condition: numeric_state
|
||||||
entity_id: sensor.gang_sensor_light_level
|
entity_id: sensor.gang_sensor_illuminance
|
||||||
below: '70'
|
below: '70'
|
||||||
- condition: time
|
- condition: time
|
||||||
before: '06:15:00'
|
before: '06:30:00'
|
||||||
after: '19:30:00'
|
after: '19:30:00'
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: scene.turn_on
|
||||||
data:
|
data:
|
||||||
entity_id: light.gang_syd
|
entity_id: scene.gang_daempet_nat
|
||||||
brightness_pct: 1
|
# brightness_pct: 1
|
||||||
color_temp: 396
|
# color_temp: 396
|
||||||
|
|
||||||
- alias: 'Sluk Lys i gang - arbejdsdag - nat'
|
- alias: 'Sluk Lys i gang - arbejdsdag - nat'
|
||||||
trigger:
|
trigger:
|
||||||
@@ -121,11 +121,11 @@
|
|||||||
state: 'on'
|
state: 'on'
|
||||||
- condition: time
|
- condition: time
|
||||||
after: '19:30:10'
|
after: '19:30:10'
|
||||||
before: '06:15:00'
|
before: '06:30:00'
|
||||||
action:
|
action:
|
||||||
service: light.turn_off
|
service: light.turn_off
|
||||||
data:
|
data:
|
||||||
entity_id: light.gang_syd
|
entity_id: light.gang_2
|
||||||
|
|
||||||
- alias: 'Lys i gang - ikke arbejdsdag - nat'
|
- alias: 'Lys i gang - ikke arbejdsdag - nat'
|
||||||
trigger:
|
trigger:
|
||||||
@@ -143,11 +143,11 @@
|
|||||||
after: '20:30:00'
|
after: '20:30:00'
|
||||||
before: '08:00:00'
|
before: '08:00:00'
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: scene.turn_on
|
||||||
data:
|
data:
|
||||||
entity_id: light.gang_syd
|
entity_id: scene.gang_daempet_nat
|
||||||
brightness_pct: 1
|
# brightness_pct: 1
|
||||||
color_temp: 396
|
# color_temp: 396
|
||||||
|
|
||||||
|
|
||||||
- alias: 'Sluk Lys i gang - ikke arbejdsdag - nat'
|
- alias: 'Sluk Lys i gang - ikke arbejdsdag - nat'
|
||||||
@@ -167,5 +167,5 @@
|
|||||||
action:
|
action:
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
data:
|
data:
|
||||||
entity_id: light.gang_syd
|
entity_id: light.gang_2
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user