Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • 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

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. [gelöst] ps4-waker/ NPM Modul von Github installieren/ (TV via HDMI CEC einschalten)

NEWS

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

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

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.2k

[gelöst] ps4-waker/ NPM Modul von Github installieren/ (TV via HDMI CEC einschalten)

Geplant Angeheftet Gesperrt Verschoben Skripten / Logik
javascriptblockly
37 Beiträge 9 Kommentatoren 8.3k Aufrufe 2 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • Z Offline
    Z Offline
    zuldero
    schrieb am zuletzt editiert von
    #9

    und da bin ich schon wieder

    wenn die ps aus ist habe ich mit dem code

    ! const {Device} = require('ps4-waker');
    ! var ps4 = new Device();
    ! ps4.getDeviceStatus().then((result) => {
    ! console.log(JSON.stringify(result, null, 2));
    ! ps4.close()}
    ! ); den selben log wie du

    @Stabilostick:

    21:14:24.554 [info] javascript.0 Start javascript script.js.Entwicklung.ps4

    21:14:24.554 [info] javascript.0 script.js.Entwicklung.ps4: registered 0 subscriptions and 0 schedules

    21:14:24.555 [info] javascript.0 script.js.Entwicklung.ps4: { "type": "device", "statusLine": "200 Ok", "statusCode": "200", "status": "Ok", "host-id": "00D9D1AC3901", "host-type": "PS4", "host-name": "PS4", "host-request-port": "997", "device-discovery-protocol-version": "00020020", "system-version": "04550011", "address": "192.168.179.67", "port": "997" }

    21:14:27.263 [info] javascript.0 Stop script script.js.Entwicklung.ps4 `
    wenn die ps an ist, bekomme ich folgenden log:

    ! javascript.0 2018-07-07 19:37:07.228 info }
    ! javascript.0 2018-07-07 19:37:07.228 info "port": "997"
    ! javascript.0 2018-07-07 19:37:07.228 info "address": "192.168.0.16",
    ! javascript.0 2018-07-07 19:37:07.228 info "system-version": "05550021",
    ! javascript.0 2018-07-07 19:37:07.228 info "device-discovery-protocol-version": "00020020",
    ! javascript.0 2018-07-07 19:37:07.228 info "host-request-port": "997",
    ! javascript.0 2018-07-07 19:37:07.228 info "host-name": "PS4-774",
    ! javascript.0 2018-07-07 19:37:07.228 info "host-type": "PS4",
    ! javascript.0 2018-07-07 19:37:07.228 info "host-id": "709E29B77E00",
    ! javascript.0 2018-07-07 19:37:07.228 info "status": "Ok",
    ! javascript.0 2018-07-07 19:37:07.228 info "statusCode": "200",
    ! javascript.0 2018-07-07 19:37:07.228 info "statusLine": "200 Ok",
    ! javascript.0 2018-07-07 19:37:07.228 info "type": "device",
    ! javascript.0 2018-07-07 19:37:07.228 info script.js.Skripte.PS4.GET: {
    ! javascript.0 2018-07-07 19:37:07.219 info script.js.Skripte.PS4.GET: registered 0 subscriptions and 0 schedules
    soweit so gut.

    um die ps mit dem befehlen

    ! exec("ps4-waker standby")
    ! exec("ps4-waker")
    zu steuern muss ich sie ja noch "registrieren" also den credentials command im terminal ausführen (sagt ja auch der log in der untersten zeile, oder?).

    Im terminal bekomme ich aber immer die Rückmeldung

    ! Device must be awake for initial registration. Please turn it on manually and try again.
    und dabei spielt es keine rolle ob die ps an oder aus ist.

    was mache ich falsch? oder bin ich total auf dem holz weg?

    1 Antwort Letzte Antwort
    0
    • StabilostickS Offline
      StabilostickS Offline
      Stabilostick
      schrieb am zuletzt editiert von Stabilostick
      #10

      Bei mir unter Windows:

      cd C:\dev\iobroker\node_modules\iobroker.javascript\node_modules\ps4-waker\bin
      

      Dort dann

      node cmd.js --help
      

      bringt die Befehlsliste. Dann

      node cmd.js
      

      bringt "Could not detect any matching PS4 device", wenn die PS4 aus ist.

      node cmd.js search
      

      bringt

      {
        "type": "device",
        "statusLine": "200 Ok",
        "statusCode": "200",
        "status": "Ok",
        "host-id": "00Dxxxxxxxxx",
        "host-type": "PS4",
        "host-name": "PS4",
        "host-request-port": "997",
        "device-discovery-protocol-version": "00020020",
        "system-version": "0xxxxx011",
        "address": "192.168.xxxx"
      }
      

      Anschließendes

      node cmd.js
      

      bringt dann

      Go to 'Settings -> PlayStation(R) App Connection Settings -> Add Device on your PS4 to obtain the PIN code.
      

      oder

      WAKEUP sent to device... 192.168xxxx
      Logging in..
      
      1 Antwort Letzte Antwort
      1
      • Z Offline
        Z Offline
        zuldero
        schrieb am zuletzt editiert von
        #11

        node cmd.js search sagt mir das die ps4 im standby ist, jedoch ist an. alle weiteren commands sagen mir: Device must be awake for initial registration. Please turn it on manually and try again.
        7535_unbenannt.png

        1 Antwort Letzte Antwort
        0
        • StabilostickS Offline
          StabilostickS Offline
          Stabilostick
          schrieb am zuletzt editiert von
          #12

          War bei mir auch so. Ich habe es nach dem Search noch mal gemacht und dann ging es. Da weiß ich leider auch nicht mehr weiter.

          1 Antwort Letzte Antwort
          0
          • StabilostickS Offline
            StabilostickS Offline
            Stabilostick
            schrieb am zuletzt editiert von
            #13

            Schon mal die Device-Info im Screenschon genauer angesehen? Das ist keine PS4. Das ist der PS4-Waker! Schau die mal meinen Datenblock oben an.

            1 Antwort Letzte Antwort
            0
            • Z Offline
              Z Offline
              zuldero
              schrieb am zuletzt editiert von
              #14

              genau das ist ja mein problem. wieso findet er keine ps. er muss die ps ja finden um si mit dem code zu verbinden. worin könnte der fehler liegen?

              1 Antwort Letzte Antwort
              0
              • StabilostickS Offline
                StabilostickS Offline
                Stabilostick
                schrieb am zuletzt editiert von
                #15

                <ironie on="">Du hast eine relabelte China-PS3?</ironie>

                1 Antwort Letzte Antwort
                0
                • StabilostickS Offline
                  StabilostickS Offline
                  Stabilostick
                  schrieb am zuletzt editiert von
                  #16

                  "ps4-waker can't see the PS4"

                  This can have a several possible causes:

                  *The machine you're running on has multiple network adapters

                  The system will just "pick" one in this case, and it might not be the one you need. Use the –bind command line option to specify the address of the appropriate adapter. This must be the same adapter that your phone can see (at least for the first run, when getting credentials from the mobile app) as well as the one that can see your PS4.

                  *Your network is dropping UDP packets

                  The app needs to be able to send and receive on port 987 and 997 to discover and wake the PS4, and for your phone to discover it in the initial credentials step. Make sure your router is letting these ports through.

                  Also as part of discovery, ps4-waker listens by default on a random UDP port. If it is having trouble locating the PS4, and you're sure you've bound to the correct adapter using --bind, you may need to pick a port to listen on with --bind-port, and open that up on your router, as well.

                  *You have multiple PS4s on your network

                  By default, ps4-waker commands act on the first one they see. To search for every device on your network, add a -t <milliseconds>timeout flag to your command and it will keep waiting. You may also use -d to specify the IP address of a specific machine. Check out the "Device Selection" section of the command help, either here or by running ps4-waker -?.</milliseconds>

                  1 Antwort Letzte Antwort
                  0
                  • Z Offline
                    Z Offline
                    zuldero
                    schrieb am zuletzt editiert von
                    #17

                    auch hier bekomme ich einen fehler

                    ! /usr/lib/node_modules/ps4-waker/bin$ node cmd.js –bind -b 192.168.0.16
                    ! events.js:160
                    ! throw er; // Unhandled 'error' event
                    ! ^
                    ! Error: bind EADDRNOTAVAIL 192.168.0.16
                    ! at Object.exports._errnoException (util.js:1020:11)
                    ! at exports._exceptionWithHostPort (util.js:1043:20)
                    ! at _handle.lookup (dgram.js:219:18)
                    ! at _combinedTickCallback (internal/process/next_tick.js:83:11)
                    ! at process._tickCallback (internal/process/next_tick.js:104:9)
                    ! at Module.runMain (module.js:613:11)
                    ! at run (bootstrap_node.js:394:7)
                    ! at startup (bootstrap_node.js:160:9)
                    ! at bootstrap_node.js:507:3
                    sorry für meine anfänger getue :(

                    was bedeutet dieser strich:| (–bind | -b <ip>)

                    ist meine eingabe überhaupt richtig (node cmd.js --bind -b 192.168.0.16) (ip der ps4) oder leigt es ev. daran dass ich den iobroker auf nem raspi hab der auf dem 8081 port läuft? ich verstehe das so, dass die ps4 auf den 987 997 ports läuft. und da die app sich verbinden kann sollte sich der ps4-waker auch verbinden können oder?</ip>

                    1 Antwort Letzte Antwort
                    0
                    • StabilostickS Offline
                      StabilostickS Offline
                      Stabilostick
                      schrieb am zuletzt editiert von Stabilostick
                      #18

                      Entweder --bind ODER -b eingeben. Nicht gleichzeitig. :D

                      1 Antwort Letzte Antwort
                      0
                      • Z Offline
                        Z Offline
                        zuldero
                        schrieb am zuletzt editiert von
                        #19

                        achso xD so simpel ein trennstrich. an sowas denke ich nicht facepalm

                        aber trotzdem ich bekomme die selbe fehrlermeldeung.

                        also so ist schon richtig oder:

                        /usr/lib/node_modules/ps4-waker/bin$ node cmd.js -b 192.168.0.16

                        1 Antwort Letzte Antwort
                        0
                        • StabilostickS Offline
                          StabilostickS Offline
                          Stabilostick
                          schrieb am zuletzt editiert von
                          #20

                          You may also use -d to specify the IP address of a specific machine.

                          Du machst -b. Das ist das binden an ein lokales Netzwerkinterface. Mach -d

                          1 Antwort Letzte Antwort
                          0
                          • Z Offline
                            Z Offline
                            zuldero
                            schrieb am zuletzt editiert von
                            #21

                            Haleluja es klappt :) Danke tausendfach für deine hilfe xD heute hab ich mal wieder einiges gelernt.

                            sollte irgendwann später jemand das hier lesen, und nach machen wollen. mit der ps second screen app sich autenfizieren hat bei mir nicht funktioniert. ich musste: node cmd.js –pin xxxxxxxx (der pincode muss ohne lehrzeichen eingetippt werden) eintippen.

                            1 Antwort Letzte Antwort
                            0
                            • StabilostickS Offline
                              StabilostickS Offline
                              Stabilostick
                              schrieb am zuletzt editiert von
                              #22

                              Freut mich.

                              PS: Was Ist denn Dein aktuelles Lieblingsspiel? Bin gerade noch über Detroit.

                              1 Antwort Letzte Antwort
                              0
                              • Z Offline
                                Z Offline
                                zuldero
                                schrieb am zuletzt editiert von
                                #23

                                aktuell spiel ich gerade fortnite (mehr rettet doe welt weniger battle), rocket league, und ich freu mich mega auf das co-op uptate von no man sky in 20 tagen

                                Gesendet von meinem ONEPLUS A5000 mit Tapatalk

                                1 Antwort Letzte Antwort
                                0
                                • Z Offline
                                  Z Offline
                                  zuldero
                                  schrieb am zuletzt editiert von
                                  #24

                                  eine letzte frage habe ich noch. am ende von jedem code beispiel steht: ps4.close

                                  was macht das genau? bei mir funktioniert dass auch ohne

                                  1 Antwort Letzte Antwort
                                  0
                                  • StabilostickS Offline
                                    StabilostickS Offline
                                    Stabilostick
                                    schrieb am zuletzt editiert von
                                    #25
                                         /*
                                         * Immediately close any active connection to this Device
                                         */
                                        close() {
                                            if (this._socket) {
                                                this._socket.close();
                                            }
                                            this.__waker = null;
                                        }
                                    

                                    Netzwerkverbindung/Port/Ressourcen abbauen/freigeben. Ordnung muss sein.

                                    Mach doch mal im ersten Beitrag eine Titeländerung und schreibe da was von dem PS4-Waker und gelöst rein. Interessiert vielleicht auch später andere.

                                    1 Antwort Letzte Antwort
                                    0
                                    • K Offline
                                      K Offline
                                      Kuddel
                                      schrieb am zuletzt editiert von
                                      #26

                                      Ich habe den PS-Waker jetz erfolgreich mit meiner Konsole verbunden.

                                      Unter "Einstellungen der Verbindung über die mobile APP" wird jetzt "PS4 Waker ioBrok" angezeigt.

                                      WIe kann ich die Konsole jetzt starten / stoppen?

                                      Wünschenswert wäre ein Blockly Skript

                                      EDIT:

                                      Über die Konsole habe ich die PS4 über folgenden Befehler starten bzw. stoppen können:

                                      /opt/iobroker/node_modules/iobroker.javascript/node_modules/ps4-waker/bin# node cmd.js
                                      
                                      
                                      /opt/iobroker/node_modules/iobroker.javascript/node_modules/ps4-waker/bin# node cmd.js standby
                                      
                                      
                                      1 Antwort Letzte Antwort
                                      0
                                      • Z Offline
                                        Z Offline
                                        zuldero
                                        schrieb am zuletzt editiert von
                                        #27

                                        dann solltes du die ps nun so steuern können.

                                        PS. hilf doch bitte noch kurz @Luke er möchte den ps waker auch installieren, und ich weiss mitlerweile nicht mehr alle einzelnen schritte xD (is schon ne zeit her) ~~![](</s><URL url=)<link_text text="https://uploads.tapatalk-cdn.com/201811 ... 080876.jpg">https://uploads.tapatalk-cdn.com/20181110/1bacefbad71f6cdccf54af7d35080876.jpg</link_text>" />

                                        Gesendet von meinem ONEPLUS A5000 mit Tapatalk~~

                                        1 Antwort Letzte Antwort
                                        0
                                        • K Offline
                                          K Offline
                                          Kuddel
                                          schrieb am zuletzt editiert von
                                          #28

                                          Gerade die Exec Befehle getestet, es tut sich leider nix.

                                          Zur Kontorller habe ich im Verzeichnis/opt/iobroker/node_modules/iobroker.javascript/node_modules/ps4-waker/binnochmal````
                                          node cmd.js

                                          
                                          Damit ging die PS4 wieder an…
                                          1 Antwort Letzte Antwort
                                          0
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          747

                                          Online

                                          32.6k

                                          Benutzer

                                          82.2k

                                          Themen

                                          1.3m

                                          Beiträge
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Anmelden

                                          • Du hast noch kein Konto? Registrieren

                                          • Anmelden oder registrieren, um zu suchen
                                          • Erster Beitrag
                                            Letzter Beitrag
                                          0
                                          • Home
                                          • Aktuell
                                          • Tags
                                          • Ungelesen 0
                                          • Kategorien
                                          • Unreplied
                                          • Beliebt
                                          • GitHub
                                          • Docu
                                          • Hilfe