NEWS
Überprüfen ob bereits eine Harmony aktivität gestartet ist.
-
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 Hubharmony.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