I’m not really sure how to start investigating this so I’m gonna try and explain the issue and maybe someone knows something about it.
The switch has 2 relays.
The following power meters are available:
*meter_watts
*meter_kwh
*meter_watts1
*meter_kwh1
*meter_watts2
*meter_kwh2
However the following is logged when turning switch1 on. The kWh value seems to be the same as the watt vallue and it’s pretty much impossible to work out what the meters without 1 or 2 appended does at all? One would think that would be reporting the total, but it seems to report all kinds of random values.
Any ideas?
Edit: In the log below, switch1 was turned on, 19.2 should be a reasonable correct value, so it’s in there but is also reported on kWh and affects a bunch of other stuff? Why is bathroom_1_watts e.g very briefly 0.13 which could be a resonable kWh value (switch is one day old).
2021-02-17 16:49:22.719 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'switch_bathroom1' received command ON
2021-02-17 16:49:22.730 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'switch_bathroom1' predicted to become ON
2021-02-17 16:49:22.731 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch_bathroom1' updated to ON
2021-02-17 16:49:22.734 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'switch_bathroom1' changed from OFF to ON
2021-02-17 16:49:24.417 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch_bathroom' updated to ON
2021-02-17 16:49:24.418 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'switch_bathroom' changed from OFF to ON
2021-02-17 16:49:24.611 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch_bathroom_watts' updated to 0
2021-02-17 16:49:24.612 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'switch_bathroom_watts' changed from 19.1 to 0
2021-02-17 16:49:24.827 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch_bathroom_kwh' updated to 0.13
2021-02-17 16:49:25.046 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch_bathroom1' updated to ON
2021-02-17 16:49:25.238 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch_bathroom1_watts' updated to 0.13
2021-02-17 16:49:25.239 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch_bathroom1_kwh' updated to 0.13
2021-02-17 16:49:25.240 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'switch_bathroom1_watts' changed from 0 to 0.13
2021-02-17 16:49:25.241 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'switch_bathroom1_kwh' changed from 0 to 0.13
2021-02-17 16:49:25.425 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch_bathroom2' updated to OFF
2021-02-17 16:49:25.629 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch_bathroom2_watts' updated to 0
2021-02-17 16:49:25.629 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch_bathroom2_kwh' updated to 0
2021-02-17 16:49:26.339 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch_bathroom1_watts' updated to 19.3
2021-02-17 16:49:26.340 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch_bathroom1_kwh' updated to 19.3
2021-02-17 16:49:26.342 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'switch_bathroom1_watts' changed from 0.13 to 19.3
2021-02-17 16:49:26.342 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'switch_bathroom1_kwh' changed from 0.13 to 19.3
2021-02-17 16:49:56.372 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch_bathroom1_watts' updated to 19.2
2021-02-17 16:49:56.373 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch_bathroom1_kwh' updated to 19.2
2021-02-17 16:49:56.373 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'switch_bathroom1_watts' changed from 19.3 to 19.2
2021-02-17 16:49:56.373 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'switch_bathroom1_kwh' changed from 19.3 to 19.2
2021-02-17 16:49:56.534 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch_bathroom1_watts' updated to 19.2
2021-02-17 16:49:56.534 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch_bathroom1_kwh' updated to 19.2
Here’s another example on my other switch
2021-02-17 17:07:25.999 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'switch_balcony1' received command ON
2021-02-17 17:07:26.011 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'switch_balcony1' predicted to become ON
2021-02-17 17:07:26.012 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch_balcony1' updated to ON
2021-02-17 17:07:26.014 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'switch_balcony1' changed from OFF to ON
2021-02-17 17:07:28.351 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch_balcony' updated to ON
2021-02-17 17:07:28.352 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'switch_balcony' changed from OFF to ON
2021-02-17 17:07:29.115 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch_balcony_watts' updated to 1.1
2021-02-17 17:07:29.116 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'switch_balcony_watts' changed from 0 to 1.1
2021-02-17 17:07:35.115 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch_balcony1' updated to ON
2021-02-17 17:07:35.775 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch_balcony1_watts' updated to 42.36
2021-02-17 17:07:35.775 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch_balcony1_kwh' updated to 42.36
2021-02-17 17:07:35.776 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'switch_balcony1_watts' changed from 0 to 42.36
2021-02-17 17:07:35.778 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'switch_balcony1_kwh' changed from 0 to 42.36
2021-02-17 17:07:36.672 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch_balcony2' updated to OFF
2021-02-17 17:07:37.517 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch_balcony2_watts' updated to 0.04
2021-02-17 17:07:37.518 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch_balcony2_kwh' updated to 0.04
2021-02-17 17:07:37.519 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'switch_balcony2_watts' changed from 0 to 0.04
2021-02-17 17:07:37.519 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'switch_balcony2_kwh' changed from 0 to 0.04
In this example no matter if the usage goes up down or sideways
‘switch_balcony_watts’ sitcks to 1.1. This is not a reasonable value for any of the measurements, the light uses 20-45 W. It’s been on for months so it can’t be the kWh.