Whilst migrating my pistons over from CoRE I have a few that are identical (except different devices) and the structure has worked flawlessly in CoRE for months but fails to switch off in webCoRE. I’m struggling to understand why - I can get it working by adding another if for when motion changes to inactive but surely this is less efficient as it is subscribing to two events instead of one.
The switch should turn off 2 minutes after being turned on
In actual fact the wwitch doesn’t turn off at all as Line 29 does not seem to execute