{"action":"created","issue":{"url":"https://api.github.com/repos/danielwelch/hassio-zigbee2mqtt/issues/9","repository_url":"https://api.github.com/repos/danielwelch/hassio-zigbee2mqtt","labels_url":"https://api.github.com/repos/danielwelch/hassio-zigbee2mqtt/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/danielwelch/hassio-zigbee2mqtt/issues/9/comments","events_url":"https://api.github.com/repos/danielwelch/hassio-zigbee2mqtt/issues/9/events","html_url":"https://github.com/danielwelch/hassio-zigbee2mqtt/issues/9","id":323814953,"number":9,"title":"Addon config not working","user":{"login":"james-fry","id":5823294,"avatar_url":"https://avatars1.githubusercontent.com/u/5823294?v=4","gravatar_id":"","url":"https://api.github.com/users/james-fry","html_url":"https://github.com/james-fry","followers_url":"https://api.github.com/users/james-fry/followers","following_url":"https://api.github.com/users/james-fry/following{/other_user}","gists_url":"https://api.github.com/users/james-fry/gists{/gist_id}","starred_url":"https://api.github.com/users/james-fry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/james-fry/subscriptions","organizations_url":"https://api.github.com/users/james-fry/orgs","repos_url":"https://api.github.com/users/james-fry/repos","events_url":"https://api.github.com/users/james-fry/events{/privacy}","received_events_url":"https://api.github.com/users/james-fry/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-05-16T22:50:52Z","updated_at":"2018-05-22T20:35:09Z","closed_at":null,"author_association":"NONE","body":"I was expecting the addon config JSON to be written as configuration.yaml in the data_path dir (where the app looks for it).\r\n\r\ne.g. \r\n{\r\n  \"data_path\": \"/share/zigbee2mqtt\",\r\n  \"homeassistant\": true,\r\n  \"permit_join\": true,\r\n  \"mqtt_base_topic\": \"zigbee2mqtt\",\r\n  \"mqtt_server\": \"mqtt://192.168.1.10:1883\",\r\n  \"serial_port\": \"/dev/ttyACM0\",\r\n  \"mqtt_user\": \"sensors\",\r\n  \"mqtt_pass\": \"xxxxxxxx\"\r\n}\r\n\r\nwould be written out as:\r\n\r\n```\r\n# Home Assistant integration (MQTT discovery)\r\nhomeassistant: true\r\n\r\n# allow new devices to join\r\npermit_join: true\r\n\r\n# MQTT settings\r\nmqtt:\r\n  # MQTT base topic for zigbee2mqtt MQTT messages\r\n  base_topic: zigbee2mqtt\r\n  # MQTT server URL\r\n  server: 'mqtt://192.168.1.10:1883'\r\n  # MQTT server authentication, uncomment if required:\r\n  user: sensors\r\n  password: xxxxxxxx\r\n\r\n# Serial settings\r\nserial:\r\n  # Location of CC2531 USB sniffer\r\n  port: /dev/ttyACM0\r\n\r\n# Advanced configuration\r\n```\r\n...\r\n...\r\n\r\nDid I misinterpret what the config is used for? Or is this a WIP?"},"comment":{"url":"https://api.github.com/repos/danielwelch/hassio-zigbee2mqtt/issues/comments/391131688","html_url":"https://github.com/danielwelch/hassio-zigbee2mqtt/issues/9#issuecomment-391131688","issue_url":"https://api.github.com/repos/danielwelch/hassio-zigbee2mqtt/issues/9","id":391131688,"user":{"login":"james-fry","id":5823294,"avatar_url":"https://avatars1.githubusercontent.com/u/5823294?v=4","gravatar_id":"","url":"https://api.github.com/users/james-fry","html_url":"https://github.com/james-fry","followers_url":"https://api.github.com/users/james-fry/followers","following_url":"https://api.github.com/users/james-fry/following{/other_user}","gists_url":"https://api.github.com/users/james-fry/gists{/gist_id}","starred_url":"https://api.github.com/users/james-fry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/james-fry/subscriptions","organizations_url":"https://api.github.com/users/james-fry/orgs","repos_url":"https://api.github.com/users/james-fry/repos","events_url":"https://api.github.com/users/james-fry/events{/privacy}","received_events_url":"https://api.github.com/users/james-fry/received_events","type":"User","site_admin":false},"created_at":"2018-05-22T20:35:09Z","updated_at":"2018-05-22T20:35:09Z","author_association":"NONE","body":"Tested your changes and its working great:\r\n\r\nUpgrade:\r\n```\r\n[Info] Configuration file found. Will overwrite configurable               fields with values from add-on configuration\r\n[Info] Configuration written to /share/zigbee2mqtt/configuration.yaml\r\n\r\n> zigbee2mqtt@0.1.0 start /app\r\n> node index.js\r\n\r\n2018-5-22 21:29:49 INFO Starting zigbee-shepherd\r\n...\r\n```\r\n\r\nFresh install with no existing config:\r\n\r\n```\r\n[Info] Configuration written to /share/zigbee2mqtt/configuration.yaml\r\n\r\n> zigbee2mqtt@0.1.0 start /app\r\n> node index.js\r\n\r\n2018-5-22 21:32:55 INFO Migrating configuration.yaml to version 1...\r\n2018-5-22 21:32:55 INFO Starting zigbee-shepherd\r\n2018-5-22 21:32:56 INFO zigbee-shepherd started\r\n...\r\n```\r\n\r\nThe yaml is unlike the original though - now uses {} for lists and all comments were removed.\r\nI guess that is the price to pay for parsing and rewriting the yaml.\r\n\r\n\r\n"}}
{"actor":{"display_login":"james-fry"}}