I am missing something simple here and I realize it.
I have read docs till I have confused myself.
State does change on main page via the reed switch to gpio.
When I trigger the action from the webpage I receive message.
I think I am missing a simple glue step: attached
Pi Door Sensor
binary_sensor:
- platform: rpi_gpio
ports:
17: Main Door Switch
SMTP for Gmail
notify:
- name: NOTIFIER_NAME
platform: smtp
server: smtp.gmail.com
port: 587
timeout: 15
sender: [email protected]
starttls: true
username: [email protected]
password: password
recipient: [email protected]
input_boolean:
notify_door:
name: Notify when door open
initial: on
automation:
alias: door open
trigger:
platform: state
entity_id: binary_sensor.rpi_gpio
to: ‘on’
condition:
condition: state
entity_id: input_boolean.notify_door
state: ‘on’
action:
service: notify.NOTIFIER_NAME
data:
title: “”
message: “Door Open”
Thanks in advance