ebaauw / homebridge-deconz

Homebridge plugin for deCONZ
Apache License 2.0
134 stars 7 forks source link

unknown ZHASwitch. Add OSRAM Lightify 4 button remote? #189

Closed Lukjam closed 10 months ago

Lukjam commented 10 months ago

deCONZ v2.23.02 homebridge-deconz v1.0.6

My Ledvance/OSRAM Smart+ Switches are correctly exposed to deCONZ and phoscon but only shown in Homekit as one button with 3 Actions: Single Press, Double Press and LongPress. But only the single Press is shown to work. I think the resource need to be added.

Gateway: warning: OSRAM 4: exposed by draft ddf
[13/11/2023, 17:19:37] [deCONZ] Gateway: OSRAM 4: add accessory
[13/11/2023, 17:19:37] [deCONZ] OSRAM 4: logLevel: set to 2
[13/11/2023, 17:19:37] [deCONZ] OSRAM 4: Name: set to "OSRAM 4"
[13/11/2023, 17:19:37] [deCONZ] OSRAM 4: Serial Number: set to ""
[13/11/2023, 17:19:37] [deCONZ] OSRAM 4: Manufacturer: set to "OSRAM"
[13/11/2023, 17:19:37] [deCONZ] OSRAM 4: Model: set to "Switch 4x EU-LIGHTIFY"
[13/11/2023, 17:19:37] [deCONZ] OSRAM 4: Firmware Revision: set to "0.0.0"
[13/11/2023, 17:19:37] [deCONZ] OSRAM 4: OSRAM Switch 4x EU-LIGHTIFY v0.0.0 (1 resources)
[13/11/2023, 17:19:37] [deCONZ] OSRAM 4: warning: /sensors/19: unknown ZHASwitch: {"config":{"battery":null,"group":"14","on":true,"reachable":true},"ep":1,"etag":"9c87b72092a5a77b059d4e2cefe67c7c","lastannounced":null,"lastseen":"2023-11-13T16:08Z","manufacturername":"OSRAM","mode":1,"modelid":"Switch 4x EU-LIGHTIFY","name":"OSRAM 4","state":{"buttonevent":4002,"lastupdated":"2023-11-13T12:48:07.974"},"type":"ZHASwitch","uniqueid":""}
[13/11/2023, 17:19:37] [deCONZ] OSRAM 4: Name: set to "OSRAM 4"
[13/11/2023, 17:19:37] [deCONZ] OSRAM 4: Configured Name: set to "OSRAM 4"
[13/11/2023, 17:19:37] [deCONZ] OSRAM 4: Service Label Namespace: set to 1
[13/11/2023, 17:19:37] [deCONZ] OSRAM 4 Unknown Button: Name: set to "OSRAM 4 Unknown Button"
[13/11/2023, 17:19:38] [deCONZ] OSRAM 4 Unknown Button: Configured Name: set to "OSRAM 4 Unknown Button"
[13/11/2023, 17:19:38] [deCONZ] OSRAM 4 Unknown Button: Service Label Index: set to 1
[13/11/2023, 17:19:38] [deCONZ] OSRAM 4 Battery: Name: set to "OSRAM 4 Battery"
[13/11/2023, 17:19:38] [deCONZ] OSRAM 4 Battery: Configured Name: set to "OSRAM 4 Battery"
[13/11/2023, 17:19:38] [deCONZ] OSRAM 4 Battery: Status Low Battery: set to 0

https://dresden-elektronik.github.io/deconz-rest-doc/endpoints/sensors/button_events/#osram-lightify-4-button-remote-1 https://dresden-elektronik.github.io/deconz-rest-doc/endpoints/sensors/button_events/#osram-lightify-4-button-remote-2

ebaauw commented 10 months ago

In v1.0.7.