Closed Lefuneste83 closed 3 years ago
Upon further investigations and tests I can now safely say that the reboots I am witnessing are related to a particular way the MQTT messages are being sent by HA to the device.
It occurs specifically when HA addresses 2 different entities exposed by the same device (QUINLED QUAD) using a group component. Either as light group or as standard group, the behavior is similar. When using this aggregation layer from within HA, the device when receiving 2 different MQTT messages at the same time for 2 entities, it fails to address the command and for some reason : -It reboots, (thus disconnects from the MQTT Broker then reconnects immediately) -I could not trace a dump or crash log -Addressing 1 single entity (of the 2 exposed by the device) at a time this phenomenon does not occur.
There could be some sort of timing issue in conjonction with the "group" mode of command emitted by HA. The "group" command seems to have many issues in HA. There seem to be numerous bugs related to it. It looks like if the device fails to address at the same time all 4 GPIOs declared in my FW for the LED rails.
Though I think there is need for investigation as to why the device reboots in such a case. This use case is not particularly exotic and many users could face a similar situation.
It does not seem to be related to any particular version of ESPHome as I have compiled the FW on all available versions and it behaves the same.
It will be great if you could setup the device with api:
just to confirm this issue is MQTT / HA specific.
Well, I had the same problems, nothing to do with MQTT, it was on all esphome nodes. What I did, save all yaml files from the esphome devices. Delete the integrations from esphome. Update HA to version 0.112.0, update esphome to Current version: 1.14.5. add all the epshome nodes, back again, compile/upload again and add them to lovelace. I used :
esphome: name: Curtain platform: ESP8266 board: d1_mini arduino_version: 2.4.2 wifi: ssid: !secret esp_ssid password: !secret esp_ssidpass manual_ip: static_ip: 192.x.x.x gateway: 192.x.x.x subnet: 255.255.255.0 dns1: 192.x.x.x dns2: 1.1.1.1
Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "FB Curtain" password: !secret esp_fbssidpass
captive_portal:
Enable logging logger:
Enable Home Assistant API
ota: password: !secret esp_otapass
web_server: port: 80
api: password: !secret esp_apipass
The result is: No more disconnections! ;)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Operating environment/Installation (Hass.io/Docker/pip/etc.): Home Assitant on Docker Home Assistant 0.111.4
Issue occurs with compiled firmware against Dev and 1.14.5. 1.14.4 does not allow the ESP32 to reboot properly due to another bug with one of the sensors.
ESP (ESP32/ESP8266, Board/Sonoff): Esp32 mhetesp32devkit
Affected component: wifi output light
Description of problem: Unsolicited reboots of the ESP32 : -At random moments -In particular when controlling several GPIO on the same ESP32 through a light group entity (in configuration.yaml) for brightness.
light:
The ESP32 is coupled with a QUINLED QUAD which has been running flawlessly for more than a year. The issue occurs whatever the hardware used (tried with several ESP32/QUINLED Boards). The ESP32 seems to disconnect or be disconnected then reconnects rapidly. This reboot problem appeared a few days ago and now that I am investigating it seems obvious that there is a regression in one of the components. It may be related to HA less likely to the Wifi.
Problem-relevant YAML-configuration entries:
PASTE DEBUG LOG HERE