tambem não funcionou,não deu qualquer erro mas não acionou.
experimentei acionar a luz da gateway e tambem não deu .
- alias: Motion Sensor switch On
initial_state: true
trigger:
platform: state
entity_id: binary_sensor.motion_sensor_158d0002239c3a
to: 'on'
condition:
condition: time
after: '12:30:00'
before: '23:50:00'
action:
- service: ligth.turn_on
entity_id: light.gateway_light_50ec50c4c887
- delay:
minutes: 1
- service: ligth.turn_off
entity_id: light.gateway_light_50ec50c4c887