Comments (16)
The only change I made to my binary_sensor.py file was
@property
def extra_state_attributes(self):
Make sure that you used a text editor and did not change any of the spaces.
Mine worked as soon as I did a restart or HA
from ha-wyzesense.
Everything seems to be working again. I had to retrigger the sensors for them to show up.
from ha-wyzesense.
Falling back to 3.8 and the sensors are back.
from ha-wyzesense.
i can confirm this behavior. i'll wait to see if anything changes in 2022.4.1, but if not i'll be rolling back to 2022.3.8 and staying there maybe indefinitely.
from ha-wyzesense.
Same for me. I did not notice it on the beta ( I wish I had seen it there and reported it).
from ha-wyzesense.
This is because of the change from device_state_attributes
to extra_state_attributes
. There is an open pull request to resolve this, but the change in the pull request can also be manually added to address the error: #218
from ha-wyzesense.
i have the fix in #218 applied, but the sensor attributes are still lost in 2022.4.0.
from ha-wyzesense.
I manually changed my file and the attributes are back.
from ha-wyzesense.
Yup. Worked for me too. Thanks @strikeir13 for the tip.
from ha-wyzesense.
well hell. thought i had merged a pull request with this fix in my fork back in jan, but i must have forgotten about it. merged the fix and updated my custom components, but the attributes are still missing. not sure what to look at next.
from ha-wyzesense.
from ha-wyzesense.
I manually changed my file and the attributes are back.
Forgive my ignorance...Can you be more specific about the change in 'custom_components/wyzesense/binary_sensor.py' ?
What I understand is to change the function's name i.e. 'device_state_attributes' to 'extra_state_attributes'. save and reboot HA. If there is any other change(s) required please advise.
However, this change below doesn't show the attributes once I reboot HA. Please clarify, thank you.
def extra_state_attributes(self):
"""Attributes."""
attributes = self._data.copy()
del attributes[ATTR_STATE]
del attributes[ATTR_AVAILABLE]
from ha-wyzesense.
I manually changed my file and the attributes are back.
Forgive my ignorance...Can you be more specific about the change in 'custom_components/wyzesense/binary_sensor.py' ?
What I understand is to change the function's name i.e. 'device_state_attributes' to 'extra_state_attributes'. save and reboot HA. If there is any other change(s) required please advise.
However, this change below doesn't show the attributes once I reboot HA. Please clarify, thank you.
def extra_state_attributes(self): """Attributes.""" attributes = self._data.copy() del attributes[ATTR_STATE] del attributes[ATTR_AVAILABLE]
Same here,doesn't work.
from ha-wyzesense.
The only change I made to my binary_sensor.py file was
@property def extra_state_attributes(self):
Correction: It actually took some time but its now indicating battery attributes as it did previously. Thank you!!
from ha-wyzesense.
it's been 2 days and i've restarted the host and hass a couple times, but i'm not seeing any attributes. i even pulled the custom components folder via sftp to manually verify the binary_sensor.py file had the fix and it did.
from ha-wyzesense.
working now--all devices need to be physically triggered after the change. i lost a contact sensor (dead even with fresh battery) which added to the confusion.
from ha-wyzesense.
Related Issues (20)
- NEW full-featured Python SDK for Wyze HOT 1
- Wyze bridge going to sleep? HOT 7
- Home Assistant 2021.6, this integration will no longer be loaded. Please report this to the maintainer of 'wyzesense' HOT 1
- Anyone seeing issue with WyzeSense after upgrading to 2021.6 or 2021.6.1? HOT 5
- Config Check fails after Switching RPi 4 to SSD HOT 2
- Are V2 sensors now supported? HOT 7
- wyzesense config error HOT 3
- Error while setting up wyzesense platform HOT 1
- HASS 2021.12: WyzeSensor implements device_state_attributes HOT 3
- Sensors V2 support HOT 5
- Wyze Sense Battery reporting non-numeric values (on:off) instead of a battery percentage. HOT 7
- Neos leak sensor
- Ready for Python 3.10? HOT 12
- Battery Attributes not working HOT 5
- Error after recent update / no sensor status HOT 2
- Binary Sensor Warning
- homebridge
- DEVICE_CLASS_TIMESTAMP, DEVICE_CLASS_MOTION & BinarySensorDeviceClass.DOOR deprecated constant which will be removed in HA Core 2025.1 HOT 2
- Breaking Changes with HA update near 2024.1.3 HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ha-wyzesense.