Page 4 of 4

Re: Sample syntax for Indigo Action

PostPosted: Fri Dec 11, 2015 5:29 am
by Gary_BBGames
For sure. Just PM me your email address

Re: Sample syntax for Indigo Action

PostPosted: Fri Dec 11, 2015 2:05 pm
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

Re: Sample syntax for Indigo Action

PostPosted: Fri Dec 11, 2015 2:22 pm
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.

Re: Sample syntax for Indigo Action

PostPosted: Fri Dec 11, 2015 2:23 pm
by Gary_BBGames
Jay, is there any way of fixing up a users JSON in Indigo?

Re: Sample syntax for Indigo Action

PostPosted: Fri Dec 11, 2015 5:50 pm
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.

Re: Sample syntax for Indigo Action

PostPosted: Fri Dec 11, 2015 10:42 pm
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

Re: Sample syntax for Indigo Action

PostPosted: Sat Dec 12, 2015 10:51 am
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... ;)

Re: Sample syntax for Indigo Action

PostPosted: Sun Dec 13, 2015 2:02 pm
by jens
The beta works fine for me...
//jens


Sent from my iPhone 6 using Tapatalk

Re: Sample syntax for Indigo Action

PostPosted: Mon Dec 14, 2015 5:54 pm
by mlooss
Gary,

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


Sent from my iPhone using Tapatalk

Re: Sample syntax for Indigo Action

PostPosted: Tue Dec 15, 2015 1:24 am
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.

Re: Sample syntax for Indigo Action

PostPosted: Tue Dec 15, 2015 8:55 pm
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.

Re: Sample syntax for Indigo Action

PostPosted: Wed Dec 16, 2015 1:31 am
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.

Re: Sample syntax for Indigo Action

PostPosted: Wed Dec 16, 2015 6:25 am
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

Re: Sample syntax for Indigo Action

PostPosted: Thu Dec 17, 2015 3:22 am
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.