Open Nippey opened 11 months ago
Discussion ongoing in discord, short status:
htu21d contains this->bus_
from its parent class i2c.
And this pointer to the i2c bus gets screwed-up when calling write_register
from inside set_heater
.
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.
The problem
(Already started a thread in discord, but I think a bug is better suited here: https://discordapp.com/channels/429907082951524364/1161952623952408657)
I am using multiple Si7021 via htu21d component in a quite humind environment. Therefore I want to implement the heating function to tackle humidity buildup.
I configured an automation to activate the heaters. Calling
id(garage_sensor).set_heater_level(4);
works fine. But callingid(garage_sensor).set_heater(true);
triggers a reboot.For testing, I reduced it to a single sensor. I can trigger it via "Garage Sensor Heater Switch" either with HA or with the Dashboard.
At
[19:54:26]
below, you can see that I clicked the switch; then follows, what I assume a segmentation fault.Which version of ESPHome has the issue?
2023.9.3
What type of installation are you using?
pip
Which version of Home Assistant has the issue?
NA
What platform are you using?
ESP32
Board
ESP32-WROOM-32
Component causing the issue
htu21d
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response