Tim's blah blah blah

Measuring calibrated Hue energy usage via bridge

(Updated: )

I’m trying to break down where my household electricity usage goes, and lighting is one rather difficult to quantify since there are many devices that have somewhat irregular usage patterns. To alleviate this, I wrote a script to query the Hue (compatible) bulb brightness from the Hue bridge, convert this to power via brightness-to-power calibration curves, and store this to InfluxDB.

I also documented this along with the script at Github (github.com).

Method

To store the energy usage in InfluxDB, I use the approach below in hue_worker.py (github.com).

Calibration

To get brightness to power mapping, I used a Brennenstuhl PM 231 E power meter (tweakers.net) with rated power measurement precision of +/-1% or +/-0.2 W. For idle power, in some cases I confirmed the meter’s linearity by a constant base load of 15W (incandescent bulb). The results are shown in the below table and graph.

TypeModelIDRated brightness (lm)Rated power (W)Measured max power (W)Idle power (W)Efficiency (lm/W)
Ikea Trådfri E27TRADFRI bulb E27 W opal 1000lm100012.512.80.378
Ikea Trådfri E14TRADFRI bulb E14 WS opal 400lm4005.34.40.491
Philips Hue White Ambiance E27LTW01080696.80.3118
Philips Hue White Ambiance E14LTW01247064.50.3104
Philips Hue LightStrip+ (2 meter)LST002160020.516.70.196
Philips Hue LightStrip+ (4 meter)LST002350043.523.00.1152

Note that I have three different lightstrips, one of nominal 2.0m length, one of 2.7m, and one of 4.0m length. Surprisingly, the 4.0m version only uses ±40% more power (instead of expected 100%). It could be that the adapter/driver is overspec’ed for only 2m strips (since they can drive up to 10m), and therefore become more efficient at higher loads.

After getting brightness to power data, I normalized these and subtracted the 0 brightness (idle) power to get the curves below.

Finally, I fitted the curve (yeah yeah, that’s Excel, apologies) to get a calibration curve for all lights. I could have made a curve per bulb, but didn’t feel this was worth the trouble.

Although I expected an exponential response curve due to eyesight behaving logarithmically, it turns out the response is quadratic. For simplicity I ignored the factor 0.881 and the linear component of the response and just use power = brightness^2.

#Smarthome