fhempy: ring (Ring Doorbell, Chime, ...)

Begonnen von dominik, 04 Januar 2021, 12:37:13

Vorheriges Thema - Nächstes Thema

pflock_y

Zitat von: Manos am 04 März 2021, 23:07:26
Oh sorry, es war zu spät gestern Abend... ::) Ich habe mein Kommentar gelöscht beim anderen Thread.

Stimmt, volume wird gar nicht aktualisiert, trotz des neu Startens von Python.

Mindestens battery_life wird beim neu Starten aktualisiert...


Ist bei mir genau das gleiche.

vg
pflock_y

Keep It Secret

Zitat von: tbs am 14 Februar 2021, 12:01:33
Ich hatte es letztes Mal installiert und jetzt wieder.
Ich bekomme es nur nicht mehr zum laufen für eine Doorbell  :-\
Wird zwar als connected angezeigt - ich sehe aber nicht die Attribute  :(

Keine Ahnung wo ich gerade den Denkfehler hab


Log
2021.02.14 11:42:58 3: PythonBinding v1.0.0
2021.02.14 11:42:58 3: Pythonbinding_15733: starting
2021.02.14 11:42:58 3: Pythonbinding_15733: using logfile: ./log/fhempy-2021-02-14.log
2021.02.14 11:42:58 3: Pythonbinding_15733: read: end of file reached while sysread
2021.02.14 11:42:58 3: Pythonbinding_15733: stopped
2021.02.14 11:42:58 3: Pythonbinding_15733: starting
2021.02.14 11:42:58 3: Pythonbinding_15733: using logfile: ./log/fhempy-2021-02-14.log
2021.02.14 11:43:01 3: Opening local_pybinding device ws:127.0.0.1:15733
2021.02.14 11:43:01 3: local_pybinding device opened
2021.02.14 11:43:07 1: ws:127.0.0.1:15733 disconnected, waiting to reappear (local_pybinding)
2021.02.14 11:43:07 3: Pythonbinding_15733: read: end of file reached while sysread
2021.02.14 11:43:07 3: Pythonbinding_15733: stopped
2021.02.14 11:43:07 1: BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.02.14 11:43:17 1: BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.02.14 11:43:27 3: Pythonbinding_15733: starting
2021.02.14 11:43:27 3: Pythonbinding_15733: using logfile: ./log/fhempy-2021-02-14.log
2021.02.14 11:43:27 1: BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.02.14 11:43:37 1: ws:127.0.0.1:15733 reappeared (local_pybinding)
2021.02.14 11:44:10 3: PythonModule v1.0.0 (ring)
2021.02.14 11:49:31 1: ws:127.0.0.1:15733 disconnected, waiting to reappear (local_pybinding)
2021.02.14 11:49:31 3: Pythonbinding_15733: read: end of file reached while sysread
2021.02.14 11:49:31 3: Pythonbinding_15733: stopped
2021.02.14 11:49:31 3: Pythonbinding_15733: starting
2021.02.14 11:49:31 3: Pythonbinding_15733: using logfile: ./log/fhempy-2021-02-14.log
2021.02.14 11:49:31 1: BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.02.14 11:49:37 3: Pythonbinding_15733: read: end of file reached while sysread
2021.02.14 11:49:37 3: Pythonbinding_15733: stopped
2021.02.14 11:49:37 3: Pythonbinding_15733: starting
2021.02.14 11:49:37 3: Pythonbinding_15733: using logfile: ./log/fhempy-2021-02-14.log
2021.02.14 11:49:42 1: ws:127.0.0.1:15733 reappeared (local_pybinding)


Hi tbs, hast du das Problem lösen können?
Mir geht's grad genauso ... connected aber keine Attribute (außer password,state und token).

dominik

Wegen battery_life/volume schaue ich nochmals - Jan, ich muss mir wieder deine Doorbell ausleihen ;)

Zitat von: Keep It Secret am 08 März 2021, 17:35:04
Hi tbs, hast du das Problem lösen können?
Mir geht's grad genauso ... connected aber keine Attribute (außer password,state und token).

Schau bitte mal was im fhempy Log steht. Sieht so aus als würde es beim Start schon einen Fehler liefern und dauernd neu starten.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

dominik

Kann bitte jemand mit battery_life/volume Update Problemen folgendes machen:
- Datei /opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/ring/ring.py öffnen
- Zeile 284: self._rdevice.update_health_data() ändern in self._rdevice.update_data()
Danach fhempy einmal neu starten und prüfen ob sich battery_life ändert.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

pflock_y

Moin,
ich hab es mal probiert.

im log steht nun sowas:

...
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/ring/ring.py", line 283, in poll_device
    self._rdevice.update_data()
AttributeError: 'RingDoorBell' object has no attribute 'update_data'
...


battery_life muss ich erst mal beobachten, ist nach dem restart aktualisiert worden.


vg
pflock_y

Keep It Secret

Zitat von: dominik am 08 März 2021, 20:28:13
Wegen battery_life/volume schaue ich nochmals - Jan, ich muss mir wieder deine Doorbell ausleihen ;)

Schau bitte mal was im fhempy Log steht. Sieht so aus als würde es beim Start schon einen Fehler liefern und dauernd neu starten.

Hi Dominik, da scheint offensichtlich schon beim Starten (nach dem nächtlichen Reboot um 4 Uhr) was schief zu gehen.
Ich habe mal eine Protokolldatei angehängt. Mir sagt das zugegebenermaßen nix, bin "absolute beginner".

pflock_y

Zitat von: dominik am 08 März 2021, 20:57:16
Kann bitte jemand mit battery_life/volume Update Problemen folgendes machen:
- Datei /opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/ring/ring.py öffnen
- Zeile 284: self._rdevice.update_health_data() ändern in self._rdevice.update_data()
Danach fhempy einmal neu starten und prüfen ob sich battery_life ändert.


Mit dieser Änderung sind verschiedene Readings leer:
alert_sip_token
last_recording_url
wifi_name
wifi_signal_category
wifi_signal_strength

battery_life wird auch nicht aktualisiert.

Ich werde die Änderung erst einmal wieder Rückgängig machen.


vg
pflock_y

Manos

Hallo Dominik,

anbei meine readings nach dem Update auf 0.1.57

Schoene Gruesse
Manos
HP Microserver GEN8 XEON, Ubuntu 22.04, FHEM, ConBee II, CCU2, CUL433, Tradfri, Luxtronik2, Volkszaehler (und wenig Ahnung...)

pflock_y

Moin zusammen,
vielleicht stell ich mich zu dusselig an, aber irgendwas passt nicht.

ZitatHallo Dominik,

anbei meine readings nach dem Update auf 0.1.57

Schoene Gruesse
Manos

meine Version ist 0.1.36

hier mal das list:
Internals:
   BindingType Python
   DEF        Python
   DeviceName ws:127.0.0.1:15733
   FD         129
   FUUID      5fda72c9-6019-d16e76bcc62bc044
   IP         127.0.0.1
   NAME       local_pybinding
   NR         883
   NTFY_ORDER 50-local_pybinding
   PARTIAL   
   PORT       15733
   STATE      opened
   TYPE       BindingsIo
   WEBSOCKET  1
   localBinding 1
   nextOpenDelay 10
   READINGS:
     2021-03-11 10:04:07   info            ready
     2021-03-11 10:04:07   state           opened
     2021-03-11 09:57:41   version         0.1.36
   args:
     local_pybinding
     BindingsIo
     Python
   argsh:
Attributes:
   room       9_1_System


update hatte ich gestern und heute morgen gemacht.



vg
pflock_y

Manos

Zitat von: pflock_y am 11 März 2021, 10:28:39
Moin zusammen,
vielleicht stell ich mich zu dusselig an, aber irgendwas passt nicht.

meine Version ist 0.1.36

vg
pflock_y

Hallo pflock,

du hast Recht, mir ist genauso passiert.
Warum alle FHEM Updates gemacht werden, trotzdem bleibt fhempy auf Version 0.1.36, ist auch fuer mich ein Raetsel.

Hier ist aber die Loesung (wie Dominik sie mir geschrieben hat):

#1.
Bitte einmalig mit
sudo -u fhem pip3 install --upgrade fhempy
aktualisieren und dann neu starten.

oder,
#2.
einfach auf SET UPDATE drucken (siehe Bild)  8)

schoene Gruesse
Manos
HP Microserver GEN8 XEON, Ubuntu 22.04, FHEM, ConBee II, CCU2, CUL433, Tradfri, Luxtronik2, Volkszaehler (und wenig Ahnung...)

pflock_y

Hallo Manos,
das hat funktioniert.

Zitat von: Manos am 11 März 2021, 11:24:39
#1.
Bitte einmalig mit
sudo -u fhem pip3 install --upgrade fhempy
aktualisieren und dann neu starten.

#2 ging nicht

Danke für den Tip!!!  ;)


vg
pflock_y

pflock_y

eins hab ich noch,

werden bei dir die Readings:

wifi_name   
wifi_signal_category
wifi_signal_strength

aktualisiert bzw. was angezeigt?
bei mir zuletzt am 2021-03-09 09:36:56


vg
pflock_y
   

Manos

Zitat von: pflock_y am 11 März 2021, 11:56:39
eins hab ich noch,

werden bei dir die Readings:

wifi_name   
wifi_signal_category
wifi_signal_strength

aktualisiert bzw. was angezeigt?
bei mir zuletzt am 2021-03-09 09:36:56


vg
pflock_y

nein (werden nur beim neustart aktualisiert)
hier ist die komplette Liste
Internals:
   DEF        ring  "Front Door"
   FUUID     
   FVERSION   10_PythonModule.pm:0.182830/2019-01-16
   IODev      pybinding
   NAME       RingDoorBell
   NR         316
   PYTHONTYPE ring
   RINGDEVICE Front Door
   STATE      connected
   TYPE       PythonModule
   USERNAME   
   Helper:
     DBLOG:
       history_1_answered:
         Logdb:
           TIME       1615388748.38117
           VALUE      0
       history_1_created_at:
         Logdb:
           TIME       1615470007.08809
           VALUE      2021-03-11 13:30:08+00:00
       history_1_kind:
         Logdb:
           TIME       1615388748.38117
           VALUE      motion
       state:
         Logdb:
           TIME       1615474857.27941
           VALUE      connected
   READINGS:
     2020-12-10 01:18:10   address         
     2021-03-11 16:10:14   alert_current   ding
     2021-03-11 16:00:52   alert_doorbot_id 55327801
     2021-03-11 16:00:52   alert_id        6938411639725898809
     2021-03-11 16:00:52   alert_kind      ding
     2021-03-11 16:00:52   alert_sip_to   
     2021-03-11 16:00:52   alert_sip_token
     2021-03-10 12:28:29   battery_life    87
     2020-12-10 01:18:10   connection_status online
     2021-01-06 01:26:45   device_id       
     2020-12-10 01:18:10   existing_doorbell_type Mechanical
     2020-12-10 01:18:10   existing_doorbell_type_enabled 1
     2020-12-10 01:18:10   family          doorbots
     2020-12-10 01:18:10   firmware        Up to Date
     2020-12-10 01:18:10   has_subscription 1
     2021-01-08 11:17:47   history_10_answered 0
     2021-01-08 11:17:47   history_10_created_at 2021-01-08 08:46:32+00:00
     2021-01-08 11:17:47   history_10_id   
     2021-01-08 11:17:47   history_10_kind motion
     2021-03-10 16:05:48   history_1_answered 0
     2021-03-11 14:40:07   history_1_created_at 2021-03-11 13:30:08+00:00
     2021-03-11 14:40:07   history_1_id   
     2021-03-10 16:05:48   history_1_kind  motion
     2021-03-11 13:39:45   history_2_answered 0
     2021-03-11 14:40:07   history_2_created_at 2021-03-11 13:21:16+00:00
     2021-03-11 14:40:07   history_2_id   
     2021-03-11 14:40:07   history_2_kind  ding
     2021-03-11 11:09:00   history_3_answered 0
     2021-03-11 14:40:07   history_3_created_at 2021-03-11 13:06:24+00:00
     2021-03-11 14:40:07   history_3_id   
     2021-03-11 11:09:00   history_3_kind  motion
     2021-03-11 11:39:11   history_4_answered 0
     2021-03-11 14:40:07   history_4_created_at 2021-03-11 12:55:04+00:00
     2021-03-11 14:40:07   history_4_id   
     2021-03-11 11:39:11   history_4_kind  motion
     2021-03-11 12:39:26   history_5_answered 0
     2021-03-11 14:40:07   history_5_created_at 2021-03-11 12:52:32+00:00
     2021-03-11 14:40:07   history_5_id   
     2021-03-11 12:39:26   history_5_kind  motion
     2021-01-08 11:17:47   history_6_answered 0
     2021-01-08 11:17:47   history_6_created_at 2021-01-08 10:15:39+00:00
     2021-01-08 11:17:47   history_6_id   
     2021-01-08 11:17:47   history_6_kind  motion
     2021-01-08 11:17:47   history_7_answered 0
     2021-01-08 11:17:47   history_7_created_at 2021-01-08 10:14:06+00:00
     2021-01-08 11:17:47   history_7_id   
     2021-01-08 11:17:47   history_7_kind  motion
     2021-01-08 11:17:47   history_8_answered 0
     2021-01-08 11:17:47   history_8_created_at 2021-01-08 09:26:46+00:00
     2021-01-08 11:17:47   history_8_id   
     2021-01-08 11:17:47   history_8_kind  motion
     2021-01-08 11:17:47   history_9_answered 0
     2021-01-08 11:17:47   history_9_created_at 2021-01-08 08:47:45+00:00
     2021-01-08 11:17:47   history_9_id   
     2021-01-08 11:17:47   history_9_kind  motion
     2021-01-06 01:26:45   id             
     2020-12-10 01:18:10   kind            doorbell_scallop
     2021-03-11 14:40:06   last_recording_id
     2021-03-11 16:00:59   last_recording_url
     2020-12-10 01:18:10   latitude       
     2020-12-10 01:18:10   longitude       
     2020-12-10 01:18:10   model           Doorbell 3 Plus
     2020-12-10 01:18:10   name            Front Door
     2020-12-10 01:18:08   password       
     2021-03-11 16:00:57   state           connected
     2020-12-10 01:18:10   subscribed      1
     2020-12-10 01:18:10   subscribed_motion 1
     2020-12-10 01:18:10   timezone        Europe/Berlin
     2021-03-11 16:10:14   token           
     2020-12-10 01:18:10   volume          8
     2021-03-10 12:28:29   wifi_name       
     2021-03-10 12:28:29   wifi_signal_category
     2021-03-10 12:28:29   wifi_signal_strength
   args:
     RingDoorBell
     PythonModule
     ring
     Front Door
   argsh:
Attributes:
   DbLogExclude .*
   DbLogInclude state,battery_life,history_1_answered,history_1_created_at,history_1_kind
   IODev      pybinding
HP Microserver GEN8 XEON, Ubuntu 22.04, FHEM, ConBee II, CCU2, CUL433, Tradfri, Luxtronik2, Volkszaehler (und wenig Ahnung...)

pflock_y

OK, sieht also aus wie bei mir.
Reading wird zwar aktualisiert (bei Neustart)  aber ohne Inhalt.  ???


vg
pflock_y

Nighthawk

Hallo zusammen,

irgendwie bekomme ich fhempy nicht upgedatet.
Ich führe den Befehl sudo -u fhem pip3 install --upgrade fhempy aus und in der console zeigt er dass die v. 1.5.7 bereits installiert ist, im FHEM wird aber weiterhin die Version 1.3.6 angezeigt.
Auch ein Neustart vom FHEM und des gesamten Systems hat nicht geholfen.
Was kann ich da noch machen?



Internals:
   BindingType Python
   DEF        Python
   DeviceName ws:127.0.0.1:15733
   FD         37
   FUUID      5ffbf3a2-f33f-357a-eb7f-f2210a84a780316b
   IP         127.0.0.1
   NAME       local_pybinding
   NR         1345
   NTFY_ORDER 50-local_pybinding
   PARTIAL   
   PORT       15733
   STATE      opened
   TYPE       BindingsIo
   WEBSOCKET  1
   localBinding 1
   nextOpenDelay 10
   Helper:
     DBLOG:
       info:
         logdb:
           TIME       1616119720.46006
           VALUE      ready
       state:
         logdb:
           TIME       1616119720.37669
           VALUE      CONNECTED
   READINGS:
     2021-03-19 03:08:40   info            ready
     2021-03-19 03:08:40   state           opened
     2021-03-19 01:27:05   version         0.1.36
   args:
     local_pybinding
     BindingsIo
     Python
   argsh:
Attributes:
   room       15_Ueberwachung,hidden