Autor Thema: HUEBridge push api unterstützung  (Gelesen 2272 mal)

Offline justme1968

  • Developer
  • Hero Member
  • ****
  • Beiträge: 20833
HUEBridge push api unterstützung
« am: 15 Juli 2021, 11:13:19 »
anbei eine erste test version des moduls mit unterstützung des neuen umdokumentierten push api der hue bridge.

- es ist die neueste fhem bzw. HttpUtils.pm version von morgen (2021-07-16) nötig: https://forum.fhem.de/index.php/topic,122066.msg1166545.html
- es ist die neueste firmware auf der bridge nötig (bei mir aktuell 1945163030).

- im internal EventSource ist zu sehen ob die verbindung steht.
- das automatische neu verbinden ist noch nicht optimal.


da philips/signify (noch ?) nichts dokumentiert hat und sie scheinbar ein komplett neues v2 api entwickeln (das sich ziemlich vom aktuellen unterscheidet) ist die implementierung im modul aktuell weder vollständig noch korrekt. d.h. es es kann z.b. sein das sich mit dem nächsten update der bridge das api wieder ändert. es sind u.a aktuell nicht alle events mit den möglichen werten implementiert.

wichtig ist zu wissen das events nur für dinge erzeugt werden von denen die bridge auch etwas mitbekommen hat. d.h. z.b. für das schalten von lampen über die bridge gibt es sofort events. für das schalten einer lampe  direkt über eine fernbedienung gibt es erst dann ein event wenn die bridge den geänderten zustand auch mitbekommen hat. das ist aber immer noch schneller als zu pollen. das gleiche gilt für bewegungsmelder und deren motion events. ich habe noch kein temperatur oder helligkeits event gesehen. erreichbarkeits events kommen schneller als beim pollen, aber hier sollte man vermutlich nicht zu viel erwarten. es gibt auch events für die gruppen an der eine lampe beteiligt ist.

was gehen sollte: lampen schalten, motion, erreichbarkeit. jeweils mit den obigen einschränkungen.

alles andere ist noch nicht implementiert. ob es entsprechende events gibt kann man mit verbose 4 sehen. wenn hier etwas aufällig ist oder fehlt: bitte posten. wenn etwas nicht reagiert wie erwartet: ebenfalls das log posten.


« Letzte Änderung: 15 Juli 2021, 12:26:43 von justme1968 »
FHEM5.4,DS1512+,2xCULv3,DS9490R,HMLAN,2xRasPi
CUL_HM:HM-LC-Bl1PBU-FM,HM-LC-Sw1PBU-FM,HM-SEC-MDIR,HM-SEC-RHS
HUEBridge,HUEDevice:LCT001,LLC001,LLC006,LWL001
OWDevice:DS1420,DS18B20,DS2406,DS2423
FS20:fs20as4,fs20bs,fs20di
AKCP:THS01,WS15
CUL_WS:S300TH

Offline juemuc

  • Hero Member
  • *****
  • Beiträge: 1023
Antw:HUEBridge push api unterstützung
« Antwort #1 am: 16 Juli 2021, 19:43:55 »
Habe nun FHEM aktuallisiert, dann die beiden Module in das Verzeichnis FHEM kopiert und FHEM neu gestartet. Wie erkenne ich nun, on diese Version aktiv ist? Rein optisch sehe ich keinen Unterschied. Selbst unter FVERSION steht noch 30_HUEBridge.pm:0.242960/2021-04-21.

Was mache ich falsch?

Viele Grüße
Jürgen
3x Sonos Play 1, 1x Sonos Arc + Sub, 1 Sonos-One, 1x Sonos Playbar
Fritzbox 7490 mit 4x Dect 200 und 3 Dect-ULE-Thermostate,  raspberry3, HM Funkmodul HM-MOD-RPI-PCB, HM Klingelsensor HM-Sen-DB-PCB, HM Fensterkontakte und  Amazon Echo Dot, raspberry3B+ mit RPI-RF-MOD und piVCCU, Raspbian Buster Lite

Offline justme1968

  • Developer
  • Hero Member
  • ****
  • Beiträge: 20833
Antw:HUEBridge push api unterstützung
« Antwort #2 am: 16 Juli 2021, 20:14:36 »
Zitat
- im internal EventSource ist zu sehen ob die verbindung steht.

und im log sollte auch etwas zu sehen sein.
FHEM5.4,DS1512+,2xCULv3,DS9490R,HMLAN,2xRasPi
CUL_HM:HM-LC-Bl1PBU-FM,HM-LC-Sw1PBU-FM,HM-SEC-MDIR,HM-SEC-RHS
HUEBridge,HUEDevice:LCT001,LLC001,LLC006,LWL001
OWDevice:DS1420,DS18B20,DS2406,DS2423
FS20:fs20as4,fs20bs,fs20di
AKCP:THS01,WS15
CUL_WS:S300TH

Offline juemuc

  • Hero Member
  • *****
  • Beiträge: 1023
Antw:HUEBridge push api unterstützung
« Antwort #3 am: 16 Juli 2021, 20:28:56 »
EventSource ist connected. apiversion ist 1.45.0

Im Log steht leider nichts. Schalten funktioniert.

VG
Jürgen
3x Sonos Play 1, 1x Sonos Arc + Sub, 1 Sonos-One, 1x Sonos Playbar
Fritzbox 7490 mit 4x Dect 200 und 3 Dect-ULE-Thermostate,  raspberry3, HM Funkmodul HM-MOD-RPI-PCB, HM Klingelsensor HM-Sen-DB-PCB, HM Fensterkontakte und  Amazon Echo Dot, raspberry3B+ mit RPI-RF-MOD und piVCCU, Raspbian Buster Lite

Offline justme1968

  • Developer
  • Hero Member
  • ****
  • Beiträge: 20833
Antw:HUEBridge push api unterstützung
« Antwort #4 am: 17 Juli 2021, 09:17:13 »
hast du verbose auf 4 gesetzt?

was genau erwartest du denn?
FHEM5.4,DS1512+,2xCULv3,DS9490R,HMLAN,2xRasPi
CUL_HM:HM-LC-Bl1PBU-FM,HM-LC-Sw1PBU-FM,HM-SEC-MDIR,HM-SEC-RHS
HUEBridge,HUEDevice:LCT001,LLC001,LLC006,LWL001
OWDevice:DS1420,DS18B20,DS2406,DS2423
FS20:fs20as4,fs20bs,fs20di
AKCP:THS01,WS15
CUL_WS:S300TH

Offline juemuc

  • Hero Member
  • *****
  • Beiträge: 1023
Antw:HUEBridge push api unterstützung
« Antwort #5 am: 17 Juli 2021, 15:51:42 »
Hallo justeme1968,

vorbose 4 hatte ich noch nicht. Habe ich nun geändert.

Ich hätte zumindest unter FVERSION und unter apiversion neue Werte erwartet.
Dann wollte ich zumindest Testen, ob meine Lampenfunktionen noch passen. Wollte nur helfen beim Testen :-)
Einfach schreiben, wenn es was zum Testen gibt.

Viele Grüße
Jürgen

PS.: Zumindest erscheinen jetzt im Log einträge, wenn Lampen geschaltet werden :-)

« Letzte Änderung: 17 Juli 2021, 16:03:13 von juemuc »
3x Sonos Play 1, 1x Sonos Arc + Sub, 1 Sonos-One, 1x Sonos Playbar
Fritzbox 7490 mit 4x Dect 200 und 3 Dect-ULE-Thermostate,  raspberry3, HM Funkmodul HM-MOD-RPI-PCB, HM Klingelsensor HM-Sen-DB-PCB, HM Fensterkontakte und  Amazon Echo Dot, raspberry3B+ mit RPI-RF-MOD und piVCCU, Raspbian Buster Lite

Offline justme1968

  • Developer
  • Hero Member
  • ****
  • Beiträge: 20833
Antw:HUEBridge push api unterstützung
« Antwort #6 am: 17 Juli 2021, 16:21:49 »
die firmware der bridge ändert sich ja nicht wenn du das neue modul verwendest.

interessant wären aktuell vorfallen events von fernbedienungen, tastern undo bewegungsmeldern.
FHEM5.4,DS1512+,2xCULv3,DS9490R,HMLAN,2xRasPi
CUL_HM:HM-LC-Bl1PBU-FM,HM-LC-Sw1PBU-FM,HM-SEC-MDIR,HM-SEC-RHS
HUEBridge,HUEDevice:LCT001,LLC001,LLC006,LWL001
OWDevice:DS1420,DS18B20,DS2406,DS2423
FS20:fs20as4,fs20bs,fs20di
AKCP:THS01,WS15
CUL_WS:S300TH

Offline juemuc

  • Hero Member
  • *****
  • Beiträge: 1023
Antw:HUEBridge push api unterstützung
« Antwort #7 am: 17 Juli 2021, 16:38:32 »
Wenn ich eine Lampe über eine Fernbedienung schalte, habe ich nur die Events der Lampe im Eventmonitor.

2021-07-17 16:36:20 HUEDevice HUEDevice9 onoff: 1
2021-07-17 16:36:20 HUEDevice HUEDevice9 pct: 100
2021-07-17 16:36:20 HUEDevice HUEDevice9 on

Viele Grüße
Jürgen
3x Sonos Play 1, 1x Sonos Arc + Sub, 1 Sonos-One, 1x Sonos Playbar
Fritzbox 7490 mit 4x Dect 200 und 3 Dect-ULE-Thermostate,  raspberry3, HM Funkmodul HM-MOD-RPI-PCB, HM Klingelsensor HM-Sen-DB-PCB, HM Fensterkontakte und  Amazon Echo Dot, raspberry3B+ mit RPI-RF-MOD und piVCCU, Raspbian Buster Lite

Offline justme1968

  • Developer
  • Hero Member
  • ****
  • Beiträge: 20833
Antw:HUEBridge push api unterstützung
« Antwort #8 am: 17 Juli 2021, 17:08:37 »
wie ist deine fb konfiguriert? direkt mit einer lampe verknüpft oder geht die steuerung über eine Regel in der bridge? nur bei letzterem könnte man eventuell etwas sehen.
FHEM5.4,DS1512+,2xCULv3,DS9490R,HMLAN,2xRasPi
CUL_HM:HM-LC-Bl1PBU-FM,HM-LC-Sw1PBU-FM,HM-SEC-MDIR,HM-SEC-RHS
HUEBridge,HUEDevice:LCT001,LLC001,LLC006,LWL001
OWDevice:DS1420,DS18B20,DS2406,DS2423
FS20:fs20as4,fs20bs,fs20di
AKCP:THS01,WS15
CUL_WS:S300TH

Offline juemuc

  • Hero Member
  • *****
  • Beiträge: 1023
Antw:HUEBridge push api unterstützung
« Antwort #9 am: 17 Juli 2021, 17:30:29 »
FB ist direkt mit den Lampen verknüpft.

Viele Grüße
Jürgen
3x Sonos Play 1, 1x Sonos Arc + Sub, 1 Sonos-One, 1x Sonos Playbar
Fritzbox 7490 mit 4x Dect 200 und 3 Dect-ULE-Thermostate,  raspberry3, HM Funkmodul HM-MOD-RPI-PCB, HM Klingelsensor HM-Sen-DB-PCB, HM Fensterkontakte und  Amazon Echo Dot, raspberry3B+ mit RPI-RF-MOD und piVCCU, Raspbian Buster Lite

Offline juemuc

  • Hero Member
  • *****
  • Beiträge: 1023
Antw:HUEBridge push api unterstützung
« Antwort #10 am: 17 Juli 2021, 18:33:37 »
Aktuell habe ich diese Meldungen im Log

2021.07.17 17:23:17 4: using HttpUtils_NonblockingGet: GET
2021.07.17 17:23:18 4: parse status message for Philips_HUE
2021.07.17 17:23:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S27
2021.07.17 17:23:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S6
2021.07.17 17:23:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S28
2021.07.17 17:23:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S5
2021.07.17 17:23:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S32
2021.07.17 17:23:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S26
2021.07.17 17:23:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S2
2021.07.17 17:23:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S1
2021.07.17 17:23:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S31
2021.07.17 17:24:17 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 17:25:17 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 17:26:17 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 17:27:17 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 17:28:00 4: using HttpUtils_NonblockingGet: PUT lights/11/state
2021.07.17 17:28:01 4: using HttpUtils_NonblockingGet: GET lights/11
2021.07.17 17:28:17 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 17:29:17 4: using HttpUtils_NonblockingGet: GET
2021.07.17 17:29:18 4: parse status message for Philips_HUE
2021.07.17 17:29:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S32
2021.07.17 17:29:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S26
2021.07.17 17:29:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S2
2021.07.17 17:29:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S1
2021.07.17 17:29:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S31
2021.07.17 17:29:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S27
2021.07.17 17:29:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S6
2021.07.17 17:29:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S28
2021.07.17 17:29:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S5
2021.07.17 17:29:32 4: using HttpUtils_NonblockingGet: PUT lights/11/state
2021.07.17 17:29:33 4: using HttpUtils_NonblockingGet: GET lights/11
2021.07.17 17:30:17 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 17:30:42 4: using HttpUtils_NonblockingGet: PUT lights/11/state
2021.07.17 17:30:43 4: using HttpUtils_NonblockingGet: GET lights/11
2021.07.17 17:31:17 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 17:32:17 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 17:33:17 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 17:34:17 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 17:35:18 4: using HttpUtils_NonblockingGet: GET
2021.07.17 17:35:18 4: parse status message for Philips_HUE
2021.07.17 17:35:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S1
2021.07.17 17:35:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S31
2021.07.17 17:35:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S2
2021.07.17 17:35:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S26
2021.07.17 17:35:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S32
2021.07.17 17:35:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S28
2021.07.17 17:35:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S6
2021.07.17 17:35:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S5
2021.07.17 17:35:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S27
2021.07.17 17:35:39 4: using HttpUtils_NonblockingGet: PUT lights/11/state
2021.07.17 17:35:40 4: using HttpUtils_NonblockingGet: GET lights/11
2021.07.17 17:36:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 17:37:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 17:38:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 17:39:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 17:40:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 17:41:18 4: using HttpUtils_NonblockingGet: GET
2021.07.17 17:41:18 4: parse status message for Philips_HUE
2021.07.17 17:41:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S5
2021.07.17 17:41:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S6
2021.07.17 17:41:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S28
2021.07.17 17:41:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S27
2021.07.17 17:41:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S2
2021.07.17 17:41:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S31
2021.07.17 17:41:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S1
2021.07.17 17:41:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S32
2021.07.17 17:41:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S26
2021.07.17 17:41:24 2: Philips_HUE: http request failed: read from https://philips-hue:443 timed out
2021.07.17 17:41:24 4: HUEBridge_closeEventSource: closing eventstream
2021.07.17 17:41:24 4: HUEBridge_openEventSource: tying to connect to eventstream
2021.07.17 17:42:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 17:43:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 17:44:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 17:45:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 17:46:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 17:47:18 4: using HttpUtils_NonblockingGet: GET
2021.07.17 17:47:18 4: parse status message for Philips_HUE
2021.07.17 17:47:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S2
2021.07.17 17:47:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S31
2021.07.17 17:47:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S1
2021.07.17 17:47:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S32
2021.07.17 17:47:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S26
2021.07.17 17:47:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S5
2021.07.17 17:47:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S28
2021.07.17 17:47:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S6
2021.07.17 17:47:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S27
2021.07.17 17:48:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 17:49:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 17:50:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 17:51:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 17:52:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 17:53:18 4: using HttpUtils_NonblockingGet: GET
2021.07.17 17:53:18 4: parse status message for Philips_HUE
2021.07.17 17:53:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S6
2021.07.17 17:53:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S28
2021.07.17 17:53:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S5
2021.07.17 17:53:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S27
2021.07.17 17:53:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S2
2021.07.17 17:53:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S1
2021.07.17 17:53:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S31
2021.07.17 17:53:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S32
2021.07.17 17:53:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S26
2021.07.17 17:54:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 17:55:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 17:56:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 17:57:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 17:58:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 17:59:18 4: using HttpUtils_NonblockingGet: GET
2021.07.17 17:59:18 4: parse status message for Philips_HUE
2021.07.17 17:59:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S1
2021.07.17 17:59:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S31
2021.07.17 17:59:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S2
2021.07.17 17:59:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S26
2021.07.17 17:59:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S32
2021.07.17 17:59:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S6
2021.07.17 17:59:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S28
2021.07.17 17:59:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S5
2021.07.17 17:59:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S27
2021.07.17 18:00:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 18:00:31 4: using HttpUtils_NonblockingGet: PUT lights/11/state
2021.07.17 18:00:32 4: using HttpUtils_NonblockingGet: GET lights/11
2021.07.17 18:01:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 18:02:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 18:03:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 18:04:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 18:05:18 4: using HttpUtils_NonblockingGet: GET
2021.07.17 18:05:18 4: parse status message for Philips_HUE
2021.07.17 18:05:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S32
2021.07.17 18:05:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S26
2021.07.17 18:05:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S2
2021.07.17 18:05:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S31
2021.07.17 18:05:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S1
2021.07.17 18:05:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S27
2021.07.17 18:05:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S5
2021.07.17 18:05:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S6
2021.07.17 18:05:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S28
2021.07.17 18:06:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 18:07:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 18:08:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 18:09:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 18:10:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 18:11:18 4: using HttpUtils_NonblockingGet: GET
2021.07.17 18:11:18 4: parse status message for Philips_HUE
2021.07.17 18:11:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S27
2021.07.17 18:11:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S5
2021.07.17 18:11:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S28
2021.07.17 18:11:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S6
2021.07.17 18:11:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S26
2021.07.17 18:11:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S32
2021.07.17 18:11:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S31
2021.07.17 18:11:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S1
2021.07.17 18:11:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S2
2021.07.17 18:12:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 18:13:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 18:14:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 18:15:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 18:16:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 18:17:18 4: using HttpUtils_NonblockingGet: GET
2021.07.17 18:17:18 4: parse status message for Philips_HUE
2021.07.17 18:17:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S1
2021.07.17 18:17:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S31
2021.07.17 18:17:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S2
2021.07.17 18:17:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S26
2021.07.17 18:17:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S32
2021.07.17 18:17:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S28
2021.07.17 18:17:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S6
2021.07.17 18:17:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S5
2021.07.17 18:17:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S27
2021.07.17 18:18:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 18:19:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 18:20:13 4: using HttpUtils_NonblockingGet: PUT lights/11/state
2021.07.17 18:20:14 4: using HttpUtils_NonblockingGet: GET lights/11
2021.07.17 18:20:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 18:21:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 18:22:18 4: using HttpUtils_NonblockingGet: GET lights
2021.07.17 18:23:16 4: using HttpUtils_NonblockingGet: PUT lights/11/state
2021.07.17 18:23:17 4: using HttpUtils_NonblockingGet: GET lights/11
2021.07.17 18:23:18 4: using HttpUtils_NonblockingGet: GET
2021.07.17 18:23:18 4: parse status message for Philips_HUE
2021.07.17 18:23:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S2
2021.07.17 18:23:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S31
2021.07.17 18:23:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S1
2021.07.17 18:23:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S32
2021.07.17 18:23:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S26
2021.07.17 18:23:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S5
2021.07.17 18:23:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S28
2021.07.17 18:23:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S6
2021.07.17 18:23:18 4: Philips_HUE: message for unknown sensor received: Philips_HUE-S27

Benötigst Du weitere Infos?

Viele Grüße
Jürgen
3x Sonos Play 1, 1x Sonos Arc + Sub, 1 Sonos-One, 1x Sonos Playbar
Fritzbox 7490 mit 4x Dect 200 und 3 Dect-ULE-Thermostate,  raspberry3, HM Funkmodul HM-MOD-RPI-PCB, HM Klingelsensor HM-Sen-DB-PCB, HM Fensterkontakte und  Amazon Echo Dot, raspberry3B+ mit RPI-RF-MOD und piVCCU, Raspbian Buster Lite

Online Superposchi

  • Sr. Member
  • ****
  • Beiträge: 689
Antw:HUEBridge push api unterstützung
« Antwort #11 am: 17 Juli 2021, 21:08:26 »
Die Bridge aktualisiert ja unter umständen selbsttätig, daher die Frage ob die alte API weiterhin unterstützt wird oder ob es dort dann probleme geben kann?

Offline StefanF

  • New Member
  • *
  • Beiträge: 8
Antw:HUEBridge push api unterstützung
« Antwort #12 am: 02 September 2021, 12:08:04 »
Ich habe die Testversion vor 10 Tagen installiert und bin begeistert, die Verbindung steht stabil und die Rückmeldungen vom Status der Lampen kommen fast in Echtzeit an!

Die Events von Dimmerswitches sind aktuell noch nicht implementiert, sehe ich das richtig?
Da freue ich mich dann sehr drauf, wenn ich das resourcenbelegende Polling für die Switches beenden kann und die Tastendrücke per Push reinkommen.

Offline justme1968

  • Developer
  • Hero Member
  • ****
  • Beiträge: 20833
Antw:HUEBridge push api unterstützung
« Antwort #13 am: 02 September 2021, 13:13:16 »
da es noch keine doku für das api gibt weiss ich noch nicht mal ob events für die schalter erzeugt werden. schaum mal mit verbose 5 im log und poste es wenn es etwas gibt. dann baue ich es ein.
FHEM5.4,DS1512+,2xCULv3,DS9490R,HMLAN,2xRasPi
CUL_HM:HM-LC-Bl1PBU-FM,HM-LC-Sw1PBU-FM,HM-SEC-MDIR,HM-SEC-RHS
HUEBridge,HUEDevice:LCT001,LLC001,LLC006,LWL001
OWDevice:DS1420,DS18B20,DS2406,DS2423
FS20:fs20as4,fs20bs,fs20di
AKCP:THS01,WS15
CUL_WS:S300TH

Offline StefanF

  • New Member
  • *
  • Beiträge: 8
Antw:HUEBridge push api unterstützung
« Antwort #14 am: 02 September 2021, 14:02:56 »
Danke justme1968!

Nach was soll ich im Log Ausschau halten? Ist es so was hier?
Der Dimmerswitch ist Sensor 2.

2021.09.02 13:57:25 4:  HueBridge: received: $VAR1 = [          {            'id' => 'c8c1a493-aa9b-4b5c-81c8-a9e6c0ea9040',            'type' => 'update',            'data' => [                        {                          'id_v1' => '/sensors/2',                          'id' => '9b6c532f-f458-4c7a-8640-dfcbed55dca8',                          'type' => 'button',                          'button' => {                                        'last_event' => 'initial_press'                                      }                        }                      ],            'creationtime' => '2021-09-02T11:57:24Z'          },          {            'creationtime' => '2021-09-02T11:57:24Z',            'data' => [                        {                          'on' => {                                    'on' => bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' )                                  },                          'type' => 'light',                          'id' => '26671fe4-1118-4d41-b2a1-1d5c338353ba',                          'id_v1' => '/lights/27'                        }                      ],            'type' => 'update',            'id' => '81684907-7679-420b-9be2-b6a69fc36ac1'          },          {            'type' => 'update',            'id' => '05e6065e-b870-40f1-b8ac-431fb8032ecb',            'creationtime' => '2021-09-02T11:57:24Z',            'data' => [                        {                          'on' => {                                    'on' => $VAR1->[1]{'data'}[0]{'on'}{'on'}                                  },                          'type' => 'grouped_light',                          'id_v1' => '/groups/36',                          'id' => 'c2f66858-c60e-444b-a402-7ef0cf1bbae1'                        }                      ]          }        ];
2021.09.02 13:57:25 3:  HueBridge: message for unknown device received: HueBridge-S2
2021.09.02 13:57:25 4:  HueBridge: created: $VAR1 = {          'state' => {                       'on' => bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' )                     }        };
« Letzte Änderung: 02 September 2021, 14:05:35 von StefanF »

Offline justme1968

  • Developer
  • Hero Member
  • ****
  • Beiträge: 20833
Antw:HUEBridge push api unterstützung
« Antwort #15 am: 02 September 2021, 20:41:40 »
perfekt. genau nach sowas.

ich bräuchte alle möglichen varianten von drücken, loslassen, halten, …  und was dir sonst noch so einfällt was events erzeugt. und dann bitte hier posten.

dazu noch ein get <bridge> sensors detail
FHEM5.4,DS1512+,2xCULv3,DS9490R,HMLAN,2xRasPi
CUL_HM:HM-LC-Bl1PBU-FM,HM-LC-Sw1PBU-FM,HM-SEC-MDIR,HM-SEC-RHS
HUEBridge,HUEDevice:LCT001,LLC001,LLC006,LWL001
OWDevice:DS1420,DS18B20,DS2406,DS2423
FS20:fs20as4,fs20bs,fs20di
AKCP:THS01,WS15
CUL_WS:S300TH

Offline StefanF

  • New Member
  • *
  • Beiträge: 8
Antw:HUEBridge push api unterstützung
« Antwort #16 am: 03 September 2021, 14:33:56 »
Hue DimmerSwitch V1

Erstmal die Sensors-Info aus der Bridge direkt:
"2":{"state":{"buttonevent":1002,"lastupdated":"2021-08-30T07:42:59"},"swupdate":{"state":"noupdates","lastinstall":"2019-10-10T12:33:27"},"config":

{"on":true,"battery":94,"reachable":true,"pending":[]},"name":"Wohnzimmer","type":"ZLLSwitch","modelid":"RWL021","manufacturername":"Signify Netherlands B.V.","productname":"Hue dimmer

switch","diversityid":"73bbabea-3420-499a-9856-46bf437e119b","swversion":"6.1.1.28573","uniqueid":"00:17:88:01:04:e7:a4:17-02-fc00","capabilities":{"certified":true,"primary":true,"inputs":

[{"repeatintervals":[800],"events":[{"buttonevent":1000,"eventtype":"initial_press"},{"buttonevent":1001,"eventtype":"repeat"},{"buttonevent":1002,"eventtype":"short_release"},

{"buttonevent":1003,"eventtype":"long_release"}]},{"repeatintervals":[800],"events":[{"buttonevent":2000,"eventtype":"initial_press"},{"buttonevent":2001,"eventtype":"repeat"},

{"buttonevent":2002,"eventtype":"short_release"},{"buttonevent":2003,"eventtype":"long_release"}]},{"repeatintervals":[800],"events":[{"buttonevent":3000,"eventtype":"initial_press"},

{"buttonevent":3001,"eventtype":"repeat"},{"buttonevent":3002,"eventtype":"short_release"},{"buttonevent":3003,"eventtype":"long_release"}]},{"repeatintervals":[800],"events":

[{"buttonevent":4000,"eventtype":"initial_press"},{"buttonevent":4001,"eventtype":"repeat"},{"buttonevent":4002,"eventtype":"short_release"},{"buttonevent":4003,"eventtype":"long_release"}]}]}}



Und hier die Meldungen aus dem Log:


Taste 1 gedrückt, "initial_press" 1000
2021.09.03 12:29:58 4:  HueBridge: received: $VAR1 = [          {            'type' => 'update',            'creationtime' => '2021-09-03T10:29:58Z',            'data' => [                   

    {                          'button' => {                                        'last_event' => 'initial_press'                                      },                          'id_v1' =>

'/sensors/2',                          'type' => 'button',                          'id' => '7316cf75-abfd-4d48-b99c-e5b9e9858d95'                        }                      ],            'id'

=> '5110b402-3100-47df-8cc1-6e1c132fb63e'          }        ];
2021.09.03 12:29:58 3:  HueBridge: message for unknown device received: HueBridge-S2



Taste 1 gehalten, "repeat" 1001
2021.09.03 12:41:36 4:  HueBridge: received: $VAR1 = [          {            'type' => 'update',            'creationtime' => '2021-09-03T10:41:36Z',            'id' => 'c7753181-7b10-4469-

b054-c6350f074c2d',            'data' => [                        {                          'button' => {                                        'last_event' => 'repeat'                           

          },                          'id_v1' => '/sensors/2',                          'type' => 'button',                          'id' => '7316cf75-abfd-4d48-b99c-e5b9e9858d95'                   

     }                      ]          }        ];
2021.09.03 12:41:36 3:  HueBridge: message for unknown device received: HueBridge-S2

get HueBridge sensors detail
2:Wohnzimmer                 ZLLSwitch            {"buttonevent":1001,"lastupdated":"2021-09-03T10:53:13"}
 
                                                        {"pending":[],"battery":100,"reachable":true,"on":true}



Taste 1 kurz losgelassen, "short_release" 1002
2021.09.03 12:46:22 4:  HueBridge: received: $VAR1 = [          {            'data' => [                        {                          'id_v1' => '/sensors/2',                         

'button' => {                                        'last_event' => 'short_release'                                      },                          'id' => '7316cf75-abfd-4d48-b99c-e5b9e9858d95',

                         'type' => 'button'                        }                      ],            'id' => 'd28a32cf-ffdb-46ee-a536-8f9a04063fbc',            'creationtime' => '2021-09-

03T10:46:21Z',            'type' => 'update'          }        ];
2021.09.03 12:46:22 3:  HueBridge: message for unknown device received: HueBridge-S2

get HueBridge sensors detail
2: Wohnzimmer                 ZLLSwitch            {"lastupdated":"2021-09-03T10:46:21","buttonevent":1002}
 
                                                        {"on":true,"reachable":true,"battery":100,"pending":[]}



Taste 1 lange losgelassen, "long_release" 1003
2021.09.03 13:07:46 4:  HueBridge: received: $VAR1 = [          {            'id' => '3b54662b-d229-41bf-be98-7267791a54d1',            'data' => [                        {                   

      'id_v1' => '/sensors/2',                          'button' => {                                        'last_event' => 'repeat'                                      },                         

 'id' => '7316cf75-abfd-4d48-b99c-e5b9e9858d95',                          'type' => 'button'                        }                      ],            'creationtime' => '2021-09-03T11:07:46Z',   

        'type' => 'update'          }        ];
2021.09.03 13:07:46 3:  HueBridge: message for unknown device received: HueBridge-S2

get HueBridge sensors detail
2:Wohnzimmer                 ZLLSwitch            {"buttonevent":1003,"lastupdated":"2021-09-03T11:07:47"}
                                                         {"pending":[],"battery":95,"reachable":true,"on":true}



Taste 2 gedrückt, "initial_press" 2000
2021.09.03 13:18:03 4:  HueBridge: received: $VAR1 = [          {            'type' => 'update',            'creationtime' => '2021-09-03T11:18:03Z',            'data' => [                   

    {                          'button' => {                                        'last_event' => 'initial_press'                                      },                          'id_v1' =>

'/sensors/2',                          'type' => 'button',                          'id' => '5a2693ad-319b-4115-b077-85f7a0af5f8d'                        }                      ],            'id'

=> '70add22f-1365-4cf1-8b5b-de8f00c2c233'          }        ];
2021.09.03 13:18:03 3:  HueBridge: message for unknown device received: HueBridge-S2



Taste 2 gehalten, "repeat" 2001
2021.09.03 13:24:00 4:  HueBridge: received: $VAR1 = [          {            'id' => '91ae0195-7c65-4514-8cc8-48a59f313ced',            'data' => [                        {                   

      'id' => '5a2693ad-319b-4115-b077-85f7a0af5f8d',                          'type' => 'button',                          'id_v1' => '/sensors/2',                          'button' => {           

                             'last_event' => 'repeat'                                      }                        }                      ],            'creationtime' => '2021-09-03T11:23:59Z',   

        'type' => 'update'          }        ];
2021.09.03 13:24:00 3:  HueBridge: message for unknown device received: HueBridge-S2

get HueBridge sensors detail
2:Wohnzimmer                 ZLLSwitch            {"buttonevent":2001,"lastupdated":"2021-09-03T11:23:29"}
                                                         {"battery":98,"reachable":true,"on":true,"pending":[]}



Taste 2 kurz losgelassen, "short_release" 2002
2021.09.03 13:18:04 4:  HueBridge: received: $VAR1 = [          {            'type' => 'update',            'data' => [                        {                          'id' => '5a2693ad-

319b-4115-b077-85f7a0af5f8d',                          'type' => 'button',                          'id_v1' => '/sensors/2',                          'button' => {                                   

     'last_event' => 'short_release'                                      }                        }                      ],            'id' => '40a816b5-4fff-4f1e-a14a-b18dae387fed',           

'creationtime' => '2021-09-03T11:18:03Z'          }        ];
2021.09.03 13:18:04 3:  HueBridge: message for unknown device received: HueBridge-S2

get HueBridge sensors detail
2:Wohnzimmer                 ZLLSwitch            {"buttonevent":2002,"lastupdated":"2021-09-03T11:18:03"}
                                                         {"reachable":true,"battery":98,"on":true,"pending":[]}



Taste 2 lange losgelassen, "long_release" 2003
2021.09.03 13:28:13 4:  HueBridge: received: $VAR1 = [          {            'id' => '3cd1f3d4-81d9-404c-9d23-97856d3e8b64',            'data' => [                        {                   

      'type' => 'button',                          'id' => '5a2693ad-319b-4115-b077-85f7a0af5f8d',                          'button' => {                                        'last_event' =>

'long_release'                                      },                          'id_v1' => '/sensors/2'                        }                      ],            'creationtime' => '2021-09-

03T11:28:13Z',            'type' => 'update'          }        ];
2021.09.03 13:28:13 3:  HueBridge: message for unknown device received: HueBridge-S2

get HueBridge sensors detail
2:Wohnzimmer                 ZLLSwitch            {"lastupdated":"2021-09-03T11:28:13","buttonevent":2003}
                                                         {"pending":[],"reachable":true,"on":true,"battery":98}



Taste 3 gedrückt, "initial_press" 3000
2021.09.03 13:38:17 4:  HueBridge: received: $VAR1 = [          {            'type' => 'update',            'data' => [                        {                          'id' => '73ff1179-

5d74-482e-88ac-15ab123cf2f1',                          'type' => 'button',                          'id_v1' => '/sensors/2',                          'button' => {                                   

     'last_event' => 'initial_press'                                      }                        }                      ],            'id' => 'dad2e4da-472a-4465-8648-fc804e3d8280',           

'creationtime' => '2021-09-03T11:38:17Z'          }        ];
2021.09.03 13:38:17 3:  HueBridge: message for unknown device received: HueBridge-S2



Taste 3 gehalten, "repeat" 3001
2021.09.03 13:41:26 4:  HueBridge: received: $VAR1 = [          {            'type' => 'update',            'creationtime' => '2021-09-03T11:41:25Z',            'data' => [                   

    {                          'button' => {                                        'last_event' => 'repeat'                                      },                          'id_v1' =>

'/sensors/2',                          'type' => 'button',                          'id' => '73ff1179-5d74-482e-88ac-15ab123cf2f1'                        }                      ],            'id'

=> 'ae1532a3-2833-49b0-b8c3-8897da8cca0a'          }        ];
2021.09.03 13:41:26 3:  HueBridge: message for unknown device received: HueBridge-S2

get HueBridge sensors detail
2:Wohnzimmer                 ZLLSwitch            {"buttonevent":3001,"lastupdated":"2021-09-03T11:41:59"}
                                                         {"reachable":true,"battery":97,"on":true,"pending":[]}



Taste 3 kurz losgelassen, "short_release" 3002
2021.09.03 13:39:31 4:  HueBridge: received: $VAR1 = [          {            'creationtime' => '2021-09-03T11:39:30Z',            'id' => '4bd69a16-3531-4451-8b4b-5538b2c5e5f9',           

'data' => [                        {                          'id_v1' => '/sensors/2',                          'button' => {                                        'last_event' => 'short_release' 

                                    },                          'id' => '73ff1179-5d74-482e-88ac-15ab123cf2f1',                          'type' => 'button'                        }                 

    ],            'type' => 'update'          }        ];
2021.09.03 13:39:31 3:  HueBridge: message for unknown device received: HueBridge-S2

get HueBridge sensors detail
2:Wohnzimmer                 ZLLSwitch            {"lastupdated":"2021-09-03T11:39:30","buttonevent":3002}
                                                         {"pending":[],"on":true,"reachable":true,"battery":97}



Taste 3 lange losgelassen, "long_release" 3003
2021.09.03 13:46:14 4:  HueBridge: received: $VAR1 = [          {            'type' => 'update',            'creationtime' => '2021-09-03T11:46:13Z',            'id' => '2cfb5448-33cf-4b91-

8543-0f55bc37bf45',            'data' => [                        {                          'type' => 'button',                          'id' => '73ff1179-5d74-482e-88ac-15ab123cf2f1',             

             'button' => {                                        'last_event' => 'long_release'                                      },                          'id_v1' => '/sensors/2'             

           }                      ]          }        ];
2021.09.03 13:46:14 3:  HueBridge: message for unknown device received: HueBridge-S2

get HueBridge sensors detail
2:Wohnzimmer                 ZLLSwitch            {"lastupdated":"2021-09-03T11:46:13","buttonevent":3003}
                                                         {"pending":[],"reachable":true,"on":true,"battery":95}



Taste 4 gedrückt, "initial_press" 4000
2021.09.03 13:55:07 4:  HueBridge: received: $VAR1 = [          {            'type' => 'update',            'creationtime' => '2021-09-03T11:55:07Z',            'data' => [                   

    {                          'button' => {                                        'last_event' => 'initial_press'                                      },                          'id_v1' =>

'/sensors/2',                          'type' => 'button',                          'id' => '9b6c532f-f458-4c7a-8640-dfcbed55dca8'                        }                      ],            'id'

=> 'a8114b7b-b5e5-49d0-84ec-2cc9899dd396'          }        ];
2021.09.03 13:55:07 3:  HueBridge: message for unknown device received: HueBridge-S2



Taste 4 gehalten, "repeat" 4001
2021.09.03 13:59:28 4:  HueBridge: received: $VAR1 = [          {            'type' => 'update',            'id' => 'f348b508-6976-4c3e-bafe-6bc3a19d7328',            'data' => [             

          {                          'id' => '9b6c532f-f458-4c7a-8640-dfcbed55dca8',                          'type' => 'button',                          'id_v1' => '/sensors/2',                   

       'button' => {                                        'last_event' => 'repeat'                                      }                        }                      ],           

'creationtime' => '2021-09-03T11:59:27Z'          }        ];
2021.09.03 13:59:28 3:  HueBridge: message for unknown device received: HueBridge-S2

get HueBridge sensors detail
2:Wohnzimmer                 ZLLSwitch            {"lastupdated":"2021-09-03T12:00:02","buttonevent":4001}
                                                         {"on":true,"reachable":true,"battery":95,"pending":[]}



Taste 4 kurz losgelassen, "short_release" 4002
2021.09.03 13:49:27 4:  HueBridge: received: $VAR1 = [          {            'type' => 'update',            'id' => 'bda13ff7-4406-4d93-8716-1f4bc300cf53',            'data' => [             

          {                          'id_v1' => '/sensors/2',                          'button' => {                                        'last_event' => 'short_release'                           

           },                          'id' => '9b6c532f-f458-4c7a-8640-dfcbed55dca8',                          'type' => 'button'                        }                      ],           

'creationtime' => '2021-09-03T11:49:26Z'          }        ];
2021.09.03 13:49:27 3:  HueBridge: message for unknown device received: HueBridge-S2

get HueBridge sensors detail
2:Wohnzimmer                 ZLLSwitch            {"buttonevent":4002,"lastupdated":"2021-09-03T11:49:26"}
                                                         {"pending":[],"reachable":true,"on":true,"battery":95}



Taste 4 lange losgelassen, "long_release" 4003
2021.09.03 14:01:23 4:  HueBridge: received: $VAR1 = [          {            'type' => 'update',            'id' => 'e2bf788a-0e11-496a-aa28-576339b7c10e',            'data' => [             

          {                          'id' => '9b6c532f-f458-4c7a-8640-dfcbed55dca8',                          'type' => 'button',                          'id_v1' => '/sensors/2',                   

       'button' => {                                        'last_event' => 'long_release'                                      }                        }                      ],           

'creationtime' => '2021-09-03T12:01:22Z'          }        ];
2021.09.03 14:01:23 3:  HueBridge: message for unknown device received: HueBridge-S2

get HueBridge sensors detail
2:Wohnzimmer                 ZLLSwitch            {"lastupdated":"2021-09-03T12:01:22","buttonevent":4003}
                                                         {"reachable":true,"battery":97,"on":true,"pending":[]}




Und hier habe ich auch noch ein Helligkeits-Event vom Hue Outdoor-Bewegungsmelder (leider nur mit anderen Meldungen zusammen):
Sensor 159 Helligkeit
2021.09.03 14:09:16 4:  HueBridge: received: $VAR1 = [          {            'creationtime' => '2021-09-03T12:09:14Z',            'data' => [                        {                         

'id_v1' => '/groups/0',                          'on' => {                                    'on' => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' )                                  },             

            'type' => 'grouped_light',                          'id' => '19623758-d1ba-45c9-b786-38d0d2649fe6'                        }                      ],            'id' => '643fb216-b8ff-

4643-9965-d34b9fd3d183',            'type' => 'update'          },          {            'type' => 'update',            'data' => [                        {                          'id_v1' =>

'/groups/36',                          'id' => 'c2f66858-c60e-444b-a402-7ef0cf1bbae1',                          'on' => {                                    'on' => $VAR1->[0]{'data'}[0]{'on'}

{'on'}                                  },                          'type' => 'grouped_light'                        }                      ],            'id' => '8646ff8d-d805-4de6-ab8f-

e1dbb5ab0218',            'creationtime' => '2021-09-03T12:09:14Z'          },          {            'type' => 'update',            'data' => [                        {                         

'id_v1' => '/sensors/159',                          'id' => 'bd707860-4837-40db-9880-e5d4982c4325',                          'light' => {                                       'light_level' =>

29495,                                       'light_level_valid' => bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' )                                     },                          'type' =>

'light_level'                        }                      ],            'id' => 'af3bfb7d-2de2-4fda-8e52-09aa62494ed6',            'creationtime' => '2021-09-03T12:09:15Z'          }        ];
2021.09.03 14:09:16 4:  HueBridge: created: $VAR1 = {          'state' => {                       'on' => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' )                     }        };
2021.09.03 14:09:16 4:  parse status message for hueBridge1_HUEGroup0
2021.09.03 14:09:16 4:  HueBridge: created: $VAR1 = {          'state' => {                       'on' => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' )                     }        };
2021.09.03 14:09:16 4:  parse status message for hueBridge1_HUEGroup36
2021.09.03 14:09:16 3:  HueBridge: message for unknown device received: HueBridge-S159

get HueBridge sensors detail
159: Garten                    ZLLLightLevel        {"dark":false,"lightlevel":30431,"daylight":true,"lastupdated":"2021-09-03T12:39:12"}
                                                         {"ledindication":false,"reachable":true,"battery":100,"alert":"none","on":true,"tholddark":232,"tholdoffset":23768,"usertest":false,"pending":[]}



Und ein Hue Indoor-Bewegungsmelder Temperatur-Event:
Sensor 26 Temperatur
2021.09.03 14:09:07 4:  HueBridge: received: $VAR1 = [          {            'creationtime' => '2021-09-03T12:09:07Z',            'id' => '63dee9e7-d23d-4ce3-8f3f-74dff02e30a3',           

'data' => [                        {                          'temperature' => {                                             'temperature' => '18.4500007629395',                                     

        'temperature_valid' => bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' )                                           },                          'id_v1' => '/sensors/26',                         

 'type' => 'temperature',                          'id' => '7bf55e6f-ac66-4553-b76c-d7470d9287d7'                        }                      ],            'type' => 'update'          }        ];
2021.09.03 14:09:07 3:  HueBridge: message for unknown device received: HueBridge-S26

get HueBridge sensors detail
26: Flur                  ZLLTemperature       {"temperature":1873,"lastupdated":"2021-09-03T12:24:05"}
                                                         {"usertest":false,"pending":[],"ledindication":false,"on":true,"reachable":true,"battery":65,"alert":"none"}
« Letzte Änderung: 03 September 2021, 14:55:12 von StefanF »

Offline justme1968

  • Developer
  • Hero Member
  • ****
  • Beiträge: 20833
Antw:HUEBridge push api unterstützung
« Antwort #17 am: 03 September 2021, 18:08:28 »
das ist genau die information die wir brauchen, aber wir haben scheinbar ein kleines problem:

die ganzen button events verwenden scheinbar eine id um den button zu identifizieren und ich habe keine ahnung wie der zusammenhang von id zu button nummer ist. bei button 1 ist es z.b. 7316cf75-abfd-4d48-b99c-e5b9e9858d95. die ist bei allen events die diesen button betreffen gleich. schau mal bitte ob dir was auffällt oder ob die id noch irgendwo sonst in den bridge daten auftaucht...

ansonsten habe ich eine version angehängt die temperature und lightlevel verstehen müsste.

edit: neue version weiter unten: https://forum.fhem.de/index.php/topic,122075.msg1173473.html#msg1173473
« Letzte Änderung: 06 September 2021, 22:05:20 von justme1968 »
FHEM5.4,DS1512+,2xCULv3,DS9490R,HMLAN,2xRasPi
CUL_HM:HM-LC-Bl1PBU-FM,HM-LC-Sw1PBU-FM,HM-SEC-MDIR,HM-SEC-RHS
HUEBridge,HUEDevice:LCT001,LLC001,LLC006,LWL001
OWDevice:DS1420,DS18B20,DS2406,DS2423
FS20:fs20as4,fs20bs,fs20di
AKCP:THS01,WS15
CUL_WS:S300TH

Offline StefanF

  • New Member
  • *
  • Beiträge: 8
Antw:HUEBridge push api unterstützung
« Antwort #18 am: 03 September 2021, 18:49:09 »
Oh, ich hatte gehofft, Du wirst da schlau draus, dass die Meldungen etwas kryptisch sind ist mir auch aufgefallen. Ich habe leider bisher keinen blassen Schimmer wie das Muster sein könnte.

Danke für deine Arbeit soweit!

Ich habe hier noch mal die Meldungen von einem anderen Dimmerswitch rausgesucht, vom Dimmerswitch Sensor 189 scheint die ID die 33240b3f-26be-408d-b752-d6981915afee zu sein, die wiederholt sich in jeder Meldung.

2021.09.03 14:30:17 4:  HueBridge: received: $VAR1 = [          {            'type' => 'update',            'id' => 'ee1a481b-e353-4918-8f7c-4108e2e24d53',            'data' => [                        {                          'button' => {                                        'last_event' => 'initial_press'                                      },                          'id_v1' => '/sensors/189',                          'type' => 'button',                          'id' => '33240b3f-26be-408d-b752-d6981915afee'                        }                      ],            'creationtime' => '2021-09-03T12:30:17Z'          }        ];
2021.09.03 14:30:17 4:  HueBridge: created: $VAR1 = {          'state' => {}        };

2021.09.03 14:30:18 4:  HueBridge: received: $VAR1 = [          {            'type' => 'update',            'creationtime' => '2021-09-03T12:30:17Z',            'id' => '670df1c0-426b-4d32-9386-21ab99291c13',            'data' => [                        {                          'id' => '33240b3f-26be-408d-b752-d6981915afee',                          'type' => 'button',                          'id_v1' => '/sensors/189',                          'button' => {                                        'last_event' => 'repeat'                                      }                        }                      ]          }        ];
2021.09.03 14:30:18 4:  HueBridge: created: $VAR1 = {          'state' => {}        };

Ich krame morgen noch mal ein paar Sensors und die dazugehörige Log-Meldung raus, vielleicht findet sich dann ein Muster.


Die 7316cf75-abfd-4d48-b99c-e5b9e9858d95 taucht absolut nirgendwo in der Bridge auf, wenn ich mir per HTTP Get <bridge-ip>/api/<key>/ die komplette Bridge ausgeben lasse.
« Letzte Änderung: 03 September 2021, 19:47:40 von StefanF »

Offline StefanF

  • New Member
  • *
  • Beiträge: 8
Antw:HUEBridge push api unterstützung
« Antwort #19 am: 04 September 2021, 10:10:06 »
Dass die Sensor-ID auch in der Meldung auftaucht hast du gesehen, bringt aber nix?
Kann man das nicht irgendwie modulseitig verknüpfen und hinterlegen?


2021.09.03 12:41:36 4:  HueBridge: received: $VAR1 = [          {            'type' => 'update',            'creationtime' => '2021-09-03T10:41:36Z',            'id' => 'c7753181-7b10-4469-

b054-c6350f074c2d',            'data' => [                        {                          'button' => {                                        'last_event' => 'repeat'                           

          },                          'id_v1' => '/sensors/2',                          'type' => 'button',                          'id' => '7316cf75-abfd-4d48-b99c-e5b9e9858d95'                   

     }                      ]          }        ];
2021.09.03 12:41:36 3:  HueBridge: message for unknown device received: HueBridge-S2


Edit: ich glaube, ich verstehe noch nicht wo genau die Baustelle ist. Fehlt dir in den Event-Meldungen die Info, welche von den 4 Tasten am Dimmerswitch gedrückt wurde oder die, um welchen Dimmerswitch es sich handelt?
« Letzte Änderung: 04 September 2021, 10:25:42 von StefanF »

Offline justme1968

  • Developer
  • Hero Member
  • ****
  • Beiträge: 20833
Antw:HUEBridge push api unterstützung
« Antwort #20 am: 04 September 2021, 13:38:14 »
es fehlt welche der 4 tasten betätigt wurde. bzw. jede taste hat zwar eine eigene id, ich weiss aber nicht welche id zu welcher taste gehört. d.h. ich kann aus dem event nicht den 4 stelligen readings wert machen der beim pollen kommt.
FHEM5.4,DS1512+,2xCULv3,DS9490R,HMLAN,2xRasPi
CUL_HM:HM-LC-Bl1PBU-FM,HM-LC-Sw1PBU-FM,HM-SEC-MDIR,HM-SEC-RHS
HUEBridge,HUEDevice:LCT001,LLC001,LLC006,LWL001
OWDevice:DS1420,DS18B20,DS2406,DS2423
FS20:fs20as4,fs20bs,fs20di
AKCP:THS01,WS15
CUL_WS:S300TH

Offline StefanF

  • New Member
  • *
  • Beiträge: 8
Antw:HUEBridge push api unterstützung
« Antwort #21 am: 04 September 2021, 16:55:15 »
Ok, habs nun verstanden, danke!

Ich hab jetzt mehrere Dimmerswitches verglichen, und die IDs der Tasten sind bei jedem anders. Kein Muster zu erkennen, keine hinterlegte Info in der Bridge dazu.

Aus meinen bisherigen Erkenntnissen bliebe wohl nur, die Tasten initial mit per Polling erhobenen Daten zu der zugehörige Push-Meldung zuzuordnen und diese Info irgendwo zu hinterlegen.
Oder Signify ringt sich doch mal zeitnah dazu durch, die Api-Documentation auf Stand zu bringen...
« Letzte Änderung: 04 September 2021, 17:02:44 von StefanF »

Offline justme1968

  • Developer
  • Hero Member
  • ****
  • Beiträge: 20833
Antw:HUEBridge push api unterstützung
« Antwort #22 am: 06 September 2021, 22:05:03 »
bitte teste mal diese version mit verbose 4. direkt nach einem set <bridge> reconnect sollte ein ziemlich großer formatierter datenblock im log erscheinen. das sind die ressourcen über das neue api ausgelesen.

schau mal ob da irgendwo die 7316cf75-abfd-4d48-b99c-e5b9e9858d95 auftaucht.

mich würde auch der komplette sensor teil interessieren. vielleicht kannst du mir den kompletten block mailen.
FHEM5.4,DS1512+,2xCULv3,DS9490R,HMLAN,2xRasPi
CUL_HM:HM-LC-Bl1PBU-FM,HM-LC-Sw1PBU-FM,HM-SEC-MDIR,HM-SEC-RHS
HUEBridge,HUEDevice:LCT001,LLC001,LLC006,LWL001
OWDevice:DS1420,DS18B20,DS2406,DS2423
FS20:fs20as4,fs20bs,fs20di
AKCP:THS01,WS15
CUL_WS:S300TH

Offline StefanF

  • New Member
  • *
  • Beiträge: 8
Antw:HUEBridge push api unterstützung
« Antwort #23 am: 07 September 2021, 15:27:57 »
Ich bekomme mit der neuen Version leider keine Push-Aktualisierung über Tastendrücke am Dimmerswitch.

Den Datenblock nach set Bridge reconnect habe ich per PN geschickt.
Die 7316cf75-abfd-4d48-b99c-e5b9e9858d95 ist dabei.

Danke für deine Arbeit!



Nebenbemerkung: ich habe heute beschlossen, von der Hue Bridge auf den Conbee-II-USB-Stick umziehen. Ich persönlich habe dann keinen Bedarf mehr daran dass die Push-Mitteilungen von der Hue Bridge funktionieren.
« Letzte Änderung: 07 September 2021, 15:33:04 von StefanF »

Offline justme1968

  • Developer
  • Hero Member
  • ****
  • Beiträge: 20833
Antw:HUEBridge push api unterstützung
« Antwort #24 am: 07 September 2021, 17:56:42 »
die tastendrücke waren ja auch noch nicht eingebaut da ich bisher die button nummer noch nicht habe.

ich habe die pn bekommen. wie es ausschaut bekomme ich die button nummer über die neuen daten. wann willst du denn umziehen? wenn es niemanden zum testen gibt kann ich es nicht einbauen :)

ps: über das neue api scheint es eventuell auch möglich zu sein die mehrfach sensor devices wieder zusammenzufassen. allerdings braucht es auch hier jemandem zum testen.
FHEM5.4,DS1512+,2xCULv3,DS9490R,HMLAN,2xRasPi
CUL_HM:HM-LC-Bl1PBU-FM,HM-LC-Sw1PBU-FM,HM-SEC-MDIR,HM-SEC-RHS
HUEBridge,HUEDevice:LCT001,LLC001,LLC006,LWL001
OWDevice:DS1420,DS18B20,DS2406,DS2423
FS20:fs20as4,fs20bs,fs20di
AKCP:THS01,WS15
CUL_WS:S300TH

Offline StefanF

  • New Member
  • *
  • Beiträge: 8
Antw:HUEBridge push api unterstützung
« Antwort #25 am: 08 September 2021, 16:36:09 »
Das dauert wohl einige Wochen mit dem Umzug.

Ich teste gerne weiter, ich finde das spannend :)
Signify hat mich die letzten Jahre öfter mal an den Rand der Verzweiflung getrieben mit ihrer Api-Geheimniskrämerei, ich freue mich jedes Mal wenn man dem ein Schnippchen schlagen kann.
« Letzte Änderung: 08 September 2021, 16:37:54 von StefanF »

Offline choenig

  • Developer
  • Full Member
  • ****
  • Beiträge: 397
  • Module: MieleAtHome, WS980, [ALP600]
Antw:HUEBridge push api unterstützung
« Antwort #26 am: Gestern um 09:23:57 »
Guten Morgen,

als ich mir bei der Weiterentwicklung meines Miele@Home-Moduls Deinen Code angeschaut habe, ist mir aufgefallen, dass in dem Modul aus dem ersten Post incrementalTimeout falsch geschrieben ist. Es fehlt ein 'e' ;-) -> incrementalTim[e]out.

Dieses hatte ja auch schon Rudi hier https://forum.fhem.de/index.php?topic=85307.0 hinzugefügt ;-)

LG
Christian
« Letzte Änderung: Gestern um 09:27:37 von choenig »

Offline justme1968

  • Developer
  • Hero Member
  • ****
  • Beiträge: 20833
Antw:HUEBridge push api unterstützung
« Antwort #27 am: Gestern um 09:51:54 »
ups... ist fürs nächste mal korrigiert.
FHEM5.4,DS1512+,2xCULv3,DS9490R,HMLAN,2xRasPi
CUL_HM:HM-LC-Bl1PBU-FM,HM-LC-Sw1PBU-FM,HM-SEC-MDIR,HM-SEC-RHS
HUEBridge,HUEDevice:LCT001,LLC001,LLC006,LWL001
OWDevice:DS1420,DS18B20,DS2406,DS2423
FS20:fs20as4,fs20bs,fs20di
AKCP:THS01,WS15
CUL_WS:S300TH

 

decade-submarginal