Replies: 2 comments 2 replies
-
Interesting idea. When I first read this I thought 'Why not pull the values out of the InfluxDB?', but that then puts the burden onto your Hubitat drivers to maintain InfluxDB credentials and knowledge about Influx query language as well as implement a timing loop to perform the periodic polling. So I can understand why it's simpler to request the Vuegraf 'push' it to Hubitat. If we go this route then it should be done in a modular way since others may want the same integration to their systems, such as pushing data to other smart hubs. Taking it further, InfluxDB could actually be it's own module as well. We wouldn't need to do this right now, but it helps show the path where this could go down the road. |
Beta Was this translation helpful? Give feedback.
-
+1 here for a Hubitat push, this would be awesome. |
Beta Was this translation helpful? Give feedback.
-
@jertel
Thanks for the awesome work. Was hoping I could work with you to add a push to Hubitat. I have it working but wanted to check with you before I do a pull request.
Here's what I've done that works well with you code.
I added the following to vuegraf.json.
Then I added a a few lines of python code that sends hubitat the average usage every (INTERVAL_SEC). It only runs this extra code (push to Hubitat) if config['hubitat']['enable'] = true
I've written the drivers (Parent and Child) that makes this work on the Hubitat Hub.
Thanks in advance,
Paul
Beta Was this translation helpful? Give feedback.
All reactions