Switchboard (Formerly Indigo Security Script)

Posted on
Sat Aug 18, 2012 4:52 pm
hamw offline
Posts: 1212
Joined: Mar 31, 2008

Re: Switchboard (Formerly Indigo Security Script)

hamw wrote:
Will Switchboard allow monitoring of multiple variables to execute single trigger, rather than have to write a series of triggers for each variable? How would I set that up?


Repost.

Posted on
Sat Aug 18, 2012 10:22 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Switchboard (Formerly Indigo Security Script)

hamw wrote:
Will Switchboard allow monitoring of multiple variables to execute single trigger, rather than have to write a series of triggers for each variable? How would I set that up?


Not directly. But in most of the cases that I have seen, usually Switchboard can be configured to help prevent the need for multiple variables...

Can you give me some information on what you are trying to do with Switchboard? What are you trying to monitor? What do the variables represent?

- Ben

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Sun Aug 19, 2012 4:07 am
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Switchboard (Formerly Indigo Security Script)

hamw wrote:
Will Switchboard allow monitoring of multiple variables to execute single trigger, rather than have to write a series of triggers for each variable? How would I set that up?

If you just want a trigger with multiple inputs, and none of the other features the Switchboard plugin provides, take a look at the Group Trigger plugin. Note that the variables have to be boolean. However, the plugin accepts a good set of boolean pairs (on/off, true/false, 1/0, yes/no, etc.) and also allows you to define a custom boolean pair.

Posted on
Wed Aug 22, 2012 9:02 pm
hamw offline
Posts: 1212
Joined: Mar 31, 2008

Re: Switchboard (Formerly Indigo Security Script)

In my WHA setup I have a single iPhone page that can change between iTunes and Pandora players. The buttons will swap on the page for whichever one is playing to reflect the appropriate playlists. In order to do this I need to know if Pandora or iTunes are on, off, playing or paused. A change in their variables will trigger the same script that changes the page buttons.

I also run a script to display which one is playing, both or all off. I like the state readout to be "Paused" instead of "False", which is the variable that is generated, so I convert them. In Pandora, especially, there is the funny "<<constant****sPAU>>" or "<<constant****sPLY>>" which I correct to "Pause" and "Playing". Although it is just one script, I need to monitor several variables since changes could occur in either Pandora or iTunes. They are not boolean variables, just variables that change.

Something like Switchboard, but that can integrate multiple triggers to fire a single action, would be very useful.
Attachments
Multiple variables.tiff
Multiple variables.tiff (33.85 KiB) Viewed 9728 times

Posted on
Thu Aug 23, 2012 4:51 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Switchboard (Formerly Indigo Security Script)

hamw wrote:
In my WHA setup I have a single iPhone page that can change between iTunes and Pandora players. The buttons will swap on the page for whichever one is playing to reflect the appropriate playlists. In order to do this I need to know if Pandora or iTunes are on, off, playing or paused. A change in their variables will trigger the same script that changes the page buttons.


I assume this is done by a plugin?

I assume iTunes is being controlled by the iTunes plugin that comes with Indigo? Switchboard can be triggered by the iTunes plugin state of "playStatus".

I assume the Pandora plugin also has a state that indicates it's current activity?

A python script could take a look at those two states, and make the changes that your looking for, possibly eliminating the need for those variables...

Or as suggested earlier, the group trigger plugin is designed for this.... Switchboard would either require some redesign... And I really haven't thought of a workable interface involving multiple triggers....

Or some change in your existing workflow would need to be done. I can, and would be willing to help you fit switchboard into your environment.. As I mentioned, a supplemental python script could probably solve your issue....

- Ben

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Mon Aug 27, 2012 8:57 pm
hamw offline
Posts: 1212
Joined: Mar 31, 2008

Re: Switchboard (Formerly Indigo Security Script)

Could you point me to a link for the Group Trigger Plugin?

Posted on
Sat Sep 01, 2012 5:10 pm
terrydew offline
Posts: 258
Joined: Jun 10, 2011

Re: Switchboard (Formerly Indigo Security Script)

Has version 61 been released yet?

Posted on
Sat Sep 01, 2012 5:39 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Switchboard (Formerly Indigo Security Script)

terrydew wrote:
Has version 61 been released yet?


I'm looking at releasing new versions of switchboard and Find My iDevice tomorrow...

- Ben

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Sun Sep 02, 2012 4:51 pm
hamw offline
Posts: 1212
Joined: Mar 31, 2008

Re: Switchboard (Formerly Indigo Security Script)

Looks like neither switchboard nor Group Triggger Plugin will work with arbitrary variables that just change. Both require an actual device or plugin with states. The variables in the list are made from Doug Kress' AirFoil script. But those are two very useful plugins - thanks for the suggestions.

Posted on
Mon Sep 03, 2012 11:25 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Switchboard v0.70 released....

Switchboard v0.70 has been released.

The changes in v0.70 are as released...

v0.70 - 9/02/2012 - Public Release
  • When the plugin is started, it will audit the Monitor Device Groups and detect which devices are triggered, and update the Number_Triggered_Devices, Devices_Triggered, and Triggered_In_Group states as necessary.
  • X10 HeartBeat Time Out Warnings - X10 devices send out a periodic heartbeat, the original security script monitored for these, and warned the user if the heart beat had not been seen after several hours. This was not properly implemented in Switchboard. This feature is now available again.
    • Please note, you will need to open each X10 device, and then Save it. This will write the new fields to the X10 device…
    • This timeout is configurable on a per device basis. The default value is 200 minutes, roughly 3 1/3 hours... Since the heartbeat on X10 devices is 45 minutes - 1 hour, this seems to be a reasonable amount of time for the Heartbeat Timeout...
  • Custom Email Text
  • Fixed Trigger_in_Group / Number_Triggered_Devices. When implemented in v0.60, I did not realize that X10 devices were being ignored. They will now appear properly in the Trigger_In_Group / Number_Triggered_Devices...

Please feel free to send feedback, comments, and concerns.

https://dl.dropbox.com/u/241415/Switchb ... 0v0.72.zip

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Mon Sep 03, 2012 12:28 pm
DU Lou offline
Posts: 279
Joined: Mar 08, 2012
Location: Florida

Re: Switchboard (Formerly Indigo Security Script)

Hi Benjamin.
Just Dl'd SB 7.0 and Indigo shows (after a server restart) the plugin started without an issue. However when I attempt to create a new device, the "Configured Device Monitored Device Group" gives me the following error in the Zones window below.

Here is a copy of the log as well:
Code: Select all
Sep 3, 2012 2:31:07 PM
  Switchboard Error               Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
<type 'exceptions.TypeError'>: return_devices_in_zone() takes exactly 2 arguments (5 given)


Thought you might like to see.
Thanks! Lou
Attachments
Screen Shot 2012-09-03 at 2.19.59 PM.png
Screen Shot 2012-09-03 at 2.19.59 PM.png (61.56 KiB) Viewed 9679 times

Posted on
Mon Sep 03, 2012 2:11 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Switchboard (Formerly Indigo Security Script)

DU Lou wrote:
Hi Benjamin.
Just Dl'd SB 7.0 and Indigo shows (after a server restart) the plugin started without an issue. However when I attempt to create a new device, the "Configured Device Monitored Device Group" gives me the following error in the Zones window below.

Here is a copy of the log as well:
Code: Select all
Sep 3, 2012 2:31:07 PM
  Switchboard Error               Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
<type 'exceptions.TypeError'>: return_devices_in_zone() takes exactly 2 arguments (5 given)



There appears to have been a small hiccup, but I can't explain your error message. Instead I found a different one...
(@#$@#$)

Please try this file...

https://dl.dropbox.com/u/241415/Switchb ... 0v0.71.zip

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Mon Sep 03, 2012 2:56 pm
DU Lou offline
Posts: 279
Joined: Mar 08, 2012
Location: Florida

Re: Switchboard (Formerly Indigo Security Script)

bschollnick2 wrote:
DU Lou wrote:
Hi Benjamin.
Just Dl'd SB 7.0 and Indigo shows (after a server restart) the plugin started without an issue. However when I attempt to create a new device, the "Configured Device Monitored Device Group" gives me the following error in the Zones window below.

Here is a copy of the log as well:
Code: Select all
Sep 3, 2012 2:31:07 PM
  Switchboard Error               Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
<type 'exceptions.TypeError'>: return_devices_in_zone() takes exactly 2 arguments (5 given)



There appears to have been a small hiccup, but I can't explain your error message. Instead I found a different one...
(@#$@#$)

Please try this file...

https://dl.dropbox.com/u/241415/Switchb ... 0v0.71.zip


Hmmm No change with .71 Ben. I received the same event log entry and window error. The even log also noted "Plugin "Switchboard 0.71" started" just to make sure I didn't accidentally place .70 back in the plugin folder :)

As a test I reinstalled .56 and was able to create a monitored group without issue. Oh I am running Mountain Lion now as well. Not sure if that would make a difference. Let me know if you need any further info from me..

Thanks!
Lou

Posted on
Mon Sep 03, 2012 3:37 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Switchboard (Formerly Indigo Security Script)

DU Lou wrote:
Hmmm No change with .71 Ben. I received the same event log entry and window error. The even log also noted "Plugin "Switchboard 0.71" started" just to make sure I didn't accidentally place .70 back in the plugin folder :)

As a test I reinstalled .56 and was able to create a monitored group without issue. Oh I am running Mountain Lion now as well. Not sure if that would make a difference. Let me know if you need any further info from me..


Okay, tracked it down. This should fix it.

https://dl.dropbox.com/u/241415/Switchb ... 0v0.72.zip

I had accidentally "over" optimized the code. The tool that I was testing for profiling the code indicated that several functions were *NOT* being called in the application, so I commented them out, without thinking about it.

Yep, you guessed it. It was the User Interface code functions (add / Remove buttons).

That shows you how often people modify the Monitored Device Groups, once they are created....

- Ben

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Mon Sep 03, 2012 6:18 pm
DU Lou offline
Posts: 279
Joined: Mar 08, 2012
Location: Florida

Re: Switchboard (Formerly Indigo Security Script)

Awesome...
v.72 has enabled me to implement a scenario that I have been wanting to try for about 4 months now!

Thanks Ben!

Who is online

Users browsing this forum: No registered users and 5 guests