[BUG:WebUI:Sensors] When changing sensor type (driver), set sensor status to failed #49

Open
opened 2025-10-25 00:31:47 +02:00 by DeltaLima · 0 comments
Owner

Actually, when an already configured sensor gets changed it's driver, for example an AHT10 changed to BME280, then the sensor is not marked as failed. This causes, that without checking for the new sensors presence at the bus and initialising it, that the readings get read, which can the ESP to crash.

Noticed with ENS160 and SCD40 sensors, when changed them in the config around.

Actually, when an already configured sensor gets changed it's driver, for example an AHT10 changed to BME280, then the sensor is not marked as failed. This causes, that without checking for the new sensors presence at the bus and initialising it, that the readings get read, which can the ESP to crash. Noticed with ENS160 and SCD40 sensors, when changed them in the config around.
DeltaLima changed title from [BUG:WebUI:Sensors] When changing sensor type (driver), set sensor to failed to [BUG:WebUI:Sensors] When changing sensor type (driver), set sensor status to failed 2025-10-26 14:30:43 +01:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DeltaLima/CanGrow#49
No description provided.