ELV "Door Bird" und FHEM

Begonnen von Thorsten Pferdekaemper, 04 Oktober 2015, 09:41:51

Vorheriges Thema - Nächstes Thema

Frank_Huber

#210
aktuelle Version nach Reboot
2019.01.30 13:49:39 0: Featurelevel: 5.9
2019.01.30 13:49:39 0: Server started with 54 defined entities (fhem.pl:18423/2019-01-26 perl:5.024001 os:linux user:fhem pid:30085)
2019.01.30 13:49:45 5: DoorBird : DoorBird_Set - name                               : DoorBird
2019.01.30 13:49:45 5: DoorBird : DoorBird_Set - command                            : ?
2019.01.30 13:49:45 5: DoorBird : DoorBird_Set - option                             : 
2019.01.30 13:49:45 5: DoorBird : DoorBird_Set - RelayAdresses                      : 1,2
2019.01.30 13:54:38 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 13:54:38 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 13:54:45 5: DoorBird : DoorBird_Set - name                               : DoorBird
2019.01.30 13:54:45 5: DoorBird : DoorBird_Set - command                            : ?
2019.01.30 13:54:45 5: DoorBird : DoorBird_Set - option                             : 
2019.01.30 13:54:45 5: DoorBird : DoorBird_Set - RelayAdresses                      : 1,2
2019.01.30 13:55:38 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 13:55:38 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 13:56:38 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 13:56:38 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 13:57:38 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 13:57:38 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 13:58:38 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 13:58:38 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 13:59:38 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 13:59:38 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 13:59:46 5: DoorBird : DoorBird_Set - name                               : DoorBird
2019.01.30 13:59:46 5: DoorBird : DoorBird_Set - command                            : ?
2019.01.30 13:59:46 5: DoorBird : DoorBird_Set - option                             : 
2019.01.30 13:59:46 5: DoorBird : DoorBird_Set - RelayAdresses                      : 1,2
2019.01.30 14:00:38 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:00:38 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:01:38 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:01:39 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:02:39 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:02:39 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:03:39 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:03:39 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:04:39 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:04:40 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:04:46 5: DoorBird : DoorBird_Set - name                               : DoorBird
2019.01.30 14:04:46 5: DoorBird : DoorBird_Set - command                            : ?
2019.01.30 14:04:46 5: DoorBird : DoorBird_Set - option                             : 
2019.01.30 14:04:46 5: DoorBird : DoorBird_Set - RelayAdresses                      : 1,2
2019.01.30 14:05:40 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:05:40 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:06:40 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:06:40 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:07:40 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:07:40 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:08:40 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:08:40 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:09:40 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:09:40 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:09:46 5: DoorBird : DoorBird_Set - name                               : DoorBird
2019.01.30 14:09:46 5: DoorBird : DoorBird_Set - command                            : ?
2019.01.30 14:09:46 5: DoorBird : DoorBird_Set - option                             : 
2019.01.30 14:09:46 5: DoorBird : DoorBird_Set - RelayAdresses                      : 1,2
2019.01.30 14:10:40 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:10:40 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:11:40 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:11:40 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:12:40 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:12:40 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:13:40 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:13:40 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:14:40 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:14:40 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:14:47 5: DoorBird : DoorBird_Set - name                               : DoorBird
2019.01.30 14:14:47 5: DoorBird : DoorBird_Set - command                            : ?
2019.01.30 14:14:47 5: DoorBird : DoorBird_Set - option                             : 
2019.01.30 14:14:47 5: DoorBird : DoorBird_Set - RelayAdresses                      : 1,2
2019.01.30 14:15:40 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:15:40 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:16:40 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:16:40 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:17:40 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:17:40 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:18:40 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:18:40 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:19:40 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:19:40 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:19:47 5: DoorBird : DoorBird_Set - name                               : DoorBird
2019.01.30 14:19:47 5: DoorBird : DoorBird_Set - command                            : ?
2019.01.30 14:19:47 5: DoorBird : DoorBird_Set - option                             : 
2019.01.30 14:19:47 5: DoorBird : DoorBird_Set - RelayAdresses                      : 1,2
2019.01.30 14:20:40 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:20:40 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:21:40 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:21:40 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:22:40 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:22:40 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:23:40 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:23:40 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:24:40 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:24:40 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:24:48 5: DoorBird : DoorBird_Set - name                               : DoorBird
2019.01.30 14:24:48 5: DoorBird : DoorBird_Set - command                            : ?
2019.01.30 14:24:48 5: DoorBird : DoorBird_Set - option                             : 
2019.01.30 14:24:48 5: DoorBird : DoorBird_Set - RelayAdresses                      : 1,2
2019.01.30 14:25:40 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:25:40 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:26:40 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:26:40 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:27:40 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:27:40 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:28:40 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:28:41 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:29:41 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:29:41 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:29:49 5: DoorBird : DoorBird_Set - name                               : DoorBird
2019.01.30 14:29:49 5: DoorBird : DoorBird_Set - command                            : ?
2019.01.30 14:29:49 5: DoorBird : DoorBird_Set - option                             : 
2019.01.30 14:29:49 5: DoorBird : DoorBird_Set - RelayAdresses                      : 1,2
2019.01.30 14:30:41 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:30:41 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:31:41 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:31:41 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:32:41 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:32:41 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:33:41 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:33:41 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:34:41 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:34:41 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:34:49 5: DoorBird : DoorBird_Set - name                               : DoorBird
2019.01.30 14:34:49 5: DoorBird : DoorBird_Set - command                            : ?
2019.01.30 14:34:49 5: DoorBird : DoorBird_Set - option                             : 
2019.01.30 14:34:49 5: DoorBird : DoorBird_Set - RelayAdresses                      : 1,2
2019.01.30 14:35:41 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:35:41 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:36:41 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:36:41 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:37:41 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:37:41 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:38:41 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:38:41 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:39:41 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:39:41 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:39:49 5: DoorBird : DoorBird_Set - name                               : DoorBird
2019.01.30 14:39:49 5: DoorBird : DoorBird_Set - command                            : ?
2019.01.30 14:39:49 5: DoorBird : DoorBird_Set - option                             : 
2019.01.30 14:39:49 5: DoorBird : DoorBird_Set - RelayAdresses                      : 1,2
2019.01.30 14:40:41 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:40:41 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:41:41 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:41:41 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:42:41 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:42:41 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:43:41 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:43:41 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:44:41 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:44:41 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:44:50 5: DoorBird : DoorBird_Set - name                               : DoorBird
2019.01.30 14:44:50 5: DoorBird : DoorBird_Set - command                            : ?
2019.01.30 14:44:50 5: DoorBird : DoorBird_Set - option                             : 
2019.01.30 14:44:50 5: DoorBird : DoorBird_Set - RelayAdresses                      : 1,2
2019.01.30 14:45:41 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:45:41 5: DoorBird : DoorBird_Pong - Pong received without errors
2019.01.30 14:46:41 5: DoorBird : DoorBird_Ping - Ping initiated
2019.01.30 14:46:41 5: DoorBird : DoorBird_Pong - Pong received without errors


Die Relay Readings mit Zeilenumbruch im Wert sind noch immer drin.
Hatte ich schon gelöscht und auch aus der fhem.save entfernt. kommen immer wieder.
Internals:
   DEF        192.168.999.999 crypt:xyz crypt:zyx
   FD         32
   FUUID      5c517a9e-f33f-6521-94f0-be628cfeddd037d0
   NAME       DoorBird
   NR         97
   RevisonAPI 0.24
   STATE      connected
   TYPE       DoorBird
   READINGS:
     2019-01-30 13:49:38   BUILD_NUMBER    15450338
     2019-01-30 13:49:38   DEVICE-TYPE     DoorBird D2101V
     2019-01-30 13:49:38   FIRMWARE        000116
     2019-01-30 13:49:28   RelayAddr_01   
     2019-01-30 13:49:38   RelayAddr_01
   1
     2019-01-30 13:49:28   RelayAddr_02   
     2019-01-30 13:49:38   RelayAddr_02
   2
     2019-01-30 13:49:38   WIFI_MAC_ADDR   112233445566
   helper:
     HistoryDownloadActive 0
     HistoryDownloadCount 0
     HistoryTime ????-??-?? ??:??
     MaxHistory 50
     PingInterval 60
     PollingTimeout 5
     URL        192.168.12.206
     UdpPort    6524
     debug      0
     Images:
       History:
         doorbell:
         motionsensor:
       Individual:
         Data       /9j/4AAQSkZJRgABAgEAYABgA--schnippel---
         Timestamp  2019-01-30 13:49:38
     RelayAdresses:
       1
       2
Attributes:
   verbose    5

Sailor

Hallo Frank

Zitat von: Frank_Huber am 30 Januar 2019, 14:49:32
aktuelle Version nach Reboot

Ich verstehe es einfach nicht.
Wenn der DoorBird im gleichen Netz ist, sollte zumindest eine Rückkmeldung der Read-Funktion kommen.

Ich muss da noch mal den CoolTux zu Rate ziehen.

Gruss
    Sailor
******************************
Man wird immer besser...

Frank_Huber

Ja, im gleichen Netz, keine FW oder dergleichen dazwischen.
Fhem hängt an der Haupt switch, (extreme) dahinter ne netgear PoE, da dran der Türvogel.

Gesendet von meinem Doogee S60 mit Tapatalk


CoolTux

Hallo Sailor

Du hast kein Gerät zum testen?
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Sailor

Hallo CoolTux

Zitat von: CoolTux am 30 Januar 2019, 21:17:39
Du hast kein Gerät zum testen?

Leider nein.

Ich habe den DoorBird Support mal angefragt, ob sie einen alten Prototypen rumfliegen haben, den sie nicht mehr brauchen.
Oder ein Image, welches man sich auf einen Arduino/Raspberry braten kann.
Bisher noch keine Rückmeldung...

Gruss
    Sailor
******************************
Man wird immer besser...

Sailor

Zitat von: CoolTux am 30 Januar 2019, 21:17:39
Du hast kein Gerät zum testen?

Die Frage, die ich mir stelle, ist warum der Trigger komplett nicht gestellt wird.
Scheinbar wir die X_Read Funktion gar nicht erst getriggert...
Das ist alles sehr seltsam...

Gruss
    Sailor
******************************
Man wird immer besser...

CoolTux

Leider habe ich mich mit Broadcast noch nie beschäftigt. Meine Beispiele habe ich aus dem Netz. Es bleibt aber ein interessantes Thema. Eventuell komme ich nächste Woche dazu mir das mal an zu schauen.
Alternativ kann ich Dir nur empfehlen erst einmal das generelle zu Testen.
Sicherlich hast Du irgendein Gerät was Broadcast sendet. Oder lese mal nach ob Du eventuell mit netcat oder so eine Broadcastmessage senden kannst.


Grüße
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Sailor

#217
So,

die UDP-Datagramme kommen scheinbar im Log an!

Chip Chip Hurraa! Es lebe das Forum aber Allen voran justme1968 sowie herrmannj!

Bitte erstmal die fehlenden Module nachinstallieren.
Dann RasPi Neustart
Dann DoorBird - Device neu definieren.

Da müsste jetzt was Ähnliches im Log erscheinen wie:


myDoorBirdNetbus: Unknown code , help me!
DoorBird_Read - UDP Client said PeerHost          : 192.xxx.xxx.xxx
DoorBird_Read - UDP Client said buf               :
DoorBird_Read - UDP Client said flags             :
DoorBird_Read - UDP Client said data              : 0a


Dann mal klingeln und Bewegungsmelder auslösen.

Aber nur wenn ihr alleine seid um den WAF nicht zu gefährden!  ;D

Gruss
   Sailor

Bin auf Eure Rückme
******************************
Man wird immer besser...

steffen83

Welche Module müssen denn genau noch installiert werden? Nicht das da nachher noch eins fehlt

Gesendet von meinem MI 8 mit Tapatalk

Raspberry Pi 3 (Noobs, aktuelle Fhem und Pilight) | FHEMduino | HM-OCCU-SDK | HM-Sec-SCo | HM-Sec-SD-2 | HM-CC-RT-DN | HM-LC-Bl1PBU-FM

netbus

bevor ich jetzt wieder extra Pakete installiere. Was soll das UDP Broadcast lauschen bringen?
Wenn ich es richtig verstanden habe wollt ihr Motion oder Klingeln erkennen können, richtig? Aber dafür gibt es doch die "http Favoriten" die aufgerufen werden wenn so ein Event auftritt.

Gesendet von meinem CLT-L29 mit Tapatalk


steffen83

Ja allerdings scheint der http Event zu lange zu dauern aus diesem Grund udp

Gesendet von meinem MI 8 mit Tapatalk

Raspberry Pi 3 (Noobs, aktuelle Fhem und Pilight) | FHEMduino | HM-OCCU-SDK | HM-Sec-SCo | HM-Sec-SD-2 | HM-CC-RT-DN | HM-LC-Bl1PBU-FM

netbus



Zitat von: steffen83 am 02 Februar 2019, 08:32:36
Ja allerdings scheint der http Event zu lange zu dauern aus diesem Grund udp

kann ich nicht bestätigen. Mein Vogel läuft seit über zwei Jahren und sendet zuverlässig in realtime die http Events

Gesendet von meinem CLT-L29 mit Tapatalk


Sailor

#222
Zitat von: netbus am 02 Februar 2019, 08:37:08
kann ich nicht bestätigen. Mein Vogel läuft seit über zwei Jahren und sendet zuverlässig in realtime die http Events

Zuverlässig mag sein, aber das UDP Datagramm ist schneller und hat laut Beschreibung vorrang vor den Schedules.

Ausserdem sendet der DoorBird alle 7 Sekunden von sich aus ein "Still-Alive-Datagram" und macht somit den zusätzlich Ressourcen-fressenden und blokierenden Ping unnötig.

Gruss
    Sailor
******************************
Man wird immer besser...

Sailor

Hallo Steffen

Zitat von: steffen83 am 02 Februar 2019, 04:14:18
Welche Module müssen denn genau noch installiert werden? Nicht das da nachher noch eins fehlt

Wenn Eines fehlen würde, das würde fhem beim Reload sofort meckern...

Da ich einige Pakete schon installiert hatte, kann ich das nicht einmal genau sagen.

Zur Zeit benötigt das Modul folgende Pakete:

use strict;
use warnings;
use utf8;
use JSON;
use HttpUtils;
use Encode;
use MIME::Base64 qw();
use IO::Socket;
use Audio::Wav;
use Data::Dumper;


Wobei einige Paket bereits mit der Standard-Perl-Installation daher kommen.

Seit der letzten Installation dürfte meiner Erinnerung nach nur noch
sudo cpanm IO::Socket
von Nöten sein.

Gruss
    Sailor
******************************
Man wird immer besser...

Sailor

#224
Moin zusammen

Ich habe bei dem Parallel-Projekt weitergemacht: Transmit Audio.

Ich habe jetzt endlich eine Möglichkeit gefunden beliebige Audiodateien in das G.711 u-law - Format zu konvertieren: Sox.

Hierzu muessen leider die folgenden sox-Pakete nachinstalliert werden:


sudo apt-get install sox
sudo apt-get install libsox-fmt-all


Schaut mal nach, ob was aus dem Lautsprecher bzw. im Log-File ankommt...

Bitte die Audio-Datei in ein Verzeichnis kopieren, in welchem fhem auch Schreibzugriff hat zum Beispiel (/opt/fhem/audio)

Danke!

Gruss
    Sailor

******************************
Man wird immer besser...