Yet another Noob question (GPIO and Notify)

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:

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

  1. Please use preformatted text for pasting of config files (this can be done by placing a line with ``` above and under your paste)

  2. What exactly is your question?

~Cheers

Well the question was (which I forgot to ask is:)
Why isn’t it working?

Answer:
I didn’t get the label flow. Line should read;
“entity_id: binary_sensor.main_door_switch”

Found the last piece of the puzzle in the entities portion of the developer tools

Now it works

Lesson learned.

1 Like

Total Noob here. Would you mind sharing your working code? is this all located within the configuration.yaml file?