kevinvincent / ha-wyzesense

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

Battery Attributes not working #227

Open iamhuman2414 opened 2 years ago

iamhuman2414 commented 2 years ago

How do I fix the battery attributes? They just stopped working I'm not sure when it started.

iamhuman2414 commented 2 years ago

@sweichbr I saw your post on another issue, could you please share the instructions? I edited the binary_sensor.py in my /config/custom_components/wyzesense/ changed device_state_attributes to extra_state_attributes rebooted HA but still not working.

sweichbr commented 2 years ago

I found that you had to trigger each of the sensors. Probably because they don't report in unless there is an event (likely to save battery).

onebyside commented 1 year ago

I found that you had to trigger each of the sensors. Probably because they don't report in unless there is an event (likely to save battery).

Can you paste your fix for this problem, been awhile since the batt reported in.

jdubz666 commented 1 year ago

Hey,

I'm having the same issue with motion and contact sensors.

My sensors suddenly stopped responded so I removed and then added them back. It worked however they came back without battery and RSI attributes.

I made sure the sensor were being triggered to initiate the attributes. And I checked back a day after to see if they are added after a delay. No luck.

I tried changing /config/custom_components/wyzesense/ changed device_state_attributes to extra_state_attributes

Strangely this fixed for the motion sensor but not the contact sensors...

Any idea for how to fix battery for contact sensors?

onebyside commented 1 year ago

same issue here

Bell SM-G996W


From: jdubz666 @.> Sent: Tuesday, February 28, 2023 10:00:57 PM To: kevinvincent/ha-wyzesense @.> Cc: onebyside @.>; Comment @.> Subject: Re: [kevinvincent/ha-wyzesense] Battery Attributes not working (Issue #227)

Hey,

I'm having the same issue with motion and contact sensors.

My sensors suddenly stopped responded so I removed and then added them back. It worked however they came back without battery and RSI attributes.

I made sure the sensor were being triggered to initiate the attributes. And I checked back a day after to see if they are added after a delay. No luck.

I tried changing /config/custom_components/wyzesense/ changed device_state_attributes to extra_state_attributes

Strangely this fixed for the motion sensor but not the contact sensors...

Any idea for how to fix battery for contact sensors?

— Reply to this email directly, view it on GitHubhttps://github.com/kevinvincent/ha-wyzesense/issues/227#issuecomment-1449260261, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AK3CXEYK6XEX53GUAXH3WKTWZ23WTANCNFSM53UMBRFQ. You are receiving this because you commented.Message ID: @.***>