Elgato Stream Deck plugin - early test release

Posted on
Wed Nov 18, 2020 7:17 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Elgato Stream Deck plugin - early test release

I haven't worked on this in a while. Let me know what you think.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Apr 11, 2021 9:15 am
autolog offline
Posts: 3988
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Elgato Stream Deck plugin - early test release

I now have a StreamDeck XL and trying out this plugin. :D

I now have a button turning on and off a LIFX lamp via Indigo.

I am unclear as to what the ButtonDevice does or what you would use it for?

Was the icon changing depending on ON / OFF state of a device ever implented?

Thanks for the plugin. :D

Posted on
Sun Apr 11, 2021 9:22 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Elgato Stream Deck plugin - early test release

The ButtonDevice is disabled in my current code base. I'm not sure what I thought I needed it for. :oops:

No, I never got around to finishing that code.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Apr 11, 2021 9:26 am
autolog offline
Posts: 3988
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Elgato Stream Deck plugin - early test release

OK - Thanks.

The button changing was in the Nice To Have category and I was only enquiring because you had mentioned it. :)

Posted on
Sun Apr 11, 2021 9:27 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Elgato Stream Deck plugin - early test release

Maybe this will bubble back up to the top of the stack.... ;)

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Apr 18, 2021 7:10 am
autolog offline
Posts: 3988
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Elgato Stream Deck plugin - early test release

Hi Joe,
I am struggling to get my mind around how to set this up with multiple Indigo systems. :?

I have my StreamDeck attached to my Mac Mini running my Indigo development system. The Indigo plugin is showing as connected. I can control a lamp (e.g. LIFX) from this system where I have my LIFX plugin running on the development Indigo system.

What I want to be able to do is toggle a relay device on my production Indigo system. Is this possible and if so how do I set it up?
To try this out, I set up a StreamDeck Custom Indigo Action to point at my production Indigo server with an Indigo Action of Toggle Indigo Device with the Action Info = the relay Device Id. However this seems to have no effect?

Thanks for any pointers. :)

Posted on
Sun Apr 18, 2021 9:36 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Elgato Stream Deck plugin - early test release

It was supposed to work as described in the early posts in this thread. Basically, run the Indigo plugin on one system, and install the Streamdeck and it's plugin on a different one. Then when you configure an SD button, you put in the IP address and port on the remote Indigo system. If it's not working now, something must have changed somewhere. I'll investigate.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Apr 18, 2021 10:03 am
autolog offline
Posts: 3988
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Elgato Stream Deck plugin - early test release

Just to clarify, I am trying to run the Indigo plugin on both my Indigo systems. This is so I can control Indigo devices attached to each Indigo system.

Posted on
Sun Apr 18, 2021 10:04 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Elgato Stream Deck plugin - early test release

That should be fine, as the IP address of the Indigo system (and plugin) you want to control is configured on a per-button basis. I think. I need to check how that's handled in the StreamDeck application, which runs the SD plugin.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Apr 18, 2021 10:11 am
autolog offline
Posts: 3988
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Elgato Stream Deck plugin - early test release

I can see how the Indigo plugin can show the Stream Deck as connected on the Mac mini to which the StreamDeck is attached. However, on the iMac Indigo system, the StreamDeck device doesn't see the StreamDeck (I guess because it isn't attached to the iMac)? I assumed you needed a StreamDeck device to be specified on both systems but presumably you don't?

Posted on
Sun Apr 18, 2021 10:21 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Elgato Stream Deck plugin - early test release

autolog wrote:
I can see how the Indigo plugin can show the Stream Deck as connected on the Mac mini to which the StreamDeck is attached. However, on the iMac Indigo system, the StreamDeck device doesn't see the StreamDeck (I guess because it isn't attached to the iMac)? I assumed you needed a StreamDeck device to be specified on both systems but presumably you don't?


Correct. The plugin doesn't actually detect SD devices connected to that system (via USB or whatever). The SD plugin connects to the Indigo plugin when an Indigo button on that deck becomes visible. That's when the initial JS code is run, and it opens a connection to the websocket specified in the IP address and port specified in the button setup. Then the Indigo plugin knows there's a device out there.

So the Indigo plugin needs to be running, then the StreamDeck app needs to be restarted so that the buttons become visible (on the deck), and their startup code runs.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Apr 18, 2021 10:28 am
autolog offline
Posts: 3988
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Elgato Stream Deck plugin - early test release

FlyingDiver wrote:
... So the Indigo plugin needs to be running, then the StreamDeck app needs to be restarted so that the buttons become visible (on the deck), and their startup code runs.

That's the bit I missed! :wink:

I have restarted the StreamDeck App on the Mac mini and it is all working now.

Thanks for the help. :D

Posted on
Sun Apr 18, 2021 10:31 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Elgato Stream Deck plugin - early test release

Whew, I thought something was broken.

I'm open to suggestions now how to make that better, but I'm limited on when the API on the Streamdeck side is called. I need to check to see if there's a way to have it check in periodically even if the button visibility doesn't change.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Apr 21, 2021 1:43 pm
autolog offline
Posts: 3988
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Elgato Stream Deck plugin - early test release

Hi Joe,
Something I hadn't noticed which is a problem, is that when you alter the Indigo Server address on a Custom Indigo Action button, it changes the address on all Custom Indigo Action buttons (across all Stream Deck folders). So that means you can only address one Indigo Server i.e. the Indigo Server address isn't unique to each button AFAICS.

I could be doing something wrong of course. ;)

Posted on
Wed Apr 21, 2021 2:10 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Elgato Stream Deck plugin - early test release

Yeah, that string is stored as a global for the StreamDeck plugin. It could probably be saved local for the button, but I suck at JavaScript and the SD plugin API is really confusing. I was lucky I figured out how to save it in the first place.

Open an issue on GitHub and I'll try to fix that. Maybe. ;)

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Who is online

Users browsing this forum: No registered users and 3 guests