I am recording barometric pressure here in inches of mercury. The conversion template was straight forward but I have an issue with it’s recording of zero upon restart of HA or sensor going offline.
Here’s the template:
Now how to I insure that when it wants to record a value of less than 26 inches, it records 26 inches. My charts get all worthless-y when a zero is stuck in it.
Test if the value is below 26 and set to 26 else set current value
You may also need to check that the value is available
When I get to a workstation I’ll dig out some examples