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. Skripten / Logik
  4. Überprüfen ob bereits eine Harmony aktivität gestartet ist.

NEWS

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

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

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

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

Scheduled Pinned Locked Moved Skripten / Logik
1 Posts 1 Posters 338 Views
  • 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.
  • N Offline
    N Offline
    noaboa
    wrote on last edited by
    #1

    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

    ioBroker auf einem Raspberry 3
    Adapters: Harmony, Hue, Javascript, MyStrom, Parser, Telegram, Spotify und Yhaka

    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

    353

    Online

    32.8k

    Users

    82.7k

    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