Beiträge von nanekx

    Huhu :) bin der thread Ersteller ????


    Freut mich über das rege Interesse ?? sorry aber, Wilfhelm2 übernehmen Sie , aber das verschieben usw. bekomme ich nicht hin ... ich hatte den Thread mal eröffnet um AppleScript Codes in Erfahrung zu bringen ?? das jetzt das ganze Haus spricht, ist doch ne nette Entwicklung.... Danke an alle beteiligten ?

    Keine Ahnung ? was du da treibst ? wie erkennt den HB das jemand im Badezimmer steht und fängt dann an diesen Text vorzulesen? Hast du ein Bewegungsmelder installiert? Hast du keine Probleme (falls es mit bewegungsmelder umgesetzt ist) mit deinen Haustieren? ? ich würde das System ja mal testen aber ich bräuchte das script ? so kann ich dir nicht wirklich weiter helfen ???

    Stimmt - habe aber dein Befehl verwendet (zum testen) ... vorher hatte ich nix drin, das stimmt.... ?? beides funktioniert nicht wirklich ?? naja, nicht so wichtig... wie gesagt, nur ein Schönheitsfehler ??

    Als der Befehl nicht funktionierte bzw die Musik App immer geöffnet wurde, hatte ich die Szene kurzerhand in „Bum Bäm“ umbenannt ? und „ein Lied zurück“ hieß dann „Bäm Bum“ ? funktioniert einwandfrei ??

    Sowohl als auch - Habe eine Szene erstellt mit dem Namen „nächstes Lied“ in dem der Schalter „nächstes Lied“ liegt, in meiner veröffentlichten config sollte es ersichtlich sein - nachdem Update auf iOS 11 ging es nicht, so wie du das auch schon erwähnt hast, ist die Musik App aufgegangen... jetzt mit iOS 11.1 geht’s wieder und vor iOS 11 ging es auch! Ich vermute die Schrauben im Hintergrund an der Siri ?

    Cool ? freue mich mit dir ? ich war am Anfang auch begeistert von den Möglichkeiten bezüglich AppleScript - ich meine, ich kann dir nachfühlen... für mich ist es immer noch erstaunlich wenn ich Musik höre und der Siri dann sage „nächstes Lied“ und das nächste Lied in der Playlist angespielt wird. Und es macht so viel Spaß... das einzige was jetzt noch fehlt ist ein HomePod ? sollte doch die gleiche Siri sein wie auf dem iPhone ? dann, denke ich, ist es perfekt ?

    tell application "iTunes"

    set wohnzimmerSpeaker to (first AirPlay device whose name = "Wohnzimmer")

    set kuecheSpeaker to (first AirPlay device whose name = "Kueche")

    set aussenbereichSpeaker to (first AirPlay device whose name = "Aussenbereich")

    set current AirPlay devices to {wohnzimmerSpeaker, kuecheSpeaker, aussenbereichSpeaker}

    end tell


    Das ist mit drei Lautsprechern ...


    Lautstärke kann man überall mit einfügen wenn man will... und viel Spaß - denkt daran wie ihr eure Lautsprecher nennt ist wichtig ?? ihr glaubt garnicht wie lange ich mit der Küche/Kueche gekämpft habe ...

    Also hier meine Variante sieht so aus ... es werden zwei AirPlay Lautsprecher gleichzeitig angewählt und wenn man z.b. Die Lautstärke später auf z.b. 30% stellt gehen beide Lautsprecher auf 30% - ich glaube das nennt man multiroom ?

    P.S. die Lautsprecher wird in iTunes als Küche und als Wohnzimmer angezeigt (bzw. sind die Namen von der frixbox)


    tell application "iTunes"

    set kuecheSpeaker to (first AirPlay device whose name = "Kueche")

    set wohnzimmerSpeaker to (first AirPlay device whose name = "Wohnzimmer")

    set current AirPlay devices to {kuecheSpeaker, wohnzimmerSpeaker}

    set the sound volume to 2

    delay 3

    set kuecheSpeaker to (first AirPlay device whose name = "Kueche")

    set wohnzimmerSpeaker to (first AirPlay device whose name = "Wohnzimmer")

    set current AirPlay devices to {kuecheSpeaker, wohnzimmerSpeaker}

    set the sound volume to 2

    end tell



    Zum Schluss wird die Lautstärke zunächst auf 2% gestellt , da z.b. eine andere Person die Lautstärke verändert hat - z.b. 80% und ich die Musik anmache , ich nicht gleich ein Herzinfarkt bekomme ... wie gesagt, das sind jetzt zwei Lautsprecher... man könnte auch Computer und AppleTv auswählen statt Küche und Wohnzimmer... ich poste noch ein Beispiel mit einem Lautsprecher... Moment...

    Gerne ?? deine Anfrage (state) bezüglich Bildschirmschoner habe ich übernommen, allerdings klappt die Anfrage nicht wirklich... entweder „keine Antwort“ oder „aus“ aber zeigt nicht an ob’s läuft ? ist aber nur ein Schönheitsfehler ? vielleicht findet sich der entsprechende Befehl mal bzw. Wir finden einen der firm ist bezüglich AppleScript ?

    Hier die config...


    P.s. z.b. Küchenbereich, Wohnbereich und so weiter sind AirPlay Boxen die dann über AppleScript bzw. Programm ausgewählt oder aber abgewählt werden... manche Playlisten habe ich mit xxx Kennzeichen müssen... als Beispiel für eine Playlist sieht ihr meine Playlist „nanekx“ ... Radio usw. Ist erstmal alles auf iTunes (Streaming URL) vorzubereiten und dann als Playlist abzulegen - dann klappt das auch mit der Siri „schalte das Radio an“ .... noch ein kleiner Tipp : falls eins der Schalter z.b. Radio nicht geht, eine Szene erstellen die da lautet „ das Radio „ dann geht’s mit „schalte das Radio an“ usw. Viel Spaß

    {

    "bridge":{

    "name":"Zion",

    "username":"CC:22:3D:E3:CE:30",

    "port":51826,

    "pin":"031-45-154"

    },

    "accessories":[

    {

    "accessory":"SamsungTV",

    "name":"Fernseher",

    "ip_address":"xxx",

    "send_delay":400

    },

    {

    "accessory":"TADO",

    "name":"Heizung",

    "homeID":"xxx",

    "username":"xxx",

    "password":"XXX"

    },

    {

    "accessory":"SSH",

    "name":"nächstes Lied",

    "on":"osascript -e 'tell application \"iTunes\" to play next track'",

    "off":"osascript -e 'tell application \"iTunes\" to play next track'",

    "state":"",

    "on_value":"playing",

    "exact_match":true,

    "ssh":{

    "user":"xxx",

    "host":"xxx",

    "port":22,

    "password":"XXX",

    "key":""

    }

    },

    {

    "accessory":"SSH",

    "name":"im Haus",

    "on":"osascript -e 'tell application \"system events\", open \"Applications/HomeKit/imHaus.app'",

    "off":"",

    "state":"",

    "on_value":"playing",

    "exact_match":true,

    "ssh":{

    "user":"xxx",

    "host":"xxx",

    "port":22,

    "password":"xxx",

    "key":""

    }

    },

    {

    "accessory":"SSH",

    "name":"nur Wohnzimmer",

    "on":"osascript -e 'tell application \"system events\", open \"Applications/HomeKit/Wohnzimmer.app'",

    "off":"osascript -e 'tell application \"Wohnzimmer\" run'",

    "state":"",

    "on_value":"playing",

    "exact_match":true,

    "ssh":{

    "user":"xxx",

    "host":"xxx",

    "port":22,

    "password":"Xxx",

    "key":""

    }

    },

    {

    "accessory":"SSH",

    "name":"Küchenbereich",

    "on":"osascript -e 'tell application \"system events\", open \"Applications/HomeKit/Küche.app'",

    "off":"osascript -e 'tell application \"Küche\" run'",

    "state":"",

    "on_value":"playing",

    "exact_match":true,

    "ssh":{

    "user":"xxx",

    "host":"xxx",

    "port":22,

    "password":"Xxx",

    "key":""

    }

    },

    {

    "accessory":"SSH",

    "name":"Aussenbereich",

    "on":"osascript -e 'tell application \"system events\", open \"Applications/HomeKit/Aussenbereich.app'",

    "off":"osascript -e 'tell application \"Aussenbereich\" run'",

    "state":"",

    "on_value":"playing",

    "exact_match":true,

    "ssh":{

    "user":"xxx",

    "host":"xxx",

    "port":22,

    "password":"Xxx",

    "key":""

    }

    },

    {

    "accessory":"SSH",

    "name":"Wohnbereich",

    "on":"osascript -e 'tell application \"system events\", open \"Applications/HomeKit/KüWo.app'",

    "off":"osascript -e 'tell application \"KüWo\", run'",

    "state":"",

    "on_value":"playing",

    "exact_match":true,

    "ssh":{

    "user":"xxx",

    "host":"xxx",

    "port":22,

    "password":"Xxx",

    "key":""

    }

    },

    {

    "accessory":"SSH",

    "name":"die Musik lauter",

    "on":"osascript -e 'tell app \"iTunes\" to set sound volume to sound volume + 5'",

    "off":"osascript -e 'tell app \"iTunes\" to set sound volume to sound volume + 5'",

    "state":"",

    "on_value":"playing",

    "exact_match":true,

    "ssh":{

    "user":"xxx",

    "host":"xxx",

    "port":22,

    "password":"Xxx",

    "key":""

    }

    },

    {

    "accessory":"SSH",

    "name":"die Musik leiser",

    "on":"osascript -e 'tell app \"iTunes\" to set sound volume to sound volume - 5'",

    "off":"osascript -e 'tell app \"iTunes\" to set sound volume to sound volume - 5'",

    "state":"",

    "on_value":"playing",

    "exact_match":true,

    "ssh":{

    "user":"xxx",

    "host":"xxx",

    "port":22,

    "password":"Xxx",

    "key":""

    }

    },

    {

    "accessory":"SSH",

    "name":"10%",

    "on":"osascript -e 'tell app \"iTunes\" to set sound volume to 10'",

    "off":"osascript -e 'tell app \"iTunes\" to set sound volume to 10'",

    "state":"",

    "on_value":"playing",

    "exact_match":true,

    "ssh":{

    "user":"xxx",

    "host":"xxx",

    "port":22,

    "password":"Xxx",

    "key":""

    }

    },

    {

    "accessory":"SSH",

    "name":"20%",

    "on":"osascript -e 'tell app \"iTunes\" to set sound volume to 20'",

    "off":"osascript -e 'tell app \"iTunes\" to set sound volume to 20'",

    "state":"",

    "on_value":"playing",

    "exact_match":true,

    "ssh":{

    "user":"xxx ",

    "host":"xxx",

    "port":22,

    "password":"xxx",

    "key":""

    }

    },

    {

    "accessory":"SSH",

    "name":"30%",

    "on":"osascript -e 'tell app \"iTunes\" to set sound volume to 30'",

    "off":"osascript -e 'tell app \"iTunes\" to set sound volume to 30'",

    "state":"",

    "on_value":"playing",

    "exact_match":true,

    "ssh":{

    "user":"xxx",

    "host":"xxx",

    "port":22,

    "password":"xxx",

    "key":""

    }

    },

    {

    "accessory":"SSH",

    "name":"40%",

    "on":"osascript -e 'tell app \"iTunes\" to set sound volume to 40'",

    "off":"osascript -e 'tell app \"iTunes\" to set sound volume to 40'",

    "state":"",

    "on_value":"playing",

    "exact_match":true,

    "ssh":{

    "user":"xxx",

    "host":"xxx",

    "port":22,

    "password":"Xxx",

    "key":""

    }

    },

    {

    "accessory":"SSH",

    "name":"50%",

    "on":"osascript -e 'tell app \"iTunes\" to set sound volume to 50'",

    "off":"osascript -e 'tell app \"iTunes\" to set sound volume to 50'",

    "state":"",

    "on_value":"playing",

    "exact_match":true,

    "ssh":{

    "user":"xxx",

    "host":"xxx",

    "port":22,

    "password":"xxx",

    "key":""

    }

    },

    {

    "accessory":"SSH",

    "name":"60%",

    "on":"osascript -e 'tell app \"iTunes\" to set sound volume to 60'",

    "off":"osascript -e 'tell app \"iTunes\" to set sound volume to 60'",

    "state":"",

    "on_value":"playing",

    "exact_match":true,

    "ssh":{

    "user":"xxx",

    "host":"xxx",

    "port":22,

    "password":"xxx",

    "key":""

    }

    },

    {

    "accessory":"SSH",

    "name":"70%",

    "on":"osascript -e 'tell app \"iTunes\" to set sound volume to 70'",

    "off":"osascript -e 'tell app \"iTunes\" to set sound volume to 70'",

    "state":"",

    "on_value":"playing",

    "exact_match":true,

    "ssh":{

    "user":"xxx",

    "host":"xxx",

    "port":22,

    "password":"xxx",

    "key":""

    }

    },

    {

    "accessory":"SSH",

    "name":"80%",

    "on":"osascript -e 'tell app \"iTunes\" to set sound volume to 80'",

    "off":"osascript -e 'tell app \"iTunes\" to set sound volume to 80'",

    "state":"",

    "on_value":"playing",

    "exact_match":true,

    "ssh":{

    "user":"xxx",

    "host":"xxx",

    "port":22,

    "password":"xxx",

    "key":""

    }

    },

    {

    "accessory":"SSH",

    "name":"90%",

    "on":"osascript -e 'tell app \"iTunes\" to set sound volume to 90'",

    "off":"osascript -e 'tell app \"iTunes\" to set sound volume to 90'",

    "state":"",

    "on_value":"playing",

    "exact_match":true,

    "ssh":{

    "user":"xxx",

    "host":"xxx",

    "port":22,

    "password":"xxx",

    "key":""

    }

    },

    {

    "accessory":"SSH",

    "name":"100%",

    "on":"osascript -e 'tell app \"iTunes\" to set sound volume to 99'",

    "off":"osascript -e 'tell app \"iTunes\" to set sound volume to 99",

    "state":"",

    "on_value":"playing",

    "exact_match":true,

    "ssh":{

    "user":"xxx",

    "host":"xxx",

    "port":22,

    "password":"xxx",

    "key":""

    }

    },

    {

    "accessory":"SSH",

    "name":"ein Lied zurück",

    "on":"osascript -e 'tell application \"iTunes\" to play back track'",

    "off":"osascript -e 'tell application \"iTunes\" to play back track'",

    "state":"",

    "on_value":"playing",

    "exact_match":true,

    "ssh":{

    "user":"xxx",

    "host":"xxx",

    "port":22,

    "password":"Xxx",

    "key":""

    }

    },

    {

    "accessory":"SSH",

    "name":"Reggae",

    "on":"osascript -e 'tell application \"iTunes\" to play playlist \"Reggae\" in source \"Mediathek\"'",

    "off":"osascript -e 'tell application \"iTunes\" to stop'",

    "state":"",

    "on_value":"playing",

    "exact_match":true,

    "ssh":{

    "user":"xxx",

    "host":"xxx",

    "port":22,

    "password":"xxx",

    "key":""

    }

    },

    {

    "accessory":"SSH",

    "name":"Xxx",

    "on":"osascript -e 'tell application \"iTunes\" to play playlist \"xxx\" in source \"Mediathek\"'",

    "off":"osascript -e 'tell application \"iTunes\" to play playlist \"Xxx\" in source \"Mediathek\"'",

    "state":"",

    "on_value":"playing",

    "exact_match":true,

    "ssh":{

    "user":"xxx",

    "host":"xxx",

    "port":22,

    "password":"xxx",

    "key":""

    }

    },

    {

    "accessory":"SSH",

    "name":"die Mediathek",

    "on":"osascript -e 'tell application \"iTunes\" to play playlist \"Mediathek\" in source \"Mediathek\"'",

    "off":"osascript -e 'tell application \"iTunes\" to stop'",

    "state":"",

    "on_value":"playing",

    "exact_match":true,

    "ssh":{

    "user":"xxx",

    "host":"xxx",

    "port":22,

    "password":"xxx",

    "key":""

    }

    },

    {

    "accessory":"SSH",

    "name":"Radio",

    "on":"osascript -e 'tell application \"iTunes\" to play playlist \"Radio\" in source \"Mediathek\"'",

    "off":"osascript -e 'tell application \"iTunes\" to stop'",

    "state":"",

    "on_value":"playing",

    "exact_match":true,

    "ssh":{

    "user":"xxx",

    "host":"xxx",

    "port":22,

    "password":"xxx",

    "key":""

    }

    },

    {

    "accessory":"SSH",

    "name":"Barnabas",

    "on":"osascript -e 'tell application \"iTunes\" to play playlist \"Barnabas\" in source \"Mediathek\"'",

    "off":"osascript -e 'tell application \"iTunes\" to stop'",

    "state":"",

    "on_value":"playing",

    "exact_match":true,

    "ssh":{

    "user":"xxx",

    "host":"xxx",

    "port":22,

    "password":"xxx",

    "key":""

    }

    },

    {

    "accessory":"SSH",

    "name":"Xxx",

    "on":"osascript -e 'tell application \"iTunes\" to play playlist \"xxx\" in source \"Mediathek\"'",

    "off":"osascript -e 'tell application \"iTunes\" to stop'",

    "state":"",

    "on_value":"playing",

    "exact_match":true,

    "ssh":{

    "user":"xxx",

    "host":"xxx",

    "port":22,

    "password":"Xxx",

    "key":""

    }

    },

    {

    "accessory":"SSH",

    "name":"nanekx",

    "on":"osascript -e 'tell application \"iTunes\" to play playlist \"nanekx\" in source \"Mediathek\"'",

    "off":"osascript -e 'tell application \"iTunes\" to stop'",

    "state":"",

    "on_value":"playing",

    "exact_match":true,

    "ssh":{

    "user":"xxx",

    "host":"xxx",

    "port":22,

    "password":"xxx",

    "key":""

    }

    },

    {

    "accessory":"SSH",

    "name":"Bildschirmschoner",

    "on":"osascript -e 'tell application \"ScreenSaverEngine\" to run'",

    "off":"osascript -e 'tell application \"ScreenSaverEngine\" to quit'",

    "state":"",

    "on_value":"on",

    "exact_match":true,

    "ssh":{

    "user":"xxx",

    "host":"xxx",

    "port":22,

    "password":"xxx",

    "key":""

    }

    },

    {

    "accessory":"SSH",

    "name":"die Musik",

    "on":"osascript -e 'tell application \"iTunes\" to play'",

    "off":"osascript -e 'tell application \"iTunes\" to stop'",

    "state":"osascript -e 'tell application \"iTunes\" to get player state'",

    "on_value":"playing",

    "exact_match":true,

    "ssh":{

    "user":"xxx",

    "host":"xxx",

    "port":22,

    "password":"Xxx",

    "key":""

    }

    }

    ],

    "platforms":[


    ]

    }

    Hallo Wilfhelm2,

    zunächst mal, ich kenne dieses HB Plugin nicht - ich nutze und nutze das Homebridge-ssh Plugin...

    Du hast Homebridge auf dem Mac laufen, stimmt’s? Meine mal, das warst du.... was ich dir damit sagen will, ich kenne deine Konstellation nicht. Also wie gesagt, habe Homebridge-ssh Plugin auf den Raspberrypi installiert wo Homebridge läuft, habe auf dem Mac den AppleScript erstellt und als Programm in ein Ordner gelegt.. dann die config angepasst und zwar habe ich nur den Pfad der Datei angegeben ... da das script auf dem Mac getestet wurde (und funktioniert) macht Homebridge im Prinzip nix anderes als das Programm (script auf dem Mac) zu starten... also wenn dein script funktioniert dann sollte der Rest kein Problem sein ??


    Grüße