I found in zwavejs2mqtt store the DSK value of my S2 Unauthenticated Plug.
So I exclude and add them again in S2 Authenticated with the this DSK. All is OK :-).
I have also a Plug who does not report correctly the voltage, itβs between 12v and 233v. I think the electronic checking the voltage is out of service.
Beware that the plug is NOT always reporting negative values. from time to time it does report real values. I record the values in a database and ignore the negative values. At least it will give some indication of power consumption of the plug. Reset is not a fix for negative values, because soon after it will be negative again and you will have lost the real values and never know the power consumption through the plug. And actually if you would subtract the latest negative value from the previous negative you get the real power consumption in that interval.
After doing some further research, you can create a positive value (in another sensor) by adding 21,474,836.45 to the value. It will give you the real usage.
@pensionado I can confirm that adding this value seems to produce correct values - thanks!
Just out of curiosity - how did you calculate the exact value?
@ahochsteger I had one plug that occasionally had consumption, and as I indicated sometime the correct value was reported. So I reset the meter, created some consumption and waited for the negative value (and the correct one). This enabled me the calculate the correct factor and after confirming the value on some other plugs I found that to be the right value. I have now adjusted my program that records these values in an influxdb and saw that meter reporting is now consistent and correct.
when I try this I get errors after the config check. missing value_state and Invalid config for [sensor.template]: [state_class] is an invalid option for [sensor.template]. Check: sensor.template->sensors->neo_plug_bank->state_class. (See ?, line ?).
Thatβs strange, since itβs copied directly from my configuration. Are you sure there nothing else in the way?
Your original error suggests youβre using the legacy format:
missing value_state and Invalid config for [sensor.template]: [state_class] is an invalid option for [sensor.template]. Check: sensor.template->sensors->neo_plug_bank->state_class. (See ?, line ?).
For anyone interested, I have the same problem. I took the watts reading what seems to be correct, and then used Integration - Riemann sum integral - Home Assistant to add it to the energy config. Here is my code:
sensor:
- platform: integration
source: sensor.wasmachine_electric_consumption_w
name: Stroommeter wasmachine
method: left
round: 2
unit_prefix: k
Sorry, but I am a total newbe and have to find out where and how to fit this in.
But has anyone found out why this happens overnight? I have 4 new plugs, all with firmware 2.23.0, and when I add them all seems to work well, but when you look at it the following morning, there a re negative values, and always -21474836.47. Plugs with other firmware work without trouble, it is only firmware version 2.23.0
Sorry to say, but this is a manufacturing error that is not fixed. You can use HA to fix those measurements, but the hardware (and thus the integration) will always remain as is.
I understand. I have a discussion with the AliExpres Coolcam Official Store (I bought all my plugs from them) and explained that plugs <> 2.23.0 do work properly. They answered βhello, for the firmware version. it is newest from our manufacturer.there are no 2.23.0 or 3.xx.x. Software version :02 17
hardware version:10β.
Strange thing is that, when I look at my devices in Home Assistant, I only have devices higher than 02 17. Highest version I have is 3.96.
Are there any others with higher versions than 02 17 (I assume 2.17)?