{"action":"created","issue":{"url":"https://api.github.com/repos/jishi/node-sonos-http-api/issues/109","repository_url":"https://api.github.com/repos/jishi/node-sonos-http-api","labels_url":"https://api.github.com/repos/jishi/node-sonos-http-api/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/jishi/node-sonos-http-api/issues/109/comments","events_url":"https://api.github.com/repos/jishi/node-sonos-http-api/issues/109/events","html_url":"https://github.com/jishi/node-sonos-http-api/issues/109","id":123195179,"number":109,"title":"Feature Request: SPDIF Source","user":{"login":"NovaGL","id":16315601,"avatar_url":"https://avatars.githubusercontent.com/u/16315601?v=3","gravatar_id":"","url":"https://api.github.com/users/NovaGL","html_url":"https://github.com/NovaGL","followers_url":"https://api.github.com/users/NovaGL/followers","following_url":"https://api.github.com/users/NovaGL/following{/other_user}","gists_url":"https://api.github.com/users/NovaGL/gists{/gist_id}","starred_url":"https://api.github.com/users/NovaGL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NovaGL/subscriptions","organizations_url":"https://api.github.com/users/NovaGL/orgs","repos_url":"https://api.github.com/users/NovaGL/repos","events_url":"https://api.github.com/users/NovaGL/events{/privacy}","received_events_url":"https://api.github.com/users/NovaGL/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-12-21T01:34:03Z","updated_at":"2016-02-11T08:53:48Z","closed_at":null,"body":"I can understand if you don't want to do this as it's possible via presets, but I would like the option.\r\n\t\t\r\nThe way I would go about it is:\r\n\r\nGet Zone info from\r\n\r\n```xml\r\nPOST /DeviceProperties/Control HTTP/1.1\r\nHOST: SONOS-IP:1400\r\nSOAPACTION: \"urn:schemas-upnp-org:service:DeviceProperties:1#GetZoneInfo\"\r\nCONTENT-TYPE: text/xml; charset=\"utf-8\"\r\n\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<s:Envelope s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\">\r\n   <s:Body>\r\n      <u:GetZoneInfo xmlns:u=\"urn:schemas-upnp-org:service:DeviceProperties:1\" />\r\n   </s:Body>\r\n</s:Envelope>\r\n```\r\nFrom the output get <MACAddress>XX:XX:XX:XX:XX:XX</MACAddress> remove all \":\"\r\n\r\nThen combine it with \"x-sonos-htastream:RINCON_\" + MACAddress + \"01400:spdif\"\r\n\r\n```xml\r\n    <s:Envelope\r\n        xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\"\r\n        s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">\r\n        <s:Body>\r\n            <u:SetAVTransportURI\r\n                xmlns:u=\"urn:schemas-upnp-org:service:AVTransport:1\">\r\n                <InstanceID>\r\n                    0\r\n                    </InstanceID>\r\n                <CurrentURI>\r\n                    x-sonos-htastream:RINCON_XXXXXXXXXXXX01400:spdif\t\t\t\t\t\r\n                    </CurrentURI>\r\n                <CurrentURIMetaData>\r\n                    </CurrentURIMetaData>\r\n                </u:SetAVTransportURI>\r\n            </s:Body>\r\n        </s:Envelope>\r\n```\r\n\r\nThanks for reading.\t\t"},"comment":{"url":"https://api.github.com/repos/jishi/node-sonos-http-api/issues/comments/182771542","html_url":"https://github.com/jishi/node-sonos-http-api/issues/109#issuecomment-182771542","issue_url":"https://api.github.com/repos/jishi/node-sonos-http-api/issues/109","id":182771542,"user":{"login":"jishi","id":3165475,"avatar_url":"https://avatars.githubusercontent.com/u/3165475?v=3","gravatar_id":"","url":"https://api.github.com/users/jishi","html_url":"https://github.com/jishi","followers_url":"https://api.github.com/users/jishi/followers","following_url":"https://api.github.com/users/jishi/following{/other_user}","gists_url":"https://api.github.com/users/jishi/gists{/gist_id}","starred_url":"https://api.github.com/users/jishi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jishi/subscriptions","organizations_url":"https://api.github.com/users/jishi/orgs","repos_url":"https://api.github.com/users/jishi/repos","events_url":"https://api.github.com/users/jishi/events{/privacy}","received_events_url":"https://api.github.com/users/jishi/received_events","type":"User","site_admin":false},"created_at":"2016-02-11T08:53:48Z","updated_at":"2016-02-11T08:53:48Z","body":"Model names, model numbers follow the same scheme, meaning that I can not infer what capabilities a certain device has, which makes it impossible to support new devices without actually adding support for them. That would be the dream scenario, but of course, if that is not possible, I can always use model number. \r\n\r\nAny difference in properties that are evented between a playbar and a regular player are of interest. "}}