Scenario/System Mode Trigger Plugin
-
- Administrator
- Posts: 419
- Joined: Tue 09 Nov 2010, 20:41
Scenario/System Mode Trigger Plugin
This plugin is used to activate Scenarios and/or System Modes depending on rule evaluations for Data Source Values. The plugin uses a simple and transparent logic to activate a scenario/system mode. When a value comes in for a data source and the rule is fulfilled, then the configured scenario or system mode is activated. This more simplified logic has been requested by users.
(It is possible to trigger both a scenario change and a system mode change on the same event using this plugin.)
Examples of usage:
- Activate your "Home" system mode when motion is detected by a sensor
- Use a light switch next to your front door to toggle between your "Home" and "Away" system modes
- Activate a "Sleep" scenario when hitting your sleep button next to bed
- Other stuff yet to explore
Instructions:
- Put the files in the Binaries folder (found in the zip file) in the Plugins folder where the Switch King Server is installed.
- Open the ScenarioSystemModeTriggerPlugin.dll.config file (using e.g. Notepad) and follow the instructions.
- Restart the Switch King Server
Find out IDs for Scenario and System Mode:
- Select Open in the File menu
- Select Scenario or System Mode to find out ID for
- The ID is found on the General tab
Built-in Scenario IDs:
(all by schedule)|(alla enligt schema), ID=1
(all frozen)|(alla stoppade), ID=2
Source code and Binaries are included in the zip file.
Source code is available for further development and please share your enhancements with the community. Thanks!
Filename: ScenarioSystemModeTriggerPlugin_0.1.zip
Version: 0.1
Date: 2015-02-03
Requirements: Switch King Server v 3.2.3 and later
Developer: Switch King
(Det går bra att posta frågor/kommentarer på svenska också i denna tråden.)
(It is possible to trigger both a scenario change and a system mode change on the same event using this plugin.)
Examples of usage:
- Activate your "Home" system mode when motion is detected by a sensor
- Use a light switch next to your front door to toggle between your "Home" and "Away" system modes
- Activate a "Sleep" scenario when hitting your sleep button next to bed
- Other stuff yet to explore
Instructions:
- Put the files in the Binaries folder (found in the zip file) in the Plugins folder where the Switch King Server is installed.
- Open the ScenarioSystemModeTriggerPlugin.dll.config file (using e.g. Notepad) and follow the instructions.
- Restart the Switch King Server
Find out IDs for Scenario and System Mode:
- Select Open in the File menu
- Select Scenario or System Mode to find out ID for
- The ID is found on the General tab
Built-in Scenario IDs:
(all by schedule)|(alla enligt schema), ID=1
(all frozen)|(alla stoppade), ID=2
Source code and Binaries are included in the zip file.
Source code is available for further development and please share your enhancements with the community. Thanks!
Filename: ScenarioSystemModeTriggerPlugin_0.1.zip
Version: 0.1
Date: 2015-02-03
Requirements: Switch King Server v 3.2.3 and later
Developer: Switch King
(Det går bra att posta frågor/kommentarer på svenska också i denna tråden.)
You do not have the required permissions to view the files attached to this post.
Tomas | Switch King
-
- 3 stars
- Posts: 59
- Joined: Wed 16 Nov 2011, 13:20
Re: Scenario/System Mode Trigger Plugin
Great plugin, but what's the difference from the build in function to have certain rules to trigger scenarios, see att. pic?
Would it be possible to add a function that detects how many times a switch has been flicked. For example 1 time = wake-up scenario, 2 times = good night, 3 times = everything 100%?
Would it be possible to add a function that detects how many times a switch has been flicked. For example 1 time = wake-up scenario, 2 times = good night, 3 times = everything 100%?
You do not have the required permissions to view the files attached to this post.
-
- Administrator
- Posts: 419
- Joined: Tue 09 Nov 2010, 20:41
Re: Scenario/System Mode Trigger Plugin
Great question! The built-in function for triggering scenarios also uses Priority (found in the Advanced tab). This is useful when you want to prevent low priority scenarios from starting when a high priority one is already running. However, in some cases this also makes it more difficult to switch between scenarios when using rules.
With the plugin this handling is more transparent. If the rule is fulfilled, the scenario will be started and it doesn't care about priority.
The plugin also adds ability to trigger System Modes by using rules.
With the plugin this handling is more transparent. If the rule is fulfilled, the scenario will be started and it doesn't care about priority.
The plugin also adds ability to trigger System Modes by using rules.
The source code for the plugin is available if you or someone else want to take a stab at that.RealElwood wrote:Would it be possible to add a function that detects how many times a switch has been flicked. For example 1 time = wake-up scenario, 2 times = good night, 3 times = everything 100%?
Tomas | Switch King
-
- 1 star
- Posts: 5
- Joined: Sun 22 Feb 2015, 16:03
Re: Scenario/System Mode Trigger Plugin
Hej
Jag kör SwitchKings Linuxversion och den är bara uppe i version 3.2.1. Innebär det att den här pluginen inte alls funkar då? Finns det någon plan på en uppdaterad Linuxversion?
/Kristoffer
Jag kör SwitchKings Linuxversion och den är bara uppe i version 3.2.1. Innebär det att den här pluginen inte alls funkar då? Finns det någon plan på en uppdaterad Linuxversion?
/Kristoffer
-
- Administrator
- Posts: 419
- Joined: Tue 09 Nov 2010, 20:41
Re: Scenario/System Mode Trigger Plugin
Jag har testat den på Windows med Switch King Server 3.2.3. Du får gärna testa den på Linux-versionen och det borde funka fint.
Tomas | Switch King
-
- 1 star
- Posts: 2
- Joined: Sun 17 May 2015, 20:57
Re: Scenario/System Mode Trigger Plugin
Har någon fått detta att fungera med systemlägen?
Jag har, så vitt jag kan se, gjort allt rätt för att få ett skymningsrelä att växla mellan två systemlägen, men det händer ingenting i SK. Mitt relä (ID=14) skall alltså växla mellan två systemlägen med ID 1 och 3. kodraden blir:
<add key="SystemModeTriggerConfiguration" value="14:ON:1|14:OFF:3"/>
Har även försökt ta bort raden som styr scenarion, men då vill inte servern ladda alls.
Jag har, så vitt jag kan se, gjort allt rätt för att få ett skymningsrelä att växla mellan två systemlägen, men det händer ingenting i SK. Mitt relä (ID=14) skall alltså växla mellan två systemlägen med ID 1 och 3. kodraden blir:
<add key="SystemModeTriggerConfiguration" value="14:ON:1|14:OFF:3"/>
Har även försökt ta bort raden som styr scenarion, men då vill inte servern ladda alls.
-
- 1 star
- Posts: 2
- Joined: Tue 09 Nov 2010, 21:51
- Location: Mölnlycke
Re: Scenario/System Mode Trigger Plugin
Hej,
Jag undrar också om det är någon som fått det att fungera, detta är något som jag väldigt gärna vill få att fungera.
Har uppgraderat till senaste client (3.2.0) och server (3.4.0) och under lång tid försökt få det att fungera (även tidigare när plugin'et kom) men får det inte att fungera.
Vill kunna växla mellan hemma och borta läge med hjälp av en sensor (fjärrkontroll) men det enda som händer är att fjärren byter status från av till på.
Jag har till och med bytt presentationen på Fjärren från På till ON, men inget hjälper.
Ni som fått det att fungera vad har ni gjort?
Hälsningar
/Urban
Jag undrar också om det är någon som fått det att fungera, detta är något som jag väldigt gärna vill få att fungera.
Har uppgraderat till senaste client (3.2.0) och server (3.4.0) och under lång tid försökt få det att fungera (även tidigare när plugin'et kom) men får det inte att fungera.
Vill kunna växla mellan hemma och borta läge med hjälp av en sensor (fjärrkontroll) men det enda som händer är att fjärren byter status från av till på.
Jag har till och med bytt presentationen på Fjärren från På till ON, men inget hjälper.
Ni som fått det att fungera vad har ni gjort?
Hälsningar
/Urban
-
- 1 star
- Posts: 5
- Joined: Sun 09 Jan 2022, 17:39
Re: Scenario/System Mode Trigger Plugin
Thx for the different examples. I'm using scenarios a lot in my work
Who is online
Users browsing this forum: No registered users and 4 guests