So… what is not working about it? Do you get an expected on / off triggers from the switch? The script looks OK at a glance.
Oh, I see - it probably goes through the entire DT in a split second?
So… what is not working about it? Do you get an expected on / off triggers from the switch? The script looks OK at a glance.
Oh, I see - it probably goes through the entire DT in a split second?