1) Give a description of the problem
I’m writing a piston to regulate the humidity in a room. I’m using Wireless Tags as the relative humidity sensors and a Samsung smart outlet to switch on the room humidifier. When the sensor reports a RH outside a specified range it turns the humidifier on or off as needed. The piston also sets the color of a smart bulb to give a visual indication of the RH (too dry=yellowish, good=green and too wet=blue). If the RH stays too low or too high for more than 30 min, it sends me a text and has my echo dot speak the message. It more or less works but the problem I’m having is the piston seems to lag quite a ways behind the sensor. For example, the piston state says it thinks the RH is 49% when the sensor is currently showing 51% (viewed through my smartphone app for the sensor). I’d appreciate any help on how to code this to make it more responsive. Would something like an If RH has changed statement help?
2) What is the expected behaviour?
I’d like the piston will stay up to date better
3) What is happening/not happening?
I don’t understand enough about what causes a trigger to be sure if I have my piston written correctly to do what I want.
**4) Post a Green Snapshot of the piston![image|45x37]