{"action":"created","issue":{"url":"https://api.github.com/repos/bwssytems/ha-bridge/issues/455","repository_url":"https://api.github.com/repos/bwssytems/ha-bridge","labels_url":"https://api.github.com/repos/bwssytems/ha-bridge/issues/455/labels{/name}","comments_url":"https://api.github.com/repos/bwssytems/ha-bridge/issues/455/comments","events_url":"https://api.github.com/repos/bwssytems/ha-bridge/issues/455/events","html_url":"https://github.com/bwssytems/ha-bridge/issues/455","id":206555927,"number":455,"title":"issue using REST api","user":{"login":"cipher2k","id":20582892,"avatar_url":"https://avatars.githubusercontent.com/u/20582892?v=3","gravatar_id":"","url":"https://api.github.com/users/cipher2k","html_url":"https://github.com/cipher2k","followers_url":"https://api.github.com/users/cipher2k/followers","following_url":"https://api.github.com/users/cipher2k/following{/other_user}","gists_url":"https://api.github.com/users/cipher2k/gists{/gist_id}","starred_url":"https://api.github.com/users/cipher2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cipher2k/subscriptions","organizations_url":"https://api.github.com/users/cipher2k/orgs","repos_url":"https://api.github.com/users/cipher2k/repos","events_url":"https://api.github.com/users/cipher2k/events{/privacy}","received_events_url":"https://api.github.com/users/cipher2k/received_events","type":"User","site_admin":false},"labels":[{"id":241628914,"url":"https://api.github.com/repos/bwssytems/ha-bridge/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-02-09T16:31:56Z","updated_at":"2017-02-13T02:56:11Z","closed_at":null,"body":"I have an issue using the REST api to add/modify a harmony activity.\r\n\r\nThis JSON works fine:\r\n\r\n`{\"id\":\"23\",\"deviceType\":\"activity\",\"name\":\"Fire\",\"targetDevice\":\"Schlafzimmer\",\"mapType\":\"harmonyActivity\",\"mapId\":24338000,\"onUrl\":\"[{\\\"item\\\":\\\"{\\\\\\\"name\\\\\\\":\\\\\\\"24338000\\\\\\\",\\\\\\\"hub\\\\\\\":\\\\\\\"Schlafzimmer\\\\\\\"}\\\",\\\"type\\\":\\\"harmonyActivity\\\"}]\",\"offUrl\":\"[{\\\"item\\\":\\\"{\\\\\\\"name\\\\\\\":\\\\\\\"-1\\\\\\\",\\\\\\\"hub\\\\\\\":\\\\\\\"Schlafzimmer\\\\\\\"}\\\",\\\"type\\\":\\\"harmonyActivity\\\"}]\"}`\r\n\r\n\r\nBut this JSON does not:\r\n\r\n`{ \"name\" : \"Fire\", \"id\" : \"23\", \"deviceType\" : \"activity\", \"targetDevice\" : \"Schlafzimmer\", \"mapType\" : \"harmonyActivity\", \"mapId\" : 24338000, \"onUrl\" : \"[{ \\\"item\\\" : \\\"{ \\\\\\\"name\\\\\\\" : \\\\\\\"24338000\\\\\\\", \\\\\\\"hub\\\\\\\" : \\\\\\\"Schlafzimmer\\\\\\\" }\\\", \\\"type\\\" : \\\"harmonyActivity\\\" }]\", \"offUrl\" : \"[{ \\\"item\\\" : \\\"{ \\\\\\\"name\\\\\\\" : \\\\\\\"-1\\\\\\\", \\\\\\\"hub\\\\\\\" : \\\\\\\"Schlafzimmer\\\\\\\" }\\\", \\\"type\\\" : \\\"harmonyActivity\\\" }]\" }`\r\n\r\nThe second JSON does not respond with an error, but when I look into HA Bridge then I see that in On Items the type is not set to Harmony Activity and in Target Items I see the following JSON:\r\n`[{\"item\":\"{ \\\"name\\\" : \\\"24338000\\\", \\\"hub\\\" : \\\"Schlafzimmer\\\" }\",\"type\":\"harmonyActivity\"}]`\r\n\r\nDo you have an explanation for this behavior? Both JSONs are equal to me, except slightly different order and the spaces.\r\n"},"comment":{"url":"https://api.github.com/repos/bwssytems/ha-bridge/issues/comments/279283141","html_url":"https://github.com/bwssytems/ha-bridge/issues/455#issuecomment-279283141","issue_url":"https://api.github.com/repos/bwssytems/ha-bridge/issues/455","id":279283141,"user":{"login":"bwssytems","id":13528314,"avatar_url":"https://avatars.githubusercontent.com/u/13528314?v=3","gravatar_id":"","url":"https://api.github.com/users/bwssytems","html_url":"https://github.com/bwssytems","followers_url":"https://api.github.com/users/bwssytems/followers","following_url":"https://api.github.com/users/bwssytems/following{/other_user}","gists_url":"https://api.github.com/users/bwssytems/gists{/gist_id}","starred_url":"https://api.github.com/users/bwssytems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwssytems/subscriptions","organizations_url":"https://api.github.com/users/bwssytems/orgs","repos_url":"https://api.github.com/users/bwssytems/repos","events_url":"https://api.github.com/users/bwssytems/events{/privacy}","received_events_url":"https://api.github.com/users/bwssytems/received_events","type":"User","site_admin":false},"created_at":"2017-02-13T02:56:11Z","updated_at":"2017-02-13T02:56:11Z","body":"Wow, I do not have an explanation for this as I get the same results. Will review some more."}}
{"actor":{"display_login":"bwssytems"}}