As a complete Noob with Influxdb i have some questions. I have influxdb installed on a server and it is up and running. Also installed the Homey app and this is also up and running.
So my question is;
Are the Logic variables and Better Logic variables also added? If so; then the real noob question how do I retrieve these data.
I am trying to write a homeyscript and want the power measurements of my solar panels. With homeyscript i can access those measurements, and store them in better logic variables. What i want is that i can get the measurements from e.g 01-09-2020 - 30-09-2020 and count all these measurements to the total of a month. That way i can comparise that month with another month.
Is this possible an how? Do i have to use flows, ore can it be done in homeyscript
I think that would be awesome. But does influxdb have the measurements of the solar panels? The solarpanel uses the “zonnpanelen” app, so it is added as a device in Homey. Could i use that? And How?
Ok so the data are available. Can you point me in the right direction how to retrieve these data, because in the app i only see that measurements are made. But how can i see those, and use them. So a absolute noob question.
You can use a visualisation app that supports InfluxDB. One of the more popular ones is Grafana.
For example, here’s a chart that tracks solar energy generation, actual delivery back into the grid, and illuminance (outside). It wasn’t a very bright day today…
The app uses the Homey API, https://api.developer.athom.com/HomeyAPI.ManagerSystem.html
but this doesn’t return the CPU per app, just memory consumption per app, together with the system CPU (1 minute, 5 minute, 15 minute averages). If someone has information about how to do this… please let me know.
And then, when I look at the app-profiling and CPU per app in Insights… the values look a bit low / strange to me. I’m not sure if the correct values are reported…
Added export of CPU usage per app: CPU usage is exported every 10 minutes, with one measurement per minute.
Prefix for measurement names can be set: The prefix can be set in settings, and is advantageous if you have several Homeys logging to the same InfluxDB.
Replaced the Prometheus app with the InfluxDb app however I notice the average load has increased from approx. 125% to 250%. Is there a way to throttle the app to lower the load? Or should I get a Homey Pro
I run the InfluxDb app on a Homey (Early 2018) and a Homey Pro (2019), without problems.
Currently all numeric and boolean capabilities are logged to InfluxDb. Also Homey stats, like cpu usage, memory and app stats (cpu, memory) are also logged.
I echo your experience. Installed but just as with Prometheus it is a CPU hog. I like the effort but the load runs over 3 and lights on/off and motion detection in the house are delayed.
I have the early homey 2016 so I recon this would work better with a Homey Pro.
I can add a setting so you can change the update frequency. Now it’s every 10 seconds. Maybe increasing the update frequency might help some of you.
Also adding a setting to disable sending Homey metrics (memory + CPU). That sends a lot of data, every 30 seconds, and it might be good to be able to disable that.
Testing. @balmli
Disable homey metrics is the one that makes cpu load drop.
Is there a way to only allow cpu and memory for homey and skip/filter all the APP details ut collects for the apos running?
So homey metrics is cpu, memory but also cpu and memory of all apps (apo cpu and memory usage). So filter on system only.