Motion-lys: input_number parametre for gang/daniel/kontor, fix badevaerelse timeout, kompakt lys view

This commit is contained in:
2026-04-25 19:17:56 +02:00
parent 56f21f79e1
commit 9cb7550f78
7 changed files with 208 additions and 263 deletions
+8 -5
View File
@@ -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