Go to “settings / addons / EspHome / configuration”
then click on “Show unused optional configuration options”
Enable “status_use_ping”
restart the esphome addon and the device should now show as online
I see from your YAML above you didn’t include your web sever config. Did you leave it out for security when posting? Was looking to see if you had added a URL for it rather than just ip address. Have in past been unable to connect to things by ip but got in through host name. I have read before that recommended not to add webserver by OTA due to resizing of partitions.
Also just checking that the ip address has been reserved and your not trying to connect to address the DHCP has handed out again.
I think at this stage I wouldn’t be able to stop myself cutting open that case, reflashing and rehousing in case with suitable IP rating.
As ota is included it should be no problem to recover the device using the “safe mode” (described in my last post). The web server isn’t needed for this to work.
Cutting the thing open might be a choice (often only a destructible one ) but I doubt it’s a smart one at this stage were ota recovery should be doable
When I connect to the device’s AP, the device has an IP address of 192.168.30.121 and it’s allocating 192.168.30.122 to my laptop.
I didn’t know about this, I’ll have to give it a try.
Hmmm. I totally missed that this was missing… that would explain why I can’t connect via a browser! I must have accidentally removed it or something as it is present in an identical device that is currently online.
I’ve just read through the docs about this and I’m a little confused as to how I can trigger the device to enter this mode given that it doesn’t have any physical button and is completely sealed. Based on your previous comment, would I just power cycle the device quickly 10 times and hope that it is before the ESP fully boots?
Essentially. But hope isn’t really necessary as esphome set’s the “successful boot” flag not right after booting (typically only a few seconds) but has kind of a “cool down” till it declares a boot “successful”. So just power cycle it like 10 times every 10 seconds should easily let you activate the safe mode.
But one thing you can even try even before activiting the safe mode is to just try to ota it directly:
So in that case if you have esphome locally installed (for example with pip) on your laptop you should be able to call:
esphome run garden_lights_front_1.yaml --device 192.168.30.121
from the terminal to verify, compile and ota upload directly to 192.168.30.121
Thank you. I’m a step closer, I get the .bin file complied and ESPhome tries to connect to the device but it fails to connect. Perhaps I’m not power cycling it properly to get into the safe boot mode. I’ll keep trying with various on/off timing.
error:
←[32mINFO Successfully compiled program.←[0m
←[32mINFO Connecting to 192.168.30.121←[0m
←[31mERROR Connecting to 192.168.30.121:8266 failed: [WinError 10061] No connect
ion could be made because the target machine actively refused it←[0m