Any idea how to suppress spontaneous chimes from the doorbell when Home Assistant is down?
Several years ago I implemented Frenck’s ESPHome smart doorbell. It was exactly what I’d been hoping to do with the original wired doorbell in our home, and is simply brilliant! Love it.
I run Home Assistant on an Ubuntu server that hosts multiple services, and a couple times a month I take the server down to apply updates to everything. About a year or two ago - well after initial implementation - it became that the doorbell will spontaneously chime every 10 minutes or so during the period that Home Assistant is down. So I suspect something changed in ESPHome.
I’ve tried temporarily disabling the chime in Home Assistant, and directly in the ESPHome console on the doorbell too, but it failed to prevent the spontaneous chimes. I’ve looked through the doorbell yaml code and see nothing related to HA unavailability that I could adjust.
Next month I plan to upgrade the hardware that hosts Home Assistant, which will take it down for most of a day. A day of constant doorbell chimes.
I chose to power the doorbell’s smarts from the doorbell’s own wiring, so it’s not as simple as unplugging a repurposed phone charger – it’s either mess with the house wiring, or turn off the electrical circuit the doorbell is on, neither of which is great.
Might you have any suggestion for a change that could be made to the code, or something, to help eliminate this issue?
Or, can you point me to where I should open a ticket with ESPHome?
Knowing some kind of details aboit your hardware, your yaml, esp logs, etc are things you need to provide. The gpio you are using for the relay is turning On and Off triggering the bell each time it restarts. Disabling the reboot_timeout doesnt actually fix anything and will cause its own problems.
The yaml is below, barely changed from Frenck’s instructions; AFAIA the only tweaks were to:
provide a static IP address rather than use DHCP
provision api and ota passphrases
change the restore_state from “false” to “restore_default_off” when ‘false’ became deprecated
I don’t believe the restore_state change was coincident with when the spontaneous chimes began.
There do not seem to be any esp logs. I don’t leave the ESPHome addon running as it doesn’t seem necessary, but starting it up today returned nothing even after several minutes.
Since you have the output inverted it means that relay is actively pulled (/coil energized) when esp in on.
When it loses connection to home assistant it will restart. This is some software/chip related issue that it must be restarted to reliable be able to reconnect.
Then during boot the pin state goes to default value and once esp is started the code in it will set the relay to desired state, doorbell stops chiming.
The other post had extra parameter given for the relay. I dont know if all pins support that. Test it out and check also that you are using the same pin, if it doesnt work.
Another solution would be to use change over contact so that you can keep the relay coil unenergized and just connect the chiming to normally open or closed pins how ever needed.
Edit: some pins are high and some are low during boot. And some need to be in specific state or esp might not boot.
Unfortunately, I did/do not. The methods taikapanu suggested in their reply come with a steep learning curve for me, towards which I haven’t yet put any effort. For now, I just put up with the unwanted chimes.
Well I tried the solution from the link in your second post. For a manual reboot that works. Hope that it also works for the unintended reboots. Time will tell
Making the mode change detailed in the linked article appears to have resolved the problem. I had Home Assistant down for 30+ minutes last week with no spontaneous doorbell chimes!