Hi everybody,
I’m quite new using HA and I’m facing a problem. I’m trying to turn on my bedroom light when the door sensor detect it, but not working at all.
Here is my script :
Blockquote
- alias: Turn on bedroom Light When Doors Open
hide_entity: false
initial_state: ‘on’
trigger:
platform: mqtt
topic: /Sonoff/rfb/dw1/
payload: “off”
condition:
condition: time
after: ‘17:00:00’
before: ‘23:59:00’
action:
service: switch.turn_on
entity_id: switch.lumiere_bed
Blockquote
If someone could help me please.