{"id":105,"date":"2020-08-31T12:41:07","date_gmt":"2020-08-31T12:41:07","guid":{"rendered":"https:\/\/www.creatingsmarthome.com\/?p=105"},"modified":"2024-09-21T06:24:38","modified_gmt":"2024-09-21T06:24:38","slug":"guide-vallox-digit-ventilation-to-home-assistant-part-2-2-home-assistant","status":"publish","type":"post","link":"https:\/\/www.creatingsmarthome.com\/index.php\/2020\/08\/31\/guide-vallox-digit-ventilation-to-home-assistant-part-2-2-home-assistant\/","title":{"rendered":"Guide: Vallox Digit Ventilation to Home Assistant (Part 2\/2 \u2013 Home Assistant)"},"content":{"rendered":"\n<p>In <a href=\"https:\/\/www.creatingsmarthome.com\/index.php\/2020\/08\/25\/guide-vallox-digit-ventilation-to-home-assistant-part-1-2-hardware\/\" data-type=\"URL\" data-id=\"https:\/\/www.creatingsmarthome.com\/index.php\/2020\/08\/25\/guide-vallox-digit-ventilation-to-home-assistant-part-1-2-hardware\/\">previous post<\/a> I wrote a guide, how to create hardware to control Vallox Ventilation Machines (the dumb ones) through wifi. In this second part, we are going to integrate the newly created hardware into Home Assistant.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Requirements<\/h2>\n\n\n\n<p>Since our hardware sends all the events to the MQTT pipe, of course we should have MQTT installed into our system. Check <a href=\"https:\/\/www.home-assistant.io\/integrations\/mqtt\/\" data-type=\"URL\" data-id=\"https:\/\/www.home-assistant.io\/integrations\/mqtt\/\">this post<\/a> out if this is a new thing for you. You should already have MQTT installed though, since you were able to complete the 1\/2 part of this guide \ud83d\ude42<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Custom component installation<\/h2>\n\n\n\n<p>Next thing is the actual component installation. Easiest way to install the custom component is to use <a href=\"http:\/\/hacs.xyz\">HACS<\/a>, but you can of course also install everything manually. Using HACS is preferred as with that you also get updates automatically when released.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Using HACS (option #1)<\/h3>\n\n\n\n<p>To install using HACS either press \u2018<em>Open HACS repository on Home Assistant<\/em>\u2018 -button below or manually setup the custom repository.<\/p>\n\n\n\n<p><strong>Automatic HACS setup:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/my.home-assistant.io\/redirect\/hacs_repository\/?owner=kotope&amp;repository=aio_energy_management&amp;category=integration\"><img decoding=\"async\" src=\"https:\/\/my.home-assistant.io\/badges\/hacs_repository.svg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<p><strong>Manual HACS Setup:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to `<em>HACS<\/em>` -> `<em>Integrations<\/em>`<\/li>\n\n\n\n<li>Select `<em>\u2026<\/em>` from upper right corner<\/li>\n\n\n\n<li>Select `<em>Custom repositories<\/em>`<\/li>\n\n\n\n<li>Add `https:\/\/github.com\/kotope\/valloxesp` and select Category as `<em>Integration<\/em>`<\/li>\n\n\n\n<li>Search for `<em>vallox2mqtt<\/em>` and select it<\/li>\n\n\n\n<li>Press `<em>Download<\/em>`<\/li>\n\n\n\n<li>Restart Home Assistan<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Manual installation (option #2)<\/h3>\n\n\n\n<p>SSH into the home assistant system (either with web ui or native ssh) and enter following commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/config\/custom_components \nwget -O - https:\/\/raw.githubusercontent.com\/kotope\/valloxesp\/master\/install_to_home_assistant.sh | bash<\/code><\/pre>\n\n\n\n<p>First row changes our directory to custom_components folder inside home assistant. Custom components are third party components that are not integrated into home assistant by default.<\/p>\n\n\n\n<p>Second row downloads the software from <a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/kotope\/valloxesp\" data-type=\"URL\" data-id=\"https:\/\/github.com\/kotope\/valloxesp\" target=\"_blank\">GitHub repository<\/a> and runs installation right through into the custom_components folder. No need to do any other commands anymore.<\/p>\n\n\n\n<p>Now restart the home assistant and our new component should be loaded in the system.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Configuration<\/h2>\n\n\n\n<p>Latest version of integration is done via Home Assistant integrations page direclty from UI and differs a lot from older version. If you have the old version still installed, remove the configuration related to vallox2mqtt from configurations.yaml. Also you can now safely remove templated sensors since they are provided through configuration procedure automatically now.<\/p>\n\n\n\n<p>Our platform currenty offers three components: thermostat (climate) control, binary sensor and swuich. Climate control has heating, fan support and target temperature setters.<\/p>\n\n\n\n<p>Binary sensor is just a status on\/off, but has rest of the values as attributes that can be used as template sensors if needed. <\/p>\n\n\n\n<p>Switch is either boost or fireplace switch as selected from Vallox Ventilation machine. <strong>Note that once either boost or fireplace mode is activated, it cannot be turned off until the timer expires in vallox (boost 60min, fireplace 15min). <\/strong>This is restriction in the interface and &#8220;can&#8217;t&#8221; be implemented. Also please note that at the moment you cannot switch fireplace\/boost mode from HA, only in the device itself (something I still need to implement).<\/p>\n\n\n\n<p>Latest version (0.8.1+) also provides other sensors straight through device now.<\/p>\n\n\n\n<p>So let&#8217;s setup the platform.<\/p>\n\n\n\n<p>Go Home Assistant configurations tab -&gt; integrations and press &#8216;+ Add Integration&#8217; in down right.<\/p>\n\n\n\n<p>Search for vallox2mqtt and click it.<\/p>\n\n\n\n<p>Configuration dialog should pop up and you can leave the values default unless you have changed your valloxesp mqtt topics to something else. You can also change the friendly name as you like (e.g. in your localized language).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"429\" height=\"389\" src=\"https:\/\/www.creatingsmarthome.com\/wp-content\/uploads\/2021\/03\/vallox2mqtt_configuration.png\" alt=\"\" class=\"wp-image-413\" srcset=\"https:\/\/www.creatingsmarthome.com\/wp-content\/uploads\/2021\/03\/vallox2mqtt_configuration.png 429w, https:\/\/www.creatingsmarthome.com\/wp-content\/uploads\/2021\/03\/vallox2mqtt_configuration-300x272.png 300w\" sizes=\"auto, (max-width: 429px) 100vw, 429px\" \/><\/figure>\n\n\n\n<p>After pressing the &#8216;submit&#8217; button you are asked the area of the device. When finishing the setup you should see 1 device with 15 entities in the integrations view. You can now start adding those in your Lovelace UI.<\/p>\n\n\n\n<p>RH1 and RH2 are only available if your Vallox ventilation machine has those. Otherwise those statuses will be unavailable.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Testing<\/h2>\n\n\n\n<p>Enter some of your views and try to add thermostat entity into it. You should find your &#8220;Ventilation&#8221; item.<\/p>\n\n\n\n<p>Just experiment a bit and do anything you would like to see with those \ud83d\ude42<\/p>\n\n\n\n<p>In images below is an example how I&#8217;ve configured of those Lovelace cards (sensors, history graph of all four temperature sensors and ventilation control)<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"471\" height=\"415\" data-id=\"119\" src=\"https:\/\/www.creatingsmarthome.com\/wp-content\/uploads\/2020\/08\/Screenshot-2020-08-31-at-15.06.57.png\" alt=\"\" class=\"wp-image-119\" srcset=\"https:\/\/www.creatingsmarthome.com\/wp-content\/uploads\/2020\/08\/Screenshot-2020-08-31-at-15.06.57.png 471w, https:\/\/www.creatingsmarthome.com\/wp-content\/uploads\/2020\/08\/Screenshot-2020-08-31-at-15.06.57-300x264.png 300w\" sizes=\"auto, (max-width: 471px) 100vw, 471px\" \/><figcaption class=\"wp-element-caption\">Template sensors<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"470\" height=\"300\" data-id=\"120\" src=\"https:\/\/www.creatingsmarthome.com\/wp-content\/uploads\/2020\/08\/Screenshot-2020-08-31-at-15.07.03.png\" alt=\"\" class=\"wp-image-120\" srcset=\"https:\/\/www.creatingsmarthome.com\/wp-content\/uploads\/2020\/08\/Screenshot-2020-08-31-at-15.07.03.png 470w, https:\/\/www.creatingsmarthome.com\/wp-content\/uploads\/2020\/08\/Screenshot-2020-08-31-at-15.07.03-300x191.png 300w\" sizes=\"auto, (max-width: 470px) 100vw, 470px\" \/><figcaption class=\"wp-element-caption\">Temperatures history graph<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"326\" height=\"224\" data-id=\"134\" src=\"https:\/\/www.creatingsmarthome.com\/wp-content\/uploads\/2020\/08\/vallox_ha_maintenance-1.png\" alt=\"\" class=\"wp-image-134\" srcset=\"https:\/\/www.creatingsmarthome.com\/wp-content\/uploads\/2020\/08\/vallox_ha_maintenance-1.png 326w, https:\/\/www.creatingsmarthome.com\/wp-content\/uploads\/2020\/08\/vallox_ha_maintenance-1-300x206.png 300w\" sizes=\"auto, (max-width: 326px) 100vw, 326px\" \/><figcaption class=\"wp-element-caption\">Ventilation maintenance<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"469\" height=\"323\" data-id=\"121\" src=\"https:\/\/www.creatingsmarthome.com\/wp-content\/uploads\/2020\/08\/Screenshot-2020-08-31-at-15.07.11.png\" alt=\"\" class=\"wp-image-121\" srcset=\"https:\/\/www.creatingsmarthome.com\/wp-content\/uploads\/2020\/08\/Screenshot-2020-08-31-at-15.07.11.png 469w, https:\/\/www.creatingsmarthome.com\/wp-content\/uploads\/2020\/08\/Screenshot-2020-08-31-at-15.07.11-300x207.png 300w\" sizes=\"auto, (max-width: 469px) 100vw, 469px\" \/><figcaption class=\"wp-element-caption\">Ventilation control<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"475\" height=\"308\" data-id=\"246\" src=\"https:\/\/www.creatingsmarthome.com\/wp-content\/uploads\/2020\/11\/ventilation_fireplace_switch.png\" alt=\"\" class=\"wp-image-246\" srcset=\"https:\/\/www.creatingsmarthome.com\/wp-content\/uploads\/2020\/11\/ventilation_fireplace_switch.png 475w, https:\/\/www.creatingsmarthome.com\/wp-content\/uploads\/2020\/11\/ventilation_fireplace_switch-300x195.png 300w\" sizes=\"auto, (max-width: 475px) 100vw, 475px\" \/><\/figure>\n<\/figure>\n\n\n\n<p>Again, if problems, feel free to drop a comment below and I&#8217;ll try to help as much as I can.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n<div style=\"border: 3px dashed #abb8c3; border-radius: 0%; background-color: inherit; \" class=\"ub-styled-box ub-bordered-box wp-block-ub-styled-box\" id=\"ub-styled-box-30d84e37-7b69-499c-8104-477e99ab2564\">\n<p id=\"ub-styled-box-bordered-content-82815ba5-42d8-4578-91f6-553323bcd2a2\"><h5 class=\"wp-block-heading has-text-align-center\">Did you find this guide helpful? You can keep the blog going by bidding me a coffee!<\/h5>\r\n<center>\r\n<script type=\"text\/javascript\" src=\"https:\/\/cdnjs.buymeacoffee.com\/1.0.0\/button.prod.min.js\" data-name=\"bmc-button\" data-slug=\"tokorhon\" data-color=\"#FFDD00\" data-emoji=\"\"  data-font=\"Cookie\" data-text=\"Buy me a coffee\" data-outline-color=\"#000000\" data-font-color=\"#000000\" data-coffee-color=\"#ffffff\" ><\/script>\r\n<\/center><\/p>\n\n\n<\/div>","protected":false},"excerpt":{"rendered":"<p>In previous post I wrote a guide, how to create hardware to control Vallox Ventilation Machines (the dumb ones) through wifi. In this second part,&hellip;<\/p>\n","protected":false},"author":1,"featured_media":125,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3,100],"tags":[19,16,15,14,7,12,13,18],"class_list":["post-105","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-guide","category-home-assistant","tag-climate-control","tag-diy","tag-esp-01","tag-esp8266","tag-home-assistant","tag-vallox","tag-ventilation","tag-wifi","has-post-thumbnail-archive"],"acf":[],"featured_image_src":"https:\/\/www.creatingsmarthome.com\/wp-content\/uploads\/2020\/08\/ventilation_ha.png","author_info":{"display_name":"Toni","author_link":"https:\/\/www.creatingsmarthome.com\/index.php\/author\/topsy\/"},"_links":{"self":[{"href":"https:\/\/www.creatingsmarthome.com\/index.php\/wp-json\/wp\/v2\/posts\/105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.creatingsmarthome.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.creatingsmarthome.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.creatingsmarthome.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.creatingsmarthome.com\/index.php\/wp-json\/wp\/v2\/comments?post=105"}],"version-history":[{"count":31,"href":"https:\/\/www.creatingsmarthome.com\/index.php\/wp-json\/wp\/v2\/posts\/105\/revisions"}],"predecessor-version":[{"id":3515,"href":"https:\/\/www.creatingsmarthome.com\/index.php\/wp-json\/wp\/v2\/posts\/105\/revisions\/3515"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.creatingsmarthome.com\/index.php\/wp-json\/wp\/v2\/media\/125"}],"wp:attachment":[{"href":"https:\/\/www.creatingsmarthome.com\/index.php\/wp-json\/wp\/v2\/media?parent=105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.creatingsmarthome.com\/index.php\/wp-json\/wp\/v2\/categories?post=105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.creatingsmarthome.com\/index.php\/wp-json\/wp\/v2\/tags?post=105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}