Code Monkey home page Code Monkey logo

Comments (4)

HarrisonPace avatar HarrisonPace commented on August 21, 2024 1

@nilrog For reference, this is an upstream bug. Closing Issue.

from sensor.fronius.

nilrog avatar nilrog commented on August 21, 2024

This integration is already compatible with the changes in HA 2021.9.x.

We never set both STATE_CLASS_MEASUREMENT and last_reset at the same time because that was not possible. One of those has been added by you in a custom sensor. I can see that the sensor it is complaining about is sensor.fronius_smartmeter_energy_ac_sold_compensation which is not a sensor created by this integration.

Install the latest update and remove your workarounds you have used to get these sensors into the energy panel in HA and all is good.

from sensor.fronius.

HarrisonPace avatar HarrisonPace commented on August 21, 2024

This integration is already compatible with the changes in HA 2021.9.x.

We never set both STATE_CLASS_MEASUREMENT and last_reset at the same time because that was not possible. One of those has been added by you in a custom sensor. I can see that the sensor it is complaining about is sensor.fronius_smartmeter_energy_ac_sold_compensation which is not a sensor created by this integration.

Install the latest update and remove your workarounds you have used to get these sensors into the energy panel in HA and all is good.

Please note I already updated to v0.9.7 and was running @colwilliamsnz's fork before the changes were merged.

This is not related to the changes in 2021.9, this is a new change made in the point release 2021.9.5. I can confirm it works fine on 2021.9.4. I'm already running the latest version and I have already removed old configuration in my configuration.yaml.

The sensor.fronius_smartmeter_energy_ac_sold_compensation sensor is generated by Home Assistant in relation to sensor.fronius_smartmeter_energy_ac_sold sensor. I have tested reverting back to 2021.9.4 and the warning disappears:

Here is my full configuration.yaml, (https://paste.debian.net/plain/1211070) I'm confident this relates to PR mentioned.

from sensor.fronius.

HarrisonPace avatar HarrisonPace commented on August 21, 2024

Speaking to some developers on Home Assistant Discord, this is an upstream issue that does not require code changes, this is the PR: home-assistant/core#55955 to fix the bug.

It will be added 2021.10. Given the rapid development of energy platform at the moment it seems many changes are occurring.

from sensor.fronius.

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.