sfudeus / homematic_exporter

Prometheus exporter for homematic ccu3
Apache License 2.0
23 stars 17 forks source link

Export user defined variables #45

Open b-dombrowsky opened 7 months ago

b-dombrowsky commented 7 months ago

Hi,

Is there a way to export the values of the variables (in my case user defined variables) as well as the values of the devices?

BR Benjamin

sfudeus commented 7 months ago

Hmm, not yet - I never looked into that because I'n not using any user defined variables. I someone could tell me how to get them from the ccu, I could add these.

b-dombrowsky commented 7 months ago

Hi,

I know two options for accessing the values:

  1. https://github.com/homematic-community/XML-API
  2. https://github.com/homematic-community/dbaccess

Both add-ons provide a lot more data than BidCos-RF.

Personally, I would be delighted if your Graphite interface had even more options. I'm not a really good scripter, but I'd try it myself if necessary, but I'll probably need a lot more of your time :-D

thank you!

br Benjamin

sfudeus commented 7 months ago

I'd prefer not to resort to addons which need to be installed in the CCU, but use the stock APIs. The system variables are coming from the logic layer, so I'd have to use the TCL scripting we already use for getting the device names or the JSON-API from what I know. Not sure if I find enough time for this, but let's see.