Giter Site home page Giter Site logo

Comments (8)

rwijbenga avatar rwijbenga commented on August 16, 2024

Super!

Keep up the great work.

from hc3-to-mqtt.

alexander-vitishchenko avatar alexander-vitishchenko commented on August 16, 2024

@rwijbenga

Just to keep you updated - I’ve implemented Energy API support at my local development environment

I’ll be doing extra testing testing next weekend, and then publish changes along with few other improvements at once

from hc3-to-mqtt.

rwijbenga avatar rwijbenga commented on August 16, 2024

Exciting news!

I think this is going to be a very good plugin for many new users.... :)

from hc3-to-mqtt.

alexander-vitishchenko avatar alexander-vitishchenko commented on August 16, 2024

Implemented both Energy and Power monitoring for Fibaro HC3 devices marked with interfaces "energy" (as kWh) and "power" (as W)

from hc3-to-mqtt.

alexander-vitishchenko avatar alexander-vitishchenko commented on August 16, 2024

@rwijbenga new Energy/Power API works well for me. Feel free to check it out on your end, and let me know if all is good or any issues to be fixed

from hc3-to-mqtt.

rwijbenga avatar rwijbenga commented on August 16, 2024

Great work again!

Did a small test, and it works.. Only small thing....

They changed a device class:

https://developers.home-assistant.io/blog/2021/08/16/state_class_total/

So I changed "measurement" to "total_increasing" in your script to resolve the error message.

https://community.home-assistant.io/t/how-can-i-add-total-increasing-to-my-template-sensor/334961/14

So a simple change for you to do in your build.... ;)

Now testing some devices over a longer period, to be sure.

from hc3-to-mqtt.

alexander-vitishchenko avatar alexander-vitishchenko commented on August 16, 2024

Right... Home Assistant team keeps adjusting the specification. This is fine because it is an evolutionary process that makes the platform a better/cleaner place to work with.

  • it appears that "last_reset" property needs attention too, based on the docs from you + logs from my Home Assistant "2021-09-06 01:11:50 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.svet_gostinaia (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) with state_class measurement has set last_reset. Setting last_reset is deprecated and will be unsupported from Home Assistant Core 2021.11. Please update your configuration if state_class is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22"

It is a pity that I spent time on implementing last_reset logic, as it needs to be removed now. If feels like this Home Assistant spec is most likely outdated - https://www.home-assistant.io/integrations/sensor.mqtt

I'll apply the changes this weekend. And I also plan to check Home Assistant logs for warning messages more frequently :)

from hc3-to-mqtt.

alexander-vitishchenko avatar alexander-vitishchenko commented on August 16, 2024

I’ve implemented the changes to total_increasing and last_reset properties. Doing local testing and then commit changes during weekend

from hc3-to-mqtt.

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.