{"action":"created","issue":{"url":"https://api.github.com/repos/bwssytems/ha-bridge/issues/252","repository_url":"https://api.github.com/repos/bwssytems/ha-bridge","labels_url":"https://api.github.com/repos/bwssytems/ha-bridge/issues/252/labels{/name}","comments_url":"https://api.github.com/repos/bwssytems/ha-bridge/issues/252/comments","events_url":"https://api.github.com/repos/bwssytems/ha-bridge/issues/252/events","html_url":"https://github.com/bwssytems/ha-bridge/issues/252","id":190501630,"number":252,"title":"Spaces in URL (properly encoded) cause errors","user":{"login":"BradyRosino","id":11621297,"avatar_url":"https://avatars.githubusercontent.com/u/11621297?v=3","gravatar_id":"","url":"https://api.github.com/users/BradyRosino","html_url":"https://github.com/BradyRosino","followers_url":"https://api.github.com/users/BradyRosino/followers","following_url":"https://api.github.com/users/BradyRosino/following{/other_user}","gists_url":"https://api.github.com/users/BradyRosino/gists{/gist_id}","starred_url":"https://api.github.com/users/BradyRosino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BradyRosino/subscriptions","organizations_url":"https://api.github.com/users/BradyRosino/orgs","repos_url":"https://api.github.com/users/BradyRosino/repos","events_url":"https://api.github.com/users/BradyRosino/events{/privacy}","received_events_url":"https://api.github.com/users/BradyRosino/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-19T15:18:11Z","updated_at":"2016-11-19T15:28:11Z","closed_at":null,"body":"With Indigo 7 you interact with the Rest API with the device names. Many of my device names have spaces in the names and it seems that HA Bridge does not care for this. Funny part is the action actually works, but HA Bridge thinks it failed. Google Home doesn't care about the error but Amazon Echo does, will always say the action failed.\r\n\r\nThis works -\r\n\r\nhttp://localhost/devices/FamilyRoom_Light_Couch?isOn=1&_method=put\r\n\r\nThe following will result in an HA Bridge error, but the action actually does work (Alexa will just complain a lot saying she couldn't turn off the light when she really did)\r\n\r\nhttp://localhost/devices/FamilyRoom%20-%20Light%20-%20Couch?isOn=1&_method=put\r\n\r\nI'd love to see the spaces supported so that I don't have to rename all of my devices :-) Indigo does have the concept of a device ID to use in place of the names so renaming something doesn't break anything... but the RESTful API is a bit older and doesn't yet support, they've said they will be fixing at some point in the future. Currently only Python and AppleScript can use the ID.\r\n\r\nThanks for all the work on this bridge, really great stuff!"},"comment":{"url":"https://api.github.com/repos/bwssytems/ha-bridge/issues/comments/261720297","html_url":"https://github.com/bwssytems/ha-bridge/issues/252#issuecomment-261720297","issue_url":"https://api.github.com/repos/bwssytems/ha-bridge/issues/252","id":261720297,"user":{"login":"BradyRosino","id":11621297,"avatar_url":"https://avatars.githubusercontent.com/u/11621297?v=3","gravatar_id":"","url":"https://api.github.com/users/BradyRosino","html_url":"https://github.com/BradyRosino","followers_url":"https://api.github.com/users/BradyRosino/followers","following_url":"https://api.github.com/users/BradyRosino/following{/other_user}","gists_url":"https://api.github.com/users/BradyRosino/gists{/gist_id}","starred_url":"https://api.github.com/users/BradyRosino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BradyRosino/subscriptions","organizations_url":"https://api.github.com/users/BradyRosino/orgs","repos_url":"https://api.github.com/users/BradyRosino/repos","events_url":"https://api.github.com/users/BradyRosino/events{/privacy}","received_events_url":"https://api.github.com/users/BradyRosino/received_events","type":"User","site_admin":false},"created_at":"2016-11-19T15:28:11Z","updated_at":"2016-11-19T15:28:11Z","body":"Looking closer in to the error, it looks like HA bridge is maybe not maintaining the URL encoding before making the call.\r\n\r\nYou'll notice the final HA Bridge error includes the %20 but everywhere else it actually just displays the space."}}
{"actor":{"display_login":"BradyRosino"}}