I can’t help with why the sensor is returning weird values, but you can use a profile in the item’s definition to filter out those values. Back on OH3 I used a Ruby profile to exclude unreasonable values from an item. But based on this thread this feature may be built in to OH4.
The approach I’m using requires some Ruby code in $OPENHAB_CONF\automation\ruby\profiles and profile= specified on the item.
profile(:discard_anomalies) do |event, state:, configuration:|
next true if state && state >= QuantityType.new(configuration["min"]) && state <= QuantityType.new(configuration["max"])
false # discard it
end
Thanks for you help with the basic profile.
But I’m not a developer or scripter, I can only usw the UI and click somthing together
I’m still wondering whey it was working very well for more than a week and from on eto the other day the binding receives all thi kind of wrong values…
As the values coems from the sensor.community service two rootcauses are possible.
The binding get’s the addinoal to the right once, wrong values with the TOP.
The service sends wrong values.
I have added more sensors from differnet city, and all of them have the same problem.
I have already deleted the items, the thing and the binding, and have created them new.
Without success. Meanwhile the graph look linke this:
we were able to restart one of our data servers only the night before yesterday. I forgot to reactivate the copying of the data file to this server. As a result, the two servers did not deliver the same data. Theoretically, however, this should not be a problem, as the date and time are also delivered for each measurement. However, this does not seem to be taken into account in the bindings.
In the meantime, however, the current values should be delivered from both servers again.
Best greetings from Stuttgart,
Rajko Zschiegner
DevOps @ Sensor.Community
[Rajko@Sensor.Community]