Hi
Why this automation not working:
- alias: light_anteroom_on_night
hide_entity: True
trigger:
- platform: state
entity_id: sensor.mqtt_door_anteroom
from: 'close'
to: 'open'
condition:
- condition: state
entity_id: 'binary_sensor.workday_sensor'
state: 'close'
- condition: time
after: '00:00:00'
before: '10:00:00'
action:
- service: mqtt.publish
data:
topic: 'cmnd/sonoff_bn-sz01_02/dimmer'
payload: '1'
- service: light.turn_on
entity_id: light.mqtt_light_anteroom
The time is right, and is weekend. Door sensor and light is working correctly.