{"action":"created","issue":{"url":"https://api.github.com/repos/jgyates/genmon/issues/155","repository_url":"https://api.github.com/repos/jgyates/genmon","labels_url":"https://api.github.com/repos/jgyates/genmon/issues/155/labels{/name}","comments_url":"https://api.github.com/repos/jgyates/genmon/issues/155/comments","events_url":"https://api.github.com/repos/jgyates/genmon/issues/155/events","html_url":"https://github.com/jgyates/genmon/issues/155","id":347671832,"node_id":"MDU6SXNzdWUzNDc2NzE4MzI=","number":155,"title":"Informational - integration with Home Assistant","user":{"login":"lmamakos","id":1544466,"node_id":"MDQ6VXNlcjE1NDQ0NjY=","avatar_url":"https://avatars3.githubusercontent.com/u/1544466?v=4","gravatar_id":"","url":"https://api.github.com/users/lmamakos","html_url":"https://github.com/lmamakos","followers_url":"https://api.github.com/users/lmamakos/followers","following_url":"https://api.github.com/users/lmamakos/following{/other_user}","gists_url":"https://api.github.com/users/lmamakos/gists{/gist_id}","starred_url":"https://api.github.com/users/lmamakos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmamakos/subscriptions","organizations_url":"https://api.github.com/users/lmamakos/orgs","repos_url":"https://api.github.com/users/lmamakos/repos","events_url":"https://api.github.com/users/lmamakos/events{/privacy}","received_events_url":"https://api.github.com/users/lmamakos/received_events","type":"User","site_admin":false},"labels":[{"id":1015550162,"node_id":"MDU6TGFiZWwxMDE1NTUwMTYy","url":"https://api.github.com/repos/jgyates/genmon/labels/automation%20-%20monitoring%20apps","name":"automation - monitoring apps","color":"447f0a","default":false},{"id":563850594,"node_id":"MDU6TGFiZWw1NjM4NTA1OTQ=","url":"https://api.github.com/repos/jgyates/genmon/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":581091980,"node_id":"MDU6TGFiZWw1ODEwOTE5ODA=","url":"https://api.github.com/repos/jgyates/genmon/labels/informational","name":"informational","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":42,"created_at":"2018-08-05T05:53:50Z","updated_at":"2018-12-08T21:12:27Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"HI!  I'm a new genmon user, only a couple weeks now.  I'm using a Pi Zero W with a USB attached WiFi and external antenna.  Maybe some photos of the build later.\r\n\r\nI recently did some work to get the open-source Home Automation software I use, called [Home Assistant](https://www.home-assistant.io/) to integrate with genmon.  I used the JSON interface in genserv.py as the means to get the good stuff out, and then some fancy sensor configuration in Home Assistant to parse out the JSON values I was interested in.  DIdn't have write one line of code or hack on anything in genmon to solve my problem.  See: https://community.home-assistant.io/t/monitor-your-generac-generator-with-home-assistant/62701 on the Home Assistant community forum where I put an example of this out there for others to use/learn from.\r\n\r\nIf you're looking to do more complex automation and integrate monitoring and control of lots of other types of things, you should seriously look at Home Assistant for that purpose.  It integrates with all sorts of devices/products and is easy to do your own thing.  And there's a bunch of UI options available, both as part of the basic distribution, to third-party contributions that target, e.g., tablet displays to hang on the wall.   Cool stuff, and even my wife likes having it in the house, controlling the lighting (mostly Z-Wave, some Sonoff Wi-Fi switches, some X-10 powerline modules connected off my alarm system, which it also talks to and can see zone states, etc.)\r\n\r\nAnyway, back to genmon..\r\n\r\nThe only suggestion I'd have from going through this is to have some additional JSON fields with strictly numeric values, rather than formatted as \"242 V\", where I need to strip off the units before doing a conversion to a numeric value.  Happily, Home Assistant has a jinja2 template engine embedded in it, with some facilities for doing just that sort of hacking around.  E.g.,\r\n\r\n`   value_template: '{{ states.sensor.genmon_monitor_json.attributes[\"Monitor\"][\"Platform Stats\"][\"CPU Temperature\"] | regex_replace(\" F\",\"\") | float | round(1) }}'`\r\n\r\nThanks for building this really useful software and sharing it."},"comment":{"url":"https://api.github.com/repos/jgyates/genmon/issues/comments/445490338","html_url":"https://github.com/jgyates/genmon/issues/155#issuecomment-445490338","issue_url":"https://api.github.com/repos/jgyates/genmon/issues/155","id":445490338,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTQ5MDMzOA==","user":{"login":"liltux","id":17954856,"node_id":"MDQ6VXNlcjE3OTU0ODU2","avatar_url":"https://avatars3.githubusercontent.com/u/17954856?v=4","gravatar_id":"","url":"https://api.github.com/users/liltux","html_url":"https://github.com/liltux","followers_url":"https://api.github.com/users/liltux/followers","following_url":"https://api.github.com/users/liltux/following{/other_user}","gists_url":"https://api.github.com/users/liltux/gists{/gist_id}","starred_url":"https://api.github.com/users/liltux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liltux/subscriptions","organizations_url":"https://api.github.com/users/liltux/orgs","repos_url":"https://api.github.com/users/liltux/repos","events_url":"https://api.github.com/users/liltux/events{/privacy}","received_events_url":"https://api.github.com/users/liltux/received_events","type":"User","site_admin":false},"created_at":"2018-12-08T21:12:27Z","updated_at":"2018-12-08T21:12:27Z","author_association":"NONE","body":"@jgyates have you thought about an option for adding ssl/tls connection?  I am wanting to try and tweak your code, but my luck I will just break it.  Just curious."}}
{"actor":{"display_login":"liltux"}}