Open michel53 opened 7 years ago
The above change will change all current KWH sensors to indicate W which will definitely then be wrong.
This change can only be made after a total search and replace on all channels using sensor_power in the database to change them to something else (sensor_energy?)
I made a quick search through org.openhab.binding.zwave-master\ESH-INF\thing\ and found 19 devices using sensor_power. All of them are using sensor_power for SENSOR_MULTILEVEL;type=POWER none for energy. Energy is only used with METER (METER;type=E_KWh). So it should be safe to change the thing_channels.xml description, right?
If I understand the Z-Wave spec documents right ( http://z-wave.sigmadesigns.com/design-z-wave/z-wave-public-specification/ http://zwavepublic.com/specifications ), there is no sensor type energy with a kWh scale, only sensor type power with W or kW scale. Do you agree?
As far as I could check it I found for energy (kWh) the METER command class, like michel53 state the sensor type is for power (Watt)
Noticed that the error is still not corrected. I'm not sure if this is a problem of the Binding but at least the documentation of the Fibaro FRG222 https://v2.openhab.org/v2.3/addons/bindings/zwave/thing.html?manufacturer=fibaro&file=fgr222_24_24.html should be changed from "Indicates the energy consumption (kWh)." to "Indicates the energy consumption (W)."
To be correct, it should be changed from "Indicates the energy consumption (kWh)." to "Indicates the power consumption (W)."
The actual sensor_power description in \org.openhab.binding.zwave-master\ESH-INF\thing_channels.xml is misleading (Energy instead of power, unit kWh instead of W). It should be changed from
`
`
to `
`