{"id":1493,"date":"2024-04-16T18:49:27","date_gmt":"2024-04-16T16:49:27","guid":{"rendered":"https:\/\/apfelcast.com\/?p=1493"},"modified":"2024-04-16T18:49:27","modified_gmt":"2024-04-16T16:49:27","slug":"usv-shutdown-befehl-via-proxmox-und-home-assistant-automatisieren","status":"publish","type":"post","link":"https:\/\/it-ion.de\/index.php\/2024\/04\/16\/usv-shutdown-befehl-via-proxmox-und-home-assistant-automatisieren\/","title":{"rendered":"USV Shutdown Befehl via Proxmox und Home Assistant automatisieren"},"content":{"rendered":"\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube\"><div class=\"wp-block-embed__wrapper\">\n <div class=\"brlbs-cmpnt-container brlbs-cmpnt-content-blocker brlbs-cmpnt-with-individual-styles\" data-borlabs-cookie-content-blocker-id=\"default\" data-borlabs-cookie-content=\"PGlmcmFtZSB0aXRsZT0iVVNWIFNodXRkb3duIEJlZmVobCB2aWEgUHJveG1veCB1bmQgSG9tZSBBc3Npc3RhbnQgYXV0b21hdGlzaWVyZW4gKGZlYXQuIEBTaW1vbjQyKSIgd2lkdGg9IjcyMCIgaGVpZ2h0PSI0MDUiIHNyYz0iaHR0cHM6Ly93d3cueW91dHViZS5jb20vZW1iZWQvMEs0VG5pNEhQLWM\/ZmVhdHVyZT1vZW1iZWQiIGZyYW1lYm9yZGVyPSIwIiBhbGxvdz0iYWNjZWxlcm9tZXRlcjsgYXV0b3BsYXk7IGNsaXBib2FyZC13cml0ZTsgZW5jcnlwdGVkLW1lZGlhOyBneXJvc2NvcGU7IHBpY3R1cmUtaW4tcGljdHVyZTsgd2ViLXNoYXJlIiByZWZlcnJlcnBvbGljeT0ic3RyaWN0LW9yaWdpbi13aGVuLWNyb3NzLW9yaWdpbiIgYWxsb3dmdWxsc2NyZWVuPjwvaWZyYW1lPg==\"><div class=\"brlbs-cmpnt-cb-preset-a\"> <p class=\"brlbs-cmpnt-cb-description\">Sie sehen gerade einen Platzhalterinhalt von <strong>Standard<\/strong>. Um auf den eigentlichen Inhalt zuzugreifen, klicken Sie auf die Schaltfl\u00e4che unten. Bitte beachten Sie, dass dabei Daten an Drittanbieter weitergegeben werden.<\/p> <div class=\"brlbs-cmpnt-cb-buttons\"> <a class=\"brlbs-cmpnt-cb-btn\" href=\"#\" data-borlabs-cookie-unblock role=\"button\">Inhalt entsperren<\/a> <a class=\"brlbs-cmpnt-cb-btn\" href=\"#\" data-borlabs-cookie-accept-service role=\"button\" style=\"display: none\">Erforderlichen Service akzeptieren und Inhalte entsperren<\/a> <\/div> <a class=\"brlbs-cmpnt-cb-provider-toggle\" href=\"#\" data-borlabs-cookie-show-provider-information role=\"button\">Mehr Informationen<\/a> <\/div><\/div>\n<\/div><\/figure>\n\n\n\n<p>In diesem Video erfahrt Ihr, wie Ihr bei Verwendung einer USV das Herunterfahren verbundener Server, PCs oder NAS Systeme ganz einfach mit Hilfe von HomeAssistant automatisieren k\u00f6nnt. Zudem bietet euch Home Assistant eine tolle M\u00f6glichkeit den Zustand euerer USV zu \u00fcberwachen und zu visualisieren. <br><br>\u27a1\ufe0f Part 2 von <a href=\"https:\/\/simon42.com\" data-type=\"link\" data-id=\"https:\/\/simon42.com\">Simon42<\/a>: <a href=\"https:\/\/youtu.be\/Wiy-djJAQbc?si=Z0VcW0SX6lQnHtGv\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/youtu.be\/Wiy-djJAQbc?si=Z0VcW0SX6lQnHtGv<\/a><br>\u27a1\ufe0f Zum Blog von <a href=\"https:\/\/simon42.com\" data-type=\"link\" data-id=\"https:\/\/simon42.com\">Simon42<\/a>: <a href=\"https:\/\/www.simon42.com\/home-assistant-usv-integration-nut\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.simon42.com\/home-assistant-usv-integration-nut\/<\/a><\/p>\n\n\n\n<p>\ud83d\udee0\ufe0f OpenSource IT-Support \ud83d\udee0\ufe0f<br>Du ben\u00f6tigst Unterst\u00fctzung bei der Installation oder Konfiguration von OpenSource Software? Ich helfe dir gerne weiter! Schreib mir einfach eine Mail an: service@apfelcast.com<\/p>\n\n\n\n<p>\u2139\ufe0f Links:<br>Eaton USV: <a href=\"https:\/\/amzn.to\/3xyzYNR\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/amzn.to\/3xyzYNR<\/a><\/p>\n\n\n\n<p>\ud83c\udfa5 Videos:<br>HomeAssistant Grundlagen (Simon42):<a href=\"https:\/\/youtu.be\/vYVVRySM0B0?si=1DHhq1vxHZ3zUT9V\" target=\"_blank\" rel=\"noreferrer noopener\"> https:\/\/youtu.be\/vYVVRySM0B0?si=1DHhq1vxHZ3zUT9V<\/a><br>UniFi Netzwerk Playlist: <a href=\"https:\/\/www.youtube.com\/playlist?list=PLLg1WgOBYXOtDMS3XIuVfyC1PgfIMFXiF\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.youtube.com\/playlist?list=PLLg1WgOBYXOtDMS3XIuVfyC1PgfIMFXiF<\/a><br>Nextcloud Playlist:<a href=\"https:\/\/www.youtube.com\/playlist?list=PLLg1WgOBYXOtQOwYQjJc1GbuYz-wJgmtN\" target=\"_blank\" rel=\"noreferrer noopener\"> https:\/\/www.youtube.com\/playlist?list=PLLg1WgOBYXOtQOwYQjJc1GbuYz-wJgmtN<\/a><br>Proxmox HomeServer Playlist: <a href=\"https:\/\/www.youtube.com\/playlist?list=PLLg1WgOBYXOs3dFOlaujpPLXVkq06btrk\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.youtube.com\/playlist?list=PLLg1WgOBYXOs3dFOlaujpPLXVkq06btrk<\/a><\/p>\n\n\n\n<div id=\"93964-1\"><script src=\"\/\/ads.themoneytizer.com\/s\/gen.js?type=1\"><\/script><script src=\"\/\/ads.themoneytizer.com\/s\/requestform.js?siteId=93964&amp;formatId=1\"><\/script><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Im Video verwendete Befehle:<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">## Install HA VM on Proxmox ##\nbash -c \"$(wget -qLO - https:\/\/github.com\/tteck\/Proxmox\/raw\/main\/vm\/haos-vm.sh)\"\n\n##create PublicKey for HA##\nmkdir \/config\/ssh_keys\nssh-keygen -t rsa -b 4096 -f \/config\/ssh_keys\/id_rsa_homeassistant\n\n##copy key to remote server##\ncat \/config\/ssh_keys\/id_rsa_homeassistant.pub | ssh &lt;user>@&lt;host> 'cat >>\/root\/.ssh\/authorized_keys'\n\n\n##add shell command to configuration.yaml##\nshell_command:\n  &lt;name>: ssh -i \/config\/ssh_keys\/id_rsa_homeassistant -o StrictHostKeyChecking=no &lt;user>@&lt;host> \"shutdown -h now\"\n<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In diesem Video erfahrt Ihr, wie Ihr bei Verwendung einer USV das Herunterfahren verbundener Server,&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1496,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-1493","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-allgemein"],"taxonomy_info":{"category":[{"value":1,"label":"Allgemein"}]},"featured_image_src_large":["https:\/\/it-ion.de\/wp-content\/uploads\/2024\/04\/thumb_usv-ha-proxmox-1024x576.jpg",1024,576,true],"author_info":{"display_name":"Daniel Klozb\u00fccher","author_link":"https:\/\/it-ion.de\/index.php\/author\/wp-master\/"},"comment_info":0,"category_info":[{"term_id":1,"name":"Allgemein","slug":"allgemein","term_group":0,"term_taxonomy_id":1,"taxonomy":"category","description":"","parent":0,"count":89,"filter":"raw","cat_ID":1,"category_count":89,"category_description":"","cat_name":"Allgemein","category_nicename":"allgemein","category_parent":0}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/posts\/1493","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/comments?post=1493"}],"version-history":[{"count":0,"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/posts\/1493\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/media\/1496"}],"wp:attachment":[{"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/media?parent=1493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/categories?post=1493"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/tags?post=1493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}