Question on running Shortcuts via Indigo

Posted on
Mon May 15, 2023 8:37 am
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Question on running Shortcuts via Indigo

I’m having a very strange problem running Shortcuts from Indigo.

I issue the shortcut to run from the indigo command line (via trigger) but it does not work - if I wait an hour or so and issue the command again it works and then works fine until the next day. Since I don’t know how to look at what indigo is doing I don’t know how to figure this out.

[MODERATOR NOTE]: moved to the appropriate forum.

_______
Norm

Posted on
Mon May 15, 2023 12:39 pm
jay (support) offline
Site Admin
User avatar
Posts: 18225
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Question on running Shortcuts via Indigo

We need some context:

  1. How exactly are you running the shortcut?
  2. What is the exact definition of the shortcut?

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Mon May 15, 2023 1:35 pm
DaveL17 offline
User avatar
Posts: 6759
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Question on running Shortcuts via Indigo

3. Any conditions you have associated with the trigger.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Mon May 15, 2023 3:19 pm
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Question on running Shortcuts via Indigo

Like I mentioned it works after an hour but not the first time each day ?
Attachments
Screenshot 2023-05-15 at 2.15.27 PM.png
Screenshot 2023-05-15 at 2.15.27 PM.png (134.62 KiB) Viewed 1278 times
Screenshot 2023-05-15 at 2.14.46 PM.png
Screenshot 2023-05-15 at 2.14.46 PM.png (70.94 KiB) Viewed 1278 times
Screenshot 2023-05-15 at 2.14.15 PM.png
Screenshot 2023-05-15 at 2.14.15 PM.png (52.58 KiB) Viewed 1278 times

_______
Norm

Posted on
Tue May 16, 2023 5:47 am
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Question on running Shortcuts via Indigo

Try adding this to the end of your command:
Code: Select all
 >> /tmp/debug.txt 2>&1
Then look at /tmp/debug.text to see if you captured any output.

Posted on
Tue May 16, 2023 7:07 am
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Question on running Shortcuts via Indigo

I’m not sure what that is supposed to do but I just did it - did not work - if I wait an hour or so and try again it will work and then work all day, log output below - no change from what I usually see…

May 16, 2023 at 6:03:38 AM
Received INSTEON "Hall Bath Light" on
Received INSTEON "Hall Bath Fan" on
Trigger Hall Bath Music On Soro


Edit - I went and asked my wife (she was a programmer (I’m a hardware guy)) - it does not look like any file was created - so maybe the whole thing including my original command is not getting run for some reason?

_______
Norm

Posted on
Tue May 16, 2023 7:58 am
jay (support) offline
Site Admin
User avatar
Posts: 18225
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Question on running Shortcuts via Indigo

Are you sure that your Mac's clock is set appropriately? Also, confirm that you have your times set correctly in the conditions tab.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Tue May 16, 2023 8:12 am
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Question on running Shortcuts via Indigo

Just checked the clock and it is correct - times in action are also OK.

Funny, I just tried it again since it has been about a hour since my first test today and it did not work - tried 3 more times and it did not work (log looked good as normal). Then I removed the
>> /tmp/debug.txt 2>&1 stuff. Went and tried it and it worked perfect — this makes zero sense to me :-(

_______
Norm

Posted on
Tue May 16, 2023 8:28 am
ryanbuckner offline
Posts: 1080
Joined: Oct 08, 2011
Location: Northern Virginia

Re: Question on running Shortcuts via Indigo

Remove the time check condition and run it again, just to rule that out.

Posted on
Tue May 16, 2023 8:41 am
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Question on running Shortcuts via Indigo

I’ll do that but Ill have to wait for tomorrow since it started to work now - I have many other triggers like that so that is not likely going to work…

_______
Norm

Posted on
Tue May 16, 2023 9:08 am
ryanbuckner offline
Posts: 1080
Joined: Oct 08, 2011
Location: Northern Virginia

Re: Question on running Shortcuts via Indigo

Not sure what your shortcut does, I would recommend duplicating your Indigo trigger and using it to troubleshoot. (remove conditions, etc..) You'll need to determine if it's the trigger, the conditions, the shortcut, or the device causing the lag.

Posted on
Tue May 16, 2023 9:24 am
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Question on running Shortcuts via Indigo

Really hard to troubleshoot - could be some weird OS issue or shortcut issue - so strange that once it starts working it works great until the next day….

_______
Norm

Posted on
Tue May 16, 2023 11:54 am
jay (support) offline
Site Admin
User avatar
Posts: 18225
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Question on running Shortcuts via Indigo

Just to confirm: when it doesn't work, you DO see the following in your event log?

Code: Select all
Trigger             Hall Bath Music On Soro


If that's the case, then it narrows down the issue since the trigger is firing correctly. It will not log if the conditions were not met, so if it is logging it's getting past the conditions. One way to confirm that is to add another action to the trigger that just logs a message - "shortcut trigger is firing actions" or somesuch.

Assuming the trigger is firing correctly, then either the run shell script action isn't working or the shortcut is failing. You never posted an image of the shortcut definition, so hard to know if there's something in there that may be an issue.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Tue May 16, 2023 12:08 pm
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Question on running Shortcuts via Indigo

The shortcut always works when I run it from within the shortcuts application and the log always looks the same (same messages when it works or does not work). The shortcut uses Soro (which is a way to control Sonos via shortcuts).

I found something in the Soro guide that mentioned directly addressing a Sonos speaker (via IP). I set it up that way but I will not know until tomorrow since once it works it works for the rest of the day.

I have been trying to find a replacement for the Sonos Plug-in since It is not looking good for that to get converted to P3. I hope this works….

_______
Norm

Posted on
Tue May 16, 2023 2:06 pm
jay (support) offline
Site Admin
User avatar
Posts: 18225
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Question on running Shortcuts via Indigo

Ok, well, if you are getting consistent logging then the issue has to be somewhere in the shortcut (or the things used in the shortcut).

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Who is online

Users browsing this forum: No registered users and 5 guests