Wow, thanks for the help. I managed to set it up according to your instructions. I now have the bulb’s power, but now the question is, how do I set the kWh?
Thanks, and nice to hear.
To calculate the kWh, you’ll need to know how it’s calculated (just in case you didn’t know yet):
When the 500W (= 0.5kW) light is turned on for 1h, it used 1h * 0.5kW = 0.5kWh
So, when it was on during 15h, it used 15h * 0.5kW = 7.5kWh
It’s possible to record the “on” time by using a stopwatch, and update the kWh of every “light on” period accordingly.
(You’d use Advanced flow in order to use the Chronograph app’s stopwatch “elapsed time” tag)
When..
lamp A turned on
Then..
start or resume stopwatch X
When..
lamp A turned off
Then..
pause stopwatch X
When..
stopwatch X is paused
Then..
set field Lamp A’s kWh to expression
(( [Elapsed time (s)] / 60 / 60 ) * 0.5 ) + [tag lamp kWh]
To clearify, this is the ‘Then’ card you’d use:
The sum part, being “+ [tag lamp kWh]” adds the current kWh value to the last calculated value, making it increase after each “on” session of the virtual light.
A flow screenshot often is way clearer, so I’ve add it as well;
In this example, [tag lamp kWh] is called [v_kWh], Lamp A is called “Kaarsen Wit IR”
In the “set field to expression” card, belonging to the virtual light, as shown on the flow screenshot on the bottom-right.
The stopwatch name “kWh calc” is one I just made up. You can use any name which suits you. Make sure it’s unique regarding your Chronograph stopwatches.





