{"id":568,"date":"2020-04-22T23:10:57","date_gmt":"2020-04-22T21:10:57","guid":{"rendered":"http:\/\/chrigi.me\/wordpress\/?p=568"},"modified":"2020-04-23T20:17:17","modified_gmt":"2020-04-23T18:17:17","slug":"home-assistant-config-helper","status":"publish","type":"post","link":"https:\/\/chrigi.me\/wordpress\/home-assistant-config-helper\/","title":{"rendered":"Home Assistant Config Helper"},"content":{"rendered":"\n<p>Home Assistant Config Helper is add-on for Visual Studio Code. The main advantage of the add-on is the auto completion of the entity-id&#8217;s from your Home Assistant configuration.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installation<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>Installing Visual Studio Code (<a href=\"https:\/\/code.visualstudio.com\/\">https:\/\/code.visualstudio.com\/<\/a>)<\/li><li>Installing Home Assistant Config Helper Add-on from the marketplace (<a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=keesschollaart.vscode-home-assistant\">https:\/\/marketplace.visualstudio.com\/items?itemName=keesschollaart.vscode-home-assistant<\/a>)<\/li><li>Open Visual Studio Code Settings<\/li><\/ol>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/chrigi.me\/wordpress\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-23-19.52.59-1.png\" alt=\"\" class=\"wp-image-600\" width=\"222\" height=\"275\" srcset=\"https:\/\/chrigi.me\/wordpress\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-23-19.52.59-1.png 296w, https:\/\/chrigi.me\/wordpress\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-23-19.52.59-1-243x300.png 243w\" sizes=\"auto, (max-width: 222px) 100vw, 222px\" \/><\/figure><\/div>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\"><li>Now go to the &#8222;Home Assistant Config Helper&#8220; Settings in the category Extensions<\/li><li>Here you have to insert the Host URL of your Home Assistant (some thing like this: http:\/\/192.168.1.xxx:8123) and the Long Lived Access Token. How to get the Token is explained in the next step.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"783\" height=\"501\" src=\"https:\/\/chrigi.me\/wordpress\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-23-19.57.07.png\" alt=\"\" class=\"wp-image-601\" srcset=\"https:\/\/chrigi.me\/wordpress\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-23-19.57.07.png 783w, https:\/\/chrigi.me\/wordpress\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-23-19.57.07-300x192.png 300w, https:\/\/chrigi.me\/wordpress\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-23-19.57.07-768x491.png 768w, https:\/\/chrigi.me\/wordpress\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-23-19.57.07-624x399.png 624w\" sizes=\"auto, (max-width: 783px) 100vw, 783px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"6\"><li>To get a Long Lived Access Token you have to login in your Home Assistant. Click on your profile name in the left corner on the bottom (&#8222;christoph&#8220;). Now scroll to the bottom of this page. There is a button to create a new token.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"938\" height=\"924\" src=\"https:\/\/chrigi.me\/wordpress\/wp-content\/uploads\/2020\/04\/LongLiveToken.jpg\" alt=\"\" class=\"wp-image-569\" srcset=\"https:\/\/chrigi.me\/wordpress\/wp-content\/uploads\/2020\/04\/LongLiveToken.jpg 938w, https:\/\/chrigi.me\/wordpress\/wp-content\/uploads\/2020\/04\/LongLiveToken-300x296.jpg 300w, https:\/\/chrigi.me\/wordpress\/wp-content\/uploads\/2020\/04\/LongLiveToken-768x757.jpg 768w, https:\/\/chrigi.me\/wordpress\/wp-content\/uploads\/2020\/04\/LongLiveToken-624x615.jpg 624w, https:\/\/chrigi.me\/wordpress\/wp-content\/uploads\/2020\/04\/LongLiveToken-60x60.jpg 60w\" sizes=\"auto, (max-width: 938px) 100vw, 938px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"7\"><li>Insert the generated token into your visual studio code settings.<\/li><li>Open a YAML File of yout Home Assistant Configuration. (I use a samba server on the raspberry pi to edit the configuration)<\/li><li>Now the auto completion of the entity-id&#8217;s from your Home Assistant configuration should work<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"957\" height=\"527\" src=\"https:\/\/chrigi.me\/wordpress\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-23-20.13.50.png\" alt=\"\" class=\"wp-image-602\" srcset=\"https:\/\/chrigi.me\/wordpress\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-23-20.13.50.png 957w, https:\/\/chrigi.me\/wordpress\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-23-20.13.50-300x165.png 300w, https:\/\/chrigi.me\/wordpress\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-23-20.13.50-768x423.png 768w, https:\/\/chrigi.me\/wordpress\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-23-20.13.50-624x344.png 624w\" sizes=\"auto, (max-width: 957px) 100vw, 957px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Home Assistant Config Helper is add-on for Visual Studio Code. The main advantage of the add-on is the auto completion of the entity-id&#8217;s from your Home Assistant configuration. Installation Installing Visual Studio Code (https:\/\/code.visualstudio.com\/) Installing Home Assistant Config Helper Add-on from the marketplace (https:\/\/marketplace.visualstudio.com\/items?itemName=keesschollaart.vscode-home-assistant) Open Visual Studio Code Settings Now&#8230; <a href=\"https:\/\/chrigi.me\/wordpress\/home-assistant-config-helper\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":602,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wprm-recipe-roundup-name":"","wprm-recipe-roundup-description":"","footnotes":""},"categories":[12,1,10,128],"tags":[],"class_list":["post-568","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-konfigurationen","category-linux","category-raspberry-pi","category-smart-home"],"_links":{"self":[{"href":"https:\/\/chrigi.me\/wordpress\/wp-json\/wp\/v2\/posts\/568","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chrigi.me\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chrigi.me\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chrigi.me\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chrigi.me\/wordpress\/wp-json\/wp\/v2\/comments?post=568"}],"version-history":[{"count":2,"href":"https:\/\/chrigi.me\/wordpress\/wp-json\/wp\/v2\/posts\/568\/revisions"}],"predecessor-version":[{"id":603,"href":"https:\/\/chrigi.me\/wordpress\/wp-json\/wp\/v2\/posts\/568\/revisions\/603"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/chrigi.me\/wordpress\/wp-json\/wp\/v2\/media\/602"}],"wp:attachment":[{"href":"https:\/\/chrigi.me\/wordpress\/wp-json\/wp\/v2\/media?parent=568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chrigi.me\/wordpress\/wp-json\/wp\/v2\/categories?post=568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chrigi.me\/wordpress\/wp-json\/wp\/v2\/tags?post=568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}