Hey Markus.
So, back at it, trying to get the Shelly 4Pro PM getting to report comsumption, now with new devices, which was a waste of time since Shelly made a new FW beta (0.11.0-beta2) which adresses the problem I was seeing, and now the kWh reports work, and are updated in OH as well.
Changelog for the beta fixes this issue: * Wrong aenergy values with low-power loads on Pro devices
Last time troubleshooting you asked me to disable authentication for the 4Pro PM, for testing which exposed the metering channels - I just downloaded the latest image from today, 1 AUG, and when enabling authentication the meter channels disappear. You probably are aware of this, but maybe others are not.
While power consumption is fixed, the binding is not reporting current, even though the device is reporting current when making a call to - I donât need this myself, but others might, and Iâve already set up a test bench with the device, so might as well put it to work.
Here is the output from the rpc status call with loads connected to switch 0 and 2, OH reports all currents as 0
`{"ble":{},"cloud":{"connected":false},"eth":{"ip":null},"input:0":{"id":0,"state":false},"input:1":{"id":1,"state":false},"input:2":{"id":2,"state":false},"input:3":{"id":3,"state":false},"mqtt":{"connected":false},"switch:0":{"id":0, "source":"HTTP", "output":true, "apower":5.0, "voltage":234.7, "current":0.042, "pf":-0.67, "aenergy":{"total":1.285,"by_minute":[81.236,84.035,84.079],"minute_ts":1659336117},"temperature":{"tC":36.4, "tF":97.5}},"switch:1":{"id":1, "source":"HTTP", "output":false, "apower":0.0, "voltage":234.7, "current":0.000, "pf":0.00, "aenergy":{"total":0.000,"by_minute":[0.000,0.000,0.000],"minute_ts":1659336117},"temperature":{"tC":36.4, "tF":97.5}},"switch:2":{"id":2, "source":"HTTP", "output":true, "apower":2.6, "voltage":234.5, "current":0.025, "pf":-0.64, "aenergy":{"total":0.649,"by_minute":[42.280,43.704,43.764],"minute_ts":1659336117},"temperature":{"tC":36.4, "tF":97.5}},"switch:3":{"id":3, "source":"init", "output":false, "apower":0.0, "voltage":234.5, "current":0.000, "pf":0.00, "aenergy":{"total":0.000,"by_minute":[0.000,0.000,0.000],"minute_ts":1659336117},"temperature":{"tC":36.4, "tF":97.5}}`
The output from OH debug log is as follows, I see no nothing in there regarding current which explains it not updating:
2022-08-01 09:13:43.887 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellypro4pm-30c6f784318c: NotifyStatus update received: {"src":"shellypro4pm-30c6f784318c","dst":"shellypro4pm-30c6f784318c","method":"NotifyStatus","params":{"ts":1.6593380248E9,"switch:0":{"id":0,"pf":0.5}}}
2022-08-01 09:13:44.958 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellypro4pm-30c6f784318c: NotifyStatus update received: {"src":"shellypro4pm-30c6f784318c","dst":"shellypro4pm-30c6f784318c","method":"NotifyStatus","params":{"ts":1.6593380258E9,"switch:0":{"id":0,"pf":-0.67}}}
2022-08-01 09:13:44.961 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellypro4pm-30c6f784318c: NotifyStatus update received: {"src":"shellypro4pm-30c6f784318c","dst":"shellypro4pm-30c6f784318c","method":"NotifyStatus","params":{"ts":1.65933798086E9,"switch:0":{"id":0,"aenergy":{"total":3.886,"by_minute":[83.77,83.77,83.725],"minute_ts":1659337979}}}}
2022-08-01 09:13:44.967 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellypro4pm-30c6f784318c: NotifyStatus update received: {"src":"shellypro4pm-30c6f784318c","dst":"shellypro4pm-30c6f784318c","method":"NotifyStatus","params":{"ts":1.65933798089E9,"switch:1":{"id":1,"aenergy":{"total":0.0,"by_minute":[0.0,0.0,0.0],"minute_ts":1659337979}}}}
2022-08-01 09:13:44.970 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellypro4pm-30c6f784318c: NotifyStatus update received: {"src":"shellypro4pm-30c6f784318c","dst":"shellypro4pm-30c6f784318c","method":"NotifyStatus","params":{"ts":1.65933798094E9,"switch:2":{"id":2,"aenergy":{"total":2.013,"by_minute":[44.318,44.033,44.048],"minute_ts":1659337979}}}}
2022-08-01 09:13:44.971 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellypro4pm-30c6f784318c: NotifyStatus update received: {"src":"shellypro4pm-30c6f784318c","dst":"shellypro4pm-30c6f784318c","method":"NotifyStatus","params":{"ts":1.65933798097E9,"switch:3":{"id":3,"aenergy":{"total":0.0,"by_minute":[0.0,0.0,0.0],"minute_ts":1659337979}}}}
2022-08-01 09:13:49.882 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellypro4pm-30c6f784318c: NotifyStatus update received: {"src":"shellypro4pm-30c6f784318c","dst":"shellypro4pm-30c6f784318c","method":"NotifyStatus","params":{"ts":1.6593380308E9,"switch:0":{"id":0,"pf":0.5}}}
2022-08-01 09:13:51.882 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellypro4pm-30c6f784318c: NotifyStatus update received: {"src":"shellypro4pm-30c6f784318c","dst":"shellypro4pm-30c6f784318c","method":"NotifyStatus","params":{"ts":1.6593380328E9,"switch:0":{"id":0,"pf":-0.67}}}
2022-08-01 09:13:58.687 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update relay1
2022-08-01 09:13:58.688 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update temperature
2022-08-01 09:13:58.688 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update meter1
2022-08-01 09:13:58.689 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update relay1 done
2022-08-01 09:13:58.689 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update relay2
2022-08-01 09:13:58.689 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update temperature
2022-08-01 09:13:58.690 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update meter2
2022-08-01 09:13:58.690 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update relay2 done
2022-08-01 09:13:58.691 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update relay3
2022-08-01 09:13:58.691 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update temperature
2022-08-01 09:13:58.691 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update meter3
2022-08-01 09:13:58.692 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update relay3 done
2022-08-01 09:13:58.692 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update relay4
2022-08-01 09:13:58.693 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update temperature
2022-08-01 09:13:58.693 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update meter4
2022-08-01 09:13:58.694 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update relay4 done
2022-08-01 09:13:58.694 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Updating input1
2022-08-01 09:13:58.695 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update for input1 done
2022-08-01 09:13:58.695 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Updating input2
2022-08-01 09:13:58.695 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update for input2 done
2022-08-01 09:13:58.696 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Updating input3
2022-08-01 09:13:58.697 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update for input3 done
2022-08-01 09:13:58.697 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Updating input4
2022-08-01 09:13:58.698 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update for input4 done
2022-08-01 09:13:58.699 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellypro4pm-30c6f784318c: Channel device#heartBeat updated with 2022-08-01T09:13:58.000+0200 (type class org.openhab.core.library.types.DateTimeType).
2022-08-01 09:13:59.918 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellypro4pm-30c6f784318c: NotifyStatus update received: {"src":"shellypro4pm-30c6f784318c","dst":"shellypro4pm-30c6f784318c","method":"NotifyStatus","params":{"ts":1.65933804079E9,"switch:0":{"id":0,"aenergy":{"total":3.97,"by_minute":[83.873,83.77,83.77],"minute_ts":1659338039}}}}
2022-08-01 09:13:59.921 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellypro4pm-30c6f784318c: NotifyStatus update received: {"src":"shellypro4pm-30c6f784318c","dst":"shellypro4pm-30c6f784318c","method":"NotifyStatus","params":{"ts":1.65933804079E9,"switch:1":{"id":1,"aenergy":{"total":0.0,"by_minute":[0.0,0.0,0.0],"minute_ts":1659338039}}}}
2022-08-01 09:13:59.996 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellypro4pm-30c6f784318c: NotifyStatus update received: {"src":"shellypro4pm-30c6f784318c","dst":"shellypro4pm-30c6f784318c","method":"NotifyStatus","params":{"ts":1.65933804087E9,"switch:2":{"id":2,"aenergy":{"total":2.057,"by_minute":[44.348,44.318,44.033],"minute_ts":1659338039}}}}
2022-08-01 09:13:59.998 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellypro4pm-30c6f784318c: NotifyStatus update received: {"src":"shellypro4pm-30c6f784318c","dst":"shellypro4pm-30c6f784318c","method":"NotifyStatus","params":{"ts":1.65933804087E9,"switch:3":{"id":3,"aenergy":{"total":0.0,"by_minute":[0.0,0.0,0.0],"minute_ts":1659338039}}}}
2022-08-01 09:14:08.871 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellypro4pm-30c6f784318c: NotifyStatus update received: {"src":"shellypro4pm-30c6f784318c","dst":"shellypro4pm-30c6f784318c","method":"NotifyStatus","params":{"ts":1.65933804979E9,"switch:0":{"id":0,"pf":0.51}}}
2022-08-01 09:14:09.870 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellypro4pm-30c6f784318c: NotifyStatus update received: {"src":"shellypro4pm-30c6f784318c","dst":"shellypro4pm-30c6f784318c","method":"NotifyStatus","params":{"ts":1.65933805078E9,"switch:0":{"id":0,"pf":-0.67}}}
2022-08-01 09:15:24.835 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellypro4pm-30c6f784318c: NotifyStatus update received: {"src":"shellypro4pm-30c6f784318c","dst":"shellypro4pm-30c6f784318c","method":"NotifyStatus","params":{"ts":1.65933812575E9,"switch:0":{"id":0,"pf":0.5}}}
2022-08-01 09:15:25.835 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellypro4pm-30c6f784318c: NotifyStatus update received: {"src":"shellypro4pm-30c6f784318c","dst":"shellypro4pm-30c6f784318c","method":"NotifyStatus","params":{"ts":1.65933812675E9,"switch:0":{"id":0,"pf":-0.66}}}
2022-08-01 09:15:44.831 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellypro4pm-30c6f784318c: NotifyStatus update received: {"src":"shellypro4pm-30c6f784318c","dst":"shellypro4pm-30c6f784318c","method":"NotifyStatus","params":{"ts":1.65933814575E9,"switch:0":{"id":0,"pf":0.5}}}
2022-08-01 09:15:44.935 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellypro4pm-30c6f784318c: NotifyStatus update received: {"src":"shellypro4pm-30c6f784318c","dst":"shellypro4pm-30c6f784318c","method":"NotifyStatus","params":{"ts":1.6593381008E9,"switch:0":{"id":0,"aenergy":{"total":4.053,"by_minute":[83.681,83.873,83.77],"minute_ts":1659338099}}}}
2022-08-01 09:15:44.938 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellypro4pm-30c6f784318c: NotifyStatus update received: {"src":"shellypro4pm-30c6f784318c","dst":"shellypro4pm-30c6f784318c","method":"NotifyStatus","params":{"ts":1.65933810083E9,"switch:1":{"id":1,"aenergy":{"total":0.0,"by_minute":[0.0,0.0,0.0],"minute_ts":1659338099}}}}
2022-08-01 09:15:44.939 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellypro4pm-30c6f784318c: NotifyStatus update received: {"src":"shellypro4pm-30c6f784318c","dst":"shellypro4pm-30c6f784318c","method":"NotifyStatus","params":{"ts":1.65933810088E9,"switch:2":{"id":2,"aenergy":{"total":2.101,"by_minute":[44.003,44.348,44.318],"minute_ts":1659338099}}}}
2022-08-01 09:15:44.943 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellypro4pm-30c6f784318c: NotifyStatus update received: {"src":"shellypro4pm-30c6f784318c","dst":"shellypro4pm-30c6f784318c","method":"NotifyStatus","params":{"ts":1.65933810091E9,"switch:3":{"id":3,"aenergy":{"total":0.0,"by_minute":[0.0,0.0,0.0],"minute_ts":1659338099}}}}
2022-08-01 09:15:45.830 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellypro4pm-30c6f784318c: NotifyStatus update received: {"src":"shellypro4pm-30c6f784318c","dst":"shellypro4pm-30c6f784318c","method":"NotifyStatus","params":{"ts":1.65933814675E9,"switch:0":{"id":0,"pf":-0.67}}}
2022-08-01 09:15:58.905 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update relay1
2022-08-01 09:15:58.906 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update temperature
2022-08-01 09:15:58.907 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update meter1
2022-08-01 09:15:58.908 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update relay1 done
2022-08-01 09:15:58.908 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update relay2
2022-08-01 09:15:58.909 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update temperature
2022-08-01 09:15:58.909 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update meter2
2022-08-01 09:15:58.910 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update relay2 done
2022-08-01 09:15:58.911 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update relay3
2022-08-01 09:15:58.912 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update temperature
2022-08-01 09:15:58.912 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update meter3
2022-08-01 09:15:58.913 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update relay3 done
2022-08-01 09:15:58.913 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update relay4
2022-08-01 09:15:58.914 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update temperature
2022-08-01 09:15:58.915 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update meter4
2022-08-01 09:15:58.915 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update relay4 done
2022-08-01 09:15:58.916 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Updating input1
2022-08-01 09:15:58.917 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update for input1 done
2022-08-01 09:15:58.917 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Updating input2
2022-08-01 09:15:58.918 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update for input2 done
2022-08-01 09:15:58.919 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Updating input3
2022-08-01 09:15:58.919 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update for input3 done
2022-08-01 09:15:58.920 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Updating input4
2022-08-01 09:15:58.920 [DEBUG] [helly.internal.api2.Shelly2ApiClient] - shellypro4pm-30c6f784318c: Update for input4 done
2022-08-01 09:15:58.922 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellypro4pm-30c6f784318c: Channel device#heartBeat updated with 2022-08-01T09:15:58.000+0200 (type class org.openhab.core.library.types.DateTimeType).
2022-08-01 09:15:58.930 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellypro4pm-30c6f784318c: Channel meter3#currentWatts updated with 2.50 W (type class org.openhab.core.library.types.QuantityType).
2022-08-01 09:15:58.937 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellypro4pm-30c6f784318c: Channel device#accumulatedWatts updated with 7.40 W (type class org.openhab.core.library.types.QuantityType).
2022-08-01 09:15:59.869 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellypro4pm-30c6f784318c: NotifyStatus update received: {"src":"shellypro4pm-30c6f784318c","dst":"shellypro4pm-30c6f784318c","method":"NotifyStatus","params":{"ts":1.65933816075E9,"switch:0":{"id":0,"aenergy":{"total":4.137,"by_minute":[83.77,83.681,83.873],"minute_ts":1659338159}}}}
2022-08-01 09:15:59.871 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellypro4pm-30c6f784318c: NotifyStatus update received: {"src":"shellypro4pm-30c6f784318c","dst":"shellypro4pm-30c6f784318c","method":"NotifyStatus","params":{"ts":1.65933816075E9,"switch:1":{"id":1,"aenergy":{"total":0.0,"by_minute":[0.0,0.0,0.0],"minute_ts":1659338159}}}}
2022-08-01 09:15:59.949 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellypro4pm-30c6f784318c: NotifyStatus update received: {"src":"shellypro4pm-30c6f784318c","dst":"shellypro4pm-30c6f784318c","method":"NotifyStatus","params":{"ts":1.65933816082E9,"switch:2":{"id":2,"aenergy":{"total":2.145,"by_minute":[43.973,44.003,44.348],"minute_ts":1659338159}}}}
2022-08-01 09:15:59.951 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellypro4pm-30c6f784318c: NotifyStatus update received: {"src":"shellypro4pm-30c6f784318c","dst":"shellypro4pm-30c6f784318c","method":"NotifyStatus","params":{"ts":1.65933816082E9,"switch:3":{"id":3,"aenergy":{"total":0.0,"by_minute":[0.0,0.0,0.0],"minute_ts":1659338159}}}}
2022-08-01 09:16:03.826 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellypro4pm-30c6f784318c: NotifyStatus update received: {"src":"shellypro4pm-30c6f784318c","dst":"shellypro4pm-30c6f784318c","method":"NotifyStatus","params":{"ts":1.65933816474E9,"switch:0":{"id":0,"pf":0.5}}}
2022-08-01 09:16:04.827 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellypro4pm-30c6f784318c: NotifyStatus update received: {"src":"shellypro4pm-30c6f784318c","dst":"shellypro4pm-30c6f784318c","method":"NotifyStatus","params":{"ts":1.65933816574E9,"switch:0":{"id":0,"pf":-0.67}}}