Hallo,
da ich glaube, dass der Ursprungsthread https://forum.fhem.de/index.php/topic,126024.0/all.html (https://forum.fhem.de/index.php/topic,126024.0/all.html) verwaist ist, erlaube ich mir mal, einen neuen aufzumachen.
Ich versuche gerade, meine Doorbell G4 in FHEM einzubinden. UnifiProtect läuft als IODev.
define Unifi_Protect UnifiProtect 192.168.1.1
attr Unifi_Protect password crypt:xxxxxxxxxxxxxxxxxx
attr Unifi_Protect room Unifi
attr Unifi_Protect user crypt:23297d7d
attr Unifi_Protect verbose 0
# DEF 192.168.1.1
# FUUID 63ec5d3f-f33f-08ae-26a0-f81dbe5ab090fba5
# HOST 192.168.1.1
# NAME Unifi_Protect
# NOTIFYDEV global
# NR 1007
# NTFY_ORDER 50-Unifi_Protect
# STATE running
# TYPE UnifiProtect
# eventCount 4
# READINGS:
# 2023-02-15 05:19:13 cam0id 63ebcdc302243d0387000ae5
# 2023-02-15 05:19:13 cam0name Haustuer
# 2023-02-15 05:19:13 cam0state CONNECTED
# 2023-02-15 07:26:56 state running
# 2023-02-15 05:19:13 totalCount 1
# helper:
# cookie TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2MzM3MTNhNS00MWI1LTRhMmItOWQ2Yy1kZjU3M2RiYjg3MjEiLCJjc3JmVG9rZW4iOiI2OTAxZmJlNC0xNjdlLTQ5MTEtODMzNi01NWIzNzFlZWQwNmYiLCJpYXQiOjE2NzY0NDI0MjgsImV4cCI6MTY3NjQ0NjAyOCwianRpIjoiMzY1ZGYyMWUtODJhYS00MDc3LTllZjgtODFiOTEzOWVhODI5In0.rU9RgKBvvKMa9of5wWfLVs3M-jH3uKiaC5ENATAfklM; path=/; samesite=none; secure; httponly
# csrfToken 6901fbe4-167e-4911-8336-55b371eed06f
# isUnifiOS 1
# json:
# HASH(0x55d78dbe4660)
#
setstate Unifi_Protect running
setstate Unifi_Protect 2023-02-15 05:19:13 cam0id 63ebcdc302243d0387000ae5
setstate Unifi_Protect 2023-02-15 05:19:13 cam0name Haustuer
setstate Unifi_Protect 2023-02-15 05:19:13 cam0state CONNECTED
setstate Unifi_Protect 2023-02-15 07:26:56 state running
setstate Unifi_Protect 2023-02-15 05:19:13 totalCount 1
Ich bekomme auch ein Vorschaubild der Kamera angezeigt.
Allerdings wird das UnifiProtectDevice nicht automatisch angelegt. Ich habe es dann einmal manuell definiert und als IODev mein UnifiProtect zugewiesen.
define Unifi_haustuer UnifiProtectDevice 63ebcdc302243d0387000ae5
attr Unifi_haustuer IODev Unifi_Protect
attr Unifi_haustuer room Unifi
# CFGFN
# DEF 63ebcdc302243d0387000ae5
# FUUID 63ec78ec-f33f-08ae-3c1b-a883f3061833e09a
# IODev Unifi_Protect
# NAME Unifi_haustuer
# NR 3976
# STATE ???
# TYPE UnifiProtectDevice
# id 63ebcdc302243d0387000ae5
# READINGS:
# 2023-02-15 07:26:42 IODev Unifi_Protect
# helper:
# featureFlags:
#
setstate Unifi_haustuer 2023-02-15 07:26:42 IODev Unifi_Protect
Allerdings tut sich nichts im Device. Habe ich irgendetwas vergessen?
Wenn ich die beiden Threads richtig verstanden haben, ist das Gefrickel mit dem sshUser nicht notwendig.
Unifi Protect läuft bei mir auf einer UDM-Pro. FHEM läuft in einer VM auf einer Synology Diskstation.
LG
Oli
Hallo,
hat sich hier was getan, hast Du es hinbekommen?
Habe das selbe Problem,
Jens