I have 1 motion/luminance Hue Motion Sensor and a switch Tuya zigbee, both with Edge driver.
I created a routine to trigger the switch when the sensor detects motion, this routine runs locally on the SmartThings hub.
If I add to this routine to account for exact X illuminance, the routine continues executing local. However, if I inform the illuminance (greater than or equal to X) or illuminance (less than or equal to X), the routine stops executing locally.
Another situation that causes the routine to stop executing locally is when I add it to the routine to detect movement and check the option “How long to keep the status?” and enter a time value. By doing so, the routine stops running locally.