{"id":524,"date":"2021-02-24T14:06:01","date_gmt":"2021-02-24T12:06:01","guid":{"rendered":"https:\/\/silviamarin.ro\/?p=524"},"modified":"2021-02-24T14:06:01","modified_gmt":"2021-02-24T12:06:01","slug":"setari-home-assistant","status":"publish","type":"post","link":"https:\/\/marinelvis.xyz\/index.php\/2021\/02\/24\/setari-home-assistant\/","title":{"rendered":"SETARI HOME ASSISTANT 1"},"content":{"rendered":"<p><strong>Acces securizat,\u00a0<\/strong><strong>Setare timezone,\u00a0<\/strong><strong>Afisare ceas,\u00a0<\/strong><strong>Instalare HACS,\u00a0<\/strong><strong>Instalare teme<\/strong><\/p>\n<p><strong>Acces securizat:<\/strong><\/p>\n<p>\u00cen <em>Supervisor<\/em> -&gt; <em>Add-on Store<\/em> \u015fi se instaleaza<em> DuckDNS, Lets Encrypt <\/em>\u015fi <em>File Editor.<\/em><br \/>\nLa <em>File Editor<\/em> se activeaza <em>Show in sidebar<\/em> \u015fi se porneste addon-ul apoi\u00a0se editeaza <em>configuration.yaml<\/em> \u015fi se introduc liniile:<\/p>\n<blockquote><p><em>http:<\/em><br \/>\n<em>\u00a0 ssl_certificate: \/ssl\/fullchain.pem<\/em><br \/>\n<em>\u00a0 ssl_key: \/ssl\/privkey.pem<\/em><\/p><\/blockquote>\n<p>Home Assistant se reporneste dupa activarea DuckDNS si obtinerea certificatelor Let&#8217;s Encrypt<\/p>\n<p><strong><em>Pentru domeniu .duckdns:<\/em><\/strong><br \/>\nLa <em>DuckDNS<\/em> -&gt; <em>Configuration<\/em> (dup\u0103 ce s-au inregistrat subdomeniile \u00een <em>duckdns.org<\/em> \u015fi s-a ob\u0163inut token-ul);<\/p>\n<blockquote><p><em>lets_encrypt:<\/em><br \/>\n<em>\u00a0 accept_terms: true<\/em><br \/>\n<em>\u00a0 certfile: fullchain.pem<\/em><br \/>\n<em>\u00a0 keyfile: privkey.pem<\/em><br \/>\n<em>token: f2f3976a-a31e-4ed8-aecf-e1xxxxxxxxxx<\/em><br \/>\n<em>domains:<\/em><br \/>\n<em>\u00a0 &#8211; spetru32.duckdns.org<\/em><br \/>\n<em>aliases: []<\/em><br \/>\n<em>seconds: 300<\/em><\/p><\/blockquote>\n<p>La <em>Lets Encrypt<\/em> -&gt;<em> Configurari<\/em>:<\/p>\n<blockquote><p><em>email: spetru32@yahoo.com<\/em><br \/>\n<em>domains:<\/em><br \/>\n<em>\u00a0 &#8211; spetru32.duckdns.org<\/em><br \/>\n<em>certfile: fullchain.pem<\/em><br \/>\n<em>keyfile: privkey.pem<\/em><br \/>\n<em>challenge: http<\/em><br \/>\n<em>dns: {}<\/em><\/p><\/blockquote>\n<p>Se activeaza <em>Start on boot<\/em> si se porneste addon-ul. Se verifica in Logs daca s-au emis certificatele.<br \/>\nSe reporneste Home Assistant \u015fi ar trebui sa fie accesibil la <em>https:\/\/spetru32.duckdns.org:8123<\/em><\/p>\n<p><strong><em>Pentru domeniu propriu:<\/em><\/strong><br \/>\n<strong><em>a. Cu certificate Let&#8217;s Encrypt deja existente:<\/em><\/strong><br \/>\nSe copie certificatele <em>fullchain.pem<\/em> si <em>privkey.pem<\/em> din folderul <em>\/etc\/letsencrypt\/archive<\/em> \u00een folderul <em>\/usr\/share\/hassio\/ssl<\/em>.<br \/>\nSe reporneste Home Assistant \u015fi ar trebui sa fie accesibil la<em> https:\/\/silviamarin.ro:8123<\/em> sau <em>https:\/\/spetru32.duckdns.org:8123<\/em><br \/>\n<strong>b. Cu obtinerea certificatelor de la Let&#8217;s Encrypt:<\/strong><br \/>\nSe opreste serverul Apache \u00een Terminal sau \u00een Webmin:<\/p>\n<pre>systemctl stop apache2<\/pre>\n<p>La <em>Lets Encrypt<\/em> -&gt;<em> Configurari<\/em>:<\/p>\n<blockquote><p><em>email: spetru32@yahoo.com<\/em><br \/>\n<em>domains:<\/em><br \/>\n<em>\u00a0 &#8211; silviamarin.ro<\/em><br \/>\n<em>certfile: fullchain.pem<\/em><br \/>\n<em>keyfile: privkey.pem<\/em><br \/>\n<em>challenge: http<\/em><br \/>\n<em>dns: {}<\/em><\/p><\/blockquote>\n<p>Se activeaza <em>Start on boot<\/em> si se porneste addon-ul. Se verifica in Logs daca s-au emis certificatele.<br \/>\nSe reporneste Home Assistant \u015fi ar trebui sa fie accesibil la <em>https:\/\/silviamarin.ro:8123<\/em><br \/>\nSe reporneste serverul Apache:<\/p>\n<pre>systemctl start apache2<\/pre>\n<p><strong>Setare timezone si acces legacy:<\/strong><\/p>\n<blockquote><p><em>homeassistant:<\/em><br \/>\n<em>\u00a0 time_zone:\u00a0<\/em><em>Europe\/Bucharest<\/em><br \/>\n<em>\u00a0 auth_providers:<\/em><br \/>\n<em>\u00a0 \u00a0 &#8211; type: legacy_api_password<\/em><br \/>\n<em>\u00a0 \u00a0 \u00a0 api_password: !secret http_password<\/em><\/p><\/blockquote>\n<p>In fisierul <em>secrets.yaml<\/em> se introduce:<\/p>\n<blockquote><p><em>http_password:<span style=\"color: #ff0000;\"> parola<\/span><\/em><\/p><\/blockquote>\n<p><strong>Afisare ceas:<\/strong><br \/>\n\u00cen <em>configuration.yaml<\/em>:<\/p>\n<blockquote><p><em>sensor:<\/em><br \/>\n<em>\u00a0 &#8211; platform: time_date<\/em><br \/>\n<em>\u00a0 \u00a0 display_options:<\/em><br \/>\n<em>\u00a0 \u00a0 \u00a0 &#8211; &#8216;time&#8217;<\/em><br \/>\n<em>\u00a0 \u00a0 \u00a0 &#8211; &#8216;date&#8217;<\/em><br \/>\n<em>\u00a0 \u00a0 \u00a0 &#8211; &#8216;date_time&#8217;<\/em><\/p><\/blockquote>\n<p><strong>Instalare HACS:<\/strong><br \/>\n\u00cen <em>Configurari -&gt; Info<\/em> se identifica tipul instalarii (pentru Raspberry Pi este <em>Home Assistant OS<\/em> iar pentru Debian server este <em>Home Assistant Supervised<\/em>)<br \/>\nPentru <em>Home Assistant OS<\/em>:<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>Se descarca din <em>Supervised<\/em> add-on \u2013ul <em>Terminal &amp; SSH<\/em><\/li>\n<li>Se activeaza <em>Start on boot<\/em> \u015fi <em>Show \u00een sidebar<\/em><\/li>\n<li>Se instaleaza <em>HACS<\/em> cu comanda:<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<pre>wget -q -O - https:\/\/get.hacs.xyz\/install | bash -<\/pre>\n<p>Pentru Home Assistant Supervised:<\/p>\n<ul>\n<li>\u00cen<em> Terminal<\/em>-ul Debian (ca root) se instaleaza HACS cu comanda:<\/li>\n<\/ul>\n<pre>wget -q -O - https:\/\/get.hacs.xyz\/install | bash -<\/pre>\n<ul>\n<li>Se reporneste <em>Home Assistant<\/em> apoi<em> Configuration -&gt; Integrations -&gt; Add integration<\/em><\/li>\n<li>Se instaleaza <em>HACS<\/em><\/li>\n<li>\u00cen prima pagina<em> HACS<\/em> afiseaza un cod de 8 caractere de tipul <em>AAAA-BBBB<\/em> \u015fi un link c\u0103tre GitHub<\/li>\n<li>\u00cen Git Hub (dup\u0103 logare) trebuie introdus codul de 6 cifre trimis pe e-mail<\/li>\n<li>Se deschide o pagina \u00een Git Hub \u00een care se introduce codul <em>AAAA-BBBB<\/em><\/li>\n<li>Se confirma ca dispozitivul este de incredere \u015fi se autorizeaza accesul la Git Hub<\/li>\n<li>\u00cen optiunile de configurare se bifeaza toate casutele \u015fi se inlocuieste icon-ul <em>hacs:hacs<\/em> cu <em>mdi:alpha-c-box<\/em><\/li>\n<li><em>HACS<\/em> se acceseaza din bara laterala<\/li>\n<\/ul>\n<p>Accesul cu <em>OAuth<\/em> prin <em>Git API<\/em> este limitat.<br \/>\nAcces prin token:<br \/>\n\u00cen <em>configuration.yaml<\/em> se introduce:<\/p>\n<blockquote><p><em>hacs:<\/em><br \/>\n<em>\u00a0 token: 65e1b04080ea47fa0XXXXXXX<\/em><\/p><\/blockquote>\n<p><strong>Instalare teme:<\/strong><br \/>\n\u00cen HACS -&gt; Frontend se selecteaza \u015fi se instaleaza Caule Themes Pack<br \/>\n\u00cen <em>configuration.yaml<\/em> se introduce:<\/p>\n<blockquote><p><em>frontend:<\/em><br \/>\n<em>\u00a0 themes: !include_dir_merge_named themes<\/em><\/p><\/blockquote>\n<p>apoi se reporneste Home Assistant. Se poate selecta tema din <em>Legacy API password user<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Acces securizat,\u00a0Setare timezone,\u00a0Afisare ceas,\u00a0Instalare HACS,\u00a0Instalare teme Acces securizat: \u00cen Supervisor -&gt; Add-on Store \u015fi se instaleaza DuckDNS, Lets Encrypt \u015fi File Editor. La File Editor se activeaza Show in sidebar \u015fi se porneste addon-ul apoi\u00a0se editeaza configuration.yaml \u015fi se introduc liniile: http: \u00a0 ssl_certificate: \/ssl\/fullchain.pem \u00a0 ssl_key: \/ssl\/privkey.pem Home Assistant se reporneste dupa activarea DuckDNS [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-524","post","type-post","status-publish","format-standard","hentry","category-fara-categorie"],"_links":{"self":[{"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/posts\/524","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/comments?post=524"}],"version-history":[{"count":0,"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/posts\/524\/revisions"}],"wp:attachment":[{"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/categories?post=524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/tags?post=524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}