So firstly there is no switch.door_remote entity on my list?!
Also “You can paste this into your /config/automations.yaml file.” I have no idea what automations.yaml file you are referring to. ive only ever created the first file coding you gave me called intercom.yaml which ive uploaded to the esp32…
On main Homeassistant panel If you select configuration on the left and then entities on the right.
In the search bar at top type switch.d and the switch you created on the ESP32 should appear along with any other switch starting with d.
Yeah the automations.yaml might be a bit deep to go so use the other method.
Select configuration from the Homeassistant panel and then automations on the right and create the connection that opens door on pressing door bell.
So first thing maybe to mention is when i connect my usb stick to my laptop, I cant actually see the device on homeassistant main screen as a connected device . I managed to get HTTPS version running and same issue so ive been compiling the code, manually downloading the bin file and using esphome flasher to install to the usb stick…
secondly as you can see from my pic here, these are the entities i can see, none of the ones we created in the code show up here and no matter how many times i flash it, it never shows as a connected device even though it says it connected to my wifi here…
Is your esp32 saying online or offline?
When you put in your text about wifi: in response 4 every new line starts in the first space. You may have the correct spaces but I can’t tell as the reply formatter may have adjusted it. YAML is very fussy about indentation. It’s best to use the preformatted text button in the reply space. Moderators are very fussy about preformatted text. It makes it much easier to spot indentation mistakes.
All ive done is copy your original code you gave me on this thread and just changed my wifi values and IP and gateway, thats it. Ive never used yaml so I dont even know if after i copied your code, when its pasted back into my new intercom yaml, if its still correct but here is a screenshot. Other thought is if youre ok in doing so, I give you my wifi ssid and password, the ip and gateway and you input those into the code on your end and upload the code to me here? that way I know the code is formatted how it should be so I can just copy and paste into the file??
and also to show you…my device is plugged directly into my laptop for this screenshot and where I’ve blue circled, you can see I do not see my device list here and you can also see my device is offline despite it being on, programmed and allegedly connected to my wifi during the flash phase…
Really annoying i can only upload 1 pic per reply lol
Here’s a idea try this to replace the sensor part in esp32 esphome program. This should open the door when you press the doorbell without having to talk to Home assistant at all. Again you might have to adjust the above 3 according to in the logs when you connect by usb cable to your esp32 what the INA219 reports as shunt voltage. I’ve increased the multiply: 100 to 1000 to bring it up from 0.3 to 3. You may also need to delete the address: 0x40 if that what it took to get INA219 working.
Can you humour me and just give me a completed code with the sensor bypassing HA?
ssid: CrewCabinsWifi
pass: CabinCrew1
Static IP: 192.168.0.30
Gateway: 192.168.0.1
My delay for the intercom to buzz should be 5 seconds as on my system, the unlock only works for how long you physically press the button so I want it to be a 5 second unlock from the time the external buzzer rings.
I dont need any smart access to it. Just needs to work 24/7 automatically
I think your wifi may not have connected as you didn’t put " " round the ssid and password which are strings. I have adjusted the logger level to DEBUG so when you check the logs you get a log in esphome like this.
when I press the door bell the voltage goes up to 0.89 which is above 0.3 I have set as lower level. The reason I think the voltage isn’t 0.0V is a difference in ground from the door buzzer and the ground of the ESP32. This voltage updates 5 times a second so by time I go out and press door bell and come back in 100’s of lines have gone by. If the above code runs press your door bell and see what voltage reads as you may have to adjust the above: 3. You may have to scroll up the log a bit.
Thank you so much. I am literally pressing the copy button and going to paste it into the file and manually flash it…ill message you in 15 mins with an update…
These very low numbers are the voltage at rest. Press the door bell and see if the voltage is recorded as much higher. As I said 5 reading will go by a second and you will have to scroll back. If the voltages don’t go up when you pressed door bell then INA219 isn’t reading the shunt voltage.
Each step your getting a little closer.
Does your Home assistant now have an entity switch.door_remote. If so create the card as described above to check you can manually open the door from HA.
Let me know how you got on and I’ll see it tomorrow.
Sounds good and I see the relay turning on. If relay didn’t open the door then may be problem back with the physical wiring at the relay. Unless of course you can open it by a button on HA then it’s a problem with the esp32.yaml. Good night.
Is there even a new entity Ina219 showing up in entities list? If not check the configuration panel and select integrations. Under Esp home it should have an entry for intercom.