Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

url misinterpreted #9

Closed
Radiotechniman opened this issue Oct 16, 2016 · 2 comments
Closed

url misinterpreted #9

Radiotechniman opened this issue Oct 16, 2016 · 2 comments

Comments

@Radiotechniman
Copy link

Radiotechniman commented Oct 16, 2016

when adding the following url
http://ip address/json.htm?type=command&param=switchscene&idx=9&switchcmd=On
it gets saved as
http://ip address/json.htm?type=command¶m=switchscene&idx=9&switchcmd=On

the interpretation of the &para seems to be wrong
(this is from the domoticz api :
https://www.domoticz.com/wiki/Domoticz_API/JSON_URL's#Scenes_.2F_Groups )

@irritanterik
Copy link
Owner

irritanterik commented Oct 16, 2016

Its a problem with homey's escaping mechanism. Beause &para is a HTML escape value. You can work around by making param the first parameter in your url:
http://ip address/json.htm?param=switchscene&type=command&idx=9&switchcmd=On

@Radiotechniman
Copy link
Author

Radiotechniman commented Oct 16, 2016

yeah... i should've thought of that too :-/

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants