Thanks Tom. I understand what you mean but do not know how to correct it.
If the value of : ‘sensor.schrek_verlichting_electric_consumption_kwh’ is higher than 5, than no value needs to be mentioned. At first I thought 0 needed to be mentioned but I learned this “resets” the counter.
I will pay attention to the format in future posts.
Yes i have restarted home assistant, after the sensor was created.
I have created in the configuration.yalm
The logs shows nothing when i search for this new sensor…
It does mention the original senor, not sure if it is related to the new sensor we are making.
2023-07-19 02:05:10.997 WARNING (Recorder) [homeassistant.components.sensor.recorder] Entity sensor.schrek_verlichting_electric_consumption_kwh from integration zwave_js has state class total_increasing, but its state is not strictly increasing. Triggered by state 79.3 (81.86) with last_updated set to 2023-07-19T00:02:58.748332+00:00. Please create a bug report at Issues · home-assistant/core · GitHub
2023-07-19 04:15:10.896 WARNING (Recorder) [homeassistant.components.sensor.recorder] Entity sensor.schrek_uv_electric_consumption_kwh from integration zwave_js has state class total_increasing, but its state is not strictly increasing. Triggered by state 66.59 (66.67) with last_updated set to 2023-07-19T02:10:26.093822+00:00. Please create a bug report at Issues · home-assistant/core · GitHub
At the mentioned time in the log a negative consumption was reported, followed with the same consumption positive. Further the correct consumption and high Peaks i want to have ignored. Should the negative stop the new sensor from working?
The goal was to solve 2 issues.
1 : issue with the Neo coolcam reporting negative values which is a known Neo coolcam issue.
This is the first part of the sensor.
2 : the energy dashbord is messed up with high incorrect values. Each day I need to adjust about 10 values for some power plugs at “developer tools” → statitics (see image).
The second part of the sensor should ignore the value if the usage is higher than x (currently 5)
HA mentions “This device is buggy and sends large negative meter reports from time to time”. The include image shows a huge consumption. But I also have seen smal ones like just 2 kWh.
5 is just a number I thought was good. But reading by own previous post having small ones like 2, 5 is already to high. Most adjustments I need to make range from 10 to thousands.(247.37 in the previous post).