This worked for ages now and this started a couple of updates ago. Not sure which exact version.
If I’m home and this motion detector flips my bedside light goes on and I get a text.
If I’m not home series of lights comes on and I get a text.
If it flips when I am home there is just a constant loop of text, bedside light on, text bedside light on, etc. The only way to stop it is to restart HomeAssistant.
I haven’t changed configuration.yaml at all. This just started happening.
automation 10:
alias: 'Front Room Motion Home'
trigger:
- platform: state
entity_id: binary_sensor.fibaro_system_fgms001zw5_motion_sensor_sensor_25_0
from: 'off'
to: 'on'
condition:
condition: and
conditions:
- condition: state
entity_id: device_tracker.phone_phone
state: 'home'
action:
- service: light.turn_on
entity_id: light.master_bedroom_lamp
- service: notify.mypushbullet
data_template:
title: "Front Room Motion"
message: >-
Movement! Some Ting Wong
automation 11:
alias: 'Front Room Motion Not Home'
trigger:
- platform: state
entity_id: binary_sensor.fibaro_system_fgms001zw5_motion_sensor_sensor_25_0
from: 'off'
to: 'on'
condition:
condition: and
conditions:
- condition: state
entity_id: device_tracker.phone_phone
state: 'not_home'
action:
- service: switch.turn_on
entity_id: switch.front_room_light
- service: notify.mypushbullet
data_template:
title: "Front Room Motion"
message: >-
Movement! Some Ting Wong
automation 12:
alias: 'Front Room Motion Lights Off'
trigger:
- platform: state
entity_id: binary_sensor.fibaro_system_fgms001zw5_motion_sensor_sensor_25_0
from: 'on'
to: 'off'
action:
- service: light.turn_off
entity_id: light.master_bedroom_lamp