Kane610/deconz

Support for Philips Hue wall switch module

Closed this issue · 4 comments

Currently the Philips Hue wall switch module only shows the battery information in Home Assistant.
Mine config is as bellow:

"7": {
        "config": {
          "battery": 100,
          "devicemode": "dualrocker",
          "on": true,
          "pending": [],
          "reachable": true
        },
        "ep": 1,
        "etag": "...",
        "lastannounced": "2022-03-13T16:14:55Z",
        "lastseen": "2022-03-13T19:26Z",
        "manufacturername": "Signify Netherlands B.V.",
        "mode": 1,
        "modelid": "RDM001",
        "name": "Wall switch module",
        "state": {
          "buttonevent": 1002,
          "eventduration": 1,
          "lastupdated": "2022-03-18T19:06:31.635"
        },
        "swversion": "1.0.3",
        "type": "ZHASwitch",
        "uniqueid": "....",
        "attr": {
          "id": "7",
          "lastannounced": "2022-03-13T16:14:55Z",
          "lastseen": "2022-03-21T23:18Z",
          "manufacturername": "Signify Netherlands B.V.",
          "modelid": "RDM001",
          "name": "Wall switch module",
          "swversion": "1.0.3",
          "type": "ZHASwitch",
          "uniqueid": "...."
        },
        "e": "changed",
        "id": "7",
        "r": "sensors",
        "t": "event"
      }

Is possible to expose it as a switch or as a light and have the events of each button press/release?

Hello, this is a ZHASwitch so button presses will be exposed as deconz_event in home assistant.
You can probably use a template light or similar in home assistant to produce an entity.

Any response here, or should I just close it?

Hello!
Thank you for the response, indeed the events where exposed as deconz_event and everything worked as expected!
I will mark it as closed and thank your for the answer and your work!

Thanks!