notabene00/HomeyCONZ

Friends of Hue

Opened this issue · 8 comments

Hi,

Any chance to get Friends of Hue Switch inside?
https://phoscon.de/de/support#pairing-friends-of-hue-switch

Thanks

Hi, yes
You can help to add:
I need to know the modelid of device and buttonevents

Hi and thanks.

I found that the device is a PTM215Z enocean DOLPHIN.
DeviceID is FOHSWITCH.
https://www.feller.ch/de/Produktangebot/Funktaster/Highlight-Produkte#D4540627BFA947D0B5B13C126A7D2F2D

Button events i found: https://fccid.io/png.php?id=2326615&page=12
And some infos here: dresden-elektronik/deconz-rest-plugin#1754

Log from inclusion:
21:09:11:625 New websocket 127.0.0.1:38302 (state: 3)
21:09:19:856 don't close database yet, keep open for 900 seconds
21:09:33:324 send permit join, duration: 59
21:09:33:601 GP srcId: 0x01704571 cmd: 0x10 frameCounter: 284
21:09:36:444 no button map for: lumi.plug ep: 0x01 cl: 0x0000 cmd: 0x00 pl[0]: 000
21:09:41:966 GP srcId: 0x01704571 cmd: 0xE0 frameCounter: 0
21:09:41:966 send GP pairing
21:09:41:967 SensorNode 117: Friends of Hue Schalter reactivated
21:09:41:976 rule event: /sensors/117 state/lastupdated num (0 -> 0)
21:09:42:149 FP indication 0x0104 / 0x0003 (0x00212EFFFF04F685 / 0x0000)
21:09:42:149 ... (0x0000000000000000 / 0x0000)
21:09:42:853 Current channel 15
21:09:42:863 Device TTL 838 s flags: 0x7
21:09:42:914 GP srcId: 0x01704571 cmd: 0x68 frameCounter: 286
21:09:42:919 rule event: /sensors/117 state/lastupdated num (0 -> 0)
21:09:45:548 GP srcId: 0x01704571 cmd: 0x68 frameCounter: 287
21:09:45:553 rule event: /sensors/117 state/lastupdated num (0 -> 0)
21:09:48:806 GP srcId: 0x01704571 cmd: 0x68 frameCounter: 288

I'm interested in deCONZ buttonevents that produced by the Switch on deCONZ's websocket, not the low level events, my app can't process them

Hi, received this log after pairing:
2020-04-02 23:02:44 DEBUG (MainThread) [pydeconz.websocket] {"e":"added","id":"117","r":"sensors","sensor":{"config":{"on":true},"ep":242,"etag":"67c2449934fd17f64700db4ca71febd4","id":"117","manufacturername":"PhilipsFoH","modelid":"FOHSWITCH","name":"Friends of Hue Schalter","state":{"buttonevent":7003,"lastupdated":"2020-04-02T21:02:44"},"type":"ZGPSwitch","uniqueid":"00:00:00:00:01:70:45:71-f2"},"t":"event","uniqueid":"00:00:00:00:01:70:45:71-f2"} 2020-04-02 23:02:44 DEBUG (MainThread) [pydeconz.websocket] {"e":"changed","id":"117","r":"sensors","state":{"buttonevent":7003,"lastupdated":"2020-04-02T21:02:44"},"t":"event","uniqueid":"00:00:00:00:01:70:45:71-f2"}

And this when pressing Button 1:
2020-04-02 23:07:07 DEBUG (MainThread) [pydeconz.websocket] {"e":"changed","id":"117","r":"sensors","state":{"buttonevent":1000,"lastupdated":"2020-04-02T21:07:07"},"t":"event","uniqueid":"00:00:00:00:01:70:45:71-f2"} 2020-04-02 23:07:08 DEBUG (MainThread) [pydeconz.websocket] {"e":"changed","id":"117","r":"sensors","state":{"buttonevent":1001,"lastupdated":"2020-04-02T21:07:08"},"t":"event","uniqueid":"00:00:00:00:01:70:45:71-f2"} 2020-04-02 23:07:10 INFO (CoAP) [pyShelly] Update id:8CAAB505DC0A state:False stateValue:None values:{'switch': 0} info_values:None

Button 2:
2020-04-02 23:08:40 DEBUG (MainThread) [pydeconz.websocket] {"e":"changed","id":"117","r":"sensors","state":{"buttonevent":2000,"lastupdated":"2020-04-02T21:08:40"},"t":"event","uniqueid":"00:00:00:00:01:70:45:71-f2"} 2020-04-02 23:08:40 DEBUG (MainThread) [pydeconz.websocket] {"e":"changed","id":"117","r":"sensors","state":{"buttonevent":2002,"lastupdated":"2020-04-02T21:08:40"},"t":"event","uniqueid":"00:00:00:00:01:70:45:71-f2"}

Button 3:
2020-04-02 23:10:14 DEBUG (MainThread) [pydeconz.websocket] {"e":"changed","id":"117","r":"sensors","state":{"buttonevent":3000,"lastupdated":"2020-04-02T21:10:14"},"t":"event","uniqueid":"00:00:00:00:01:70:45:71-f2"} 2020-04-02 23:10:15 DEBUG (MainThread) [pydeconz.websocket] {"e":"changed","id":"117","r":"sensors","state":{"buttonevent":3002,"lastupdated":"2020-04-02T21:10:15"},"t":"event","uniqueid":"00:00:00:00:01:70:45:71-f2"}

Button 4:
2020-04-02 23:11:27 DEBUG (MainThread) [pydeconz.websocket] {"e":"changed","id":"117","r":"sensors","state":{"buttonevent":4000,"lastupdated":"2020-04-02T21:11:27"},"t":"event","uniqueid":"00:00:00:00:01:70:45:71-f2"} 2020-04-02 23:11:27 DEBUG (MainThread) [pydeconz.websocket] {"e":"changed","id":"117","r":"sensors","state":{"buttonevent":4002,"lastupdated":"2020-04-02T21:11:27"},"t":"event","uniqueid":"00:00:00:00:01:70:45:71-f2"}

Ops sorry, hier the double press of button 1 and 3 together as Button 5:
2020-04-02 23:22:57 DEBUG (MainThread) [pydeconz.websocket] {"e":"changed","id":"117","r":"sensors","state":{"buttonevent":5000,"lastupdated":"2020-04-02T21:22:57"},"t":"event","uniqueid":"00:00:00:00:01:70:45:71-f2"} 2020-04-02 23:22:58 DEBUG (MainThread) [pydeconz.websocket] {"e":"changed","id":"117","r":"sensors","state":{"buttonevent":5002,"lastupdated":"2020-04-02T21:22:58"},"t":"event","uniqueid":"00:00:00:00:01:70:45:71-f2"}

And same Button 2 and 4 as Button 6:
2020-04-02 23:24:51 DEBUG (MainThread) [pydeconz.websocket] {"e":"changed","id":"117","r":"sensors","state":{"buttonevent":6000,"lastupdated":"2020-04-02T21:24:51"},"t":"event","uniqueid":"00:00:00:00:01:70:45:71-f2"} 2020-04-02 23:24:51 DEBUG (MainThread) [pydeconz.websocket] {"e":"changed","id":"117","r":"sensors","state":{"buttonevent":6002,"lastupdated":"2020-04-02T21:24:51"},"t":"event","uniqueid":"00:00:00:00:01:70:45:71-f2"}

Yeah, this is what I need
I'll pack it ASAP

P.S. Do x002 events are release events?
Do the FoH switch have long press events?

Hi, yep it seems that the x002 is the release event.

And also they have long press. This is the Button 4 for example after long press:
2020-04-03 22:14:23 DEBUG (MainThread) [pydeconz.websocket] {"e":"changed","id":"117","r":"sensors","state":{"buttonevent":4000,"lastupdated":"2020-04-03T20:14:23"},"t":"event","uniqueid":"00:00:00:00:01:70:45:71-f2"} 2020-04-03 22:14:24 DEBUG (MainThread) [pydeconz.websocket] {"e":"changed","id":"117","r":"sensors","state":{"buttonevent":4001,"lastupdated":"2020-04-03T20:14:24"},"t":"event","uniqueid":"00:00:00:00:01:70:45:71-f2"} 2020-04-03 22:14:25 DEBUG (MainThread) [pydeconz.websocket] {"e":"changed","id":"117","r":"sensors","state":{"buttonevent":4003,"lastupdated":"2020-04-03T20:14:25"},"t":"event","uniqueid":"00:00:00:00:01:70:45:71-f2"}