Via Siri (Iphone 4s) Enigma Boxen steuern
Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen
-
-
lach geile sacheVu+DUO Interne Western Digital WD4000AAJS Festplatte 400.0 GB 8.9 ms S-ATAII / 300 8.0 MB
-
Hat das jemand ordentlich laufen und kann mir ne aktuelle Hilfestellung geben iOS 10, raspberry 3 mit vu solo 4 k! Ich würde das gerne mit siri steuern können! Man findet einen Haufen Anleitungen mit Echo aber irgendwie nicht mit siri! Kann ich die ha-Bridge trotzdem nutzen? Danke für antworten
-
Bis jetzt ist das hier noch kein Thema. Aber was nicht ist kann ja noch kommen. Das Plugin ist ja auch noch nicht verfügbar ...
Anfänger machen Fehler - Könner verursachen Katastrophen
-
-
Es gibt youtube Videos von vor 4 Jahren und mit fhem gibt es wohl schon ein fertiges Skript/Plugin ist schon ne nette Spielerei! Aber dafür reicht alleine mein Fachwissen nicht
-
Gibts da schon was neues? Oder ist die Siri Geschichte schon eingeschlafen?
-
Ich hol das Thema mal wieder hoch - ich habe mir eine Siri Integration selbst gebastelt. Muss man leider so nennen.
Was braucht man:
- VU+ Box, welche mittels RemoteCommands ansprechbar ist (http://IP-Adresse/web/remotecontrol?command={command})
- Homebridge (auf einem RaspberryPi oder als Docker) - ich habe das auf einem Synology NAS im Docker laufen
- einen Proxy, der für mehrfache Kommandos einen Webhook definiert (erkläre ich unten)
- homebridge inkl. dem Plugin Webhooks
Man muss in der Homebridge entsprechende Kommandos definieren, welche die Homebridge dann für Siri zur Verfügung stellt. Ich habe erstmal nur einige Sender definiert, um damit schnell umzuschalten zu können. Das Problem dabei ist bei den hohen Sender z.B. "Senderplatz 27", dass dort zwei Kommandos übermittelt werden müssen, also "2" und "7". Die homebridge kann jedoch nur einen Webhook absetzen, somit musste ein Proxy her, der diese Mehrfachbefehle ausführt. Ich habe dafür ebenfalls am NAS eine kleine PHP-Website geschrieben, die das bewerkstelligt.
Ich habe nach den eigentlichen Zahlen immer noch ein "OK" mit kleiner Verzögerung nachgeschossen, damit das Umschalten schneller von statten geht.
PHP-Quellcode
- <?php
- $host = "10.11.1.4";
- $cmd = $_GET['cmd'];
- if($cmd == "zdf")
- {
- file_get_contents('http://'.$host.'/api/remotecontrol?command=3');
- //OK
- file_get_contents('http://'.$host.'/api/remotecontrol?command=352');
- }
- if($cmd == "ard")
- {
- file_get_contents('http://'.$host.'/api/remotecontrol?command=2');
- //OK
- file_get_contents('http://'.$host.'/api/remotecontrol?command=352');
- }
- if($cmd == "zdfneo")
- {
- file_get_contents('http://'.$host.'/api/remotecontrol?command=5');
- sleep(0.2);
- file_get_contents('http://'.$host.'/api/remotecontrol?command=11');
- //OK
- file_get_contents('http://'.$host.'/api/remotecontrol?command=352');
- }
- if($cmd == "rbb")
- {
- file_get_contents('http://'.$host.'/api/remotecontrol?command=3');
- sleep(0.2);
- file_get_contents('http://'.$host.'/api/remotecontrol?command=8');
- //OK
- file_get_contents('http://'.$host.'/api/remotecontrol?command=352');
- }
- if($cmd == "pro7")
- {
- file_get_contents('http://'.$host.'/api/remotecontrol?command=9');
- //OK
- file_get_contents('http://'.$host.'/api/remotecontrol?command=352');
- }
- if($cmd == "sat1")
- {
- file_get_contents('http://'.$host.'/api/remotecontrol?command=4');
- //OK
- file_get_contents('http://'.$host.'/api/remotecontrol?command=352');
- }
- if($cmd == "kabel1")
- {
- file_get_contents('http://'.$host.'/api/remotecontrol?command=10');
- //OK
- file_get_contents('http://'.$host.'/api/remotecontrol?command=352');
- }
- ?>
Quellcode
- {
- "platform": "HttpWebHooks",
- "webhook_port": "51828",
- "cache_directory": "/homebridge/webhook-cache",
- "pushbuttons":
- [
- {
- "id": "VU01",
- "name": "ProSieben",
- "push_url": "http://10.11.1.23/vu-api/control.php?cmd=pro7"
- },
- {
- "id": "VU02",
- "name": "Kabel eins",
- "push_url": "http://10.11.1.23/vu-api/control.php?cmd=kabel1"
- },
- {
- "id": "VU03",
- "name": "Sat1",
- "push_url": "http://10.11.1.23/vu-api/control.php?cmd=sat1"
- },
- {
- "id": "VU04",
- "name": "RBB",
- "push_url": "http://10.11.1.23/vu-api/control.php?cmd=rbb"
- },
- {
- "id": "VU05",
- "name": "ARD",
- "push_url": "http://10.11.1.23/vu-api/control.php?cmd=ard"
- },
- {
- "id": "VU06",
- "name": "ZDF",
- "push_url": "http://10.11.1.23/vu-api/control.php?cmd=zdf"
- },
- {
- "id": "VU07",
- "name": "ZDFNeo",
- "push_url": "http://10.11.1.23/vu-api/control.php?cmd=zdfneo"
- }
- ]
- }
- ]
Viele Grüße
Tom
Uno 4K SE - 1 x DVB-S2 FBC Dual Tuner