Motion-lys: input_number parametre for gang/daniel/kontor, fix badevaerelse timeout, kompakt lys view
This commit is contained in:
@@ -8,9 +8,10 @@
|
||||
to: "on"
|
||||
|
||||
condition:
|
||||
- condition: numeric_state
|
||||
entity_id: sensor.kontor_belysningsstyrke
|
||||
below: 60
|
||||
- condition: template
|
||||
value_template: >
|
||||
{{ states('sensor.kontor_belysningsstyrke') | int <
|
||||
states('input_number.kontor_lux_threshold') | int }}
|
||||
|
||||
action:
|
||||
- service: scene.turn_on
|
||||
@@ -36,7 +37,8 @@
|
||||
- platform: state
|
||||
entity_id: binary_sensor.kontor_motion_bevaegelse
|
||||
to: "on"
|
||||
timeout: "00:10:00"
|
||||
timeout:
|
||||
minutes: "{{ states('input_number.kontor_timeout_day') | int }}"
|
||||
continue_on_timeout: true
|
||||
- condition: state
|
||||
entity_id: binary_sensor.kontor_motion_bevaegelse
|
||||
@@ -67,7 +69,8 @@
|
||||
- platform: state
|
||||
entity_id: binary_sensor.kontor_motion_bevaegelse
|
||||
to: "on"
|
||||
timeout: "00:05:00"
|
||||
timeout:
|
||||
minutes: "{{ states('input_number.kontor_timeout_night') | int }}"
|
||||
continue_on_timeout: true
|
||||
- condition: state
|
||||
entity_id: binary_sensor.kontor_motion_bevaegelse
|
||||
|
||||
Reference in New Issue
Block a user