Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SHT3x now enables heater by default #4886

Closed
jkl1337 opened this issue Sep 16, 2023 · 4 comments · Fixed by esphome/esphome#5445
Closed

SHT3x now enables heater by default #4886

jkl1337 opened this issue Sep 16, 2023 · 4 comments · Fixed by esphome/esphome#5445

Comments

@jkl1337
Copy link

jkl1337 commented Sep 16, 2023

The problem

PR #5161 seems to enable the sensor heater by default despite its title: cv.Optional(CONF_HEATER_ENABLED, default=True): cv.boolean, and later if (!this->write_command(heater_enabled_ ? SHT3XD_COMMAND_HEATER_ENABLE : SHT3XD_COMMAND_HEATER_DISABLE)) {

Which version of ESPHome has the issue?

2023.10.0-dev

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

No response

What platform are you using?

ESP8266

Board

No response

Component causing the issue

sht3xd

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

This can be worked around by setting heater_enabled: false, but I don't see the need for a breaking change.

However there in general there is no way to make a piece of code that changes a setting where previously no forced setting code existed non-breaking to someone. However I think the heater off is the reasonable setting for the majority of users.

@jasonlaguidice
Copy link

I just updated to 2023.9 and with no other changes the temperature sensor in my AirGradient box using the same sensor reads 15 *F higher. This may be the cause for me too and I will test.

@joegross
Copy link

I'm seeing the same thing with SHT35 sensors after upgrading to 2023.9. Setting heater_enabled: false resolved it.

I can't imagine this was on purpose as the heater is intended for diagnostic purposes.

Screen Shot 2023-09-28 at 11 49 25 AM

@jasonlaguidice
Copy link

Returning back reporting the same thing - manually setting heater_enabled: false corrects the problem and normal sensor operation is restored.

jkl1337 added a commit to jkl1337/esphome that referenced this issue Sep 29, 2023
Fixes esphome/issues#4886.

The SHT sensor heater is for special use and defaulting
them to on breaks the vast majority of prior configs and
seems quite surprising. This appears to have been an
inadvertent side effect of PR esphome#5161.
@alexruffell
Copy link

alexruffell commented Oct 12, 2023

No wonder all my sensors were off! Thank you for the fix.

@github-actions github-actions bot locked and limited conversation to collaborators Feb 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants