Sample syntax for Indigo Action

Bouncing Ball's Home Remote is a control client for Indigo that allows you to control from an iOS device, Apple Watch, and Apple TV.
Gary_BBGames
Posts: 164
Joined: Mon Sep 14, 2015 9:57 am

Re: Sample syntax for Indigo Action

Post by Gary_BBGames »

For sure. Just PM me your email address
mlooss
Posts: 184
Joined: Thu Sep 05, 2013 3:49 pm

Re: Sample syntax for Indigo Action

Post by mlooss »

Gary,

Thanks for the beta of Home Remote but when I try to add an INDIGO action I get this error.?

Image


Sent from my iPhone using Tapatalk
Gary_BBGames
Posts: 164
Joined: Mon Sep 14, 2015 9:57 am

Re: Sample syntax for Indigo Action

Post by Gary_BBGames »

Thanks. Indigo sometimes generates bad JSON, I am trying to fix it where possible.

Can you please go to http://10.0.1.231:8176/actions.json and http://10.0.1.231:8176/devices.json please

They will spit out a load of JSON. If you can then pm me it or email me at Gary (at) bouncing ball (.) mobi that would be great.
Gary_BBGames
Posts: 164
Joined: Mon Sep 14, 2015 9:57 am

Re: Sample syntax for Indigo Action

Post by Gary_BBGames »

Jay, is there any way of fixing up a users JSON in Indigo?
User avatar
jay (support)
Site Admin
Posts: 18411
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Sample syntax for Indigo Action

Post by jay (support) »

I think I'm only aware of the one bug (json lists can start with a comma). If you can provide pointers to others I will make sure they're addressed in the next release. Unfortunately, I'm not sure when we'll get that release out.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
Gary_BBGames
Posts: 164
Joined: Mon Sep 14, 2015 9:57 am

Re: Sample syntax for Indigo Action

Post by Gary_BBGames »

Another I've seen were new lines in action names. I fixed it by removing carriage returns in the JSON string before making it JSON.

When mlooss sends his I'll see what's wrong and let you know
User avatar
jay (support)
Site Admin
Posts: 18411
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Sample syntax for Indigo Action

Post by jay (support) »

Ah, right, I did know about that one, though to be honest that's more of a Indigo Client error - it should never allow carriage returns or line feeds in object names (I don't think you can type them in, but if you paste something that has a carriage return it won't invalidate the value). When it does happen, it's an accidental thing... ;)
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
jens
Posts: 265
Joined: Sun May 03, 2015 11:45 am
Location: Sweden

Re: Sample syntax for Indigo Action

Post by jens »

The beta works fine for me...
//jens


Sent from my iPhone 6 using Tapatalk
mlooss
Posts: 184
Joined: Thu Sep 05, 2013 3:49 pm

Re: Sample syntax for Indigo Action

Post by mlooss »

Gary,

I sent the outputs you requested this morning, did you receive them?


Sent from my iPhone using Tapatalk
Gary_BBGames
Posts: 164
Joined: Mon Sep 14, 2015 9:57 am

Re: Sample syntax for Indigo Action

Post by Gary_BBGames »

Yes, I replied 3 minutes later.

I see the issue, the Indigo client has something named illegally:

Media Luna, La Parguera
Media Luna, La Parguera (LPRP4)
Media Luna, La Parguera (LPRP4)
Media Luna, La Parguera (LPRP4)

Remove the line breaks (and tabs) and it will work.

Version 2.9 would have fixed this but you have tabs as well as line breaks which I didn't think to sort out. The version after 2.9 will fix your issue without you having to edit the name.
mlooss
Posts: 184
Joined: Thu Sep 05, 2013 3:49 pm

Re: Sample syntax for Indigo Action

Post by mlooss »

Gary,

I need to look for your e-mail, maybe it ended up in my spam filter.

I renamed the item, to a single simple word and it would still generate the same error, even disabling communication would not solve the issue but deleting it did.

Not sure how a tab and line break was introduced here?

This will be my first time working with Home Remote and so far I created two action and they work from the Today Widget.

Thanks for all your help.
Gary_BBGames
Posts: 164
Joined: Mon Sep 14, 2015 9:57 am

Re: Sample syntax for Indigo Action

Post by Gary_BBGames »

When you renamed it did you select all of it, or did you just rename the first line, leaving the others in place? It's introduced by copy and pasting, or allowing something to populate the name at a guess.

2.9 will most likely be out tomorrow, after which I will submit a 2.9.1 that will fix that specific issue.
mlooss
Posts: 184
Joined: Thu Sep 05, 2013 3:49 pm

Re: Sample syntax for Indigo Action

Post by mlooss »

I deleted the comma first, then the part in front of the comma leaving just one word. I never deleted all of it, but I did place my cursor trying to find empty space and found none. This is a weather station and it was set up a long time ago so I don't recall if I copy pasted it or not. Now that I know about this issue, I will always type the name in the future.

Thanks again.


Sent from my iPad using Tapatalk
Gary_BBGames
Posts: 164
Joined: Mon Sep 14, 2015 9:57 am

Re: Sample syntax for Indigo Action

Post by Gary_BBGames »

Ah ok.

2.9 is out now for everyone so we might see a few more of these. I will create a topic explaining the situation here.

The next Home Remote release will fix all the bad data issues, whether it be 2.9.1 or 3.0, I am not sure yet.
Post Reply

Return to “Bouncing Ball LTD”