intelroman
(Ionut Popovici)
December 10, 2019, 10:02am
1
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.
Robban
December 10, 2019, 2:01pm
2
All data is already available from hass. Isn’t that enough?
intelroman
(Ionut Popovici)
December 10, 2019, 2:22pm
3
You don’t have the power consumption that can be added base by the model .
intelroman
(Ionut Popovici)
December 10, 2019, 4:01pm
5
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
}
Robban
December 10, 2019, 4:37pm
6
Doesn’t consumption depend on intensity and warmth and other parameters? Are led lights always consuming the same amount of effect?
olijouve
(olivyeah)
December 10, 2019, 4:58pm
7
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.
intelroman
(Ionut Popovici)
December 10, 2019, 5:33pm
8
Thank you i will update the dictionary.
An i will separate them to be a separate file so people can easy update the file.
olijouve
(olivyeah)
December 10, 2019, 5:52pm
9
Watch out, i’ve edited my post to correct a wrong value
intelroman
(Ionut Popovici)
December 10, 2019, 5:54pm
10
Thank you for info … no problem … is already updated
intelroman
(Ionut Popovici)
December 13, 2019, 6:55pm
11
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.
olijouve
(olivyeah)
December 17, 2019, 4:12pm
12
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
}
}
intelroman
(Ionut Popovici)
December 17, 2019, 4:40pm
13
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.
{
"OSRAM" : {
"Classic A60 W clear - LIGHTIFY" : 8.5,
"Tunable White GU10" : 4.5,
"CLA60 TW OSRAM" : 4.5
},
"innr" : {
"DL 110 N" : 25.0,
"SL 110 M" : 25.0,
"PL 110" : 3.0,
"RB 245" : 5.3,
"RB 285 C" : 9.5,
"BY 265" : 9.0,
"RF 265" : 6.3,
"RF 263" : 4.2,
"RB 265" : 9.0,
"RS 228 T" : 5.1,
"RSL 110" : 15.0,
"RS 230 C" : 6.1,
"RB 278 T" : 9.0,
This file has been truncated. show original
intelroman
(Ionut Popovici)
December 18, 2019, 6:45pm
14
I have updated the script to calculate the power usage base by brightness of the bulb.