kevinvincent / ha-wyzesense

A Home Assistant Component to interface with the WYZE Sense hub and sensor system
368 stars 97 forks source link

Wyze Sense Battery reporting non-numeric values (on:off) instead of a battery percentage. #224

Closed stang70man closed 2 years ago

stang70man commented 2 years ago

After one of the recent updates to Home Assistant, the Wyze V1 sensors are no longer reporting a battery percentage, but instead are reporting an on:off state.

stanwebber commented 2 years ago

what version did you notice this? i'm on 2022.4.7 and can report no issue. i briefly updated to 2022.5.4, but had to roll back because db_url: 'sqlite:///:memory' is no longer a valid recorder configuration option.

bschatzow commented 2 years ago

I am on the latest version of HA and have no issues. There was a change required to the json file several months ago. Look in the released code and you should be able to find what needs to be changed. If you can't find it, let me know and I'll get a link to it when I get home

stang70man commented 2 years ago

what version did you notice this? i'm on 2022.4.7 and can report no issue. i briefly updated to 2022.5.4, but had to roll back because db_url: 'sqlite:///:memory' is no longer a valid recorder configuration option.

I believe it started when I went to 2022.4.

stang70man commented 2 years ago

I am on the latest version of HA and have no issues. There was a change required to the json file several months ago. Look in the released code and you should be able to find what needs to be changed. If you can't find it, let me know and I'll get a link to it when I get home

I checked my manifest.json and it matches the version in source for the newest version. I've searched around and have not been able to find anything about a change that needed to be done. If you could share what you know, I'd really appreciate it.

bschatzow commented 2 years ago

device_state_attributes' is deprecated starting with HA 2021.12.0 replaced 'device_state_attributes' with 'extra_state_attributes'

stanwebber commented 2 years ago

ha-wyzesense master is out of date. use someone elses fork with all the current updates. try mine if you like...whichever you choose consider forking that yourself.

stang70man commented 2 years ago

That did it for me after resetting the sensors. Thanks everyone!