Use Siri to control HomeMatic

Problemlösungen und Hinweise von allgemeinem Interesse zur Haussteuerung mit HomeMatic

Moderator: Co-Administratoren

tomazmla
Beiträge: 15
Registriert: 26.04.2010, 18:56

Use Siri to control HomeMatic

Beitrag von tomazmla » 06.09.2012, 00:33

Hello

I own an Iphone and I wanted to control my HomeMatic devices using Siri. After searching I came across a solution named SiriProxy. It allows me to customize actions based on voice commands I make in a very simple way.
What you need:
- Iphone 4s
- Linux server in your network
- Knowledge installing and configuring linux packages

Instead of using dedicated linux server I installed SiriProxy onto my Synology DS211 NAS. These are the basic steps to make it work:
- Install Siriproxy
- Configure local DNS so that it redirects Siri calls to SiriProxy server
- Install SiriProxy certificate in your Iphone 4s
- Create new or customize sample plugin to listen to your voice commands
All steps are documented on SiriProxy page: https://github.com/plamoni/SiriProxy.

Example of plugin script (I am using XML API to change variable state):
listen_for /alarm off/i do
open("http://<homematic CCU IP>/config/xmlapi/statechange.cgi?ise_id=2712&new_value=1")
say "Homematic alarm is off!"
request_completed
end

Enjoy!
Tomaz, Slovenia

Benutzeravatar
anli
Beiträge: 4326
Registriert: 10.06.2009, 14:01
Wohnort: 20 Min. nördlich von Hannover und bei Bremen
Hat sich bedankt: 1 Mal
Danksagung erhalten: 23 Mal
Kontaktdaten:

Re: Use Siri to control HomeMatic

Beitrag von anli » 06.09.2012, 08:15

Thank you! Very cool! Maybe we can move this thread to the "tips & tricks" section of this board where only hints are posted :)
Herzliche Grüße, anli

Alle Angaben ohne Gewähr und Haftung meinerseits. Verwendung der von mir zur Verfügung gestellten Downloads auf eigene Gefahr. Ich bitte um Verständnis, dass ich aus zeitlichen Gründen keine unaufgeforderte Hilfestellung per PN/Mail geben kann. Bitte allgemeine Fragen ins Forum stellen, hier können viele fähige User viel schneller helfen.

Homematic-Manager v2: einfaches Tool zum Erstellen von Direktverknüpfungen und Bearbeiten von Gerätenamen, -parametern etc. für Homematic und HomematicIP (Alternative diesbzgl. zur WebUI)

Einsteiger-Hilfeerweiterter Skript-Parser

buempi
Ehrenmitglied
Beiträge: 12194
Registriert: 29.07.2006, 15:58
Wohnort: Schweiz
Danksagung erhalten: 5 Mal

Re: Use Siri to control HomeMatic

Beitrag von buempi » 06.09.2012, 08:20

anli hat geschrieben:Thank you! Very cool! Maybe we can move this thread to the "tips & tricks" section of this board where only hints are posted :)
... done

regards
Bümpi

Benutzeravatar
loetman
Beiträge: 179
Registriert: 18.08.2011, 08:07

Re: Use Siri to control HomeMatic

Beitrag von loetman » 07.09.2012, 12:14

Hy, hört sich super an, kann es jemand eventuell etwas ausführlicher und wenn möglich eine Anleitung auf Deutsch für etwas weniger versierte Benutzer machen, das wäre grossartig!

Danke schon im voraus
System: Raspberry Matic 3.43.15.20190223, 2 Lan-Gateways, 103 Geräte, 63 Programme

stefan_stevenson
Beiträge: 50
Registriert: 01.04.2010, 00:26

Re: Use Siri to control HomeMatic

Beitrag von stefan_stevenson » 09.09.2012, 16:27

Alternative für ältere Geräte ohne Jailbreak:

Programm Voice Activator installieren. Damit kann man der normalen Sprachsteuerungsbefehle hinzufügen zu Standard-Repertoire.
Innerhalb von Voice Activator dann ide URL eingeben, die bei der CCU aufgerufen werden soll (ähnlich wget).
Funktioniert wunderbar.

Gegebenenfalls mit Hands-Free, dann reagiert der Ipod auf ein Stichwort und ruft die Sprachfunktion dann selbst auf, ohne dass man eine Taste drücken muss.

Liebe Grüße

Stefan
----------------------------------------

1x HM-RC-19, 4x HM-RC-4, 1x HM-PB-2-WM, 1x HM-CCU-1, 1x HM-LC-Sw4-PCB, 1x HM-PB-4-WM, 1x HM-PB-4Dis-WM, 1x HM-Sec-SD, 1x HM-Sec-SD-Team, 11x HM-Sec-SC, 4x HM-LC-Dim1L-Pl, 16x HM-LC-Sw1-Pl, 2x HM-WDS40-TH-I, 2x HM-SwI-3-FM, 1x HM-PBI-4-FM

art-audio
Beiträge: 712
Registriert: 13.12.2010, 09:45

Re: Use Siri to control HomeMatic

Beitrag von art-audio » 10.09.2012, 07:20

Hallo Stefan,

VoiceActivator gibt es anscheinend nur mit Jailbreak,
Gruß

Sven

(aktuell ca. 200 HomeMatic Funk Aktoren und Sensoren und einigen Hundert Kanälen mit steigender Tendenz)

Benutzeravatar
mosmutzel
Beiträge: 110
Registriert: 30.03.2012, 06:51
Wohnort: im Süden Berlins

Re: Use Siri to control HomeMatic

Beitrag von mosmutzel » 11.09.2012, 09:09

Hi,
in the official Synology Forum i found this step by step Installation Guide:
http://forum.synology.com/enu/viewtopic ... 71#p188371

I follow the instructions, but i have a Problem with the Python ctypes.

Benutzeravatar
mosmutzel
Beiträge: 110
Registriert: 30.03.2012, 06:51
Wohnort: im Süden Berlins

Re: Use Siri to control HomeMatic

Beitrag von mosmutzel » 11.09.2012, 10:59

Here a Screenshot:
ImageUploadedByTapatalk1347353905.459413.jpg

Tobias78
Beiträge: 1464
Registriert: 27.06.2010, 01:01
Wohnort: Braunschweig
Hat sich bedankt: 4 Mal

Re: Use Siri to control HomeMatic

Beitrag von Tobias78 » 11.09.2012, 22:20

tomazmla hat geschrieben: ...
- Linux server in your network
...
Does the CCU fit?
--------------------------------------------
Im Einsatz und empfehlenswert:
RaspberryMatic,IO.Broker, Homeputer Studio; CuXD; PocketControl, HomeStatus, Robonect, Alexa, io.Broker
------------------------------------------

tomazmla
Beiträge: 15
Registriert: 26.04.2010, 18:56

Re: Use Siri to control HomeMatic

Beitrag von tomazmla » 12.09.2012, 22:54

Does the CCU fit?
I didn't try. If you can Install these packages it might:
- ipkg and then:
- ipkg install optware-devel
- ipkg install git
- ipkg install openssl
-ipkg install gcc
- ipkg install openssl-dev
- bash
- curl
- rvm (use this command: curl -L https://get.rvm.io | bash -s stable --ruby)
- siriproxy (make /root/SiriProxy dir and run: git clone git://github.com/plamoni/SiriProxy.git)

Some libraries need to bi fixed (commands I used for Synology):
cp /opt/arm-none-linux-gnueabi/lib/libpthread-2.5.so /opt/arm-none-linux-gnueabi/lib/libpthread-2.5.so.bk
cp /lib/libpthread.so.0 /opt/arm-none-linux-gnueabi/lib/libpthread-2.5.so
cp /opt/lib/libssl.so.0.9.8 /opt/arm-none-linux-gnueabi/lib
cp /opt/lib/libssl.so.0.9.8 /lib
cp /opt/lib/libcrypto.so.0.9.8 /lib

Here are some resources that helped me:
- https://github.com/plamoni/SiriProxy/issues/137
- http://www.synology-forum.de/archive/in ... 530a068b7a

Hope this helps
Regards, Tomaz

Antworten

Zurück zu „HomeMatic Tipps & Tricks - keine Fragen!“