Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Überprüfen ob bereits eine Harmony aktivität gestartet ist.

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Überprüfen ob bereits eine Harmony aktivität gestartet ist.

    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      noaboa last edited by

      Hallo zusammen

      Ich hatte zuerst nur ein Script das einfach meine PS4 einschaltet wenn die aktion auf dem Harmony Hub gestartet wird. Nun hab ich dieses veränderet damit es überprüft ob bereits eine Harmony aktivität gestartet ist oder nicht allerdings funktioniert es noch nicht. Hat jemand eine Idee oder eine einfachere Lösung?

      Ich habe auch probleme das sich ioBroker sprich der Harmony Adapter immer wieder verabschiedet. Ich vermute schwer, dass es vom setTimeout im Script kommt. Kann mir da jemand evlt auch helfen?

      Fehler Logs:
      ` > harmony.0 2018-01-20 19:23:30.096 info connected to Harmony Hub

      harmony.0 2018-01-20 19:23:25.472 warn connection down: Error: Timed out after 5000 ms

      harmony.0 2018-01-20 19:23:24.743 info client ended: Harmony_Hub

      harmony.0 2018-01-20 19:23:24.742 info keep alive failed: Error: Timed out after 5000 ms

      harmony.0 2018-01-20 19:23:19.735 info connected to Harmony Hub

      harmony.0 2018-01-20 18:23:15.103 warn connection down: Error: Timed out after 5000 ms

      harmony.0 2018-01-20 18:23:14.416 info client ended: Harmony_Hub

      harmony.0 2018-01-20 18:23:14.412 info keep alive failed: Error: Timed out after 5000 ms

      harmony.0 2018-01-20 18:23:09.403 info connected to Harmony Hub

      harmony.0 2018-01-20 18:23:04.913 warn connection down: Error: Timed out after 5000 ms

      harmony.0 2018-01-20 18:23:04.090 info client ended: Harmony_Hub

      harmony.0 2018-01-20 18:23:04.058 info keep alive failed: Error: Timed out after 5000 ms

      harmony.0 2018-01-20 18:22:59.053 info connected to Harmony Hub

      harmony.0 2018-01-20 18:22:54.246 warn connection down: Error: Timed out after 5000 ms

      harmony.0 2018-01-20 18:22:53.500 info client ended: Harmony_Hub

      harmony.0 2018-01-20 18:22:53.488 info keep alive failed: Error: Timed out after 5000 ms

      harmony.0 2018-01-20 18:22:48.483 info connected to Harmony Hub

      harmony.0 2018-01-20 18:22:44.028 warn connection down: Error: Timed out after 5000 ms

      harmony.0 2018-01-20 18:22:43.176 info client ended: Harmony_Hub

      harmony.0 2018-01-20 18:22:43.165 info keep alive failed: Error: Timed out after 5000 ms `

      on({id:"harmony.0.Harmony_Hub.activities.Netflix"/*activity:Netflix*/,val:1},function(obj){
      
          if (getState("harmony.0.Harmony_Hub.activities.Netflix"/*activity:Netflix*/).val === 0
              && getState("harmony.0.Harmony_Hub.activities.Musik"/*activity:Musik*/).val === 0
              && getState("harmony.0.Harmony_Hub.activities.Heimkino"/*activity:Heimkino*/).val === 0){
      
                  log("an");   
                  exec("ps4-waker");
      
                  setTimeout(function(obj){
                      exec("ps4-waker start CUSA00127");
                  },40000);
      
          } else {
      
              log("starten")
              exec("ps4-waker start CUSA00127");
      
          }
      
      });
      
      on({id:"harmony.0.Harmony_Hub.activities.Netflix"/*activity:Netflix*/,val:3},function(obj){
          log("aus");   
          exec("ps4-waker standby");
      });
      

      Vielen Dank im Voraus

      Lg Noah

      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Support us

      ioBroker
      Community Adapters
      Donate

      693
      Online

      31.9k
      Users

      80.2k
      Topics

      1.3m
      Posts

      1
      1
      302
      Loading More Posts
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      Community
      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
      The ioBroker Community 2014-2023
      logo