motion Luce-Taverna motion_light with 3 triggers OKJ

This commit is contained in:
2024-11-29 22:53:41 +01:00
parent 3b76963162
commit e8d2eb749b
3 changed files with 98 additions and 83 deletions

View File

@@ -91,7 +91,9 @@ actions:
then:
- action: light.turn_on
target: !input light_target
data: {}
data:
brightness_pct: 100
color_temp_kelvin: 2700
else:
- action: light.turn_off
metadata: {}
@@ -107,7 +109,9 @@ actions:
then:
- action: light.turn_on
target: !input light_target
data: {}
data:
brightness_pct: 100
color_temp_kelvin: 2700
else:
- action: light.turn_off
metadata: {}

View File

@@ -72,6 +72,7 @@ triggers:
hours: 0
minutes: 0
seconds: !input no_motion_wait
id: motion-cleared
conditions: []
@@ -99,19 +100,19 @@ actions:
id:
- motion-detected
then:
- sequence:
- action: light.brightness = 254
target: !input light_target
data: {}
- action: light.turn_on
target: !input light_target
data: {}
- action: light.turn_on
target: !input light_target
data:
brightness_pct: 100
color_temp_kelvin: 2700
else:
- action: light.turn_off
target: !input light_target
metadata: {}
data:
transition: 10
target: !input light_target
default:
# the motion light is always active
- if:
@@ -121,14 +122,13 @@ actions:
then:
- action: light.turn_on
target: !input light_target
data: {}
data:
brightness_pct: 100
color_temp_kelvin: 2700
else:
- sequence:
- action: light.brightness = 254
target: !input light_target
data: {}
- action: light.turn_on
target: !input light_target
data: {}
- action: light.turn_off
target: !input light_target
data: {}
mode: single