esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 35 forks source link

status_led does not light up on a failing i2c sensor #549

Closed valordk closed 5 years ago

valordk commented 5 years ago

sensor_led component which should blink on warning or error from other components does not begin to blink if an i2c sensor is diconnected.

The DUT is an ESP32D with a red LED wired to IO12 through a 10K resistor.

During the bootup, or if the wifi gets diconnected, the LED blinks as expected until the connection is reestablished. But if the string of i2c sensors is disconnected the status_led does not begin to blink, eventhough the i2c component begins to log the following event on a WARNING level:

[16:42:03][W][i2c:070]: Received NACK on transmit of address 0x4B

Well, even modifying the i2c component to log these events as ERROR did not help

[16:59:09][D][api.connection:575]: Client 'Home Assistant 0.95.4 (x.x.x.x)' connected successfully! [16:59:13][D][sensor:092]: 'STS31 0x4B Temperature': Sending state 27.09621 °C with 2 decimals of accuracy [16:59:13][D][sensor:092]: 'SHT30 0x44 Temperature': Sending state 27.32853 °C with 2 decimals of accuracy [16:59:16][D][sensor:092]: 'SHT30 0x45 Temperature': Sending state 27.15762 °C with 2 decimals of accuracy [16:59:15][D][sensor:092]: 'STS31 0x4A Temperature': Sending state 27.13359 °C with 2 decimals of accuracy [16:59:22][D][sensor:092]: 'SHTCx 0x70 Temperature': Sending state 30.34485 °C with 2 decimals of accuracy [16:59:23][E][i2c:070]: Received NACK on transmit of address 0x4B [16:59:23][E][i2c:070]: Received NACK on transmit of address 0x44 [16:59:24][E][i2c:070]: Received NACK on transmit of address 0x4A [16:59:25][E][i2c:070]: Received NACK on transmit of address 0x45

close-issue-app[bot] commented 5 years ago

This issue was auto-closed because the issue template was not filled out. The ESPHome developers invest lots of time to maintain this project, so please at least fill out the issue template so that a bunch of standard questions don't need to be asked again each time. Thank you for taking the time to report a bug, hopefully it can be resolved soon.