Wemos D1 mini recognize a signal from Doorbell and tell HASS

Hello and thank you for reading.

I am having a couple of newb (learn as I go) issues!! (I have a good understanding and I am great at following instructions once I find the right ones).

I am using HASS supervised. I am able to edit my YAML configs and have HACS and also ESPhome installed.

My idea is to be able to detect my doorbel being pressed and then send a signal to HASS via a wemos D1 mini. I can then set an automation so that a light will flash or do whatever I want.

The door bell that I have is this Doorbell.

I am having an issue with finding the correct code and YAML to upload to my ESP D1 mini and HASS that will detect the signal from the receiver for the doorbell.

The doorbell will output a “tune” as I have hijacked the wires that would have went to the speaker. (so not really just a single on or off signal, shortest “tune” is about 90 seconds) The speaker is no more and I have a relay now between the Wemos and the bell to isolate the high and low voltage.

RED wire is connected to “normally closed”.
BLACK wire is connected to “common”.

Relay board I have has three pins: “IN” “GND” "VCC.

Wemos D1 mini is all ready to go and has been intergrated into HASS.

Any thoughts or ideas would be mercifully accepted as I am at the end of my teather. I have went back to a clean slate a few times now!!

Thank you.

image

Does a multimeter show a voltage change when the button is pressed?

Also I think it is around the wrong way, the bell should be connected to in and gnd. The wemos should to common and no.

Multimeter does show voltage change. (goes haywire… Imagine the song greensleves…in digital form. Remember I have Hijacked a speaker output.)

The way I thought is that the higher voltage should be on the common and no. (To isolate the higher voltage) And the 5v Wemos to the in and ground. I did ask this of myself as well. Now I have more doubt after assuring myself!!

The NC and COMMON are for devices you want to control, the IN and GND together control whether the relay is on or off.