there is a new repo as its called ESPhome now, not ESPhomeYAML. Check the install docs for the new repo detail
Yes, I know it has changed. The address I got the instructions from is: https://esphomelib.com/esphomeyaml/guides/faq.html#how-do-i-update-to-the-latest-version
That is where I ran into the problemâŠ
How do I update to the latest beta release?
For pip-based installs
pip2 install --pre -U esphome
For docker-based installs
docker run [âŠ] -it esphome/esphome:beta livingroom.yaml run
I simply do not know where to enter the commandsâŠDirectly in my Rasp Pi? Somewhere under hassio>? Another directory? Via SSH? Via a .yaml file in HA?
The Beta is a separate add-on:
And for Hass.io, you will see a âESPHome Betaâ Add-On for the beta channel.
I had similar issues with a bunch of Gosund SP1âs (platform: esp8266 / board: esp8285), Sonoff Basicâs (platform: esp8266 / board: esp01_1m) and a Sonoff RF Bridge (also platform: esp8266 / board: esp01_1m) that I managed to flash to ESPHOME using a USB serial adapter / pin soldering.
All units would drop every minute or so, showing the dreaded âWARNING Disconnected from API: Timeout while waiting for message response!â in the logs.
Initial suspicion was WIFI signal strength, but all were mid-50 dBâs or better (ie. lower). Then looked at my ASUS RT-AC68U wifi settings and messed with the professional settings on the 2.4 GHz band (Bluetooth co-existence from Disble to Enable, and Preamble Type from Long to Short). This improved things marginally.
Finally followed a number of cross-referenced posts by almighty Otto, that lead me to the suggestion that the arduino platform libraries could be causing these wifi issues.
Added arduino_version: dev
to the esphome.yaml for each device like so:
esphome:
name: sonoff_rf_bridge_new
platform: ESP8266
board: esp01_1m
arduino_version: dev
This appears to have severely reduced the disconnects. Word is still out if this can be considered a permanent fix, but I am hopeful.
Update: HA logs overnight showing over 9 hours of uninterrupted connection on all devices!
I confirm.
arduino_version: dev
did the trick. No more disconnects. But mDNS also stops working
I also tried
arduino_version: 2.5.2
- it not work. Disconnecting. But mDNS works
Adding use_address solves the mDNS issues. Not ideal but better than continual disconnectsâŠ
wifi:
use_address: 192.168.1.xxx
networks:
- ssid: MYSSID
password: MYPW
How do you know whether this is working or not?
Iâll concur that using dev
solves the WiFi issues.
I added this in (donât know if I had an issue), there seemed to be no downside in doing so as I use static addresses anyway.
Spoke too soon. Still disconnecting
Are you dânot know what is mDNS? mDNS - this is name resolution without DNS server (the node work as DNS server itself). So, if it works, you can reach the node by it name (name from the node config in âesphomeâ ânameâ section). For example, âping node_name.localâ (domain â.localâ - is reserved for mDNS queries). If you can do like this - mDNS working, if not - not working. It is simple.
âuse_addressâ have nothing related to mDNS. It is used to reach the node by old ip address, if you changed the network, where node was connected before.
Do you meen âesphome devâ or âarduino version devâ? For me the âarduino_version: devâ solves the issue complitely. I have 5 esphome nodes. Before i have many disconnects for each node, now - zero. All nodes always connected. So, this is not the esphome, but underleing libraries (yes, esphome uses Arduino esp8266 Wfi library) issue. Of course, it is all correct, if you not have another issues in you WiFi networkâŠ
Do you meen âesphome devâ or âarduino version devâ?
arduino_version dev
WiFi is not simple. I have a couple of different APs (from different manufacturers) I could connect to some are better than others (RSSI is pretty similar), with channels etc not conflicting.
I feel that it is probably an authentication issue with how the protocol is implemented on different devices.
One particular AP absolutely hates the old Android tablets I have - disconnects all the time, so I have a cheap TP-Link AP for those to connect to.
Which version of esphome you are using?
My experience:
esphome 1.13.6 (last version of 1.13 branch) with arduino_version dev
- no disconnects. When i upgraded to esphome 1.14.3 (last) - a lot of disconnects. And it is not dependend on arduino_version
. When i rolled back to 1.13.6 - no disconnects. So iâm now on 1.13.6.
Iâm going to roll back. Iâve actually moved some stuff onto Tasmota as it got so bad.