{"action":"created","issue":{"url":"https://api.github.com/repos/StevenLooman/async_upnp_client/issues/2","repository_url":"https://api.github.com/repos/StevenLooman/async_upnp_client","labels_url":"https://api.github.com/repos/StevenLooman/async_upnp_client/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/StevenLooman/async_upnp_client/issues/2/comments","events_url":"https://api.github.com/repos/StevenLooman/async_upnp_client/issues/2/events","html_url":"https://github.com/StevenLooman/async_upnp_client/issues/2","id":334968940,"node_id":"MDU6SXNzdWUzMzQ5Njg5NDA=","number":2,"title":"Invalid value errors","user":{"login":"rytilahti","id":3705853,"node_id":"MDQ6VXNlcjM3MDU4NTM=","avatar_url":"https://avatars3.githubusercontent.com/u/3705853?v=4","gravatar_id":"","url":"https://api.github.com/users/rytilahti","html_url":"https://github.com/rytilahti","followers_url":"https://api.github.com/users/rytilahti/followers","following_url":"https://api.github.com/users/rytilahti/following{/other_user}","gists_url":"https://api.github.com/users/rytilahti/gists{/gist_id}","starred_url":"https://api.github.com/users/rytilahti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rytilahti/subscriptions","organizations_url":"https://api.github.com/users/rytilahti/orgs","repos_url":"https://api.github.com/users/rytilahti/repos","events_url":"https://api.github.com/users/rytilahti/events{/privacy}","received_events_url":"https://api.github.com/users/rytilahti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-22T18:01:58Z","updated_at":"2018-06-23T08:09:31Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I'm getting the following errors during the playback/on state changes:\r\n\r\nJun 22 19:56:45 nuc hass[4771]: 2018-06-22 19:56:45 ERROR (MainThread) [async_upnp_client.async_upnp_client] Got invalid value for <StateVariable(NumberOfTracks, ui4)>: 18\r\nJun 22 19:56:45 nuc hass[4771]: 2018-06-22 19:56:45 ERROR (MainThread) [async_upnp_client.async_upnp_client] Got invalid value for <StateVariable(CurrentTrack, ui4)>: 11\r\n\r\nWhich should probably be allowed based on http://upnp.org/specs/av/UPnP-av-AVTransport-v1-Service.pdf .\r\n\r\nAn event payload example:\r\n```\r\n<Event xmlns=\"urn:schemas-upnp-org:metadata-1-0/AVT/\" xmlns:mi=\"urn:schemas-mi-com:metadata-1-0/\">\r\nJun 22 20:00:48 nuc hass[4771]:     <InstanceID val=\"0\">\r\nJun 22 20:00:48 nuc hass[4771]:         <TransportState val=\"PLAYING\"/>\r\nJun 22 20:00:48 nuc hass[4771]:         <CurrentPlayMode val=\"REPEAT_ALL\"/>\r\nJun 22 20:00:48 nuc hass[4771]:         <CurrentTransportActions val=\"Next,Previous,Seek,Pause,Stop\"/>\r\nJun 22 20:00:48 nuc hass[4771]:         <NumberOfTracks val=\"18\"/>\r\nJun 22 20:00:48 nuc hass[4771]:         <RelativeTimePosition val=\"00:00:00\"/>\r\nJun 22 20:00:48 nuc hass[4771]:         <CurrentTrack val=\"12\"/>\r\nJun 22 20:00:48 nuc hass[4771]:         <CurrentTrackURI val=\"x-mi://ft//Sibelius++-+Symphony+6+%28+Full+%29-+Karajan+-FChg3ERp6C8.ogg?obj=MS%3AEMMC\"/>\r\nJun 22 20:00:48 nuc hass[4771]:         <CurrentTrackDuration val=\"00:29:05\"/>\r\nJun 22 20:00:48 nuc hass[4771]:         <CurrentMediaDuration val=\"00:29:05\"/>\r\nJun 22 20:00:48 nuc hass[4771]:         <AVTransportURI val=\"x-mi://sys/transport?id=PLAYLIST\"/>\r\nJun 22 20:00:48 nuc hass[4771]:         <CurrentTrackMetaData val=\"&lt;DIDL-Lite xmlns=&quot;urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/&quot; xmlns:upnp=&quot;urn:schemas-upnp-org:metadata-1-0/upnp/&quot; xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:mi=&quot;urn:schemas-mi-com:metadata-1-0/&quot;&gt;\r\nJun 22 20:00:48 nuc hass[4771]:     &lt;item id=&quot;Q:4/12&quot; parentID=&quot;Q:4&quot; restricted=&quot;true&quot;&gt;\r\nJun 22 20:00:48 nuc hass[4771]:         &lt;dc:title&gt;Sibelius  - Symphony 6 ( Full )- Karajan -FChg3ERp6C8&lt;/dc:title&gt;\r\nJun 22 20:00:48 nuc hass[4771]:         &lt;dc:creator&gt;未知&lt;/dc:creator&gt;\r\nJun 22 20:00:48 nuc hass[4771]:         &lt;upnp:class&gt;object.item.audioItem.musicTrack&lt;/upnp:class&gt;\r\nJun 22 20:00:48 nuc hass[4771]:         &lt;upnp:artist&gt;未知&lt;/upnp:artist&gt;\r\nJun 22 20:00:48 nuc hass[4771]:         &lt;upnp:album&gt;未知&lt;/upnp:album&gt;\r\nJun 22 20:00:48 nuc hass[4771]:         &lt;mi:status&gt;enable&lt;/mi:status&gt;\r\nJun 22 20:00:48 nuc hass[4771]:         &lt;res protocolInfo=&quot;x-mi:*:audio/mpegurl:*&quot;&gt;x-mi://ft//Sibelius++-+Symphony+6+%28+Full+%29-+Karajan+-FChg3ERp6C8.ogg?obj=MS%3AEMMC&lt;/res&gt;\r\nJun 22 20:00:48 nuc hass[4771]:     &lt;/item&gt;\r\nJun 22 20:00:48 nuc hass[4771]: &lt;/DIDL-Lite&gt;\r\nJun 22 20:00:48 nuc hass[4771]: \"/>\r\nJun 22 20:00:48 nuc hass[4771]:         <mi:NextTrackURI val=\"x-mi://ft//Sibelius++-+The+Swan+of+Tuonela+-+Karajan-HjyLWoJvtME.opus?obj=MS%3AEMMC\"/>\r\nJun 22 20:00:48 nuc hass[4771]:         <mi:NextTrackMetaData val=\"&lt;DIDL-Lite xmlns=&quot;urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/&quot; xmlns:upnp=&quot;urn:schemas-upnp-org:metadata-1-0/upnp/&quot; xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:mi=&quot;urn:schemas-mi-com:metadata-1-0/&quot;&gt;\r\nJun 22 20:00:48 nuc hass[4771]:     &lt;item id=&quot;Q:4/13&quot; parentID=&quot;Q:4&quot; restricted=&quot;true&quot;&gt;\r\nJun 22 20:00:48 nuc hass[4771]:         &lt;dc:title&gt;Sibelius  - The Swan of Tuonela - Karajan-HjyLWoJvtME&lt;/dc:title&gt;\r\nJun 22 20:00:48 nuc hass[4771]:         &lt;dc:creator&gt;未知&lt;/dc:creator&gt;\r\nJun 22 20:00:48 nuc hass[4771]:         &lt;upnp:class&gt;object.item.audioItem.musicTrack&lt;/upnp:class&gt;\r\nJun 22 20:00:48 nuc hass[4771]:         &lt;upnp:artist&gt;未知&lt;/upnp:artist&gt;\r\nJun 22 20:00:48 nuc hass[4771]:         &lt;upnp:album&gt;未知&lt;/upnp:album&gt;\r\nJun 22 20:00:48 nuc hass[4771]:         &lt;mi:status&gt;enable&lt;/mi:status&gt;\r\nJun 22 20:00:48 nuc hass[4771]:         &lt;res protocolInfo=&quot;x-mi:*:audio/mpegurl:*&quot;&gt;x-mi://ft//Sibelius++-+The+Swan+of+Tuonela+-+Karajan-HjyLWoJvtME.opus?obj=MS%3AEMMC&lt;/res&gt;\r\nJun 22 20:00:48 nuc hass[4771]:     &lt;/item&gt;\r\nJun 22 20:00:48 nuc hass[4771]: &lt;/DIDL-Lite&gt;\r\nJun 22 20:00:48 nuc hass[4771]: \"/>\r\nJun 22 20:00:48 nuc hass[4771]:         <mi:Transport val=\"PLAYLIST\"/>\r\nJun 22 20:00:48 nuc hass[4771]:         <mi:playlist_transport_uri val=\"x-mi://sys/playlist?id=101\"/>\r\nJun 22 20:00:48 nuc hass[4771]:         <mi:SystemUpdateId value=\"37\"/>\r\nJun 22 20:00:48 nuc hass[4771]:     </InstanceID>\r\nJun 22 20:00:48 nuc hass[4771]: </Event>\r\n```"},"comment":{"url":"https://api.github.com/repos/StevenLooman/async_upnp_client/issues/comments/399650491","html_url":"https://github.com/StevenLooman/async_upnp_client/issues/2#issuecomment-399650491","issue_url":"https://api.github.com/repos/StevenLooman/async_upnp_client/issues/2","id":399650491,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTY1MDQ5MQ==","user":{"login":"StevenLooman","id":724259,"node_id":"MDQ6VXNlcjcyNDI1OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/724259?v=4","gravatar_id":"","url":"https://api.github.com/users/StevenLooman","html_url":"https://github.com/StevenLooman","followers_url":"https://api.github.com/users/StevenLooman/followers","following_url":"https://api.github.com/users/StevenLooman/following{/other_user}","gists_url":"https://api.github.com/users/StevenLooman/gists{/gist_id}","starred_url":"https://api.github.com/users/StevenLooman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StevenLooman/subscriptions","organizations_url":"https://api.github.com/users/StevenLooman/orgs","repos_url":"https://api.github.com/users/StevenLooman/repos","events_url":"https://api.github.com/users/StevenLooman/events{/privacy}","received_events_url":"https://api.github.com/users/StevenLooman/received_events","type":"User","site_admin":false},"created_at":"2018-06-23T08:09:31Z","updated_at":"2018-06-23T08:09:31Z","author_association":"OWNER","body":"Thank you for reporting this.\r\n\r\nThe library contains specific code to do conversion of types, such as ui4, specified here https://github.com/StevenLooman/async_upnp_client/blob/c003ed0c3518b52aac3f89d16685c2738a8c7caf/async_upnp_client/async_upnp_client.py#L609\r\nand converted here\r\nhttps://github.com/StevenLooman/async_upnp_client/blob/c003ed0c3518b52aac3f89d16685c2738a8c7caf/async_upnp_client/async_upnp_client.py#L576\r\n\r\nNot sure what happens, but I'll investigate."}}
{"actor":{"display_login":"StevenLooman"}}