webCoRE for Hubitat Updates

It is ok to have a switch control the execution of the piston. In this short piston you are subscribed to the events being tracked by 'changes' so if you watch the piston it is waking up when those things change, it just runs the first if statement then exits.

Having it run 2 if statements (if you follow my earlier suggestion) vs. one is negligible to additional overhead.

I would suggest follow this tip: