This is driving me nuts.
These automations won’t work, nothing happens. But if I separate them they work?!
## CLOSET
- alias: 'Closet Light On'
trigger:
- platform: state
entity_id: binary_sensor.guestroom_closet_sensor_6_0
state: 'on'
action:
- service: light.turn_on
data:
entity_id: light.guest_room_closet
rgb_color: [255, 197, 143]
brightness: 130
- alias: 'Closet Light Off'
trigger:
- platform: state
entity_id: binary_sensor.guestroom_closet_sensor_6_0
state: 'off'
action:
- service: light.turn_off
data:
entity_id: light.guest_room_closet
This works:
test_on:
sequence:
- service: light.turn_on
data:
entity_id: light.guest_room_closet
rgb_color: [255, 197, 143]
brightness: 130
test_off:
sequence:
- service: light.turn_off
data:
entity_id: light.guest_room_closet
And this too:
- alias: 'Test 1'
trigger:
- platform: state
entity_id: binary_sensor.guestroom_closet_sensor_6_0
state: 'on'
action:
- service: notify.ios_iphone
data:
message: 'Closet doot opened'
title: 'Home Assistant'
- alias: 'Test 2'
trigger:
- platform: state
entity_id: binary_sensor.guestroom_closet_sensor_6_0
state: 'off'
action:
- service: notify.ios_iphone
data:
message: 'Closet door closed'
title: 'Home Assistant'
I can’t see what I’m doing wrong and I get not errors in the log…