Page 1 of 1

Option 'Silent()' in combination with 'forXXX': silent ON also means silent OFF  [Solved]

Posted: Monday 01 July 2019 23:51
by jake
In a recent script I have searched for days why the script wasn't triggered during a switchOff. I had switchedOn the script by: switch.switchOn().silent().forMin(5). I used the .silent() to avoid a second trigger of the script. However, I wanted the script to be triggered during the switchOff that would happen after 5 minutes. Luckily I finely discovered that silent ON also means silent OFF. I now have removed the '.silent()' during the ON command and now the script triggers both on switch ON and OFF. I simply have no action menioned for the ON state, so the script works alright.