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

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
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]

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest