{"action":"created","issue":{"url":"https://api.github.com/repos/pavoni/pyvera/issues/78","repository_url":"https://api.github.com/repos/pavoni/pyvera","labels_url":"https://api.github.com/repos/pavoni/pyvera/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/pavoni/pyvera/issues/78/comments","events_url":"https://api.github.com/repos/pavoni/pyvera/issues/78/events","html_url":"https://github.com/pavoni/pyvera/issues/78","id":273174365,"number":78,"title":"I have a bit of code I wrote that you may want/use","user":{"login":"kdschlosser","id":10932297,"avatar_url":"https://avatars0.githubusercontent.com/u/10932297?v=4","gravatar_id":"","url":"https://api.github.com/users/kdschlosser","html_url":"https://github.com/kdschlosser","followers_url":"https://api.github.com/users/kdschlosser/followers","following_url":"https://api.github.com/users/kdschlosser/following{/other_user}","gists_url":"https://api.github.com/users/kdschlosser/gists{/gist_id}","starred_url":"https://api.github.com/users/kdschlosser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdschlosser/subscriptions","organizations_url":"https://api.github.com/users/kdschlosser/orgs","repos_url":"https://api.github.com/users/kdschlosser/repos","events_url":"https://api.github.com/users/kdschlosser/events{/privacy}","received_events_url":"https://api.github.com/users/kdschlosser/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-11-11T20:37:09Z","updated_at":"2017-11-28T10:07:16Z","closed_at":null,"author_association":"NONE","body":"I wrote the attached file and what it does is is leverages upnp to grab the available services their attributes and methods. it also grabs information from /data_request?id=invoke to fill in the missing bits. It auto generates code for classes for the different services that are available. and in these classes are the default attributes, properties and also methods that can be used for that specific service.\r\n\r\nBy utilizing the services list in a device when requesting the information from the Vera you are able to build the classes for the devices dynamically. But this should help to expose the whole of the Vera API.\r\n\r\nI do not know if this is of interest to you or not. But if it is something you can use in whole, or a part there of. You are more then welcome to.\r\n\r\nThis is not a final written version it needs quite a bit of cleanup. but it is a good proof of concept.\r\n\r\nIt writes the files into %APPDATA%\\MiCasaVerde_Vera in Windows and to ~.MiCasaVerde_Vera on linux.\r\n\r\nNice thing is it also creates any classes needed for the plugins as well. So no need to have to support a plugin by direct code\r\n[vera_build.zip](https://github.com/pavoni/pyvera/files/1464089/vera_build.zip)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pavoni/pyvera/issues/comments/347474251","html_url":"https://github.com/pavoni/pyvera/issues/78#issuecomment-347474251","issue_url":"https://api.github.com/repos/pavoni/pyvera/issues/78","id":347474251,"user":{"login":"pavoni","id":4487313,"avatar_url":"https://avatars2.githubusercontent.com/u/4487313?v=4","gravatar_id":"","url":"https://api.github.com/users/pavoni","html_url":"https://github.com/pavoni","followers_url":"https://api.github.com/users/pavoni/followers","following_url":"https://api.github.com/users/pavoni/following{/other_user}","gists_url":"https://api.github.com/users/pavoni/gists{/gist_id}","starred_url":"https://api.github.com/users/pavoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavoni/subscriptions","organizations_url":"https://api.github.com/users/pavoni/orgs","repos_url":"https://api.github.com/users/pavoni/repos","events_url":"https://api.github.com/users/pavoni/events{/privacy}","received_events_url":"https://api.github.com/users/pavoni/received_events","type":"User","site_admin":false},"created_at":"2017-11-28T10:07:16Z","updated_at":"2017-11-28T10:07:16Z","author_association":"OWNER","body":"Sorry - been a busy few weeks - afraid it looks like it will continue to another couple of weeks - but would love to take a look... "}}
{"actor":{"display_login":"pavoni"}}