Basically what I want to do is when the door bell sounds, homeassitant recieves the message on or active. I have tapped into the speaker wires and tested that when the speaker sounds, power is supplied (used an led to test).
Image doesn’t show that I had the positive connected to D4.
Then With that message I can create a further automation to be determined.
I loaded up tasmota, made d4 a switch2, and still nothing. I have the positive from the speaker going to D4. But home assistant never detects. I can see that mosquitto is connected to the nodemcu but no signal is ever sent. What am I doing wrong?
In those cases where something weird is happening I have a little simple sketch that just prints all the GPIO pins over and over on the serial port so I can easily see which is getting triggered or if there is a issue with the pull-up resistor or not. It will be several hours but if you need it still I can post it when I get to a laptop to pull it.
Wait… reading your text again. Positive? I believe D4 is shared with the LED and has a pull-up resistor already so it will be high. You’ll need to pull it low (to ground). I think D8 has a pull-down on it, or I might be confusing it with the Wemos D1 mini. Check your docs on your chip to see what is what. I believe D0 has a pull-down on the Nodemcu.
Also verify the voltage on the speaker isn’t above 3.3v.
D0 does indeed have pulldown. I’ll preface that I’m learning as I go. I have zero experience with coding and wiring and all of this. It’s all through Google. My background believe it or not is in finance and this is all just a hobby. Ill try what you recommended later today.
I didn’t even think the speaker would be supplying too much. That could be the issue. The tutorials I have been using indicate connecting to the led leads, but I dont feel comfortable with soldering (I don’t have the setup for it) so I wired and glue for the speaker (I did my best not to glue terminal, only partly to prevent movement)
Nothing wrong with learning and trying things. Only way to excel! Do you have a volt meter? Most little LEDs are 2V’ish or less, and if you didn’t pop the LED then you might be safe, but I would see if you can pick up a cheap little volt meter. Super helpful in projects.
I was using an led to confirm that power was supplied when speaker was active (read making the annoying doorbell sound that if I play again my wife will lose her mind). No pop and no resistor added. Also wasn’t super bright either so I’m making the extraordinary assumption it’s not supplying an excessive amount of power.
So the board is USB power and the doorbell board is battery powered. Power will be separate(for now). The positive and negative wires are spliced from the speaker wires. It seems like power is only supplied when speaker is sounding. Basically, I don’t know how to take that supplied power and have the nodemcu interpret it and send to homeassitant. I have the tasmota software installed.
Out of interest, why not intercept the 433mhz signal?
You can make a 433mhz gateway using esphomeyaml and a send and receive module.
Currently putting mine together for the same kind of application, doorbell presses into HA.
As for the 433 mhz receiver, I have issues with too much interference. I have my pi hooked up with one and it picks ups everything. My dog has a doorbell that’s RF as well that causes alot of interference along with a etekcity outlets and other stuff. This makes it a bit cleaner…ish.