GithubHelp home page GithubHelp logo

Comments (16)

bschatzow avatar bschatzow commented on September 12, 2024 3

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.

Kev7274 avatar Kev7274 commented on September 12, 2024 1

Everything seems to be working again. I had to retrigger the sensors for them to show up.

from ha-wyzesense.

sweichbr avatar sweichbr commented on September 12, 2024

Falling back to 3.8 and the sensors are back.

from ha-wyzesense.

stanwebber avatar stanwebber commented on September 12, 2024

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.

bschatzow avatar bschatzow commented on September 12, 2024

Same for me. I did not notice it on the beta ( I wish I had seen it there and reported it).

from ha-wyzesense.

strikeir13 avatar strikeir13 commented on September 12, 2024

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.

stanwebber avatar stanwebber commented on September 12, 2024

i have the fix in #218 applied, but the sensor attributes are still lost in 2022.4.0.

from ha-wyzesense.

bschatzow avatar bschatzow commented on September 12, 2024

I manually changed my file and the attributes are back.

from ha-wyzesense.

sweichbr avatar sweichbr commented on September 12, 2024

Yup. Worked for me too. Thanks @strikeir13 for the tip.

from ha-wyzesense.

stanwebber avatar stanwebber commented on September 12, 2024

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.

sweichbr avatar sweichbr commented on September 12, 2024

from ha-wyzesense.

bastero avatar bastero commented on September 12, 2024

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.

Kev7274 avatar Kev7274 commented on September 12, 2024

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.

bastero avatar bastero commented on September 12, 2024

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.

stanwebber avatar stanwebber commented on September 12, 2024

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.

stanwebber avatar stanwebber commented on September 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.