{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/appdaemon/issues/238","repository_url":"https://api.github.com/repos/home-assistant/appdaemon","labels_url":"https://api.github.com/repos/home-assistant/appdaemon/issues/238/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/appdaemon/issues/238/comments","events_url":"https://api.github.com/repos/home-assistant/appdaemon/issues/238/events","html_url":"https://github.com/home-assistant/appdaemon/pull/238","id":296441313,"number":238,"title":"Added mqtt plugin","user":{"login":"tschmidty69","id":16886217,"avatar_url":"https://avatars3.githubusercontent.com/u/16886217?v=4","gravatar_id":"","url":"https://api.github.com/users/tschmidty69","html_url":"https://github.com/tschmidty69","followers_url":"https://api.github.com/users/tschmidty69/followers","following_url":"https://api.github.com/users/tschmidty69/following{/other_user}","gists_url":"https://api.github.com/users/tschmidty69/gists{/gist_id}","starred_url":"https://api.github.com/users/tschmidty69/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tschmidty69/subscriptions","organizations_url":"https://api.github.com/users/tschmidty69/orgs","repos_url":"https://api.github.com/users/tschmidty69/repos","events_url":"https://api.github.com/users/tschmidty69/events{/privacy}","received_events_url":"https://api.github.com/users/tschmidty69/received_events","type":"User","site_admin":false},"labels":[{"id":528252526,"url":"https://api.github.com/repos/home-assistant/appdaemon/labels/cla-signed","name":"cla-signed","color":"008000","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":58,"created_at":"2018-02-12T16:36:35Z","updated_at":"2018-05-25T08:30:25Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/home-assistant/appdaemon/pulls/238","html_url":"https://github.com/home-assistant/appdaemon/pull/238","diff_url":"https://github.com/home-assistant/appdaemon/pull/238.diff","patch_url":"https://github.com/home-assistant/appdaemon/pull/238.patch"},"body":"appdaemon config\r\n\r\n```yaml\r\n    MQTT:\r\n      type: mqtt\r\n      verbose: True\r\n      mqtt_client_host: 'MQTT_IP'\r\n      mqtt_client_port: 1883\r\n      mqtt_client_user: !secret mqtt_user\r\n      mqtt_client_password: !secret mqtt_password\r\n      mqtt_ca_cert: ca certficate used to verify broker\r\n      mqtt_client_cert: mycert\r\n      mqtt_client_key: mykey\r\n      mqtt_verify_cert: false\r\n      mqtt_client_topics:\r\n        - hermes/intent/#\r\n        - hermes/hotword/#\r\n```\r\nExample app to bridge to another app\r\napp.yaml\r\n```yaml\r\nmqtt_demo:\r\n  module: mqtt_demo\r\n  class: mqtt_demo\r\n  dependencies: jarvis_core\r\n```\r\nmqtt_demo.py\r\n```\r\nimport appdaemon.plugins.mqtt.mqttapi as mqtt\r\n\r\n\r\nclass mqtt_demo(mqtt.Mqtt):\r\n\r\n    def initialize(self):\r\n        self.log(\"__function__: MQTT DEMO Listening\")\r\n        self.listen_event(self.mqtt_message,\r\n                          'MQTT_MESSAGE')\r\n\r\n    def mqtt_message(self, event_name, data, *args, **kwargs):\r\n        self.log(\"__function__: %s\" % data)\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/home-assistant/appdaemon/issues/comments/391981571","html_url":"https://github.com/home-assistant/appdaemon/pull/238#issuecomment-391981571","issue_url":"https://api.github.com/repos/home-assistant/appdaemon/issues/238","id":391981571,"user":{"login":"Odianosen25","id":20871413,"avatar_url":"https://avatars2.githubusercontent.com/u/20871413?v=4","gravatar_id":"","url":"https://api.github.com/users/Odianosen25","html_url":"https://github.com/Odianosen25","followers_url":"https://api.github.com/users/Odianosen25/followers","following_url":"https://api.github.com/users/Odianosen25/following{/other_user}","gists_url":"https://api.github.com/users/Odianosen25/gists{/gist_id}","starred_url":"https://api.github.com/users/Odianosen25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Odianosen25/subscriptions","organizations_url":"https://api.github.com/users/Odianosen25/orgs","repos_url":"https://api.github.com/users/Odianosen25/repos","events_url":"https://api.github.com/users/Odianosen25/events{/privacy}","received_events_url":"https://api.github.com/users/Odianosen25/received_events","type":"User","site_admin":false},"created_at":"2018-05-25T08:30:25Z","updated_at":"2018-05-25T08:30:25Z","author_association":"NONE","body":"@uchagani, you can try using my plugin update here #303. You din't need it to be set."}}
{"actor":{"display_login":"Odianosen25"}}