{"id":1852,"date":"2025-04-20T00:07:09","date_gmt":"2025-04-19T22:07:09","guid":{"rendered":"https:\/\/www.stephan-lubahn.de\/?p=1852"},"modified":"2025-05-03T10:50:22","modified_gmt":"2025-05-03T08:50:22","slug":"home-assistent-unter-promox-ve-installieren","status":"publish","type":"post","link":"https:\/\/www.stephan-lubahn.de\/?p=1852","title":{"rendered":"Home Assistent unter Promox VE installieren"},"content":{"rendered":"\n<p>Promox nach Standard installieren<br>pve shell aufrufen<br>Dieses script dort hin kopieren<br><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>bash -c \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/community-scripts\/ProxmoxVE\/main\/vm\/haos-vm.sh)\"<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step1.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"740\" height=\"303\" src=\"https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step1.jpg\" alt=\"\" class=\"wp-image-1858\" srcset=\"https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step1.jpg 740w, https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step1-300x123.jpg 300w\" sizes=\"auto, (max-width: 740px) 100vw, 740px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step2.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"745\" height=\"296\" src=\"https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step2.jpg\" alt=\"\" class=\"wp-image-1859\" srcset=\"https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step2.jpg 745w, https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step2-300x119.jpg 300w\" sizes=\"auto, (max-width: 745px) 100vw, 745px\" \/><\/a><\/figure>\n\n\n\n<p>Ausw\u00e4hlen last stable eg 15.2<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step3.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"551\" height=\"204\" src=\"https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step3.jpg\" alt=\"\" class=\"wp-image-1862\" srcset=\"https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step3.jpg 551w, https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step3-300x111.jpg 300w\" sizes=\"auto, (max-width: 551px) 100vw, 551px\" \/><\/a><\/figure>\n\n\n\n<p>Version kann abweichen aber immer Stable<br>Virtual Machine ID, Machine Type so lassen<br>Write Through Disk Cache default<br><br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step4.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"550\" height=\"210\" src=\"https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step4.jpg\" alt=\"\" class=\"wp-image-1867\" srcset=\"https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step4.jpg 550w, https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step4-300x115.jpg 300w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\" \/><\/a><\/figure>\n\n\n\n<p>VM\u2019s Hostname Empfehlung so lassen.<br>CPU Model ist Host<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step5.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"567\" height=\"216\" src=\"https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step5.jpg\" alt=\"\" class=\"wp-image-1869\" srcset=\"https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step5.jpg 567w, https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step5-300x114.jpg 300w\" sizes=\"auto, (max-width: 567px) 100vw, 567px\" \/><\/a><\/figure>\n\n\n\n<p>Anzahl Kerne 2<br>RAM 6 GB (Promox sollte eh auf min 32GB laufen)<br>Bridge, MAC Address, VLAN, MTU Size auf Standard lassen.<br>Start VM nach Installation -&gt; Yes<br>Unbedingt auf die local-lvm instalieren!<\/p>\n\n\n\n<p>Die Installation dauert c a 5 Minuten, danach auf der console anmelden.<\/p>\n\n\n\n<p><br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step6.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"747\" height=\"436\" src=\"https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step6.jpg\" alt=\"\" class=\"wp-image-1877\" srcset=\"https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step6.jpg 747w, https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step6-300x175.jpg 300w\" sizes=\"auto, (max-width: 747px) 100vw, 747px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step7.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"753\" height=\"313\" src=\"https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step7.jpg\" alt=\"\" class=\"wp-image-1879\" srcset=\"https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step7.jpg 753w, https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step7-300x125.jpg 300w\" sizes=\"auto, (max-width: 753px) 100vw, 753px\" \/><\/a><\/figure>\n\n\n\n<p>Eingeben in Browser &#8222;<a href=\"http:\/\/IP:8123\">http:\/\/IP:8123<\/a>&#8222;<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Ich empfehle auch den Promox Backup Server zu installieren.<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step8.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"604\" height=\"607\" src=\"https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step8.jpg\" alt=\"\" class=\"wp-image-1883\" style=\"width:670px;height:auto\" srcset=\"https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step8.jpg 604w, https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step8-300x300.jpg 300w, https:\/\/www.stephan-lubahn.de\/wp-content\/uploads\/2025\/04\/Step8-150x150.jpg 150w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Sonnen Batterie Integration<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>rest:\n  - resource: http:\/\/192.168.1.xx:80\/api\/v2\/latestdata\n    method: GET\n    headers:\n      User-Agent: Home Assistant\n      Content-Type: application\/json\n      Auth-Token: DEIN TOKEN\n    scan_interval: 60\n    timeout: 15\n    sensor:\n      - name: solar_power_w\n        value_template: '{{ value_json&#91;\"Production_W\"] }}'\n        unit_of_measurement: W\n        device_class: power\n      - name: battery_soc\n        value_template: '{{ value_json&#91;\"USOC\"] }}'\n        unit_of_measurement: '%'\n        device_class: battery\n      - name: battery_consumption_production_diff\n        value_template: '{{ value_json&#91;\"Pac_total_W\"] }}'\n        unit_of_measurement: W\n        device_class: power\n      - name: house_consumption\n        value_template: '{{ value_json&#91;\"Consumption_W\"] }}'\n        unit_of_measurement: W\n        device_class: power\n      - name: battery_capacity\n        value_template: '{{ value_json&#91;\"FullChargeCapacity\"] }}'\n        unit_of_measurement: Wh\n        device_class: energy\n      - name: battery_soc_energy\n        value_template: '{{ (value_json&#91;\"USOC\"]|float \/ 100 * value_json&#91;\"FullChargeCapacity\"]|float)|round(0)|int }}'\n        unit_of_measurement: Wh\n        device_class: energy \n\nVielleicht aber auch \u00fcber -&gt; https:\/\/github.com\/weltmeyer\/ha_sonnenbatterie\n   \n   <\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Dem Sensor fehlt die Richtige state_class, device_class und die Einheit. Diese kannst \u00fcber Customize beheben. Erstelle Dir in der configuration.yaml unterhalb der Zeile homeassistant die Zeile homeassistant: customize: !include customize.yaml Dann erstelle Dir im gleichen Verzeichnis, wo auch die configuration.yaml zu finden ist die Datei customize.yaml In diese Datei tr\u00e4gst Du dann f\u00fcr jeden Sensor einen Eintrag, nach diesem Schema: sensor.xyz_energy: state_class: total_increasing u\u2026 \n\nsensor.solaredge_aktuelle_leistung:\n   device_class: Energy\n\n\nsensor.sonnenbatterie_XXXXX_state_production:\n   device_class: Energy\n\nsensor.sonnenbatterie_97484_state_consumption_current:\n   device_class: Energy\n\nsensor.gartenhaus_total_ausgangsleistung:\n   device_class: Energy\n\nsensor.tibber_pulse_im_apfelgarten_11_einspeiseleistung:\n   device_class: Energy\n\nsensor.tibber_pulse_im_apfelgarten_11_leistung:\n   device_class: Energy<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Promox nach Standard installierenpve shell aufrufenDieses script dort hin kopieren Ausw\u00e4hlen last stable eg 15.2 Version kann abweichen aber immer StableVirtual Machine ID, Machine Type so lassenWrite Through Disk Cache default VM\u2019s Hostname Empfehlung so lassen.CPU Model ist Host Anzahl &hellip; <a href=\"https:\/\/www.stephan-lubahn.de\/?p=1852\">Weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[90],"tags":[],"class_list":["post-1852","post","type-post","status-publish","format-standard","hentry","category-installation"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.stephan-lubahn.de\/index.php?rest_route=\/wp\/v2\/posts\/1852","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.stephan-lubahn.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stephan-lubahn.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stephan-lubahn.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stephan-lubahn.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1852"}],"version-history":[{"count":22,"href":"https:\/\/www.stephan-lubahn.de\/index.php?rest_route=\/wp\/v2\/posts\/1852\/revisions"}],"predecessor-version":[{"id":1898,"href":"https:\/\/www.stephan-lubahn.de\/index.php?rest_route=\/wp\/v2\/posts\/1852\/revisions\/1898"}],"wp:attachment":[{"href":"https:\/\/www.stephan-lubahn.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1852"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stephan-lubahn.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1852"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stephan-lubahn.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1852"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}