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

Govee BLE (5102) Temperature and Humidity Sensor #85580

Closed
rockinonthehubnotkansas opened this issue Jan 10, 2023 · 18 comments · Fixed by Bluetooth-Devices/govee-ble#57 or #86103
Closed

Comments

@rockinonthehubnotkansas

The problem

Beginning 2022.12.7 the Govee BLE integration will no longer work for temperatures reading below zero (confirmed on integrated display). Temperature and humidity are correct until temperature goes below zero, then both temperature and humidity entities become unavailable. Battery level and signal strength entities are still reported. Temperature and humidity entities recover when temperature goes above zero.

Prior to 2022.12.7 temperatures at low as -11F were correctly reported and displayed in HA.

What version of Home Assistant Core has the issue?

2023.1.2

What was the last working version of Home Assistant Core?

2022.12.6

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Govee BLE

Link to integration documentation on our website

https://www.home-assistant.io/integrations/govee_ble/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

Hey there @bdraco, @PierreAronnax, mind taking a look at this issue as it has been labeled with an integration (govee_ble) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of govee_ble can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Change the title of the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign govee_ble Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


govee_ble documentation
govee_ble source
(message by IssueLinks)

@PierreAronnax
Copy link
Contributor

PierreAronnax commented Jan 10, 2023

https://github.com/Bluetooth-Devices/govee-ble/blob/432223ada34def7bb58a1601afdfd6954cc3a152/src/govee_ble/parser.py#L32
MIN_TEMP = -17.7778

@bdraco it seems that this needs to be lowered. Assuming we are talking zero F in this issue.

According to the manual the operating range is -20°C – 60°C (-4°F - 140°F) but the actual range is apparently bigger.

@bdraco
Copy link
Member

bdraco commented Jan 10, 2023

That value was derived from published specs of the device plus some leeway. I guess we need some more leeway since they actually deliver better than the specs and work with lower temps. Happy to merge a PR to lower the value

@rockinonthehubnotkansas
Copy link
Author

I agree that the actual performance of the sensor does not match the documentation. I currently have another HA setup running 2022.12.6 and one of my Govee 5102 sensors is regularly hitting below -11F on the freezer cycle. Based on that data I'm not sure what an appropriate low temperature value should be. Possibly ~ -20F or so (or -30C / -22F for some nice round numbers)?

@PierreAronnax
Copy link
Contributor

Yes, I was thinking -30C myself too.

bdraco pushed a commit to Bluetooth-Devices/govee-ble that referenced this issue Jan 12, 2023
@bdraco bdraco reopened this Jan 12, 2023
@bdraco
Copy link
Member

bdraco commented Jan 12, 2023

Manually reopening this since auto closed when I merged @PierreAronnax 's PR to govee-ble

@rsiv
Copy link
Contributor

rsiv commented Jan 14, 2023

Confirming that this fixes missing values with Govee H5075 when temperature is below 0 F.
I couldn't figure out why my freezer sensor has been misbehaving in the past few weeks.
Was just about to attempt to debug it when I saw this issue.

@74jtheriault
Copy link

Has this fix been pushed out to HA? I am still having the same issue.

@bdraco
Copy link
Member

bdraco commented Jan 16, 2023

Has this fix been pushed out to HA? I am still having the same issue.

There has not been a PR opened to bump the library.

@74jtheriault
Copy link

74jtheriault commented Jan 16, 2023 via email

@rsiv
Copy link
Contributor

rsiv commented Jan 16, 2023

I'm running HA in a standalone docker container.
I just changed MIN_TEMP value to -30 in parser.py in my running container:

docker-compose exec homeassistant bash
vi /usr/local/lib/python3.10/site-packages/govee_ble/parser.py

@74jtheriault
Copy link

I'm running mine on Home assistant OS and that location is not there.

@rsiv
Copy link
Contributor

rsiv commented Jan 17, 2023

@74jtheriault
Copy link

There is no python3.10 folder in that location. The only one I have there is Perl

@rsiv
Copy link
Contributor

rsiv commented Jan 17, 2023

You can use find to locate that file:
find / -name parser.py | grep govee_ble

@74jtheriault
Copy link

it doesn't find that file or location. I followed the instructions in that previous link to connect to ssh and web terminal. Do i need to elevate the prompt before I search?

@rsiv
Copy link
Contributor

rsiv commented Jan 17, 2023

Are you running it inside the docker container after running docker exec -it homeassistant bash?

@74jtheriault
Copy link

ok that worked. Thanks for your help

bdraco added a commit to bdraco/home-assistant that referenced this issue Jan 17, 2023
bdraco added a commit to bdraco/home-assistant that referenced this issue Jan 17, 2023
@bdraco bdraco mentioned this issue Jan 17, 2023
19 tasks
bdraco added a commit that referenced this issue Jan 17, 2023
rlippmann pushed a commit to rlippmann/core that referenced this issue Jan 18, 2023
balloob pushed a commit that referenced this issue Jan 19, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Feb 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
5 participants