deconz-rest-plugin icon indicating copy to clipboard operation
deconz-rest-plugin copied to clipboard

Paulmann Zigbee Switch 501.34

Open carstenph1 opened this issue 3 years ago • 12 comments

Device

  • Product name: Zigbee Wandschalter On/Off/Dimm
  • Manufacturer: Paulman LichtGmbH
  • Model identifier: 501.34
  • Device type : Switch

Screenshots

Basic

grafik

Power Configuration

grafik

Identify

grafik

Diagnostics

grafik

ZLL Commissioning

grafik

Node Info

grafik

carstenph1 avatar Jun 02 '22 17:06 carstenph1

Missing screenshots.

Mimiix avatar Jun 03 '22 12:06 Mimiix

I added the complete available information on cluster information.

carstenph1 avatar Jun 03 '22 19:06 carstenph1

@Mimiix are you missing any further details?

carstenph1 avatar Jun 14 '22 19:06 carstenph1

Woops, sorry! Missed your comment. Looks good :)

Mimiix avatar Jun 14 '22 20:06 Mimiix

As there has not been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs.

github-actions[bot] avatar Jul 06 '22 02:07 github-actions[bot]

Is there progress yet?

LilYea avatar Jul 07 '22 10:07 LilYea

As there has not been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs.

github-actions[bot] avatar Jul 30 '22 02:07 github-actions[bot]

it would be awesome to see this feature in one of the next releases :-)

carstenph1 avatar Aug 01 '22 18:08 carstenph1

As there has not been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs.

github-actions[bot] avatar Aug 24 '22 02:08 github-actions[bot]

pushing it again!

carstenph1 avatar Aug 28 '22 19:08 carstenph1

I have the same switch. I would also be very grateful to see this device as supported.

Artur-Fedjukevits avatar Sep 01 '22 11:09 Artur-Fedjukevits

As there has not been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs.

github-actions[bot] avatar Sep 23 '22 02:09 github-actions[bot]

@Mimiix is it still planned to include this switch compatibility in one of the next releases?

carstenph1 avatar Sep 26 '22 09:09 carstenph1

A dev needs to pick it up. Perhaps @smanar or @SwoopX wants to help out. Otherwise, we are kinda stuck...

Mimiix avatar Sep 26 '22 10:09 Mimiix

Product name: Zigbee Wandschalter On/Off/Dimm

So this device don't have color ?

Smanar avatar Sep 27 '22 08:09 Smanar

no. its a switch to turn on/off/dim the light bulbs. there is nothing available to control the color.

carstenph1 avatar Sep 27 '22 09:09 carstenph1

So can try with this DDF

{
  "schema": "devcap1.schema.json",
  "manufacturername": "Paulman LichtGmbH",
  "modelid": "501.34",
  "product": "Paulmann Zigbee Switch",
  "sleeper": true,
  "status": "Gold",
  "subdevices": [
    {
      "type": "$TYPE_SWITCH",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x01",
        "0x0006"
      ],
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/buttonevent"
        },
        {
          "name": "config/battery"
        },
        {
          "name": "state/lastupdated"
        }
      ]
    }
  ],
  "bindings": [
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0x0001",
      "report": [
        {
          "at": "0x0021",
          "dt": "0x20",
          "min": 60,
          "max": 3600,
          "change": "0x00000001"
        }
      ]
    },
    {
      "bind": "unicast",
      "src.ep": 1,
      "dst.ep": 1,
      "cl": "0x0006"
    },
    {
      "bind": "unicast",
      "src.ep": 1,
      "dst.ep": 1,
      "cl": "0x0008"
    }
  ]
}

With it the device will be reconized but not working. Just enable deconz log with "info_l2" in the application / help / debug view Press all buttons and pls share the result, you will error like

	Line 4570:         DBG_Printf(DBG_INFO_L2, "[INFO] - No button map for: %s%s, endpoint: 0x%02X, cluster: %s, command: %s, payload: %s, zclSeq: %u\n",
	Line 5607:         DBG_Printf(DBG_INFO_L2, "[INFO] - No button handler for: %s%s, endpoint: 0x%02X, cluster: %s, command: %s, payload: %s, zclSeq: %u\n",

We will use them to edit another json file.

Smanar avatar Sep 27 '22 14:09 Smanar

thanks Smanar. I hope I made the import correct. I had to remove a comma in the json, otherwise it did not load. I imported the json in the DDF Editor of Deconz and ran the debug view with info_l2. but I cant see any output of "no button ...". just "APS-DATA.indication from child 0x32E3" every time I clicked the switch buttons.

here you can find the full debug log https://pastebin.com/Z9ayZkyy

carstenph1 avatar Oct 01 '22 20:10 carstenph1

Ha yes, have removed the comma too.

But it s strange there is still nothing. The node have changed from 0xXXXX to a better name ? To check if the device is now in the API. You have made a "hot reload" (in the editor menu) after having modified the DDF ?

Else can enable log "aps" to see what is this aps request.

Smanar avatar Oct 02 '22 08:10 Smanar

well I was playing around in the Editor and did a hot reload without knowing what it does. the device ID is still the same like at the beginngin 0x32E3.

enabling the API logs while pressing the switch, dont seem to bring more light in the dark.... https://pastebin.com/ZubC12R1

carstenph1 avatar Oct 03 '22 14:10 carstenph1

the device ID is still the same like at the beginngin 0x32E3

Ha "good" new, ^^ it mean the DDf is not working, so normal you can see nothing in logs. So I have checked the DDF, I have made a typo (and you too, on first post ^^)

  "manufacturername": "Paulman LichtGmbH",
  "modelid": "501.34",

It's "Paulmann"

Smanar avatar Oct 03 '22 15:10 Smanar

mhh you are right, there was a typo in the manufacturername. but nothing changed right now... https://pastebin.com/nDdZYCUx

carstenph1 avatar Oct 03 '22 16:10 carstenph1

ok. good news, I restarted deconz as the DDF editor still had the manufacterer Description still wrong even after correcting it. now I see the name "Switch 4" as a DB entry. please have a look

https://pastebin.com/yL7EPR2A

carstenph1 avatar Oct 03 '22 16:10 carstenph1

18:20:26:992 [INFO] - No button map for: 501.34, broadcast to: 0xE311, endpoint: 0x02, cluster: ONOFF (0x0006), command: OFF (0x00), payload: None, zclSeq: 74
18:20:27:598 [INFO] - No button map for: 501.34, broadcast to: 0xE311, endpoint: 0x02, cluster: ONOFF (0x0006), command: ON (0x01), payload: None, zclSeq: 75
18:22:29:825 [INFO] - No button map for: 501.34, unicast to: 0x0000, endpoint: 0x01, cluster: ONOFF (0x0006), command: OFF (0x00), payload: None, zclSeq: 77

So with thoses logs, in the folder "devices" (probably where you have found the DDF) , you can found a file button_maps.json. Just edit it to add

        "PaulmannMap": {
            "vendor": "Paulmann LichtGmbH",
            "doc": "On off remote",
            "modelids": ["501.34"],
            "map": [
                [1, "0x01", "ONOFF", "ON", "0", "S_BUTTON_1", "S_BUTTON_ACTION_SHORT_RELEASED", " B1"],
                [1, "0x01", "ONOFF", "OFF", "0", "S_BUTTON_2", "S_BUTTON_ACTION_SHORT_RELEASED", "B2"],
                [1, "0x02", "ONOFF", "ON", "0", "S_BUTTON_3", "S_BUTTON_ACTION_SHORT_RELEASED", "B3"],
                [1, "0x02", "ONOFF", "OFF", "0", "S_BUTTON_4", "S_BUTTON_ACTION_SHORT_RELEASED", "B4"]
            ]
        },

But this file is loaded only at deconz start, so need to restart it after edition.

If you have more logs (with long press for exemple), pls share them too.

Smanar avatar Oct 03 '22 16:10 Smanar

ok I see the switch in the phoscon web gui. but I cant edit the switch or connect it to a group of lights. I added the lines you mentioned in the /usr/share/deCONZ/devices/button_maps.json is this intended?

I will share more logs (long press for dimm) tomorrow.

carstenph1 avatar Oct 03 '22 19:10 carstenph1

I cant edit the switch

You mean in phoscon ? So I can't do something, I haven't impact on phoscon. But you can use it in third app, every time you use the device you will have a new notification with state/buttonevent.

connect it to a group of lights

You mean using the old web app ? To use "direct bind" without automation, using groupcast features ? For this I can do something, need to add the config/group to the DDF

Phoscon can't use natively all new switch.

is this intended?

Yep it s the good one, you will, you will have another message in log now, visible with "info" or "info_l2", not an error one.

You can test it using too Phoscon / help / API information / event to see the notification.

Smanar avatar Oct 03 '22 19:10 Smanar

Good Morning, I have new logs from today using long press button. https://pastebin.com/kmFNvJtB

do you have any clue why I cant discover the second Paulmann Switch (same model)?

thanks Carsten

carstenph1 avatar Oct 11 '22 06:10 carstenph1

So new button map to try

        "PaulmannMap": {
            "vendor": "Paulmann LichtGmbH",
            "doc": "On off remote",
            "modelids": ["501.34"],
            "map": [
                [1, "0x01", "ONOFF", "ON", "0", "S_BUTTON_1", "S_BUTTON_ACTION_SHORT_RELEASED", " B1"],
                [1, "0x01", "ONOFF", "OFF", "0", "S_BUTTON_2", "S_BUTTON_ACTION_SHORT_RELEASED", "B2"],
                [1, "0x02", "ONOFF", "ON", "0", "S_BUTTON_3", "S_BUTTON_ACTION_SHORT_RELEASED", "B3"],
                [1, "0x02", "ONOFF", "OFF", "0", "S_BUTTON_4", "S_BUTTON_ACTION_SHORT_RELEASED", "B4"],
                [1, "0x01", "LEVEL_CONTROL", "MOVE_WITH_ON_OFF", "0", "S_BUTTON_5", "S_BUTTON_ACTION_SHORT_RELEASED", "B5"],
                [1, "0x01", "LEVEL_CONTROL", "STOP_WITH_ON_OFF", "0", "S_BUTTON_6", "S_BUTTON_ACTION_SHORT_RELEASED", "B6"]
            ]
        },

But I have some question.

  • On your logs you have a second endpoint, but on your capture you have only the endpoint "01" (it's the number on the node title)
  • I don't know how look visualy your device, so I m using B1 > B6, but you can have B6 = B1 long press, if you can correct me ?
  • I m not sure you will have all action, only 1 endpoint used, will found the missing by elimination.

And you have a second remote, exaclty same, but not pairing ? Battery ? try to re-include it close another router. Phoscon open in 2 browser pages ?

Smanar avatar Oct 11 '22 17:10 Smanar

Bought the same switch, just now I realized it isn‘t supported yet :( Let me know if anything’s still needed to get it supported

baaaron avatar Oct 27 '22 17:10 baaaron

Sure can use the same DDF and the button map from the previous post. Press button and tell me the result.

And BTW if you can confirm me how many endpoint have this device ?

Smanar avatar Oct 28 '22 17:10 Smanar