Option 'Silent()' in combination with 'forXXX': silent ON also means silent OFF [Solved]
Moderator: leecollings
-
jake
- Posts: 751
- Joined: Saturday 30 May 2015 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Contact:
Option 'Silent()' in combination with 'forXXX': silent ON also means silent OFF [Solved]
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.
Who is online
Users browsing this forum: No registered users and 1 guest