{"id":4048,"date":"2024-11-10T00:20:53","date_gmt":"2024-11-09T23:20:53","guid":{"rendered":"https:\/\/smart-home-guide.dk\/?p=4048"},"modified":"2025-10-11T02:05:00","modified_gmt":"2025-10-11T00:05:00","slug":"opladning-af-husbatteri","status":"publish","type":"post","link":"https:\/\/smart-home-guide.dk\/index.php\/2024\/11\/10\/opladning-af-husbatteri\/","title":{"rendered":"Intelligent opladning af husbatteri"},"content":{"rendered":"<div class=\"wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-1  uagb-block-5c46f252      \" data-scroll=\"1\" data-offset=\"30\" style=\"\">\n\t\t\t\t<div class=\"uagb-toc__wrap\">\n\t\t\t\t\t\t<div class=\"uagb-toc__title\">\n\t\t\t\t\t\t\tIndholdsfortegnelse\t\t\t\t\t\t\t\t\t\t\t\t\t<svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 384 512\"><path d=\"M192 384c-8.188 0-16.38-3.125-22.62-9.375l-160-160c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L192 306.8l137.4-137.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-160 160C208.4 380.9 200.2 384 192 384z\"><\/path><\/svg>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"uagb-toc__list-wrap \">\n\t\t\t\t\t\t<ol class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#kan-det-betale-sig\" class=\"uagb-toc-link__trigger\">Kan det betale sig?<\/a><ul class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#min-l%C3%B8sning\" class=\"uagb-toc-link__trigger\">Min l&oslash;sning<\/a><\/li><\/ul><\/li><li class=\"uagb-toc__list\"><a href=\"#hvordan-g%C3%B8r-man\" class=\"uagb-toc-link__trigger\">Hvordan g&oslash;r man?<\/a><ul class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#ops%C3%A6t-integrationer\" class=\"uagb-toc-link__trigger\">Ops&aelig;t integrationer<\/a><ul class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#ev-smart-charging\" class=\"uagb-toc-link__trigger\">EV Smart Charging<\/a><\/li><\/ul><\/li><li class=\"uagb-toc__list\"><a href=\"#hj%C3%A6lpere\" class=\"uagb-toc-link__trigger\">Hj&aelig;lpere<\/a><\/li><li class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#beregn-niveau-for-opladning\" class=\"uagb-toc-link__trigger\">Beregn niveau for opladning<\/a><\/li><li class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#automatisering\" class=\"uagb-toc-link__trigger\">Automatisering<\/a><\/li><li class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#samletpackagemed-ovenst%C3%A5ende-kode\" class=\"uagb-toc-link__trigger\">Samlet&nbsp;package&nbsp;med ovenst&aring;ende kode<\/a><\/li><\/ul><\/li><li class=\"uagb-toc__list\"><a href=\"#muligheder-for-forbedring\" class=\"uagb-toc-link__trigger\">Muligheder for forbedring?<\/a><\/li><\/ol>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Hvis du har solceller med et batteri tilkoblet, kan du bruge Home Assistant (HA) til intelligent opladning af dit husbatteri. N&aring;r solproduktionen er lav, kan du overveje at k&oslash;be str&oslash;m p&aring; de billigste tidspunkter og bruge det p&aring; de dyreste.<\/p>\n\n\n\n<p>Der findes flere forskellige l&oslash;sninger (bl.a. <a href=\"https:\/\/emhass.readthedocs.io\/en\/latest\/index.html\">EMHASS<\/a> og <a href=\"https:\/\/github.com\/springfall2008\/batpred\">Batpred<\/a>), der kan hj&aelig;lpe med at styre opladningen. De kr&aelig;ver dog en del ops&aelig;tning og er ikke udviklet til brug med danske elprismodeller.<\/p>\n\n\n\n<p>Alternativet er at lave sine egne automatiseringer til styringen. Jeg forklarer i dette indl&aelig;g, hvad jeg selv har gjort.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Kan det betale sig?<\/h2>\n\n\n\n<p>Hvorvidt &ndash; og i givet fald hvorn&aring;r &ndash; det kan betale sig at k&oslash;be str&oslash;m til at oplade et husbatteri, er lidt et sp&oslash;rgsm&aring;l om personlig holdning:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Du kan mene, at n&aring;r dit batteri er k&oslash;bt og installeret, s&aring; g&aelig;lder det om at bruge det &ndash; uanset hvor lille eller stor besparelse, du f&aring;r. S&aring; bliver styringen mere simpel, da batteriet s&aring; altid skal oplades p&aring; de tidspunkter, hvor prisen er lavest.<\/li>\n\n\n\n<li>Du kan ogs&aring; v&aelig;lge at antage, at dine batterier har et begr&aelig;nset antal &aring;rs \/ cyklers levetid og at det derfor handler om at f&aring; det st&oslash;rste udbytte for hver opladning \/ afladning. Det f&aring;r man ved kun at lade op fra solceller eller hvis prisforskellen er den samme som elprisen p&aring; en sommerdag, dvs. ca. 1,5 kr., hvis man betaler elafgift.<\/li>\n\n\n\n<li>Du kan v&aelig;lge at foretage opladning, n&aring;r prisforskellen overstiger tabet ved konvertering fra AC-&gt;DC-&gt;AC. Det tab afh&aelig;nger af din installation, men regn med minimum ca. 20%, jf. afsnit 7.1 i <a href=\"https:\/\/www.teknologisk.dk\/_\/media\/66225_Slutrapport%20346-012%20Optimal%20udnyttelse%20af%20solcelleel%20i%20enfamiliehus.pdf\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Teknologisk Instituts rapport om Optimal udnyttelse af solcelle-el i enfamiliehus<\/a>.<\/li>\n\n\n\n<li>Du kan fasts&aelig;tte en pris, der tager h&oslash;jde for b&aring;de ovenst&aring;ende tab samt et v&aelig;rditab p&aring; dit batteri. V&aelig;rditabet afh&aelig;nger af prisen p&aring; dit batteri og den forventede brugstid. Eksempel: Et batteri til 10.000 kr. er garanteret en max degenerering p&aring; 30% efter 6.000 cykler. S&aring; er v&aelig;rditabet: 30% x 10.000 \/ 6.000 = 0,5 kr. pr. cyklus.<\/li>\n<\/ol>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">Min l&oslash;sning<\/h4>\n\n\n\n<p>Jeg har selv valgt l&oslash;sning nummer 4. Derfor oplader jeg kun mit batteri, hvis der er mere end 75 &oslash;res prisforskel mellem tidspunktet for hhv. opladning og brug af batteriet.<\/p>\n\n\n\n<p>Om vinteren er elprisen oftest lavest om natten og h&oslash;jest i tidsrummet mellem kl. 17 og 21. Det skyldes prim&aelig;rt, at prisen for levering af str&oslash;mmen (<a href=\"https:\/\/elforbrug.nu\/nye-priser-paa-levering-af-din-stroem-for-vinteren-2024-2025\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">nettarif<\/a>) er meget h&oslash;jere p&aring; dette tidspunkt. Derfor vil det ofte kunne betale sig at oplade sit husbatteri:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>om natten (kl. 0-6) for at d&aelig;kke forbrug den n&aelig;ste dag<\/li>\n\n\n\n<li>Inden kl. 17 for at d&aelig;kke forbruget i de dyre timer mellem kl. 17-21<\/li>\n<\/ul>\n\n\n\n<p>Her er et eksempel p&aring; forskellen mellem de gennemsnitlige elpriser i l&oslash;bet af i dag. Oversigten er inddelt i de tidsintervaller, der anvendes til de forskellige nettariffer:<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"881\" height=\"567\" src=\"https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image.png\" alt=\"Eksempel p&aring; prisforskelle i de gennemsnitlige elpriser (inkl. nettarif og alle afgifter mv.) i l&oslash;bet af dagen.\" class=\"wp-image-4353\" srcset=\"https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image.png 881w, https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-300x193.png 300w, https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-768x494.png 768w\" sizes=\"auto, (max-width: 881px) 100vw, 881px\"\/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Her kan man se, at der er mere end 1,5 krone i forskel mellem gennemsnitsprisen i dagtimerne og aftentimerne. Derimod vil det med en gr&aelig;nse p&aring; 75 &oslash;re ikke kunne betale sig at oplade om natten inden dagtimer. Elprisen er dog typisk lidt h&oslash;jere i morgentimerne mellem 6-9, s&aring; det kan m&aring;ske ogs&aring; betale sig at k&oslash;be str&oslash;m til at d&aelig;kke forbruget i de timer.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Hvordan g&oslash;r man?<\/h2>\n\n\n\n<p>Udover elprisen er der en r&aelig;kke andre forhold, som man skal overveje i sin styring af opladningen af et husbatteri:<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Hvor mange timers elforbrug skal d&aelig;kkes af batteriet?<\/li>\n\n\n\n<li>Forventes solen at kunne d&aelig;kke hele eller dele af forbruget?<\/li>\n\n\n\n<li>Hvor hurtigt kan batteriet oplades?<\/li>\n<\/ul>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Ops&aelig;t integrationer<\/h3>\n\n\n\n<p>S&aring; for at kunne lave styringen af opladningen af dit husbatteri, skal f&oslash;lgende integrationer v&aelig;re installeret og opsat i HA:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Integration, der henter de aktuelle elpriser. Jeg bruger Energi Data Service integrationen. Hvis du ikke allerede har installeret Energi Data Service integrationen, skal du starte med at g&oslash;re det. Du kan l&aelig;se mere om integrationen og ops&aelig;tningen i&nbsp;<a href=\"https:\/\/smart-home-guide.dk\/index.php\/2022\/11\/13\/overvaagning-af-elforbrug-del-1\/\">dette indl&aelig;g<\/a>.<\/li>\n\n\n\n<li>integration med prognoser for solproduktion. Jeg bruger selv <a href=\"https:\/\/github.com\/BJReplay\/ha-solcast-solar\">Solcast<\/a> integrationen<\/li>\n\n\n\n<li>integration til styring af din inverter. Jeg har selv en Deye inverter, men andre modeller kan ogs&aring; integreres. Det kan du finde eksempler p&aring; i <a href=\"https:\/\/smart-home-guide.dk\/index.php\/2023\/10\/12\/oplad-elbil-med-solenergi\/#integration-af-inverter\">dette indl&aelig;g<\/a>.<\/li>\n<\/ul>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>EV Smart Charging<\/strong><\/h4>\n\n\n\n<p>Jeg har desuden valgt at bruge &nbsp;<a href=\"https:\/\/github.com\/jonasbkarlsson\/ev_smart_charging\/\" target=\"_blank\" rel=\"noreferrer noopener\">EV Smart Charging integrationen<\/a>. Den kan bruges til at finde de billigste timer at foretage opladningen p&aring;. L&aelig;s evt. om integrationen i <a href=\"https:\/\/smart-home-guide.dk\/index.php\/2024\/01\/02\/smart-opladning-af-elbil\/\">dette indl&aelig;g<\/a> om smart opladning af elbil.<\/p>\n\n\n\n<p>Det er ikke alle sensorer i EV Smart Charging integrationen, der relevante at bruge til styring af et husbatteri.  De vigtigste er beskrevet her:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><em>charging_speed<\/em>: Opladningshastigheden udtrykt i procent pr. time. For eksempel, hvis batteriet har en samlet kapacitet p&aring; 10 kWh og kan oplades med 5 kWh pr. time, skal du indstille denne parameter til 50 (5\/10*100)<\/li>\n\n\n\n<li><em>apply_price_limit<\/em>: Aktiver eller deaktiver prisloft. Hvis du anvender prisloft, vil opladning vil ikke blive udf&oslash;rt i timer, hvor elprisen er over det fastsatte prisloft.<\/li>\n\n\n\n<li><em>electricity_price_limit<\/em>: Prisloft i kr.\/kWh der anvendes, hvis anvendelsen er aktiveret. <\/li>\n\n\n\n<li><em>ev_connected<\/em>: Switch, der angiver om elbilen (l&aelig;s: husbatteriet) er koblet til opladning. Den b&oslash;r altid v&aelig;re t&aelig;ndt, da opladning ellers ikke vil starte.<\/li>\n\n\n\n<li><em>smart_charging_activated<\/em>: Switch, der aktiverer eller deaktiverer smart opladning. Den skal v&aelig;re t&aelig;ndt medmindre man &oslash;nsker at styre opladningen.<\/li>\n\n\n\n<li><em>charging<\/em>: Sensor, der viser om opladning er i gang (t&aelig;ndt)  eller frakoblet (slukket). Den bruges af automatiseringer til at starte og stoppe opladningen.<\/li>\n\n\n\n<li><em>status<\/em>: Sensor, der indeholder status p&aring; opladningen og planl&aelig;gningen. Den kan bruges til at vise detaljer om planl&aelig;gningen p&aring; dashboardet enten i tekst form eller i en graf.<\/li>\n<\/ul>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Hj&aelig;lpere<\/h3>\n\n\n\n<p>Jeg har oprettet en r&aelig;kke entiteter (hj&aelig;lpere), der kan bruges til at hj&aelig;lpe med at planl&aelig;gge og styre opladningen:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Minimum prisforskel p&aring; tidspunktet for hhv. opladning af og brug fra husbatteriet<\/li>\n\n\n\n<li>Gr&aelig;nse for hvorn&aring;r den forventede solproduktion den n&aelig;ste dag er utilstr&aelig;kkelig <\/li>\n\n\n\n<li>Niveau (i %), som husbatteriet, skal oplades til inden aftenspids eller i l&oslash;bet af natten<\/li>\n<\/ul>\n\n\n\n<p>Med hj&aelig;lperne kan de forskellige parametre for opladningen nemt &aelig;ndres fra mit <a class=\"glossaryLink\"  aria-describedby=\"tt\"  data-cmtooltip=\"&lt;div class=glossaryItemTitle&gt;Dashboard&lt;\/div&gt;&lt;div class=glossaryItemBody&gt;&amp;lt;!-- wp:paragraph --&amp;gt;Et dashboard er den brugerdefinerede gr&aelig;nseflade (GUI) i HA hvor du kan visualisere og styre enheder, automatiseringer og sensorer, der er integreret med din HA l&oslash;sning.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;Et dashboard giver dig mulighed for at bygge dine egne sider med indhold, hvor du kan vise informationer om og styre dit smarte hjem. Du kan tilf&oslash;je forskellige   kontrolelementer (kort) med oplysninger, grafer og knapper og meget andet, der kan bruges til at interagere med dine tilsluttede smart enheder.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;Du kan tilf&oslash;je flere dashboards, og opdele indhold p&aring; hvert dashboard i forskellige faner (views).&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&lt;\/div&gt;\"  href=\"https:\/\/smart-home-guide.dk\/index.php\/glossary\/dashboard\/\"  data-gt-translate-attributes='[{\"attribute\":\"data-cmtooltip\", \"format\":\"html\"}]'  tabindex='0' role='link'>dashboard<\/a> i HA:<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1179\" height=\"2200\" src=\"https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-1.png\" alt=\"Sk&aelig;rmbillede med hj&aelig;lpere og indtastede v&aelig;rdier, der bruges til styring af opladningen.\" class=\"wp-image-4361\" srcset=\"https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-1.png 1179w, https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-1-161x300.png 161w, https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-1-549x1024.png 549w, https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-1-768x1433.png 768w, https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-1-823x1536.png 823w, https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-1-1098x2048.png 1098w\" sizes=\"auto, (max-width: 1179px) 100vw, 1179px\"\/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>De indtastede v&aelig;rdier anvendes i automatiseringerne, som styrer opladning af husbatteriet.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Beregn niveau for opladning<\/h3>\n\n\n\n<p>Som n&aelig;vnt har jeg valgt at bruge EV Smart Charging integrationen til at styre de faktiske tidspunkter, hvor batteriet skal oplades. <\/p>\n\n\n\n<p>Integrationen skal vide, hvilket niveau batteriet skal oplades til. Det kan indstilles i de hj&aelig;lpere, jeg har lavet. Jeg har et m&aring;lniveau for opladning om natten og inden h&oslash;jlastperioden kl. 17.<\/p>\n\n\n\n<p>Jeg bruger en <a class=\"glossaryLink\"  aria-describedby=\"tt\"  data-cmtooltip=\"&lt;div class=glossaryItemTitle&gt;Template&lt;\/div&gt;&lt;div class=glossaryItemBody&gt;&amp;lt;!-- wp:paragraph --&amp;gt;En template (skabelon) er en avanceret funktionalitet i HA. De kan bruges til at tilpasse og manipulere data, der kommer fra forskellige enheder eller sensorer, f&oslash;r de vises p&aring; dit dashboard eller bruges i automatiseringer.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;Med templates kan du oprette komplekse logikker, omregne v&aelig;rdier, eller udf&oslash;re forskellige beregninger baseret p&aring; inputdata. Templates kan bruges i din konfiguration, p&aring; dit dashboard eller i automatiseringer.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&lt;\/div&gt;\"  href=\"https:\/\/smart-home-guide.dk\/index.php\/glossary\/template\/\"  data-gt-translate-attributes='[{\"attribute\":\"data-cmtooltip\", \"format\":\"html\"}]'  tabindex='0' role='link'>template<\/a> sensor til at fasts&aelig;tte niveauet, der bruges i EV Smart Charging integrationen. M&aring;lniveauet s&aelig;ttes til 0%, hvis opladning ikke skal foretages. F.eks. hvis den forventede solproduktion er h&oslash;jere end den indstillede gr&aelig;nse. Eller hvis prisforskellen er for lav.<\/p>\n\n\n\n<p>Hvis alle betingelser er opfyldt, indstilles niveauet for opladning baseret p&aring; tidspunktet f&oslash;r kl. 17 eller efter kl. 21.<\/p>\n\n\n\n<p>En af betingelserne er, at den mulige besparelse overstiger den fastsatte gr&aelig;nse. Derfor er det n&oslash;dvendigt at udregne prisforskellene mellem forskellige tidspunkter p&aring; dagen. Jeg har valgt at fokusere p&aring; gennemsnitspriser i forskellige tidsintervaller. Denne <a class=\"glossaryLink\"  aria-describedby=\"tt\"  data-cmtooltip=\"&lt;div class=glossaryItemTitle&gt;Template&lt;\/div&gt;&lt;div class=glossaryItemBody&gt;&amp;lt;!-- wp:paragraph --&amp;gt;En template (skabelon) er en avanceret funktionalitet i HA. De kan bruges til at tilpasse og manipulere data, der kommer fra forskellige enheder eller sensorer, f&oslash;r de vises p&aring; dit dashboard eller bruges i automatiseringer.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;Med templates kan du oprette komplekse logikker, omregne v&aelig;rdier, eller udf&oslash;re forskellige beregninger baseret p&aring; inputdata. Templates kan bruges i din konfiguration, p&aring; dit dashboard eller i automatiseringer.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&lt;\/div&gt;\"  href=\"https:\/\/smart-home-guide.dk\/index.php\/glossary\/template\/\"  data-gt-translate-attributes='[{\"attribute\":\"data-cmtooltip\", \"format\":\"html\"}]'  tabindex='0' role='link'>template<\/a> sensor udregner gennemsnitspriserne og forskellene mellem de forskellige tidsintervaller:<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-yaml\"><a class=\"glossaryLink\"  aria-describedby=\"tt\"  data-cmtooltip=\"&lt;div class=glossaryItemTitle&gt;Template&lt;\/div&gt;&lt;div class=glossaryItemBody&gt;&amp;lt;!-- wp:paragraph --&amp;gt;En template (skabelon) er en avanceret funktionalitet i HA. De kan bruges til at tilpasse og manipulere data, der kommer fra forskellige enheder eller sensorer, f&oslash;r de vises p&aring; dit dashboard eller bruges i automatiseringer.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;Med templates kan du oprette komplekse logikker, omregne v&aelig;rdier, eller udf&oslash;re forskellige beregninger baseret p&aring; inputdata. Templates kan bruges i din konfiguration, p&aring; dit dashboard eller i automatiseringer.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&lt;\/div&gt;\"  href=\"https:\/\/smart-home-guide.dk\/index.php\/glossary\/template\/\"  data-gt-translate-attributes='[{\"attribute\":\"data-cmtooltip\", \"format\":\"html\"}]'  tabindex='0' role='link'>template<\/a>:\n  - sensor:\n      #&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;\n      # This <a class=\"glossaryLink\"  aria-describedby=\"tt\"  data-cmtooltip=\"&lt;div class=glossaryItemTitle&gt;Template&lt;\/div&gt;&lt;div class=glossaryItemBody&gt;&amp;lt;!-- wp:paragraph --&amp;gt;En template (skabelon) er en avanceret funktionalitet i HA. De kan bruges til at tilpasse og manipulere data, der kommer fra forskellige enheder eller sensorer, f&oslash;r de vises p&aring; dit dashboard eller bruges i automatiseringer.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;Med templates kan du oprette komplekse logikker, omregne v&aelig;rdier, eller udf&oslash;re forskellige beregninger baseret p&aring; inputdata. Templates kan bruges i din konfiguration, p&aring; dit dashboard eller i automatiseringer.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&lt;\/div&gt;\"  href=\"https:\/\/smart-home-guide.dk\/index.php\/glossary\/template\/\"  data-gt-translate-attributes='[{\"attribute\":\"data-cmtooltip\", \"format\":\"html\"}]'  tabindex='0' role='link'>template<\/a> calculates this price differences between the average\n      # electricity prices during different time intervals:\n      #\n      # - Hours between 00 and 05\n      # - Hours between 06 and 16\n      # - Hours between 17 and 20\n      # - Hours between 21 and 23\n      #&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;\n      - name: &quot;Solar Control - Price differences&quot;\n        unique_id: solar_control_price_differences\n        icon: mdi:battery-charging\n        state: &quot;{{ states('input_number.solar_control_house_battery_target_soc_before_peak')|float }}&quot;\n        unit_of_measurement: &quot;%&quot;\n        attributes:\n          price_diffs: &gt;\n            {#&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472; \n            CONFIGURATION\n            &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;\n            Change name of <a class=\"glossaryLink\"  aria-describedby=\"tt\"  data-cmtooltip=\"&lt;div class=glossaryItemTitle&gt;Template&lt;\/div&gt;&lt;div class=glossaryItemBody&gt;&amp;lt;!-- wp:paragraph --&amp;gt;En template (skabelon) er en avanceret funktionalitet i HA. De kan bruges til at tilpasse og manipulere data, der kommer fra forskellige enheder eller sensorer, f&oslash;r de vises p&aring; dit dashboard eller bruges i automatiseringer.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;Med templates kan du oprette komplekse logikker, omregne v&aelig;rdier, eller udf&oslash;re forskellige beregninger baseret p&aring; inputdata. Templates kan bruges i din konfiguration, p&aring; dit dashboard eller i automatiseringer.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&lt;\/div&gt;\"  href=\"https:\/\/smart-home-guide.dk\/index.php\/glossary\/template\/\"  data-gt-translate-attributes='[{\"attribute\":\"data-cmtooltip\", \"format\":\"html\"}]'  tabindex='0' role='link'>template<\/a> sensor calculating the hourly averages of \n            electricity prices provided by the Energi Data Service integration\n            &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;#}\n            {% set eds = &quot;sensor.solar_control_hourly_average_energy_prices&quot; -%}\n            {#&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472; \n            END OF CONFIGURATION\n            &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;#}\n            {% set prices = state_attr(eds, &quot;today&quot;) | list + state_attr(eds, &quot;tomorrow&quot;) | list if state_attr(eds, &quot;tomorrow_valid&quot;) else state_attr(eds, &quot;today&quot;) -%}\n            {% set current_time = now().hour -%}\n            {% set ns = namespace(prices = []) -%}\n            {% set start_index = current_time | int -%}\n            {% set start_index = 0 %}\n            {% set end_index = ([ prices | length] | min ) | int  -%}\n            {% set ns.p_td_00_06 = 0 -%}\n            {% set ns.p_td_06_17 = 0 -%}\n            {% set ns.p_td_17_21 = 0 -%}\n            {% set ns.p_td_21_00 = 0 -%}\n            {% set ns.f_td_00_06 = 0 -%}\n            {% set ns.f_td_06_17 = 0 -%}\n            {% set ns.f_td_17_21 = 0 -%}\n            {% set ns.f_td_21_00 = 0 -%}\n\n            {% set ns.p_tm_00_06 = 0 -%}\n            {% set ns.p_tm_06_17 = 0 -%}\n            {% set ns.p_tm_17_21 = 0 -%}\n            {% set ns.p_tm_21_00 = 0 -%}\n            {% set ns.f_tm_00_06 = 0 -%}\n            {% set ns.f_tm_06_17 = 0 -%}\n            {% set ns.f_tm_17_21 = 0 -%}\n            {% set ns.f_tm_21_00 = 0 -%}\n\n            {% for index in range(start_index, end_index) -%}\n              {%- set price = prices[index] | float -%}\n              {% if (index &lt; 6) -%}{% set ns.p_td_00_06 = price+ns.p_td_00_06 -%}{% endif-%}\n              {% if (index &gt; 5 and index &lt; 17) -%}{% set ns.p_td_06_17 = price+ns.p_td_06_17 -%}{% endif-%}\n              {% if (index &gt; 16 and index &lt; 21) -%}{% set ns.p_td_17_21 = price+ns.p_td_17_21 -%}{% endif-%}\n              {% if (index &gt; 20 and index &lt; 24) -%}{% set ns.p_td_21_00 = price+ns.p_td_21_00 -%}{% endif-%}\n              {% if (index &gt; 23 and index &lt; 30) -%}{% set ns.p_tm_00_06 = ns.p_tm_00_06+price -%}{% endif-%}\n              {% if (index &gt; 29 and index &lt; 41) -%}{% set ns.p_tm_06_17 = ns.p_tm_06_17+price -%}{% endif-%}\n              {% if (index &gt; 40 and index &lt; 45) -%}{% set ns.p_tm_17_21 = ns.p_tm_17_21+price -%}{% endif-%}\n              {% if (index &gt; 44 and index &lt; 48) -%}{% set ns.p_tm_21_00 = ns.p_tm_21_00+price -%}{% endif-%}\n            {% endfor -%}\n\n            {% set p_td_00_06_avg = ns.p_td_00_06\/6 %}\n            {% set p_td_06_17_avg = ns.p_td_06_17\/11  %}\n            {% set p_td_17_21_avg = ns.p_td_17_21\/4 %}\n            {% set p_td_21_00_avg = ns.p_td_21_00\/3 %}\n            {% set p_tm_00_06_avg = ns.p_tm_00_06\/6 %}\n            {% set p_tm_06_17_avg = ns.p_tm_06_17\/11  %}\n            {% set p_tm_17_21_avg = ns.p_tm_17_21\/4 %}\n            {% set p_tm_21_00_avg = ns.p_tm_21_00\/3 %}\n\n            {% set diffs = {&quot;Today_00_06_vs_06_17&quot;:  &quot;%.2f&quot; | format(p_td_06_17_avg - p_td_00_06_avg)|float, \n                            &quot;Today_06_17_vs_17_21&quot;:  &quot;%.2f&quot; | format(p_td_17_21_avg - p_td_06_17_avg)|float,  \n                            &quot;Today_00_06_vs_17_21&quot;:  &quot;%.2f&quot; | format(p_td_17_21_avg - p_td_00_06_avg)|float,\n                            &quot;Tomorrow_00_06_vs_06_17&quot;:  &quot;%.2f&quot; | format(p_tm_06_17_avg - p_tm_00_06_avg)|float,\n                            &quot;Tomorrow_00_06_vs_17_21&quot;:  &quot;%.2f&quot; | format(p_tm_17_21_avg - p_tm_00_06_avg)|float} \n                            %}\n\n            {{ diffs }}<\/code><\/pre>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Sensoren benytter priserne fra Energi Data Service integrationen. <\/p>\n\n\n\n<p class=\"has-text-align-left has-black-color has-text-color has-background\" style=\"background-color:#f0f0f0\"><strong>OPDATERING OKTOBER 2025<\/strong><br>Efter overgangen pr. 01.10.2025 til elpriser, der fastl&aelig;gges i 15 minutters intervaller i stedet for p&aring; timebasis, er det n&oslash;dvendigt at tilf&oslash;je en ny <a class=\"glossaryLink\"  aria-describedby=\"tt\"  data-cmtooltip=\"&lt;div class=glossaryItemTitle&gt;Template&lt;\/div&gt;&lt;div class=glossaryItemBody&gt;&amp;lt;!-- wp:paragraph --&amp;gt;En template (skabelon) er en avanceret funktionalitet i HA. De kan bruges til at tilpasse og manipulere data, der kommer fra forskellige enheder eller sensorer, f&oslash;r de vises p&aring; dit dashboard eller bruges i automatiseringer.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;Med templates kan du oprette komplekse logikker, omregne v&aelig;rdier, eller udf&oslash;re forskellige beregninger baseret p&aring; inputdata. Templates kan bruges i din konfiguration, p&aring; dit dashboard eller i automatiseringer.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&lt;\/div&gt;\"  href=\"https:\/\/smart-home-guide.dk\/index.php\/glossary\/template\/\"  data-gt-translate-attributes='[{\"attribute\":\"data-cmtooltip\", \"format\":\"html\"}]'  tabindex='0' role='link'>template<\/a> sensor, der beregner den gennemsnitlige pris pr. time. Ovenst&aring;ende <a class=\"glossaryLink\"  aria-describedby=\"tt\"  data-cmtooltip=\"&lt;div class=glossaryItemTitle&gt;Template&lt;\/div&gt;&lt;div class=glossaryItemBody&gt;&amp;lt;!-- wp:paragraph --&amp;gt;En template (skabelon) er en avanceret funktionalitet i HA. De kan bruges til at tilpasse og manipulere data, der kommer fra forskellige enheder eller sensorer, f&oslash;r de vises p&aring; dit dashboard eller bruges i automatiseringer.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;Med templates kan du oprette komplekse logikker, omregne v&aelig;rdier, eller udf&oslash;re forskellige beregninger baseret p&aring; inputdata. Templates kan bruges i din konfiguration, p&aring; dit dashboard eller i automatiseringer.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&lt;\/div&gt;\"  href=\"https:\/\/smart-home-guide.dk\/index.php\/glossary\/template\/\"  data-gt-translate-attributes='[{\"attribute\":\"data-cmtooltip\", \"format\":\"html\"}]'  tabindex='0' role='link'>template<\/a> kode er opdateret, s&aring; den anvender den nye <a class=\"glossaryLink\"  aria-describedby=\"tt\"  data-cmtooltip=\"&lt;div class=glossaryItemTitle&gt;Template&lt;\/div&gt;&lt;div class=glossaryItemBody&gt;&amp;lt;!-- wp:paragraph --&amp;gt;En template (skabelon) er en avanceret funktionalitet i HA. De kan bruges til at tilpasse og manipulere data, der kommer fra forskellige enheder eller sensorer, f&oslash;r de vises p&aring; dit dashboard eller bruges i automatiseringer.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;Med templates kan du oprette komplekse logikker, omregne v&aelig;rdier, eller udf&oslash;re forskellige beregninger baseret p&aring; inputdata. Templates kan bruges i din konfiguration, p&aring; dit dashboard eller i automatiseringer.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&lt;\/div&gt;\"  href=\"https:\/\/smart-home-guide.dk\/index.php\/glossary\/template\/\"  data-gt-translate-attributes='[{\"attribute\":\"data-cmtooltip\", \"format\":\"html\"}]'  tabindex='0' role='link'>template<\/a> sensor med de gennemsnitlige priser pr. time.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-yaml\">      #&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;\n      # This <a class=\"glossaryLink\"  aria-describedby=\"tt\"  data-cmtooltip=\"&lt;div class=glossaryItemTitle&gt;Template&lt;\/div&gt;&lt;div class=glossaryItemBody&gt;&amp;lt;!-- wp:paragraph --&amp;gt;En template (skabelon) er en avanceret funktionalitet i HA. De kan bruges til at tilpasse og manipulere data, der kommer fra forskellige enheder eller sensorer, f&oslash;r de vises p&aring; dit dashboard eller bruges i automatiseringer.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;Med templates kan du oprette komplekse logikker, omregne v&aelig;rdier, eller udf&oslash;re forskellige beregninger baseret p&aring; inputdata. Templates kan bruges i din konfiguration, p&aring; dit dashboard eller i automatiseringer.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&lt;\/div&gt;\"  href=\"https:\/\/smart-home-guide.dk\/index.php\/glossary\/template\/\"  data-gt-translate-attributes='[{\"attribute\":\"data-cmtooltip\", \"format\":\"html\"}]'  tabindex='0' role='link'>template<\/a> will calculate the hourly average enery price based on the\n      # electricity prices provided by the Energi Data Service integration\n      #&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;\n      - name: &quot;Solar Control - Hourly average energy prices&quot;\n        unique_id: solar_control_average_hourly_energy_prices\n        icon: mdi:cash\n        state: &gt;\n          {{ states('sensor.elpriser_inkl_afgifter') }}\n        attributes:\n          unit: &quot;kWh&quot;\n          currency: &quot;DKK&quot;\n          today: &gt;\n            {#&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472; \n            CONFIGURATION\n            &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;\n            Change name of sensor with electricity prices provided by the Energi \n            Data Service integration\n            &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;#}\n            {% set eds = &quot;sensor.energi_data_service&quot; -%}\n            {#&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472; \n            END OF CONFIGURATION\n            &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;#}\n            {% set prices = state_attr(eds, &quot;today&quot;) %}\n            {% set ns = namespace(prices = []) -%}\n            {% set hourly_averages = [] %}\n            {% for i in range(0, prices | length, 4) %}\n                {% set hour_slice = prices[i:i+4] %}\n                {% set ns.sum = 0 %}\n                {% for price in hour_slice %}\n                    {% set ns.sum = ns.sum + price %}\n                {% endfor %}\n                {% set average = ns.sum \/ hour_slice | length %}\n                {% set ns.prices = ns.prices + [average] %} \n            {% endfor %}\n            {{ ns.prices }}\n          tomorrow: &gt;\n            {#&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472; \n            CONFIGURATION\n            &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;\n            Change name of sensor with electricity prices provided by the Energi \n            Data Service integration\n            &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;#}\n            {% set eds = &quot;sensor.energi_data_service&quot; -%}\n            {#&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472; \n            END OF CONFIGURATION\n            &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;#}\n            {% set prices = state_attr(eds, &quot;tomorrow&quot;) %}\n            {% set ns = namespace(prices = []) -%}\n            {% if state_attr(eds,&quot;tomorrow_valid&quot;)==true %}\n              {% set hourly_averages = [] %}\n              {% for i in range(0, prices | length, 4) %}\n                  {% set hour_slice = prices[i:i+4] %}\n                  {% set ns.sum = 0 %}\n                  {% for price in hour_slice %}\n                      {% set ns.sum = ns.sum + price %}\n                  {% endfor %}\n                  {% set average = ns.sum \/ hour_slice | length %}\n                  {% set ns.prices = ns.prices + [average] %} \n              {% endfor %}\n              {{ ns.prices }}\n            {% else %}\n              {{ prices }}\n            {% endif %}\n          tomorrow_valid: &gt;\n            {{ state_attr(&quot;sensor.energi_data_service&quot;,&quot;tomorrow_valid&quot;) }}\n          current_price: &gt;\n            {{ this.attributes.today[now().hour] | default(0) }}<\/code><\/pre>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Nu kan der laves en ny <a class=\"glossaryLink\"  aria-describedby=\"tt\"  data-cmtooltip=\"&lt;div class=glossaryItemTitle&gt;Template&lt;\/div&gt;&lt;div class=glossaryItemBody&gt;&amp;lt;!-- wp:paragraph --&amp;gt;En template (skabelon) er en avanceret funktionalitet i HA. De kan bruges til at tilpasse og manipulere data, der kommer fra forskellige enheder eller sensorer, f&oslash;r de vises p&aring; dit dashboard eller bruges i automatiseringer.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;Med templates kan du oprette komplekse logikker, omregne v&aelig;rdier, eller udf&oslash;re forskellige beregninger baseret p&aring; inputdata. Templates kan bruges i din konfiguration, p&aring; dit dashboard eller i automatiseringer.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&lt;\/div&gt;\"  href=\"https:\/\/smart-home-guide.dk\/index.php\/glossary\/template\/\"  data-gt-translate-attributes='[{\"attribute\":\"data-cmtooltip\", \"format\":\"html\"}]'  tabindex='0' role='link'>template<\/a> sensor, der beregner m&aring;lniveauet for opladning:<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-yaml\">      #&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;\n      # This <a class=\"glossaryLink\"  aria-describedby=\"tt\"  data-cmtooltip=\"&lt;div class=glossaryItemTitle&gt;Template&lt;\/div&gt;&lt;div class=glossaryItemBody&gt;&amp;lt;!-- wp:paragraph --&amp;gt;En template (skabelon) er en avanceret funktionalitet i HA. De kan bruges til at tilpasse og manipulere data, der kommer fra forskellige enheder eller sensorer, f&oslash;r de vises p&aring; dit dashboard eller bruges i automatiseringer.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;Med templates kan du oprette komplekse logikker, omregne v&aelig;rdier, eller udf&oslash;re forskellige beregninger baseret p&aring; inputdata. Templates kan bruges i din konfiguration, p&aring; dit dashboard eller i automatiseringer.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&lt;\/div&gt;\"  href=\"https:\/\/smart-home-guide.dk\/index.php\/glossary\/template\/\"  data-gt-translate-attributes='[{\"attribute\":\"data-cmtooltip\", \"format\":\"html\"}]'  tabindex='0' role='link'>template<\/a> sets the house battery target SoC based on values defined\n      # in input numbers and whether charging from grid is enabled and defined\n      # charging criteria's are met.\n      #&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;\n      - name: &quot;Solar Control - House battery target SoC&quot;\n        unique_id: solar_control_house_battery_target_soc\n        icon: mdi:battery-charging\n        state: &quot;{{ this.attributes.targetSOC | default(0) }}&quot;\n        unit_of_measurement: &quot;%&quot;\n        attributes:\n          status: &gt;\n            {#&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472; \n            CONFIGURATION\n            &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;\n            Change name of sensor with  Solar forecast provided the Solcast \n            integration\n            &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;#}\n            {% set forecast0 = states(&quot;sensor.solcast_pv_forecast_forecast_today&quot;)|float -%}\n            {% set forecast1 = states(&quot;sensor.solcast_pv_forecast_forecast_tomorrow&quot;)|float -%}\n            {#&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472; \n            END OF CONFIGURATION\n            &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;#}\n            {% set min_prod = states(&quot;input_number.solar_control_production_charge_limit&quot;)|float -%}\n            {% set min_diff = states(&quot;input_number.solar_control_house_battery_min_saving&quot;)|float -%}\n            {# Check if price difference for tomorrow are higher than the defined cutoff #}\n            {% if now().hour &gt; 16 %}\n              {% set cur_diff = state_attr('sensor.solar_control_price_differences','price_diffs').Tomorrow_00_06_vs_06_17 | float %}\n              {% if cur_diff &gt; min_diff %}\n                {% set targetSOC= states('input_number.solar_control_house_battery_target_soc_midnight')|int %}\n              {% else %}\n                {% set cur_diff = state_attr('sensor.solar_control_price_differences','price_diffs').Tomorrow_00_06_vs_17_21 | float %}\n                {% set targetSOC= states('input_number.solar_control_house_battery_target_soc_before_peak')|int %}\n              {% endif %}\n              {% if forecast1 &gt; min_prod %}  \n                {% set min_diff = 9999 %}\n              {% endif %}\n            {# Same check but after midnight #}\n            {% elif now().hour &lt;6 %}\n              {% set cur_diff = state_attr('sensor.solar_control_price_differences','price_diffs').Today_00_06_vs_06_17 | float %}\n              {% if cur_diff &gt; min_diff %}\n                {% set targetSOC= states('input_number.solar_control_house_battery_target_soc_midnight')|int %}\n              {% else %}\n                {% set cur_diff = state_attr('sensor.solar_control_price_differences','price_diffs').Today_00_06_vs_17_21 | float %}\n                {% set targetSOC= states('input_number.solar_control_house_battery_target_soc_before_peak')|int %}\n              {% endif %}\n              {% if forecast0 &gt; min_prod %}  \n                {% set min_diff = 9999 %}\n              {% endif %}\n            {# Check if price difference before dinner peak is higher than the defined cutoff #}\n            {% else %}\n              {% set cur_diff = state_attr('sensor.solar_control_price_differences','price_diffs').Today_06_17_vs_17_21 | float %}\n              {% set targetSOC= states('input_number.solar_control_house_battery_target_soc_before_peak')|int %}\n            {% endif %}\n            {% if cur_diff &gt; min_diff %}\n            charge to {{targetSOC}}%\n            {% else %}\n            no_charging\n            {% endif %}\n          targetSOC: &gt;\n            {% set status=this.attributes.status %}\n            {% if status[0:6] =='charge' %}\n              {{ status[10:]|replace('%','')|int }}\n            {% else %}\n              0\n            {% endif %}<\/code><\/pre>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Sensoren anvender prognoser for de kommende dages solproduktion fra Solcast integration. Er betingelser<\/p>\n\n\n\n<p>I historikken kan man se, hvordan batteriets m&aring;lniveau &aelig;ndres over dagen:<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"842\" height=\"1024\" src=\"https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-842x1024.jpeg\" alt=\"Historik fra template sensor, der fasts&aelig;tter m&aring;lniveau for opladning\" class=\"wp-image-4368\" srcset=\"https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-842x1024.jpeg 842w, https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-247x300.jpeg 247w, https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-768x934.jpeg 768w, https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image.jpeg 1179w\" sizes=\"auto, (max-width: 842px) 100vw, 842px\"\/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Den nye sensor bruges i EV Smart Charging ops&aelig;tningen: <\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"432\" height=\"585\" src=\"https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/11\/image.png\" alt=\"Konfiguration af EV Smart Charging integrationen\" class=\"wp-image-4382\" srcset=\"https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/11\/image.png 432w, https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/11\/image-222x300.png 222w\" sizes=\"auto, (max-width: 432px) 100vw, 432px\"\/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Nu kan opladningen af husbatteriet styres af EV Smart Charging integrationen: <\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1179\" height=\"2202\" src=\"https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-1.jpeg\" alt=\"Sk&aelig;rmbillede, der viser planlagt opladning af husbatteri.\" class=\"wp-image-4369\" srcset=\"https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-1.jpeg 1179w, https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-1-161x300.jpeg 161w, https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-1-548x1024.jpeg 548w, https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-1-768x1434.jpeg 768w, https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-1-822x1536.jpeg 822w, https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-1-1097x2048.jpeg 1097w\" sizes=\"auto, (max-width: 1179px) 100vw, 1179px\"\/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>I eksemplet ovenfor er opladning planlagt til at ske til 40% mellem kl. 12-13, hvor prisen er lavest.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><a class=\"glossaryLink\"  aria-describedby=\"tt\"  data-cmtooltip=\"&lt;div class=glossaryItemTitle&gt;Automatisering&lt;\/div&gt;&lt;div class=glossaryItemBody&gt;&amp;lt;!-- wp:paragraph --&amp;gt;En automatisering er en m&aring;de til automatisk at udf&oslash;re forskellige handlinger i HA uden input fra dig eller andre brugere. Automatiseringer kan udf&oslash;res p&aring; faste tidspunkter eller ved forskellige h&aelig;ndelser og betingelser.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;Det kan eksempelvis v&aelig;re en simpel automatisering, der t&aelig;nder lyset, n&aring;r du kommer hjem. Eller en mere avanceret automatisering, som slukker for alt lys, advarer om evt. &aring;bne d&oslash;re og vinduer og aktiverer alarmen, n&aring;r du g&aring;r i seng om aftenen. &amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&lt;\/div&gt;\"  href=\"https:\/\/smart-home-guide.dk\/index.php\/glossary\/automatisering\/\"  data-gt-translate-attributes='[{\"attribute\":\"data-cmtooltip\", \"format\":\"html\"}]'  tabindex='0' role='link'>Automatisering<\/a><\/h3>\n\n\n\n<p>Nu er data p&aring; plads og det sidste, der mangler, er at bygge automatiseringer til at starte og stoppe opladningen. Her er et eksempel p&aring; en <a class=\"glossaryLink\"  aria-describedby=\"tt\"  data-cmtooltip=\"&lt;div class=glossaryItemTitle&gt;Automatisering&lt;\/div&gt;&lt;div class=glossaryItemBody&gt;&amp;lt;!-- wp:paragraph --&amp;gt;En automatisering er en m&aring;de til automatisk at udf&oslash;re forskellige handlinger i HA uden input fra dig eller andre brugere. Automatiseringer kan udf&oslash;res p&aring; faste tidspunkter eller ved forskellige h&aelig;ndelser og betingelser.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;Det kan eksempelvis v&aelig;re en simpel automatisering, der t&aelig;nder lyset, n&aring;r du kommer hjem. Eller en mere avanceret automatisering, som slukker for alt lys, advarer om evt. &aring;bne d&oslash;re og vinduer og aktiverer alarmen, n&aring;r du g&aring;r i seng om aftenen. &amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&lt;\/div&gt;\"  href=\"https:\/\/smart-home-guide.dk\/index.php\/glossary\/automatisering\/\"  data-gt-translate-attributes='[{\"attribute\":\"data-cmtooltip\", \"format\":\"html\"}]'  tabindex='0' role='link'>automatisering<\/a>, der starter opladningen. Automatiseringen udl&oslash;ses, n&aring;r sensoren&nbsp;<kbd>sensor.ev_smart_charging_charging<\/kbd>&nbsp;skifter status fra &ldquo;off&rdquo; til &ldquo;on&rdquo;. Handlingen, der er kr&aelig;vet for at starte opladningen vil v&aelig;re afh&aelig;nge af hvilken inverter, der anvendes. Eksemplet tager udgangspunkt i en Deye hybrid inverter, der er integreret via ESPHome. Inverteren har forskellige tidsindstillinger til styring af opladning, s&aring; automatiseringen er delt to forskellige tidsperioder:<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-yaml\">automation:\n  #&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;\n  # This automation activates grid charging of house battery when the EV Smart\n  # Charging sensor has status = 'on' and sets the defined target SoC\n  #&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;\n  - alias: &quot;Solar control: Start grid charging&quot;\n    id: solar_control_start_grid_charging\n    description: Enable grid charging based on EV Smart Charging status\n    triggers:\n      - trigger: state\n        entity_id:\n          - sensor.ev_smart_charging_house_charging\n        to: &quot;on&quot;\n        from: &quot;off&quot;\n    conditions: []\n    actions:\n      - choose:\n          - conditions:\n              - condition: time\n                before: &quot;05:54:00&quot;\n            sequence:\n              - action: switch.turn_on\n                metadata: {}\n                data: {}\n                target:\n                  entity_id: switch.deyemodbus_deye_time_point_1_charge_enable\n              - action: number.set_value\n                target:\n                  entity_id: number.deyemodbus_deye_time_point_1_capacity\n                data:\n                  value: &gt;-\n                    {{states('input_number.solar_control_house_battery_target_soc_midnight')|int}}\n          - conditions:\n              - condition: time\n                after: &quot;05:59:00&quot;\n            sequence:\n              - action: switch.turn_on\n                metadata: {}\n                data: {}\n                target:\n                  entity_id: switch.deyemodbus_deye_time_point_4_charge_enable\n              - action: number.set_value\n                target:\n                  entity_id: number.deyemodbus_deye_time_point_4_capacity\n                data:\n                  value: &gt;-\n                    {{states('input_number.solar_control_house_battery_target_soc_before_peak')|int}}\n    mode: single<\/code><\/pre>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>P&aring; samme m&aring;de, kan der laves en <a class=\"glossaryLink\"  aria-describedby=\"tt\"  data-cmtooltip=\"&lt;div class=glossaryItemTitle&gt;Automatisering&lt;\/div&gt;&lt;div class=glossaryItemBody&gt;&amp;lt;!-- wp:paragraph --&amp;gt;En automatisering er en m&aring;de til automatisk at udf&oslash;re forskellige handlinger i HA uden input fra dig eller andre brugere. Automatiseringer kan udf&oslash;res p&aring; faste tidspunkter eller ved forskellige h&aelig;ndelser og betingelser.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;Det kan eksempelvis v&aelig;re en simpel automatisering, der t&aelig;nder lyset, n&aring;r du kommer hjem. Eller en mere avanceret automatisering, som slukker for alt lys, advarer om evt. &aring;bne d&oslash;re og vinduer og aktiverer alarmen, n&aring;r du g&aring;r i seng om aftenen. &amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&lt;\/div&gt;\"  href=\"https:\/\/smart-home-guide.dk\/index.php\/glossary\/automatisering\/\"  data-gt-translate-attributes='[{\"attribute\":\"data-cmtooltip\", \"format\":\"html\"}]'  tabindex='0' role='link'>automatisering<\/a>, der stopper opladningen, n&aring;r  sensoren&nbsp;<kbd>sensor.ev_smart_charging_charging<\/kbd>&nbsp;skifter status fra &ldquo;on&rdquo; til &ldquo;off&rdquo;.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Samlet&nbsp;<a href=\"https:\/\/smart-home-guide.dk\/index.php\/glossary\/package\/\">package<\/a>&nbsp;med ovenst&aring;ende kode<\/h3>\n\n\n\n<p>I stedet for at oprette hj&aelig;lpere, skabelon og automatiseringer s&aelig;rskilt, kan man samle det hele i &eacute;n fil &ndash; en s&aring;kaldt <a class=\"glossaryLink\"  aria-describedby=\"tt\"  data-cmtooltip=\"&lt;div class=glossaryItemTitle&gt;Package&lt;\/div&gt;&lt;div class=glossaryItemBody&gt;&amp;lt;!-- wp:paragraph --&amp;gt;En package (pakke) er en m&aring;de at organisere og gruppere konfigurationsindstillinger, automatiseringer, enheder og andre komponenter sammen i en samlet fil i HA. Dermed kan man samle konfiguration og tilh&oslash;rende automatiseringer og g&oslash;re vedligeholdelsen mere enkel. &amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;Det g&oslash;r det muligt at opdele din konfiguration og automatiseringer i mindre og mere overskuelige dele. Endeligt er en package fil ogs&aring; nemmere at dele med andre brugere. &amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;Du kan l&aelig;se mere om packages i den &amp;lt;a href=&amp;quot;https:\/\/www.home-assistant.io\/docs\/configuration\/packages\/&amp;quot; target=&amp;quot;_blank&amp;quot; rel=&amp;quot;noreferrer noopener nofollow&amp;quot;&amp;gt;officielle dokumentation&amp;lt;\/a&amp;gt;.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&lt;\/div&gt;\"  href=\"https:\/\/smart-home-guide.dk\/index.php\/glossary\/package\/\"  data-gt-translate-attributes='[{\"attribute\":\"data-cmtooltip\", \"format\":\"html\"}]'  tabindex='0' role='link'>package<\/a>.<\/p>\n\n\n\n<p>Jeg har lavet en <a class=\"glossaryLink\"  aria-describedby=\"tt\"  data-cmtooltip=\"&lt;div class=glossaryItemTitle&gt;Package&lt;\/div&gt;&lt;div class=glossaryItemBody&gt;&amp;lt;!-- wp:paragraph --&amp;gt;En package (pakke) er en m&aring;de at organisere og gruppere konfigurationsindstillinger, automatiseringer, enheder og andre komponenter sammen i en samlet fil i HA. Dermed kan man samle konfiguration og tilh&oslash;rende automatiseringer og g&oslash;re vedligeholdelsen mere enkel. &amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;Det g&oslash;r det muligt at opdele din konfiguration og automatiseringer i mindre og mere overskuelige dele. Endeligt er en package fil ogs&aring; nemmere at dele med andre brugere. &amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;Du kan l&aelig;se mere om packages i den &amp;lt;a href=&amp;quot;https:\/\/www.home-assistant.io\/docs\/configuration\/packages\/&amp;quot; target=&amp;quot;_blank&amp;quot; rel=&amp;quot;noreferrer noopener nofollow&amp;quot;&amp;gt;officielle dokumentation&amp;lt;\/a&amp;gt;.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&lt;\/div&gt;\"  href=\"https:\/\/smart-home-guide.dk\/index.php\/glossary\/package\/\"  data-gt-translate-attributes='[{\"attribute\":\"data-cmtooltip\", \"format\":\"html\"}]'  tabindex='0' role='link'>package<\/a> fil, som du kan hente p&aring; min&nbsp;<a href=\"https:\/\/github.com\/dykandDK\/home-assistant-config\/blob\/master\/packages\/solar_control.yaml\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>GitHub side<\/strong><\/a>. Den indeholder ovenst&aring;ende koder og kan let inds&aelig;ttes i din egen HA l&oslash;sning. Den indeholder ogs&aring; automatiseringer til opladning af elbil med overskudsproduktion fra solceller. Det har jeg skrevet om i <a href=\"https:\/\/smart-home-guide.dk\/index.php\/2024\/01\/02\/smart-opladning-af-elbil\/\">dette indl&aelig;g<\/a>. Hvis du ikke har elbil, kan de dele af koden slettes. Eller du kan deaktivere automatiseringerne i HA.<\/p>\n\n\n\n<p>Der er forskellige m&aring;der at integrere en <a class=\"glossaryLink\"  aria-describedby=\"tt\"  data-cmtooltip=\"&lt;div class=glossaryItemTitle&gt;Package&lt;\/div&gt;&lt;div class=glossaryItemBody&gt;&amp;lt;!-- wp:paragraph --&amp;gt;En package (pakke) er en m&aring;de at organisere og gruppere konfigurationsindstillinger, automatiseringer, enheder og andre komponenter sammen i en samlet fil i HA. Dermed kan man samle konfiguration og tilh&oslash;rende automatiseringer og g&oslash;re vedligeholdelsen mere enkel. &amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;Det g&oslash;r det muligt at opdele din konfiguration og automatiseringer i mindre og mere overskuelige dele. Endeligt er en package fil ogs&aring; nemmere at dele med andre brugere. &amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;Du kan l&aelig;se mere om packages i den &amp;lt;a href=&amp;quot;https:\/\/www.home-assistant.io\/docs\/configuration\/packages\/&amp;quot; target=&amp;quot;_blank&amp;quot; rel=&amp;quot;noreferrer noopener nofollow&amp;quot;&amp;gt;officielle dokumentation&amp;lt;\/a&amp;gt;.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&lt;\/div&gt;\"  href=\"https:\/\/smart-home-guide.dk\/index.php\/glossary\/package\/\"  data-gt-translate-attributes='[{\"attribute\":\"data-cmtooltip\", \"format\":\"html\"}]'  tabindex='0' role='link'>package<\/a> p&aring; i din HA. Det kan du l&aelig;se mere i den&nbsp;<a href=\"https:\/\/www.home-assistant.io\/docs\/configuration\/packages\/\">officielle HA dokumentation<\/a>. Selv har jeg valgt metoden, hvor packages tilf&oslash;jes i en mappe (packages) i hver deres fil.<\/p>\n\n\n\n<p>Det kr&aelig;ver blot en enkelt tilf&oslash;jelse i din&nbsp;<kbd>configuration<\/kbd>.<a class=\"glossaryLink\"  aria-describedby=\"tt\"  data-cmtooltip=\"&lt;div class=glossaryItemTitle&gt;YAML&lt;\/div&gt;&lt;div class=glossaryItemBody&gt;&amp;lt;!-- wp:paragraph --&amp;gt;YAML er det sprog som Home Assistant bruger i sin konfiguration samt hvis du v&aelig;lger at redigere automatiseringer og dit dashboard direkte i et tekst eller kode redigeringsprogram.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;YAML er letl&aelig;seligt, da der ikke best&aring;r af specialtegn som f.eks. JSON og XML. YAML er dog meget kritisk omkring&nbsp;formatering af koden. For eksempel &amp;lt;strong&amp;gt;skal&amp;lt;\/strong&amp;gt; alle indrykninger&nbsp;laves med mellemrum og ikke TAB.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;Du kan l&aelig;se mere om redigering af dashboards i YAML i dette &amp;lt;a href=&amp;quot;https:\/\/smart-home-guide.dk\/index.php\/2022\/10\/30\/saadan-bygger-du-det-perfekte-dashboard-del-2\/#to-yaml-or-not-to-yaml&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;indl&aelig;g&amp;lt;\/strong&amp;gt;&amp;lt;\/a&amp;gt;.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&lt;\/div&gt;\"  href=\"https:\/\/smart-home-guide.dk\/index.php\/glossary\/yaml\/\"  data-gt-translate-attributes='[{\"attribute\":\"data-cmtooltip\", \"format\":\"html\"}]'  tabindex='0' role='link'>yaml<\/a>&nbsp;fil med reference til den oprettede mappe:<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-yaml\">homeassistant:\n  packages: !include_dir_named packages<\/code><\/pre>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><a class=\"glossaryLink\"  aria-describedby=\"tt\"  data-cmtooltip=\"&lt;div class=glossaryItemTitle&gt;Package&lt;\/div&gt;&lt;div class=glossaryItemBody&gt;&amp;lt;!-- wp:paragraph --&amp;gt;En package (pakke) er en m&aring;de at organisere og gruppere konfigurationsindstillinger, automatiseringer, enheder og andre komponenter sammen i en samlet fil i HA. Dermed kan man samle konfiguration og tilh&oslash;rende automatiseringer og g&oslash;re vedligeholdelsen mere enkel. &amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;Det g&oslash;r det muligt at opdele din konfiguration og automatiseringer i mindre og mere overskuelige dele. Endeligt er en package fil ogs&aring; nemmere at dele med andre brugere. &amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;Du kan l&aelig;se mere om packages i den &amp;lt;a href=&amp;quot;https:\/\/www.home-assistant.io\/docs\/configuration\/packages\/&amp;quot; target=&amp;quot;_blank&amp;quot; rel=&amp;quot;noreferrer noopener nofollow&amp;quot;&amp;gt;officielle dokumentation&amp;lt;\/a&amp;gt;.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&lt;\/div&gt;\"  href=\"https:\/\/smart-home-guide.dk\/index.php\/glossary\/package\/\"  data-gt-translate-attributes='[{\"attribute\":\"data-cmtooltip\", \"format\":\"html\"}]'  tabindex='0' role='link'>Package<\/a> filen skal opdateres med navne p&aring; sensorer, der er anvendt i din installation, f.eks. sensorer til elpriser, prognose for solproduktion mv.<\/p>\n\n\n\n<p>Det eneste, som <a class=\"glossaryLink\"  aria-describedby=\"tt\"  data-cmtooltip=\"&lt;div class=glossaryItemTitle&gt;Package&lt;\/div&gt;&lt;div class=glossaryItemBody&gt;&amp;lt;!-- wp:paragraph --&amp;gt;En package (pakke) er en m&aring;de at organisere og gruppere konfigurationsindstillinger, automatiseringer, enheder og andre komponenter sammen i en samlet fil i HA. Dermed kan man samle konfiguration og tilh&oslash;rende automatiseringer og g&oslash;re vedligeholdelsen mere enkel. &amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;Det g&oslash;r det muligt at opdele din konfiguration og automatiseringer i mindre og mere overskuelige dele. Endeligt er en package fil ogs&aring; nemmere at dele med andre brugere. &amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;Du kan l&aelig;se mere om packages i den &amp;lt;a href=&amp;quot;https:\/\/www.home-assistant.io\/docs\/configuration\/packages\/&amp;quot; target=&amp;quot;_blank&amp;quot; rel=&amp;quot;noreferrer noopener nofollow&amp;quot;&amp;gt;officielle dokumentation&amp;lt;\/a&amp;gt;.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&lt;\/div&gt;\"  href=\"https:\/\/smart-home-guide.dk\/index.php\/glossary\/package\/\"  data-gt-translate-attributes='[{\"attribute\":\"data-cmtooltip\", \"format\":\"html\"}]'  tabindex='0' role='link'>package<\/a> filen ikke indeholder, er kode til <a class=\"glossaryLink\"  aria-describedby=\"tt\"  data-cmtooltip=\"&lt;div class=glossaryItemTitle&gt;Dashboard&lt;\/div&gt;&lt;div class=glossaryItemBody&gt;&amp;lt;!-- wp:paragraph --&amp;gt;Et dashboard er den brugerdefinerede gr&aelig;nseflade (GUI) i HA hvor du kan visualisere og styre enheder, automatiseringer og sensorer, der er integreret med din HA l&oslash;sning.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;Et dashboard giver dig mulighed for at bygge dine egne sider med indhold, hvor du kan vise informationer om og styre dit smarte hjem. Du kan tilf&oslash;je forskellige   kontrolelementer (kort) med oplysninger, grafer og knapper og meget andet, der kan bruges til at interagere med dine tilsluttede smart enheder.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;Du kan tilf&oslash;je flere dashboards, og opdele indhold p&aring; hvert dashboard i forskellige faner (views).&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&lt;\/div&gt;\"  href=\"https:\/\/smart-home-guide.dk\/index.php\/glossary\/dashboard\/\"  data-gt-translate-attributes='[{\"attribute\":\"data-cmtooltip\", \"format\":\"html\"}]'  tabindex='0' role='link'>dashboard<\/a>. Min <a class=\"glossaryLink\"  aria-describedby=\"tt\"  data-cmtooltip=\"&lt;div class=glossaryItemTitle&gt;Dashboard&lt;\/div&gt;&lt;div class=glossaryItemBody&gt;&amp;lt;!-- wp:paragraph --&amp;gt;Et dashboard er den brugerdefinerede gr&aelig;nseflade (GUI) i HA hvor du kan visualisere og styre enheder, automatiseringer og sensorer, der er integreret med din HA l&oslash;sning.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;Et dashboard giver dig mulighed for at bygge dine egne sider med indhold, hvor du kan vise informationer om og styre dit smarte hjem. Du kan tilf&oslash;je forskellige   kontrolelementer (kort) med oplysninger, grafer og knapper og meget andet, der kan bruges til at interagere med dine tilsluttede smart enheder.&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&amp;lt;!-- wp:paragraph --&amp;gt;Du kan tilf&oslash;je flere dashboards, og opdele indhold p&aring; hvert dashboard i forskellige faner (views).&amp;lt;br\/&amp;gt;&amp;lt;!-- \/wp:paragraph --&amp;gt;&lt;\/div&gt;\"  href=\"https:\/\/smart-home-guide.dk\/index.php\/glossary\/dashboard\/\"  data-gt-translate-attributes='[{\"attribute\":\"data-cmtooltip\", \"format\":\"html\"}]'  tabindex='0' role='link'>dashboard<\/a> kode, der er vist i eksemplerne ovenfor, kan ogs&aring; findes p&aring; min&nbsp;<a href=\"https:\/\/raw.githubusercontent.com\/dykandDK\/home-assistant-config\/refs\/heads\/master\/include\/views\/house_battery_charging.yaml\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>GitHub side<\/strong><\/a>.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Muligheder for forbedring?<\/h2>\n\n\n\n<p>Kan min opladning g&oslash;res smartere? Helt sikkert. Og det kan det kan helt sikkert ogs&aring; g&oslash;res mere enkelt. F.eks. ved at undlade at bruge EV Smart Charging integrationen. Eller ved bare at indtaste v&aelig;rdier direkte i automatiseringerne i stedet for at bruge hj&aelig;lpere. <\/p>\n\n\n\n<p>Jeg har dog tidligere styret opladningen manuelt og foretr&aelig;kker derfor at have en grad af kontrol. <\/p>\n\n\n\n<p>Det kan omvendt ogs&aring; g&oslash;res mere avanceret &ndash; f.eks. ved at kigge p&aring; det historiske elforbrug fordelt over dagen for at udregne behov for opladning. Eller ved at kigge p&aring; de enkelte timepriser i l&oslash;bet af dagen i stedet for gennemsnitspriser. Endeligt kan man ogs&aring; overveje at beregne niveau for opladning set i forhold til den forventede solproduktion. <\/p>\n\n\n\n<p>M&aring;ske kommer der en version 2 p&aring; et tidspunkt, men indtil videre d&aelig;kke automatiseringerne fint mit behov. Skriv gerne en kommentar, hvis du har andre l&oslash;sninger til din opladning eller forslag til forbedringer.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Se hvordan du kan bruge Home Assistant til intelligent styring af opladning og brug af batterier koblet p&aring; et solcelleanl&aelig;g.<\/p>\n","protected":false},"author":2,"featured_media":4377,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"inline_featured_image":false,"_uag_custom_page_level_css":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[40,7],"tags":[],"class_list":["post-4048","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-automation","category-dashboard"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Intelligent opladning af husbatteri | Smart Home Guide<\/title>\n<meta name=\"description\" content=\"Se hvordan du kan bruge Home Assistant til intelligent styring af opladning og brug af batterier koblet p\u00e5 et solcelleanl\u00e6g.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/smart-home-guide.dk\/index.php\/2024\/11\/10\/opladning-af-husbatteri\/\" \/>\n<meta property=\"og:locale\" content=\"da_DK\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Intelligent opladning af husbatteri | Smart Home Guide\" \/>\n<meta property=\"og:description\" content=\"Se hvordan du kan bruge Home Assistant til intelligent styring af opladning og brug af batterier koblet p\u00e5 et solcelleanl\u00e6g.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/smart-home-guide.dk\/index.php\/2024\/11\/10\/opladning-af-husbatteri\/\" \/>\n<meta property=\"og:site_name\" content=\"Smart Home Guide\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-09T23:20:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-11T00:05:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1500\" \/>\n\t<meta property=\"og:image:height\" content=\"845\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Anders\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Skrevet af\" \/>\n\t<meta name=\"twitter:data1\" content=\"Anders\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimeret l\u00e6setid\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutter\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/smart-home-guide.dk\\\/index.php\\\/2024\\\/11\\\/10\\\/opladning-af-husbatteri\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/smart-home-guide.dk\\\/index.php\\\/2024\\\/11\\\/10\\\/opladning-af-husbatteri\\\/\"},\"author\":{\"name\":\"Anders\",\"@id\":\"https:\\\/\\\/smart-home-guide.dk\\\/#\\\/schema\\\/person\\\/8ed18dab401a0784e593ce6345252498\"},\"headline\":\"Intelligent opladning af husbatteri\",\"datePublished\":\"2024-11-09T23:20:53+00:00\",\"dateModified\":\"2025-10-11T00:05:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/smart-home-guide.dk\\\/index.php\\\/2024\\\/11\\\/10\\\/opladning-af-husbatteri\\\/\"},\"wordCount\":1864,\"commentCount\":9,\"publisher\":{\"@id\":\"https:\\\/\\\/smart-home-guide.dk\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/smart-home-guide.dk\\\/index.php\\\/2024\\\/11\\\/10\\\/opladning-af-husbatteri\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/smart-home-guide.dk\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/image-2.png\",\"articleSection\":[\"Automatisering\",\"Dashboard\"],\"inLanguage\":\"da-DK\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/smart-home-guide.dk\\\/index.php\\\/2024\\\/11\\\/10\\\/opladning-af-husbatteri\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/smart-home-guide.dk\\\/index.php\\\/2024\\\/11\\\/10\\\/opladning-af-husbatteri\\\/\",\"url\":\"https:\\\/\\\/smart-home-guide.dk\\\/index.php\\\/2024\\\/11\\\/10\\\/opladning-af-husbatteri\\\/\",\"name\":\"Intelligent opladning af husbatteri | Smart Home Guide\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/smart-home-guide.dk\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/smart-home-guide.dk\\\/index.php\\\/2024\\\/11\\\/10\\\/opladning-af-husbatteri\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/smart-home-guide.dk\\\/index.php\\\/2024\\\/11\\\/10\\\/opladning-af-husbatteri\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/smart-home-guide.dk\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/image-2.png\",\"datePublished\":\"2024-11-09T23:20:53+00:00\",\"dateModified\":\"2025-10-11T00:05:00+00:00\",\"description\":\"Se hvordan du kan bruge Home Assistant til intelligent styring af opladning og brug af batterier koblet p\u00e5 et solcelleanl\u00e6g.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/smart-home-guide.dk\\\/index.php\\\/2024\\\/11\\\/10\\\/opladning-af-husbatteri\\\/#breadcrumb\"},\"inLanguage\":\"da-DK\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/smart-home-guide.dk\\\/index.php\\\/2024\\\/11\\\/10\\\/opladning-af-husbatteri\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"da-DK\",\"@id\":\"https:\\\/\\\/smart-home-guide.dk\\\/index.php\\\/2024\\\/11\\\/10\\\/opladning-af-husbatteri\\\/#primaryimage\",\"url\":\"https:\\\/\\\/smart-home-guide.dk\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/image-2.png\",\"contentUrl\":\"https:\\\/\\\/smart-home-guide.dk\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/image-2.png\",\"width\":1500,\"height\":845,\"caption\":\"Se hvordan du kan bruge Home Assistant til intelligent styring af opladning og brug af batterier koblet p\u00e5 et solcelleanl\u00e6g.\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/smart-home-guide.dk\\\/index.php\\\/2024\\\/11\\\/10\\\/opladning-af-husbatteri\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Hjem\",\"item\":\"https:\\\/\\\/smart-home-guide.dk\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Intelligent opladning af husbatteri\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/smart-home-guide.dk\\\/#website\",\"url\":\"https:\\\/\\\/smart-home-guide.dk\\\/\",\"name\":\"Smart Home Guide\",\"description\":\"Din genvej til et smartere hjem\",\"publisher\":{\"@id\":\"https:\\\/\\\/smart-home-guide.dk\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/smart-home-guide.dk\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"da-DK\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/smart-home-guide.dk\\\/#organization\",\"name\":\"Smart Home Guide\",\"url\":\"https:\\\/\\\/smart-home-guide.dk\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"da-DK\",\"@id\":\"https:\\\/\\\/smart-home-guide.dk\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/smart-home-guide.dk\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/shg_logo_400x400_2-1.png\",\"contentUrl\":\"https:\\\/\\\/smart-home-guide.dk\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/shg_logo_400x400_2-1.png\",\"width\":400,\"height\":400,\"caption\":\"Smart Home Guide\"},\"image\":{\"@id\":\"https:\\\/\\\/smart-home-guide.dk\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/github.com\\\/dykandDK\\\/home-assistant-config\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/smart-home-guide.dk\\\/#\\\/schema\\\/person\\\/8ed18dab401a0784e593ce6345252498\",\"name\":\"Anders\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"da-DK\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/460cba51b925b4d837db0c071f23d5a3dd193dd8746ebfcf23f78489dd330632?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/460cba51b925b4d837db0c071f23d5a3dd193dd8746ebfcf23f78489dd330632?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/460cba51b925b4d837db0c071f23d5a3dd193dd8746ebfcf23f78489dd330632?s=96&d=mm&r=g\",\"caption\":\"Anders\"},\"url\":\"https:\\\/\\\/smart-home-guide.dk\\\/index.php\\\/author\\\/anders\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Intelligent opladning af husbatteri | Smart Home Guide","description":"Se hvordan du kan bruge Home Assistant til intelligent styring af opladning og brug af batterier koblet p\u00e5 et solcelleanl\u00e6g.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/smart-home-guide.dk\/index.php\/2024\/11\/10\/opladning-af-husbatteri\/","og_locale":"da_DK","og_type":"article","og_title":"Intelligent opladning af husbatteri | Smart Home Guide","og_description":"Se hvordan du kan bruge Home Assistant til intelligent styring af opladning og brug af batterier koblet p\u00e5 et solcelleanl\u00e6g.","og_url":"https:\/\/smart-home-guide.dk\/index.php\/2024\/11\/10\/opladning-af-husbatteri\/","og_site_name":"Smart Home Guide","article_published_time":"2024-11-09T23:20:53+00:00","article_modified_time":"2025-10-11T00:05:00+00:00","og_image":[{"width":1500,"height":845,"url":"https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-2.png","type":"image\/png"}],"author":"Anders","twitter_card":"summary_large_image","twitter_misc":{"Skrevet af":"Anders","Estimeret l\u00e6setid":"11 minutter"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/smart-home-guide.dk\/index.php\/2024\/11\/10\/opladning-af-husbatteri\/#article","isPartOf":{"@id":"https:\/\/smart-home-guide.dk\/index.php\/2024\/11\/10\/opladning-af-husbatteri\/"},"author":{"name":"Anders","@id":"https:\/\/smart-home-guide.dk\/#\/schema\/person\/8ed18dab401a0784e593ce6345252498"},"headline":"Intelligent opladning af husbatteri","datePublished":"2024-11-09T23:20:53+00:00","dateModified":"2025-10-11T00:05:00+00:00","mainEntityOfPage":{"@id":"https:\/\/smart-home-guide.dk\/index.php\/2024\/11\/10\/opladning-af-husbatteri\/"},"wordCount":1864,"commentCount":9,"publisher":{"@id":"https:\/\/smart-home-guide.dk\/#organization"},"image":{"@id":"https:\/\/smart-home-guide.dk\/index.php\/2024\/11\/10\/opladning-af-husbatteri\/#primaryimage"},"thumbnailUrl":"https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-2.png","articleSection":["Automatisering","Dashboard"],"inLanguage":"da-DK","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/smart-home-guide.dk\/index.php\/2024\/11\/10\/opladning-af-husbatteri\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/smart-home-guide.dk\/index.php\/2024\/11\/10\/opladning-af-husbatteri\/","url":"https:\/\/smart-home-guide.dk\/index.php\/2024\/11\/10\/opladning-af-husbatteri\/","name":"Intelligent opladning af husbatteri | Smart Home Guide","isPartOf":{"@id":"https:\/\/smart-home-guide.dk\/#website"},"primaryImageOfPage":{"@id":"https:\/\/smart-home-guide.dk\/index.php\/2024\/11\/10\/opladning-af-husbatteri\/#primaryimage"},"image":{"@id":"https:\/\/smart-home-guide.dk\/index.php\/2024\/11\/10\/opladning-af-husbatteri\/#primaryimage"},"thumbnailUrl":"https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-2.png","datePublished":"2024-11-09T23:20:53+00:00","dateModified":"2025-10-11T00:05:00+00:00","description":"Se hvordan du kan bruge Home Assistant til intelligent styring af opladning og brug af batterier koblet p\u00e5 et solcelleanl\u00e6g.","breadcrumb":{"@id":"https:\/\/smart-home-guide.dk\/index.php\/2024\/11\/10\/opladning-af-husbatteri\/#breadcrumb"},"inLanguage":"da-DK","potentialAction":[{"@type":"ReadAction","target":["https:\/\/smart-home-guide.dk\/index.php\/2024\/11\/10\/opladning-af-husbatteri\/"]}]},{"@type":"ImageObject","inLanguage":"da-DK","@id":"https:\/\/smart-home-guide.dk\/index.php\/2024\/11\/10\/opladning-af-husbatteri\/#primaryimage","url":"https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-2.png","contentUrl":"https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-2.png","width":1500,"height":845,"caption":"Se hvordan du kan bruge Home Assistant til intelligent styring af opladning og brug af batterier koblet p\u00e5 et solcelleanl\u00e6g."},{"@type":"BreadcrumbList","@id":"https:\/\/smart-home-guide.dk\/index.php\/2024\/11\/10\/opladning-af-husbatteri\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Hjem","item":"https:\/\/smart-home-guide.dk\/"},{"@type":"ListItem","position":2,"name":"Intelligent opladning af husbatteri"}]},{"@type":"WebSite","@id":"https:\/\/smart-home-guide.dk\/#website","url":"https:\/\/smart-home-guide.dk\/","name":"Smart Home Guide","description":"Din genvej til et smartere hjem","publisher":{"@id":"https:\/\/smart-home-guide.dk\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/smart-home-guide.dk\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"da-DK"},{"@type":"Organization","@id":"https:\/\/smart-home-guide.dk\/#organization","name":"Smart Home Guide","url":"https:\/\/smart-home-guide.dk\/","logo":{"@type":"ImageObject","inLanguage":"da-DK","@id":"https:\/\/smart-home-guide.dk\/#\/schema\/logo\/image\/","url":"https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2022\/08\/shg_logo_400x400_2-1.png","contentUrl":"https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2022\/08\/shg_logo_400x400_2-1.png","width":400,"height":400,"caption":"Smart Home Guide"},"image":{"@id":"https:\/\/smart-home-guide.dk\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/github.com\/dykandDK\/home-assistant-config"]},{"@type":"Person","@id":"https:\/\/smart-home-guide.dk\/#\/schema\/person\/8ed18dab401a0784e593ce6345252498","name":"Anders","image":{"@type":"ImageObject","inLanguage":"da-DK","@id":"https:\/\/secure.gravatar.com\/avatar\/460cba51b925b4d837db0c071f23d5a3dd193dd8746ebfcf23f78489dd330632?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/460cba51b925b4d837db0c071f23d5a3dd193dd8746ebfcf23f78489dd330632?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/460cba51b925b4d837db0c071f23d5a3dd193dd8746ebfcf23f78489dd330632?s=96&d=mm&r=g","caption":"Anders"},"url":"https:\/\/smart-home-guide.dk\/index.php\/author\/anders\/"}]}},"uagb_featured_image_src":{"full":["https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-2.png",1500,845,false],"thumbnail":["https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-2-150x150.png",150,150,true],"medium":["https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-2-300x169.png",300,169,true],"medium_large":["https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-2-768x433.png",768,433,true],"large":["https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-2-1024x577.png",800,451,true],"1536x1536":["https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-2.png",1500,845,false],"2048x2048":["https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-2.png",1500,845,false],"colormag-highlighted-post":["https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-2-392x272.png",392,272,true],"colormag-featured-post-medium":["https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-2-390x205.png",390,205,true],"colormag-featured-post-small":["https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-2-130x90.png",130,90,true],"colormag-featured-image":["https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-2-800x445.png",800,445,true],"colormag-default-news":["https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-2-150x150.png",150,150,true],"colormag-featured-image-large":["https:\/\/smart-home-guide.dk\/wp-content\/uploads\/2024\/10\/image-2-1400x600.png",1400,600,true]},"uagb_author_info":{"display_name":"Anders","author_link":"https:\/\/smart-home-guide.dk\/index.php\/author\/anders\/"},"uagb_comment_info":14,"uagb_excerpt":"Se hvordan du kan bruge Home Assistant til intelligent styring af opladning og brug af batterier koblet p&aring; et solcelleanl&aelig;g.","_links":{"self":[{"href":"https:\/\/smart-home-guide.dk\/index.php\/wp-json\/wp\/v2\/posts\/4048","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smart-home-guide.dk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smart-home-guide.dk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smart-home-guide.dk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/smart-home-guide.dk\/index.php\/wp-json\/wp\/v2\/comments?post=4048"}],"version-history":[{"count":62,"href":"https:\/\/smart-home-guide.dk\/index.php\/wp-json\/wp\/v2\/posts\/4048\/revisions"}],"predecessor-version":[{"id":4546,"href":"https:\/\/smart-home-guide.dk\/index.php\/wp-json\/wp\/v2\/posts\/4048\/revisions\/4546"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/smart-home-guide.dk\/index.php\/wp-json\/wp\/v2\/media\/4377"}],"wp:attachment":[{"href":"https:\/\/smart-home-guide.dk\/index.php\/wp-json\/wp\/v2\/media?parent=4048"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smart-home-guide.dk\/index.php\/wp-json\/wp\/v2\/categories?post=4048"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smart-home-guide.dk\/index.php\/wp-json\/wp\/v2\/tags?post=4048"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}