Hello,
I like to accomplice the following scenario,
When leaving the house in the evening the driveway light turns on at 10:30 pm (22:30) hrs.
The light turns off:
a) automatically one and a half hours later, after turning on.
or
b) when I close the garage door and it stays closed for 3 minutes.
I made 3 automatons with the automation editor.
first:
Turning the driveway light on automatically at 10.30 pm (22:30) hrs. This works.
but the following scenarios to turn off the light dont/wont work.
Both are made with the automation editor and my automations.yaml contains the following,
the first : turn off after one and a half hours.
- id: '1630592729562'
alias: Lamp Oprit Uitschakelen na anderhalf uur
description: ''
trigger:
- platform: device
type: turned_on
device_id: 4661c36a185d3e51cddc051cd42e72b8
entity_id: light.lamp_oprit
domain: light
id: LampOpritAan
for:
hours: 1
minutes: 30
seconds: 0
milliseconds: 0
condition: []
action:
- service: light.turn_off
target:
device_id: 4661c36a185d3e51cddc051cd42e72b8
data:
transition: 10
mode: single
and the second: turn off after i close the garage door and it stays closed for 3 minutes
- id: '1630593035151'
alias: Oprit Lamp Uit Indien Garagedeur Gesloten Wordt
description: ''
trigger:
- type: not_opened
platform: device
device_id: ebaeed44033ef1f48369c986da97940e
entity_id: binary_sensor.deur_garage
domain: binary_sensor
id: GarageDeurDicht
for:
hours: 0
minutes: 3
seconds: 0
milliseconds: 0
condition: []
action:
- service: light.turn_off
target:
device_id: 4661c36a185d3e51cddc051cd42e72b8
data:
transition: 10
mode: single
none of them are working and i am a bit puzzled why…
Any help would be appreciated, thanks in advance,
Regards Frank