usma
(usma)
November 18, 2021, 1:54pm
1
I am trying to calculate energy consumption for my Philips hue (mathematical calculation based on brightness)
I have formula ready but how can I add this as a state or extra sensor to each bulb?
Say Bulb 1 is on and this formula should compute energy usage
{{ 8.3* state_attr(light.entity_id, 'brightness')/255 | round(2) }}
123
(Taras)
November 18, 2021, 2:17pm
2
You need to define a Template Sensor for each light entity.
An alternative is to use a custom integration that does most of the work for you:
In the last few weeks I have been working on a custom component to get virtual power sensors for your lights or other devices. It is stable enough right now to share it on this forum and make dedicated topic for it.
The component provides multiple strategies to calculate estimated power consumption. One of the most interesting is the LUT method (using lookup tables). Some community members and me have taken measurements for all kind of different brightness/hue/saturation settings and their resp…