I have a bird house where I have installed an ESP32-cam, dallas temperature sensor and a PIR sensor. Everything worked OK, except for random disconnects. I adjusted the settings and everything seemed to work fine. Then, later in the day the sensors and camera image on the frontend became unavailable.
I checked the EspHome UI and the ESP is still green/connected, logs show everything working as it should, but the frontend entities show as unavailable.
I have tried ;
Toggle power on ESP32cam
OTA update.
Restart EspHome add-on
Restart Home Assistant
Reboot RPi
Another OTA update
Anyone else experience the same?
I could try re-flashing the .bin file, but itās a nightmare removing and re-installing the ESP from the bird house.
While you were tinkering with it, did the entities change name, or it may have thought there were duplicates and appended a number? When you go to configuration-> integrations, do you see your bird house esp unit? If not, try re adding it.
Yes, I should have added that to my original post ;
The unit shows in Configuration -> integrations.
All the entities show as well, but as unavailable.
Core register does not show any duplicates.
The static ip address from .yaml matches the reserved ip in my router settings.
My routers app shows ESP as connected to the 2.4ghz bandwith with excellent signal.
By re-add, do you mean deleting it from integrations and then adding again? As in the attached picture?
I deleted a different integration once, and it just deleted the entities and I never managed to get it working again, thatās why Iām a bit apprehensive.
I make no warranty, but Iāve deleted then readded my esp device with no issues. One possibility is if you registered it with an IP address and the esp ip changed, I believe this requires you to readd it.
The worst thing that had happened to me is having to rename my entity_ids if they get duplicated. Maybe you back up your ha folders including your .storage directory before you do it.
Thanks, that worked. In case it can help others I will describe what I did ;
Copied the YAML from EspHome Dashboard node to a text file.
Deleted the integration via āConfiguration -> Integrationsā
Deleted the node from EspHome Dashboard.
Added a new node with same name.
āEditā node.
Paste original YAML back in.
Go to āConfigurationā -> Restart server -> Discovery found the integration again.
Regarding antenna :
My board came configured to onboard antenna, which was ok for indoor use. Not great, but it worked. Outdoor was no chance.
Making a connection between two pads is how you choose the configuration. The guide says you need to move the 0 ohm resistor between the pads, but thatās not the case. You can have connection between both pairs. Be careful though, the pads and the antenna connector itself is very fragile to overheating and mechanical stress.
Say itās configured to onboard antenna, and you want to use external : All you need to do is put a small blob of solder between the two pads for external antenna. No need to move the resistor. I wrapped a solid core 24 awg wire around the soldering iron tip and slowly melted solder onto it, until it dripped onto the two pads for external antenna.
Signal went from around 75-88 to 45-50 after switching to external antenna, and now it works fine 7 meters from the house.
Hi, I have the same problem on one of my many 8266 sonoff s20 outlets. Iām running HASSIO and this problem happened after upgrading to the latest HA.
Can you explain what you mean by copy YAML, Iām running standard frontend without any modifications.
When you delete the node, the yaml configuration is gone. You want to keep the yaml configuration text for the new node you will create, so you donāt have to set everything up from scratch again.
Sonoff 20, example :
esphome:
name: <NAME_OF_NODE>
platform: ESP8266
board: esp8285
arduino_version: 2.4.2
wifi:
ssid: <YOUR_SSID>
password: <YOUR_PASSWORD>
api:
logger:
ota:
binary_sensor:
- platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: True
name: "Sonoff S20 Button"
- platform: status
name: "Sonoff S20 Status"
switch:
- platform: gpio
name: "Sonoff S20 Relay"
pin: GPIO12
output:
# Register the green LED as a dimmable output ....
- platform: esp8266_pwm
id: s20_green_led
pin:
number: GPIO13
inverted: True
light:
# ... and then make a light out of it.
- platform: monochromatic
name: "Sonoff S20 Green LED"
output: s20_green_led
Go to āEspHome Dashboardā
Go to āEditā
Mark all yaml text and copy
Save in a text file
Create new node and paste the yaml text back in
This is just how I did it, maybe there is an even easier way to do it.
Thanks, so you copied the esphome yaml for later. - I have actually done the same when I have flashed many sonoffs.
I have had some sever syncronisations problems earlier when I have deleted integrations, entity and devices from the HA configuration GUI.
At that time I was left with a complete unsycronized DB so Iām really scared to fiddle around to much!
So in what order did you remove the devices from HA?
And btw, did you have to reflash the 8266 via the serial interface or could you use the OTA in some way?
The Esp integration entities became available in Home Assistant after deleting the integration and then re-adding it.
The yaml, or rather the firmware binary, should still be in the Esp, right? I could do without re-uploading to Esp, but did it anyway. Is that what you mean?