I’m completely new to this and a total noob, but I like to thinker with things so…
I have an Elko thermostat that works very well with smartthings, (Zigbee device) but there is a small flaw in the device handler.
The guy who made the device handler wasn’t sure what value he was getting, so he assumed it was “Watts”. It is a number from 0 and 2000, reported every 600 seconds and it is in fact how many 1/3 seconds the thermostat has been heating the last 10 minutes. (heating all the time = 2000, Heating half the time = 1000)
Is there any way I can take this number and divide it by 3.333 to get “seconds active last 600 seconds” and multiply it by x (I know my floors power consumption) to get “wattseconds last 10 minutes” Then multiply it with 3600 to get Kwh?
Is it possible to do math in the device handler?
Can I get this new number to accumulate so the next 10 minutes adds to the last, and I have a working energymeter on my thermostat?
This will need the device handler to log and add up a value. Is it supported?
I assume my other energy measuring devices logs the energy in the device and just reports it to the device handler.