{"id":2307,"date":"2022-01-13T21:20:40","date_gmt":"2022-01-14T03:20:40","guid":{"rendered":"https:\/\/promincproductions.com\/blog\/?p=2307"},"modified":"2022-12-28T09:25:59","modified_gmt":"2022-12-28T15:25:59","slug":"home-assistant-on-qnap-ts-251-in-container-station","status":"publish","type":"post","link":"https:\/\/promincproductions.com\/blog\/home-assistant-on-qnap-ts-251-in-container-station\/","title":{"rendered":"Home Assistant on QNAP TS-251 in Container Station"},"content":{"rendered":"<p>This is a tutorial on how I setup <a href=\"https:\/\/www.home-assistant.io\/\" target=\"_blank\" rel=\"nofollow noopener\" data-lasso-id=\"709\">Home Assistant<\/a> on a QNAP TS-251 NAS box in Container Station.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/home-assistant-installation-on-qnap-container-station.png\" alt=\"How to install Home Assistant with QNAP Container Station\" class=\"wp-image-2327\" width=\"-195\" height=\"-195\" title=\"How to install Home Assistant with QNAP Container Station\" srcset=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/home-assistant-installation-on-qnap-container-station.png 600w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/home-assistant-installation-on-qnap-container-station-500x500.png 500w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/home-assistant-installation-on-qnap-container-station-150x150.png 150w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/home-assistant-installation-on-qnap-container-station-450x450.png 450w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Install Container Station<\/h2>\n\n\n\n<p>If you don&#8217;t have <a href=\"https:\/\/www.qnap.com\/en-us\/software\/container-station\" target=\"_blank\" rel=\"nofollow noopener\" data-lasso-id=\"710\">Container Station<\/a> installed on the QNAP server, do that first via <strong>App Center<\/strong>.<\/p>\n\n\n\n<p>Container Station is a way to run a <em>virtual app<\/em> or <em>virtual server<\/em> on your NAS.  This is really running via <a href=\"https:\/\/www.docker.com\/\" rel=\"nofollow noopener\" target=\"_blank\" data-lasso-id=\"711\">Docker<\/a> but adding a GUI for you to setup and configure the Docker container.  Docker has really become a great corner-stone on how to run virtual servers and is really cool &#8211; the more you get into running servers the more you appreciate this technology.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prepare For the Container<\/h2>\n\n\n\n<p>The container holds all of the server-level code\/logic.  But as you use your container, there will be some unique information for your container that you&#8217;ll want to store elsewhere.  This allows for you to stop, upgrade, delete the container itself as needed without loosing your data.<\/p>\n\n\n\n<p>In <strong>File Station<\/strong> create a new directory in a location you like for this data.  I suggest creating a directory called <strong>Container<\/strong> at the root level.<\/p>\n\n\n\n<p>Within this directory, create a subdirectory named <strong>homeassistant<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install Home Assistant via Container Station<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In Container Station, click the <strong>Create<\/strong> button on the left hand panel.<\/li>\n\n\n\n<li>In the search box, search for <strong><em>Home Assistant<\/em><\/strong> and click the magnifying glass icon.<\/li>\n\n\n\n<li>Click the <strong>Docker Hub<\/strong> tab.<\/li>\n\n\n\n<li>There will likely be several results.  Look for <code>homeassistant\/home-assistant<\/code> and click on the <strong>Install<\/strong> button.<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"247\" src=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-1024x247.png\" alt=\"Installing Home Assistant from the QNAP Container Station\" class=\"wp-image-2309\" srcset=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-1024x247.png 1024w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-500x121.png 500w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-768x185.png 768w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-150x36.png 150w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-600x145.png 600w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-1536x371.png 1536w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-450x109.png 450w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-1360x328.png 1360w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image.png 1897w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Installing Home Assistant from the QNAP Container Station<\/figcaption><\/figure>\n<\/div>\n\n\n<ol class=\"wp-block-list\" start=\"5\">\n<li>Use the <strong><em>latest<\/em><\/strong> version (unless you have a strong reason to use an alternate version) and click <strong>Next<\/strong>.<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"591\" height=\"250\" src=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-1.png\" alt=\"Select the Home Assistant version\" class=\"wp-image-2310\" srcset=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-1.png 591w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-1-500x212.png 500w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-1-150x63.png 150w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-1-450x190.png 450w\" sizes=\"(max-width: 591px) 100vw, 591px\" \/><\/figure>\n<\/div>\n\n\n<ol class=\"wp-block-list\" start=\"6\">\n<li><strong>Create the Container<\/strong>\n<ol class=\"wp-block-list\">\n<li>Set a <strong>Name<\/strong> for the container (example: <code>home-assistant-1<\/code>).\n<ul class=\"wp-block-list\">\n<li>This is the &#8220;friendly name&#8221; you&#8217;ll see when you look at your containers, so make sure you can recall what it is.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Set <strong>Entrypoint<\/strong> to <code>\/init<\/code>.<\/li>\n\n\n\n<li>Check the <strong>Auto start<\/strong> option\n<ul class=\"wp-block-list\">\n<li>This will ensure the container starts up automatically when your NAS restarts.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Set<strong> <\/strong>the <strong>CPU Limit<\/strong> to less than 100%.\n<ul class=\"wp-block-list\">\n<li>I suggest 80% to prevent this container from overtaking the NAS.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Set the <strong>Memory Limit<\/strong> to less than the maximum.\n<ul class=\"wp-block-list\">\n<li>I suggest about 75% to prevent this container from overtaking the NAS.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"987\" height=\"645\" src=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-2.png\" alt=\"Basic container settings\" class=\"wp-image-2311\" srcset=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-2.png 987w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-2-500x327.png 500w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-2-768x502.png 768w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-2-150x98.png 150w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-2-600x392.png 600w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-2-450x294.png 450w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-2-918x600.png 918w\" sizes=\"(max-width: 987px) 100vw, 987px\" \/><\/figure>\n<\/div>\n\n\n<ol class=\"wp-block-list\" start=\"7\">\n<li>Click the <strong>Advanced Settings &gt;&gt;<\/strong> link<\/li>\n\n\n\n<li>On the <strong>Environment<\/strong> tab:\n<ol class=\"wp-block-list\">\n<li>Click the <strong>Add<\/strong> button and enter <strong>TZ<\/strong> in the <strong>Name<\/strong> column and enter your time zone value in the <strong>Value<\/strong> column.\n<ul class=\"wp-block-list\">\n<li>The full list of possible time zone names can be found <a href=\"https:\/\/en.wikipedia.org\/wiki\/List_of_tz_database_time_zones\" rel=\"nofollow noopener\" target=\"_blank\" data-lasso-id=\"712\">here<\/a>.  The <strong>database name<\/strong> column is what value is expected here.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"985\" height=\"659\" src=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-3.png\" alt=\"Home Assistant container environment settings\" class=\"wp-image-2324\" title=\"Home Assistant container environment settings\" srcset=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-3.png 985w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-3-500x335.png 500w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-3-768x514.png 768w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-3-150x100.png 150w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-3-600x401.png 600w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-3-450x301.png 450w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-3-897x600.png 897w\" sizes=\"(max-width: 985px) 100vw, 985px\" \/><\/figure>\n<\/div>\n\n\n<ol class=\"wp-block-list\" start=\"8\">\n<li>On the <strong>Network <\/strong>tab:\n<ul class=\"wp-block-list\">\n<li>Set the <strong>Network Mode:<\/strong> to <strong>Host<\/strong><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>On the <strong>Device<\/strong> tab:\n<ul class=\"wp-block-list\">\n<li>Check the <strong>Allocate interactive and TTY processes for the container<\/strong> box<\/li>\n\n\n\n<li>Check the <strong>Run containers in privileged mode.<\/strong> box\n<ul class=\"wp-block-list\">\n<li>Technically this is optional, but in my opinion this is worth enabling.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>On the <strong>Shared Folders<\/strong> tab:\n<ul class=\"wp-block-list\">\n<li>Click the <strong>Add<\/strong> button in the <strong>Volume from host<\/strong> section.<\/li>\n\n\n\n<li>Set the <strong>Volume from host<\/strong> field to the container directory you made previously (ie. <code>\/Container\/homeassistant<\/code>)<\/li>\n\n\n\n<li>Set the <strong>Mount Point<\/strong> to <code>\/config<\/code><\/li>\n\n\n\n<li>Ensure <strong>Read<\/strong> and <strong>Write<\/strong> are checked.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"985\" height=\"648\" src=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-4.png\" alt=\"Configuration for the container shared folder settings\" class=\"wp-image-2325\" title=\"Configuration for the container shared folder settings\" srcset=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-4.png 985w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-4-500x329.png 500w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-4-768x505.png 768w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-4-150x99.png 150w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-4-600x395.png 600w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-4-450x296.png 450w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-4-912x600.png 912w\" sizes=\"(max-width: 985px) 100vw, 985px\" \/><\/figure>\n<\/div>\n\n\n<ol class=\"wp-block-list\" start=\"8\">\n<li>Click the <strong>Create<\/strong> button to create the container.<\/li>\n\n\n\n<li>A summary screen shows your configuration settings.  Click <strong>OK<\/strong>.\n<ul class=\"wp-block-list\">\n<li>This will create the container which takes a few minutes to fully load.<\/li>\n\n\n\n<li>You can click into the container on the <strong>Container<\/strong> tab to see the status of if the container has been loaded or not.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>You can now access Home Assistant via your web browser.  Home Assistant runs at port 8123.  Simply add <code>\/8123<\/code> to the end of your NAS IP address.\n<ul class=\"wp-block-list\">\n<li>Example: If your NAS is accessed at <code>http:\/\/192.168.0.110:8080\/cgi-bin\/<\/code>, Home Assistant would be accessible at <code>http:\/\/192.168.0.110:8123<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p>And with that, you should be up and running with Home Assistant on QNAP via Container Station!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Resources<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.home-assistant.io\/installation\/alternative\/#qnap-nas\" target=\"_blank\" rel=\"nofollow noopener\" data-lasso-id=\"713\">Home Assistant Installation Instructions<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>This is a tutorial on how I setup Home Assistant on a QNAP TS-251 NAS box in Container [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2327,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wprm-recipe-roundup-name":"","wprm-recipe-roundup-description":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[387,384,332],"tags":[335,331,330,333],"class_list":["post-2307","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-home-assistant","category-qnap","category-smart-home","tag-container-station","tag-home-assistant","tag-qnap","tag-ts-251"],"jetpack_featured_media_url":"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/home-assistant-installation-on-qnap-container-station.png","jetpack_shortlink":"https:\/\/wp.me\/p4BbcR-Bd","jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/posts\/2307","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/comments?post=2307"}],"version-history":[{"count":6,"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/posts\/2307\/revisions"}],"predecessor-version":[{"id":3069,"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/posts\/2307\/revisions\/3069"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/media\/2327"}],"wp:attachment":[{"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/media?parent=2307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/categories?post=2307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/tags?post=2307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}