Hi guys,
I’m reading the pulses from an energy meter with Open Remote, now I need to do some math to converte from pulses to kWh, any easy way to do some basic math operations?
I tried to use rules but I dont uderstand the Drools language yet, maybe someone has a didactic material for me to learn?
“Active energy” is the number of pulses I’m reading from the energy meter, “kWh” is a in-memory virtual command with command: STATUS, and address: VTEMP. I also created a custom sensor, with the custom states empty, to show the “kWh” value, which is “Active Energy”/100.
The label I linked with my sensor does not show anything, not even “N/A”.
Your command has a name "kWh" and this is what you should use in the execute.command(). Not the address VTEMP, unless you name the command VTEMP itself. Anyway, the simplest way is to write