Giter Site home page Giter Site logo

Comments (2)

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

Hi @adetauriac!

Yes it is possible to do.

Let me recap how I understood you, and you tell me if this is correct:

  • QuickApp is started, doing initial HC3 device scan, then publish device state/values to MQTT
  • QuickApp is constantly monitoring HC3 events to see if any device got their state/values changed, and then publishes it to MQTT
  • If no device state/value changes detected - nothing is published to Home Assistant via MQTT... and then you tell Grafana has issues to render charts properly?

Few questions:

  1. Does the same kind of Grafana issue occur for native Home Assistant devices, which are not sourced from HC3 via MQTT? If Grafana struggles to deal with lack of device state/values updates - then maybe the proper approach would be to do rescans for all Home Asisstant devices, not only those sourced by HC3 via MQTT, right? Plus worth contacting Grafana developers to do if they can improve the implementation for pretty normal situations when devices have no state/value changes
  2. If this is only relevant HC3/MQTT... then what about implementing HC3 scene that "restarts" QuickApp, let's say every midnight? HC3 has a nice UI to schedule timers, and restarting QuickApp is absolutely normal process that will trigger rescan and sending all the device state/values to MQTT. Such approach looks a bit more user-friendly, and let you decide how often to do the rescan, without reimplementing the existing scheduler functionality.

Would it work for you?

Thank you,
Alexander

P.S.: apologies for late reply as I only finished my accommodation in Berlin

from hc3-to-mqtt.

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

Closing the issue as no further inputs provided, and because there an alternative solution ;-) with an architectural design that looks cleaner by not making scheduler logic reimplemented within the QuickApp, and already available at Fibaro HC3

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.