Comments (2)
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:
- 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
- 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.
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)
- Couldn't recognize device - com.fibaro.multilevelSwitch - com.fibaro.dimmer HOT 21
- Battery sensor created multiple times HOT 26
- feat request : nice blinder support HOT 15
- Unexpected response status HOT 49
- Problem in dispatchFibaroEventToMqtt(event) if a scene has the same identifier as a device HOT 6
- cover:close HOT 7
- Duplicate battery entities for each device HOT 4
- Error while fetching Fibaro HC3 events "End of file" HOT 7
- Problem with a keyFOB remote control in automations in HA HOT 6
- Unable to discoverDeviceHierarchy HOT 5
- Propose new device support (Zigbee RGB bulb) HOT 12
- elero blinds and shutters support HOT 18
- After update from 1.0.221 to 1.0.225 cover/curtain does not work anymore. HOT 14
- Control HA devices back from HC3 HOT 3
- Cover state does not update HOT 15
- Can't find a way to filter more than one device HOT 2
- Duplicates in home assistant for same device HOT 21
- Discovered entities with a name that starts with the device name HOT 12
- Door sensor not correctly detected. HOT 1
- Quickapp crashes immediately HOT 3
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 hc3-to-mqtt.