Ein gutes neues Jahr Euch allen!
Blue Iris ist ein ziemlich mächtiges Kameraüberwachungsprogramm,welches eine sehr gute Kameraerkennung und recht moderen Bedienoberfläche bietet.
https://blueirissoftware.com/ (https://blueirissoftware.com/)
In folgendem Beitrag wurde schon vor einigen Jahren die Anbindung von Blue Iris zu Fhem per HTTP angesprochen.
https://forum.fhem.de/index.php/topic,50909.0.html (https://forum.fhem.de/index.php/topic,50909.0.html)
Bei mir klappt das nun auch zum Beispiel mit einer Batch Datei Datei mit folgendem Inhalt, welche bei Alarm ausgeführt wird:
powershell -Command "& {(New-Object System.Net.WebClient).DownloadString('http://192.168.1xx.xxx:8083/fhem?cmd=set test 9929&XHR=1&fwcsrf=csrf_4xxx45018xxxxxx')}"
Blue Iris bietet mittlerweile sogar eine MQTT Schnittstelle.
Hat irgendjemand bereits Blue Iris in Verbindung mit Fhem im Einsatz, steuert mehr als die HTTP Befehle bei Kamera-Alarm und würde das hier beschreiben?
Oder hat vielleicht sogar schon jemand ein Modul geschrieben, z.B. über die angesprochene MQTT Schnittstelle um z.B. die Profile zu wechseln?
Mit Zoneminder ist man ja schon sehr weit und kann alles erdenkliche per Fhem steuern.
Leider kann ich mich auch nach mehrmaligen Versuchen nicht wirklich mit der Bedienoberfläche von Zoneminder anfreunden.
Gruß,
Christian
Hallo,
ich wollte das Thema nun einfach nochmal pushen.
Vielleicht hat ja doch jemand Erfahrung mit Blue Iris und Fhem und liest hier mit . ::)
Gruss Christian
Hallo Christian,
schon etwas älter und hoffe, Du liest das noch ;-) Ich habe heute angefangen über mqtt meine BluIris Instanz in fhem zu integrieren. Erstmal nur die Profile, um automatisiert umzuschalten, da das BlueIris eigene Geofencing mit den Handys nicht zu 100% zuverlässig ist...
Hier schon mal das erste List des Devices...
Internals:
CFGFN
CID BlueIris
DEF BlueIris
DEVICETOPIC BlueIris
FUUID 610d0728-f33f-8cc0-91ad-b811433846b56cb3
IODev MQTT2_CLIENT
LASTInputDev MQTT2_CLIENT
MQTT2_CLIENT_MSGCNT 34
MQTT2_CLIENT_TIME 2021-08-06 13:13:45
MSGCNT 34
NAME BlueIris
NR 70149
STATE 01-Home
TYPE MQTT2_DEVICE
JSONMAP:
lock Lock
profile Profil
running Running
schedule ScheduleName
signal Signal
starting Starting
stopped Stopped
stopping Stopping
unexpectedstop LastWillTestament
READINGS:
2021-08-06 12:07:55 IODev MQTT2_CLIENT
2021-08-06 13:13:44 state 01-Home
Attributes:
DbLogExclude .*
jsonMap signal:Signal
profile:Profil
lock:Lock
schedule:ScheduleName
starting:Starting
running:Running
stopping:Stopping
stopped:Stopped
unexpectedstop:LastWillTestament
readingList BlueIris/app.* { json2nameValue($EVENT) }
BlueIris/status.* { json2nameValue($EVENT) }
room 56_MQTT,58_Kamera
setList 00-Inaktiv:noArg BlueIris/admin profile=0&lock=1
01-Home:noArg BlueIris/admin profile=1&lock=0
02-Work:noArg BlueIris/admin profile=2&lock=1
03-Profile3:noArg BlueIris/admin profile=3&lock=1
04-Profile4:noArg BlueIris/admin profile=4&lock=1
05-Profile5:noArg BlueIris/admin profile=5&lock=1
06-Profile6:noArg BlueIris/admin profile=6&lock=1
07-Profile7:noArg BlueIris/admin profile=7&lock=1
und hier das Define:
defmod BlueIris MQTT2_DEVICE BlueIris
attr BlueIris DbLogExclude .*
attr BlueIris jsonMap signal:Signal\
profile:Profil\
lock:Lock\
schedule:ScheduleName\
starting:Starting\
running:Running\
stopping:Stopping\
stopped:Stopped\
unexpectedstop:LastWillTestament
attr BlueIris readingList BlueIris/app.* { json2nameValue($EVENT) }\
BlueIris/status.* { json2nameValue($EVENT) }
attr BlueIris room 56_MQTT,58_Kamera
attr BlueIris setList 00-Inaktiv:noArg BlueIris/admin profile=0&lock=1\
01-Home:noArg BlueIris/admin profile=1&lock=0\
02-Work:noArg BlueIris/admin profile=2&lock=1\
03-Profile3:noArg BlueIris/admin profile=3&lock=1\
04-Profile4:noArg BlueIris/admin profile=4&lock=1\
05-Profile5:noArg BlueIris/admin profile=5&lock=1\
06-Profile6:noArg BlueIris/admin profile=6&lock=1\
07-Profile7:noArg BlueIris/admin profile=7&lock=1
Ich werde da die nächste Zeit noch dran bleiben, um eventuell auch Kameras steuern, oder auch Alarm-Trigger auslesen zu können...
Gruss Jan
Hallo Jan,
schön von Dir zu hören! Das klingt ja schon vielversprechend, was Du bisher erreicht hast! :)
Könntest Du eventuell noch das "Define" vom MQTT2-Server posten und die nötigen Einstellungen für MQTT in BlueIris selbst?
Habe bisher noch nichts mit MQTT gemacht und das würde mir dann den Einstieg vereinfachen.
Ich könnte dann auch direkt Sachen ausprobieren, wenn Du noch einen weiteren "Tester" brauchst. ;)
Gruss,
Christian
Hallo Chrisitian,
zunächst brauchst Du einen MQTT Server. Ich habe dafür einen Docker mit mosquitto laufen. Das ist mein IO Device für alle MQTT Devices.
Du kannst Dir aber auch in fhem einen MQTT Server anlegen https://wiki.fhem.de/wiki/MQTT (https://wiki.fhem.de/wiki/MQTT)
In BlueIris gehst Du in den Einstellungen auf den Reiter "DigialIO und IoT". Dort gibt es eine Schaltfläche MQTT->Configure. Als ClientID habe ich BlueIris (das ist dann auch das Prefix des MQTT Topics) eingetragen und IP und Port (normalerweise 1883) sind entsprechend dem MQTT Server einzutragen.
Das war es dann eingentlich schon.
Noch das Device anlegen und dann kannst Du schon mal die Profile wechseln:
defmod BlueIris MQTT2_DEVICE BlueIris
attr BlueIris DbLogExclude .*
attr BlueIris readingList BlueIris/status:.* status\
BlueIris/app:.* app
attr BlueIris room 56_MQTT,58_Kamera
attr BlueIris setList 00-Inaktiv:noArg BlueIris/admin profile=0&lock=1\
01-Home:noArg BlueIris/admin profile=1&lock=0\
02-Work:noArg BlueIris/admin profile=2&lock=1\
03-Profile3:noArg BlueIris/admin profile=3&lock=1\
04-Profile4:noArg BlueIris/admin profile=4&lock=1\
05-Profile5:noArg BlueIris/admin profile=5&lock=1\
06-Profile6:noArg BlueIris/admin profile=6&lock=1\
07-Profile7:noArg BlueIris/admin profile=7&lock=1
Wenn ich mal Zeit habe, da weiter in die Materie zu gehen, poste ich das dann hier...
Anbei noch 2 Auszüge aus der BlueIris Doku bzgl. MQTT...
Gruss Jan
Hallo Jan,
ich kam leider erst jetzt dazu das ganze zu testen...
Dank Deiner Anleitung hat es sofort funktioniert! ;D
coole Sache!
Ich danke Dir schonmal ganz herzlich!
Mich wundert es ehrlich gesagt, dass sonst keiner hier BlueIris zu nutzen scheint.
Ich finde die Software echt mächtig und jeden Cent Wert. (Habe 50$ bei Ebay bezahlt)
Falls Du weitere Funktionen zum Laufen bekommst, "darfst" Du das natürlich gerne posten! ;) ;)
Gruß,
Christian