test sensor values before storing in database
Posted: Monday 11 September 2023 10:40
Hi,
Is there way to run a script on a new sensor value before it is stored in the value database?
I think it is possible as I once wrote a script that ate all my sensor values...
What I want to do:
1. a sensor value comes in.
2. I want to do some checking (eg. the water temp of my fish pond can´t be 2000C. Yes, I do get such values...)
3. ignore bad values.
Maybe an (optional) value range for each sensor might be a good idea.
Tom
Is there way to run a script on a new sensor value before it is stored in the value database?
I think it is possible as I once wrote a script that ate all my sensor values...
What I want to do:
1. a sensor value comes in.
2. I want to do some checking (eg. the water temp of my fish pond can´t be 2000C. Yes, I do get such values...)
3. ignore bad values.
Maybe an (optional) value range for each sensor might be a good idea.
Tom