-
Notifications
You must be signed in to change notification settings - Fork 16
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
pet_weight in Puramax is set only the very first time of a day #30
Comments
Well, apparently the problem lies in the parsing of the response returned by the /t4/getDeviceRecord api call. It in fact returns a json with a "result" array. Every object of this array with eventType 10 has a content.petWeight value, but the sensor slways reports the first result
Apparently solved by commenting out the break statement in __init.py at line 631 and settinf lst to rls[0] at 626. Don't know if this introduces any regression though. |
I found that In addition, the petkit/custom_components/petkit/__init__.py Line 633 in 696daab
I'm still new to HA and python, and I'm not sure why rls = copy.deepcopy(self.records) |
Hi,
I just noticed that the sensor sensor.t4_XXXXXXXX_pet_weight is evaluated only once a day. This means that if my cats enter the litter multiple times, i just get the weight of the pet entering the litter first after midnight.
Is it something that can be fixed? How can I help?
The text was updated successfully, but these errors were encountered: