Super! L’idée a l’air de fonctionner j’ai fais comme ceci :
alias: "LUMIERES + APPAREIL : CHAMBRE"
description: ""
trigger:
- alias: LUMINO ABOVE 15
type: illuminance
platform: device
device_id: 0d09997bab8f2a44c4349a94a4e46f7c
entity_id: 70ceec395a0741c3a0c6a00c7671e764
domain: sensor
id: highlight
above: 15
enabled: true
- alias: LUMINO ABOVE 50
type: illuminance
platform: device
device_id: 0d09997bab8f2a44c4349a94a4e46f7c
entity_id: 70ceec395a0741c3a0c6a00c7671e764
domain: sensor
id: highlight2
above: 50
enabled: true
condition: []
action:
- if:
- condition: trigger
id:
- highlight
- highlight2
- condition: state
entity_id: light.chambre
state: "on"
for:
hours: 0
minutes: 0
seconds: 10
then:
- type: turn_off
device_id: 04d10143ee74a0dbf2daa8cd0cd27abe
entity_id: e317a7e323545b61deddf6e2716c6bc3
domain: light
alias: HIGH LUMINO = LIGHTS OFF
mode: single