my back door is showing up in http://192.168.1.233:8123/dev-state as “on” or “off”
“on” for open, “off” for closed. so i set up an automation to notify when door is open but it’s not working.
- id: '1558836134896'
alias: alert back door open
trigger:
- entity_id: binary_sensor.back_door
from: Off
platform: state
to: On
condition: []
action:
- data:
message: back door open
service: notify.notifier
(code above looks a little different because i used the HA web GUI to create the automation)
- id: '1558836134896'
alias: alert back door open
trigger:
- entity_id: binary_sensor.back_door
from: 'off'
platform: state
to: 'on'
condition: []
action:
- data:
message: 'back door open'
service: notify.notifier
Off/On needs to be lowercase and surrounded by single or double quotes. Make sure that the automation is turned on. Message should be surrounded by quotes as well.
In addition to what @walrus_parka wrote, it is always useful to confirm how exactly the state shows up for an entity in the /dev-state tab - I have seen loads of questions where capitalization was the issue or that the values were actually not on/off but true/false, etc.
you are right!
believe it or not, i had it correct in the first place as you suggested But PushBullet notifying alerts did not come through because there was no internet in the house. and then i start second guessing my syntax