Hi,
I have been using my WEMO motion Sensor to automatically trigger my Hallway lights via an automation setup after dark.
It was working perfectly for the last couple of months but when I migrated from HA 0.49 to 0.51.2 the automation setup it stopped working.
Have anyone experienced this problem?
Below is my Automation yaml line that maps to this logic. I will highly appreciate your feedback/guidance.
#Hallway Presence Motion Sensor and Timer
- id: hallway_light_presence_timer
alias: hallway switch on light when motion on
trigger:
- platform: state
entity_id: binary_sensor.wemo_motion
to: 'on'
condition:
condition: time
after: '19:00:05'
before: '06:45:00'
action:
- service: switch.turn_on
entity_id: switch.hall_way_downlight
- id: switch_off_hallway_light_when_no_motion
alias: hallway switch off light when no motion
trigger:
- platform: state
entity_id: binary_sensor.wemo_motion
to: 'off'
for:
minutes: 1
seconds: 30
condition:
condition: time
after: '19:00:05'
before: '06:45:00'
action:
- service: switch.turn_off
entity_id: switch.hall_way_downlight
Cheers
Erick.
HA on RPi3 using Hassbian