Help with Frenck’s doorbell

I’m brand new to esp home and decided to build @frenck s $2 doorbell.

Got the yaml code entered correctly and validated but there isn’t a compile button. I’m guessing the interface has changed some since the web article was posted. Where is the compile button now?

Called Install now.

Thanks for the reply.
Do I use “manual”?

What is your esp connected to?

The device I’m flashing is connected to a Mac Mini M1.

And is that the device running esphome?

No. It’s running the companion app. ESPHome is running on a Yellow.

I also ran into a problem with the yaml.

In Frenck’s code-

  # Switch to turn on/off chime when
  # doorbell button is pushed.
  #
  # It creates a "virtual" switch based
  # on a global variable.
  - platform: template
    name: Doorbell Chime Active
    id: chime_active
   [u] restore_state: false[/u]
    turn_on_action:
      - globals.set:
          id: chime
          value: 'true'
    turn_off_action:
      - globals.set:
          id: chime
          value: 'false'
    lambda: |-
      return id(chime);

restore_state is no longer valid and I believe has been replaced by restore_mode.
false is no longer a valid option. Options are

'RESTORE_DEFAULT_OFF', 'RESTORE_DEFAULT_ON', 'ALWAYS_OFF', 'ALWAYS_ON', 'RESTORE_INVERTED_DEFAULT_OFF', 'RESTORE_INVERTED_DEFAULT_ON', 'DISABLED'.

I’m not sure which to use here?

Then choose “Plug into this computer”

@nickrout
Flashing went perfectly. Thanks for your help. I think something must still be wrong though. I can see in pfsense that the esp is online but it shows as offline in esphome and I get this error-

INFO ESPHome 2023.8.2
INFO Reading configuration /config/esphome/doorbell.yaml...
INFO Detected timezone 'America/New_York'
INFO Starting log output from doorbell.local using esphome API
WARNING Can't connect to ESPHome API for doorbell.local: Error resolving IP address: [Errno -5] No address associated with hostname (APIConnectionError)
INFO Trying to connect to doorbell.local in the background

Perhaps this is related to the esphome api in the yaml??? I see that it is blank. The instructions didn’t have any info other than to add wifi credentials.

Nevermind. Noob mistake. There wasn’t a black wire in the phone charger cable that I used for power so I used the green wire instead. DUH :upside_down_face: :smiley:

Once I realized that the ground was the bare wire it worked great.