@curzon01 I wanted to resolve this issue in the “cleanest” way possible, since I’m having spikes again (in pH readings this time). Reading MQTT Sensor docs and this excellent post by @Troon I think the availability_template could be used to skip out of range payload values.
Something like this for each sensor should work (needs some testing obviously):
pH sensor:
availability_template: "{{ 'Online' if (6 <= value|float(0) <= 9) else 'Offline' }}"
In NeoPool docs do we have ranges documented for all sensors? Didn’t check yet.
Please let me know your feedback then I’ll start updating all sensors with range checks.
Thanks.