Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. USV installiert - Shutdowns initiieren? Proxmox, CCU, NAS

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    643

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    18
    1
    5.7k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.5k

USV installiert - Shutdowns initiieren? Proxmox, CCU, NAS

Scheduled Pinned Locked Moved ioBroker Allgemein
upsusvnutproxmoxshutdown
28 Posts 9 Posters 3.7k Views 12 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • HomoranH Homoran

    @meister-mopper sagte in USV installiert - Shutdowns initiieren? Proxmox, CCU, NAS:

    Wie kann man mit dem Synology Adapter eine CCU runterfahren.

    es ging doch hier ums runterfahren vom NAS

    Meister MopperM Offline
    Meister MopperM Offline
    Meister Mopper
    wrote on last edited by
    #18

    @homoran Okay, bin schon ganz wirr vom Lesen und Lernen.

    Sorry dafür, mea maxima culpa :confounded:

    Proxmox und HA - dank KI/AI endlich "blocklyfrei"

    1 Reply Last reply
    0
    • GlasfaserG Glasfaser

      @saeft_2003

      Nimm doch einfach den Synology Adapter dort ist alles drin und auch mehr .

      Thread dazu

      .
      1.JPG

      S Offline
      S Offline
      saeft_2003
      Most Active
      wrote on last edited by
      #19

      @glasfaser sagte in USV installiert - Shutdowns initiieren? Proxmox, CCU, NAS:

      @saeft_2003

      Nimm doch einfach den Synology Adapter dort ist alles drin und auch mehr .

      Thread dazu

      .
      1.JPG

      Geht leider nicht da der Adapter meine Diskstation zumüllt und diese danach nicht mehr erreichbar ist (ist ein bekannter Fehler), leider habe ich im changelog nicht gelesen das dieser behoben wurde. Deswegen kann ich den Adapter nicht nutzen...

      HomoranH GlasfaserG 2 Replies Last reply
      0
      • S saeft_2003

        @glasfaser sagte in USV installiert - Shutdowns initiieren? Proxmox, CCU, NAS:

        @saeft_2003

        Nimm doch einfach den Synology Adapter dort ist alles drin und auch mehr .

        Thread dazu

        .
        1.JPG

        Geht leider nicht da der Adapter meine Diskstation zumüllt und diese danach nicht mehr erreichbar ist (ist ein bekannter Fehler), leider habe ich im changelog nicht gelesen das dieser behoben wurde. Deswegen kann ich den Adapter nicht nutzen...

        HomoranH Do not disturb
        HomoranH Do not disturb
        Homoran
        Global Moderator Administrators
        wrote on last edited by
        #20

        @saeft_2003 sagte in USV installiert - Shutdowns initiieren? Proxmox, CCU, NAS:

        eht leider nicht da der Adapter meine Diskstation zumüllt und diese danach nicht mehr erreichbar ist (ist ein bekannter Fehler),

        galt das nicht für eine gaaaaanz alte Version?

        kein Support per PN! - Fragen im Forum stellen -
        Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.
        Das Forum freut sich über eine Spende. Benutzt dazu den Spendenbutton im Header. Danke!
        der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

        1 Reply Last reply
        0
        • S saeft_2003

          @glasfaser sagte in USV installiert - Shutdowns initiieren? Proxmox, CCU, NAS:

          @saeft_2003

          Nimm doch einfach den Synology Adapter dort ist alles drin und auch mehr .

          Thread dazu

          .
          1.JPG

          Geht leider nicht da der Adapter meine Diskstation zumüllt und diese danach nicht mehr erreichbar ist (ist ein bekannter Fehler), leider habe ich im changelog nicht gelesen das dieser behoben wurde. Deswegen kann ich den Adapter nicht nutzen...

          GlasfaserG Offline
          GlasfaserG Offline
          Glasfaser
          wrote on last edited by
          #21

          @saeft_2003 sagte in USV installiert - Shutdowns initiieren? Proxmox, CCU, NAS:

          Geht leider nicht da der Adapter meine Diskstation zumüllt und diese danach nicht mehr erreichbar ist (ist ein bekannter Fehler),

          Dieser Fehler wurde behoben , wenn du das meinst :

          Sie können sich nicht an das System anmelden, da der Speicherplatz voll ist

          Synology 918+ 16GB - ioBroker in Docker v9 , VISO auf Trekstor Primebook C13 13,3" , Hikvision Domkameras mit Surveillance Station .. CCU RaspberryMatic in Synology VM .. Zigbee CC2538+CC2592 .. Sonoff .. KNX .. Modbus ..

          S 1 Reply Last reply
          1
          • ScroungerS Scrounger

            @saeft_2003
            Ich nutze dafür den proxmox adapter um den nuc runter zu fahren.

            Anbei mein Skript, was u.a. auch infos per pushover sendet und meine UDMP auch runterfährt. Runtergefahren wird auf Basis Batterie Prozent, da bei meinem USV die runtime zu arg schwankt.
            Vielleicht hilft es ja weiter.

            // import
            const moment = require("moment");
            moment.locale("de");
            
            // Fomate für moment Lib
            let dateFormat = "ddd M. MMM YYYY - LTS";
            
            let batteryPercentId = "nut.0.battery.charge";
            let batteryRuntimeId = "nut.0.battery.runtime";
            let onBatteryMode = "nut.0.status.onbattery";
            
            const shutdownPercent = 20;
            const shutdownRuntime = 600;            // in sekunden
            
            let shutdownButtonId = "proxmox.0.node_proxmox.shutdown";
            
            if (existsState(batteryPercentId)) {
                on({ id: batteryPercentId, change: 'ne' }, upsMonitor);
            } else {
                console.warn(`Datenpunkt '${batteryPercentId}' existiert nicht -> keine subscription für Gerät erstellt! Skript Einstellung prüfen!`);
            }
            
            // if (existsState(batteryRuntimeId)) {
            //     on({ id: batteryRuntimeId, change: 'ne' }, upsMonitor);
            // } else {
            //     console.warn(`Datenpunkt '${batteryRuntimeId}' existiert nicht -> keine subscription für Gerät erstellt! Skript Einstellung prüfen!`);
            // }
            
            if (existsState(onBatteryMode)) {
                on({ id: onBatteryMode, change: 'ne' }, upsMonitor);
            } else {
                console.warn(`Datenpunkt '${onBatteryMode}' existiert nicht -> keine subscription für Gerät erstellt! Skript Einstellung prüfen!`);
            }
            
            function upsMonitor(obj) {
                // console.log(obj.id);
            
                if (obj.id === onBatteryMode && obj.state.val !== obj.oldState.val) {
                    if (obj.state.val) {
                        console.warn(`[upsMonitor]: UPS läuft im Batterie-Betrieb!`);
                        pushover.sendMessage('UPS im Batterie-Betrieb!', moment().format(dateFormat));
                    } else {
                        console.warn(`[upsMonitor]: UPS läuft wieder im Netz-Betrieb`);
                        pushover.sendMessage('UPS wieder im Netz-Betrieb', moment().format(dateFormat));
                    }
                }
            
                if (getState(onBatteryMode).val) {
            
                    // if (obj.id === batteryRuntimeId && obj.state.val <= obj.oldState.val) {
                    //     if (obj.state.val <= shutdownRuntime) {
                    //         console.warn(`[upsMonitor]: Restlaufzeit < ${shutdownRuntime / 60} Min -> Shutdown wird eingeleitet...`);
                    //         pushover.sendMessage('UPS Shutdown!', `${moment().format(dateFormat)}\n\nRestlaufzeit < ${shutdownRuntime / 60} Min`);
            
                    //         setState('linux-control.0.UdmPro.myControl.shutdown', true);
            
                    //         setStateDelayed(shutdownButtonId, true, 3000);
                    //     }
                    // } else {
                        if (obj.id === batteryPercentId && obj.state.val <= obj.oldState.val) {
                            if (obj.state.val <= shutdownPercent) {
                                console.warn(`[upsMonitor]: Batterieladung < ${shutdownPercent / 60} % -> Shutdown wird eingeleitet...`);
                                pushover.sendMessage('UPS Shutdown!', `${moment().format(dateFormat)}\n\nBatterieladung < ${shutdownPercent} %`);
            
                                setState('linux-control.0.UdmPro.myControl.shutdown', true);
            
                                setStateDelayed(shutdownButtonId, true, 3000);
                            }
            
                            if (obj.state.val <= 40 && obj.oldState.val >= 40) {
                                pushover.sendMessage(`UPS Batterieladung < ${shutdownPercent} %`, moment().format(dateFormat));
                            }
                            if (obj.state.val <= 30 && obj.oldState.val >= 30) {
                                pushover.sendMessage(`UPS Batterieladung < ${shutdownPercent} %`, moment().format(dateFormat));
                            }
                            if (obj.state.val <= 20 && obj.oldState.val >= 20) {
                                pushover.sendMessage(`UPS Batterieladung < ${shutdownPercent} %`, moment().format(dateFormat));
                            }
                        }
                    // }  
                }
            }
            
            H Offline
            H Offline
            hmanfred
            wrote on last edited by
            #22

            @scrounger sagte in USV installiert - Shutdowns initiieren? Proxmox, CCU, NAS:

            @saeft_2003
            Ich nutze dafür den proxmox adapter um den nuc runter zu fahren.

            Und das funktioniert bei dir?

            Egal ob ich den Button proxmox.0.node_proxmox.shutdown mit der Maus anklicke oder per Script auf 1 setze - es passiert nichts.
            Den gleichen Button bei einer VM - shutdown läuft.

            S 1 Reply Last reply
            0
            • H hmanfred

              @scrounger sagte in USV installiert - Shutdowns initiieren? Proxmox, CCU, NAS:

              @saeft_2003
              Ich nutze dafür den proxmox adapter um den nuc runter zu fahren.

              Und das funktioniert bei dir?

              Egal ob ich den Button proxmox.0.node_proxmox.shutdown mit der Maus anklicke oder per Script auf 1 setze - es passiert nichts.
              Den gleichen Button bei einer VM - shutdown läuft.

              S Offline
              S Offline
              saeft_2003
              Most Active
              wrote on last edited by
              #23

              @hmanfred sagte in USV installiert - Shutdowns initiieren? Proxmox, CCU, NAS:

              @scrounger sagte in USV installiert - Shutdowns initiieren? Proxmox, CCU, NAS:

              @saeft_2003
              Ich nutze dafür den proxmox adapter um den nuc runter zu fahren.

              Und das funktioniert bei dir?

              Egal ob ich den Button proxmox.0.node_proxmox.shutdown mit der Maus anklicke oder per Script auf 1 setze - es passiert nichts.
              Den gleichen Button bei einer VM - shutdown läuft.

              Ja geht bei mir, ich bilde mir grad ein das es auch mal nicht ging. Welche proxmox und adapter version hast du?

              H 1 Reply Last reply
              0
              • S saeft_2003

                @hmanfred sagte in USV installiert - Shutdowns initiieren? Proxmox, CCU, NAS:

                @scrounger sagte in USV installiert - Shutdowns initiieren? Proxmox, CCU, NAS:

                @saeft_2003
                Ich nutze dafür den proxmox adapter um den nuc runter zu fahren.

                Und das funktioniert bei dir?

                Egal ob ich den Button proxmox.0.node_proxmox.shutdown mit der Maus anklicke oder per Script auf 1 setze - es passiert nichts.
                Den gleichen Button bei einer VM - shutdown läuft.

                Ja geht bei mir, ich bilde mir grad ein das es auch mal nicht ging. Welche proxmox und adapter version hast du?

                H Offline
                H Offline
                hmanfred
                wrote on last edited by
                #24

                @saeft_2003
                1.0.1
                Repo stable

                H 1 Reply Last reply
                0
                • H hmanfred

                  @saeft_2003
                  1.0.1
                  Repo stable

                  H Offline
                  H Offline
                  hmanfred
                  wrote on last edited by
                  #25

                  @hmanfred Aaaaah...

                  1.1.0 (10.08.2020)
                  (Apollon77) Bug Update on features and stability and performance
                  (ThetaGamma) Fix for failing Node shutdown/reboot commands

                  1 Reply Last reply
                  0
                  • GlasfaserG Glasfaser

                    @saeft_2003 sagte in USV installiert - Shutdowns initiieren? Proxmox, CCU, NAS:

                    Geht leider nicht da der Adapter meine Diskstation zumüllt und diese danach nicht mehr erreichbar ist (ist ein bekannter Fehler),

                    Dieser Fehler wurde behoben , wenn du das meinst :

                    Sie können sich nicht an das System anmelden, da der Speicherplatz voll ist

                    S Offline
                    S Offline
                    saeft_2003
                    Most Active
                    wrote on last edited by
                    #26

                    @glasfaser sagte in USV installiert - Shutdowns initiieren? Proxmox, CCU, NAS:

                    @saeft_2003 sagte in USV installiert - Shutdowns initiieren? Proxmox, CCU, NAS:

                    Geht leider nicht da der Adapter meine Diskstation zumüllt und diese danach nicht mehr erreichbar ist (ist ein bekannter Fehler),

                    Dieser Fehler wurde behoben , wenn du das meinst :

                    Sie können sich nicht an das System anmelden, da der Speicherplatz voll ist

                    Ja genau den mein ich, ich hab den Adapter aktualisiert und teste jetzt.

                    GlasfaserG 1 Reply Last reply
                    0
                    • S saeft_2003

                      @glasfaser sagte in USV installiert - Shutdowns initiieren? Proxmox, CCU, NAS:

                      @saeft_2003 sagte in USV installiert - Shutdowns initiieren? Proxmox, CCU, NAS:

                      Geht leider nicht da der Adapter meine Diskstation zumüllt und diese danach nicht mehr erreichbar ist (ist ein bekannter Fehler),

                      Dieser Fehler wurde behoben , wenn du das meinst :

                      Sie können sich nicht an das System anmelden, da der Speicherplatz voll ist

                      Ja genau den mein ich, ich hab den Adapter aktualisiert und teste jetzt.

                      GlasfaserG Offline
                      GlasfaserG Offline
                      Glasfaser
                      wrote on last edited by
                      #27

                      @saeft_2003

                      hier ist der Thread dazu , dort sind einiege Tips drin , wenn du Probleme hast :

                      https://forum.iobroker.net/topic/33224/iobroker-synology-adapter

                      Synology 918+ 16GB - ioBroker in Docker v9 , VISO auf Trekstor Primebook C13 13,3" , Hikvision Domkameras mit Surveillance Station .. CCU RaspberryMatic in Synology VM .. Zigbee CC2538+CC2592 .. Sonoff .. KNX .. Modbus ..

                      1 Reply Last reply
                      0
                      • S saeft_2003

                        @scrounger

                        Das ist auch eine gute Idee da ich den proxmox Adapter natürlich auch laufen habe. Ich muss das ganze mal in blockly nachbauen...

                        Weißt du zufällig wie man eine Diskstation runterfahren kann?

                        NegaleinN Offline
                        NegaleinN Offline
                        Negalein
                        Global Moderator
                        wrote on last edited by
                        #28

                        @saeft_2003 sagte in USV installiert - Shutdowns initiieren? Proxmox, CCU, NAS:

                        Ich muss das ganze mal in blockly nachbauen...

                        Servus

                        bist du da weiter gekommen, oder nutzt du das Script von @Scrounger?

                        ° Node.js & System Update ---> sudo apt update, iob stop, sudo apt full-upgrade
                        ° Node.js Fixer ---> iob nodejs-update
                        ° Fixer ---> iob fix

                        1 Reply Last reply
                        0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        Support us

                        ioBroker
                        Community Adapters
                        Donate
                        FAQ Cloud / IOT
                        HowTo: Node.js-Update
                        HowTo: Backup/Restore
                        Downloads
                        BLOG

                        221

                        Online

                        32.7k

                        Users

                        82.6k

                        Topics

                        1.3m

                        Posts
                        Community
                        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                        ioBroker Community 2014-2025
                        logo
                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Home
                        • Recent
                        • Tags
                        • Unread 0
                        • Categories
                        • Unreplied
                        • Popular
                        • GitHub
                        • Docu
                        • Hilfe