deConz api to influxdb api

Hello ,

I’m working on a python script to use API to collect data from deCONZ and populate influx and then plot with grafana.

https://dresden-elektronik.github.io/deconz-rest-doc/configuration/#aquireapikey

The script is still under development.
It will be great if people will share information about Lights models and consumption.
Or fi people can have some API output for RGB lights from deCONZ … i will like play with the json.

All data is already available from hass. Isn’t that enough?

You don’t have the power consumption that can be added base by the model .

From what devices?

Any lighting device can be added .
For now i only have 3 models … they are defined in watts dictionary.

watts = {
‘Classic A60 W clear - LIGHTIFY’ : 8.5,
‘RB 245’ : 5.3,
‘BY 265’ : 9.0
}

Doesn’t consumption depend on intensity and warmth and other parameters? Are led lights always consuming the same amount of effect?

Hello,

This consuption knowledge base could have sense, however not sure to be yet personnaly interested.
Here are my deconz light identifications and their announced consuptions:

Vendor: OSRAM - Model: Tunable White GU10 - Watt : 4.5W
Vendor: OSRAM - Model: CLA60 TW OSRAM - Watt : 8.5W
Vendor: LEDVANCE - Model: A60 TW Z3 - Watt : 8.5 W

You might add vendor field in your dictionnary as the unicity of model names is not guaranted.

Thank you i will update the dictionary.
An i will separate them to be a separate file so people can easy update the file.

Watch out, i’ve edited my post to correct a wrong value

Thank you for info … no problem … is already updated

I have changed the json model …

{
“OSRAM” : {
“Classic A60 W clear - LIGHTIFY” : 8.5,
“Tunable White GU10” : 4.5,
“CLA60 TW OSRAM” : 4.5},
“innr” : {
“RB 245” : 5.3,
“BY 265” : 9.0},
"LEDVANCE ": {“A60 TW Z3” : 8.5}
}

I hope this list it will become big.

Here is a new one: Philips LWA004 7W

{
  "OSRAM":{
    "Classic A60 W clear - LIGHTIFY" : 8.5,
    "Tunable White GU10" : 4.5,
    "CLA60 TW OSRAM" : 4.5
  },
  "innr":{
    "RB 245" : 5.3,
    "BY 265" : 9.0
  },
  "LEDVANCE ":{ 
    "A60 TW Z3" : 8.5
  },
  "Philips":{
    "LWA004": 7
  }
}

Hello Olijouve.

Thank you for adding new Vendor and model.
However if you have new ones … you can easy edit the model.json and request a pull.

I have updated the script to calculate the power usage base by brightness of the bulb.