Zigbee, Binding not creating correct channels "Switch On/Off"

I have 35 Zigbee devices on my network which include Phillips HUE, Sonoff and 3A Smart Home DE

I am attempting to add a new device from 3A Smart Home which is a 4-gang Light switch (relays not dimmers), unfortunately the Zigbee binding only creates 4 Dimmer channels.
It looks like the binding recreates the channels on each boot (so manually editing .json is out of the question)

I have been playing with openhab-cli console and the zigbee commands (there are some logs below), but I have the following question:

  1. Should the binding also add channels for a switch as there is an On_Off Cluster in the Profile
         1    : Profile     ZIGBEE_LIGHT_LINK
                 : Device Type ZLL_ON_OFF_LIGHT
                   -> BASIC
                   -> IDENTIFY
                   -> GROUPS
                   -> SCENES
                   -> ON_OFF
                   -> LEVEL_CONTROL
                   -> 0x1000
                   <- BASIC
                   <- ON_OFF

**EDIT: I just noticed that the item is actually updating with either 0 or 100
Operating the Item using the Dimmer Slider, turns it on at “1” or greater.
It only turns OFF when the slider hits “0” **

I have edited the Item and made it a Switch and now it is working as expected.
(I swear I had tried that before and it was not working)…

> 2022-07-30 18:26:02.500 [DEBUG] [converter.ZigBeeConverterSwitchLevel] - E29F0111E00BFDB0: ZigBee attribute reports ZclAttribute [cluster=On/Off, id=0, name=On Off, dataType=BOOLEAN, lastValue=false, lastReportTime=Sat Jul 30 18:26:02 AEST 2022, implemented=false]
> 2022-07-30 18:26:02.500 [DEBUG] [converter.ZigBeeBaseChannelConverter] - E29F0111E00BFDB0: Channel zigbee:device:a72b450e:e29f0111e00bfdb0:E29F0111E00BFDB0_1_dimmer updated to OFF
> 2022-07-30 18:26:02.500 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - E29F0111E00BFDB0: Updating ZigBee channel state zigbee:device:a72b450e:e29f0111e00bfdb0:E29F0111E00BFDB0_1_dimmer to OFF
> 2022-07-30 18:26:02.500 [DEBUG] [.zigbee.handler.ZigBeeIsAliveTracker] - IsAlive Tracker reset for handler with thingUID=zigbee:device:a72b450e:e29f0111e00bfdb0
> 2022-07-30 18:26:02.501 [DEBUG] [.zigbee.handler.ZigBeeIsAliveTracker] - IsAlive Tracker cancelled task for thingUID=zigbee:device:a72b450e:e29f0111e00bfdb0
> 2022-07-30 18:26:02.501 [DEBUG] [.zigbee.handler.ZigBeeIsAliveTracker] - IsAlive Tracker scheduled task for thingUID=zigbee:device:a72b450e:e29f0111e00bfdb0 in 1830 seconds
> 2022-07-30 18:26:03.654 [DEBUG] [converter.ZigBeeConverterSwitchLevel] - E29F0111E00BFDB0: ZigBee attribute reports ZclAttribute [cluster=On/Off, id=0, name=On Off, dataType=BOOLEAN, lastValue=true, lastReportTime=Sat Jul 30 18:26:03 AEST 2022, implemented=false]
> 2022-07-30 18:26:03.655 [DEBUG] [converter.ZigBeeBaseChannelConverter] - E29F0111E00BFDB0: Channel zigbee:device:a72b450e:e29f0111e00bfdb0:E29F0111E00BFDB0_1_dimmer updated to 100
> 2022-07-30 18:26:03.655 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - E29F0111E00BFDB0: Updating ZigBee channel state zigbee:device:a72b450e:e29f0111e00bfdb0:E29F0111E00BFDB0_1_dimmer to 100
> 2022-07-30 18:26:03.656 [DEBUG] [.zigbee.handler.ZigBeeIsAliveTracker] - IsAlive Tracker reset for handler with thingUID=zigbee:device:a72b450e:e29f0111e00bfdb0
> 2022-07-30 18:26:03.656 [DEBUG] [.zigbee.handler.ZigBeeIsAliveTracker] - IsAlive Tracker cancelled task for thingUID=zigbee:device:a72b450e:e29f0111e00bfdb0
> 2022-07-30 18:26:03.656 [DEBUG] [.zigbee.handler.ZigBeeIsAliveTracker] - IsAlive Tracker scheduled task for thingUID=zigbee:device:a72b450e:e29f0111e00bfdb0 in 1830 seconds

==========================================================================
Below are outputs from various commands

openhab> zigbee nodes
Total known nodes in network: 35
Network  Addr  IEEE Address      Logical Type  State      EP   Profile                    Device Type                Manufacturer     Model
      0  0000  CCCCCCFFFEA3581D  COORDINATOR   ONLINE
   1078  0436  086BD7FFFE5B71BE  ROUTER        ONLINE      1  ZIGBEE_HOME_AUTOMATION     DIMMABLE_LIGHT             3A Smart Home DE  LXN56-DS27LX1.3
   1092  0444  0017880108F3913F  END_DEVICE    ONLINE      1  ZIGBEE_LIGHT_LINK          ZLL_NON_COLOR_SCENE_CONTROLLER  Philips          RWL021
                                                           2  ZIGBEE_HOME_AUTOMATION     SIMPLE_SENSOR
   4315  10DB  086BD7FFFE5CF16E  ROUTER        ONLINE      1  ZIGBEE_HOME_AUTOMATION     DIMMABLE_LIGHT             3A Smart Home DE  LXN56-DS27LX1.3
  12787  31F3  00124B0022665CF2  END_DEVICE    UNKNOWN     1  ZIGBEE_HOME_AUTOMATION     ON_OFF_SWITCH              eWeLink          WB01
  13186  3382  086BD7FFFE5D89C8  ROUTER        ONLINE      1  ZIGBEE_HOME_AUTOMATION     DIMMABLE_LIGHT             3A Smart Home DE  LXN56-DS27LX1.3
  13309  33FD  804B50FFFEB0D94B  ROUTER        ONLINE      1  ZIGBEE_HOME_AUTOMATION     ON_OFF_LIGHT               SONOFF           01MINIZB
                                                         242  ZIGBEE_GREEN_POWER         0061
  17602  44C2  086BD7FFFE5B7C7D  ROUTER        ONLINE      1  ZIGBEE_HOME_AUTOMATION     DIMMABLE_LIGHT             3A Smart Home DE  LXN56-DS27LX1.3
  19528  4C48  086BD7FFFE404546  ROUTER        ONLINE      1  ZIGBEE_HOME_AUTOMATION     DIMMABLE_LIGHT             3A Smart Home DE  LXN56-DS27LX1.3
  19860  4D94  086BD7FFFE405D10  ROUTER        ONLINE      1  ZIGBEE_HOME_AUTOMATION     DIMMABLE_LIGHT             3A Smart Home DE  LXN56-DS27LX1.3
  23244  5ACC  804B50FFFEB7213A  ROUTER        ONLINE      1  ZIGBEE_HOME_AUTOMATION     ON_OFF_LIGHT               SONOFF           01MINIZB
                                                         242  ZIGBEE_GREEN_POWER         0061
  29028  7164  0017880108F4BD03  END_DEVICE    ONLINE      1  ZIGBEE_LIGHT_LINK          ZLL_NON_COLOR_SCENE_CONTROLLER  Philips          RWL021
                                                           2  ZIGBEE_HOME_AUTOMATION     SIMPLE_SENSOR
  30400  76C0  00124B00226896CE  END_DEVICE    UNKNOWN     1  ZIGBEE_HOME_AUTOMATION     IAS_ZONE                   eWeLink          MS01
  31054  794E  001788010867BFC0  END_DEVICE    ONLINE      1  ZIGBEE_LIGHT_LINK          ZLL_ON_OFF_SENSOR          Philips          SML001
                                                           2  ZIGBEE_HOME_AUTOMATION     OCCUPANCY_SENSOR
  31167  79BF  086BD7FFFE4040C4  ROUTER        ONLINE      1  ZIGBEE_HOME_AUTOMATION     DIMMABLE_LIGHT             3A Smart Home DE  LXN56-DS27LX1.3
  33111  8157  086BD7FFFE40450A  ROUTER        ONLINE      1  ZIGBEE_HOME_AUTOMATION     DIMMABLE_LIGHT             3A Smart Home DE  LXN56-DS27LX1.3
  34453  8695  0017880108F23736  END_DEVICE    ONLINE      1  ZIGBEE_LIGHT_LINK          ZLL_NON_COLOR_SCENE_CONTROLLER  Philips          RWL021
                                                           2  ZIGBEE_HOME_AUTOMATION     SIMPLE_SENSOR
  37590  92D6  00124B0022665921  END_DEVICE    UNKNOWN     1  ZIGBEE_HOME_AUTOMATION     ON_OFF_SWITCH              eWeLink          WB01
  41623  A297  00124B0022677FA2  ROUTER        ONLINE      1  ZIGBEE_HOME_AUTOMATION     MAINS_POWER_OUTLET         SONOFF           BASICZBR3
  46550  B5D6  00124B0022E9F184  END_DEVICE    ONLINE      1  ZIGBEE_HOME_AUTOMATION     IAS_ZONE                   eWeLink          MS01
  47398  B926  00124B0022658782  END_DEVICE    UNKNOWN     1  ZIGBEE_HOME_AUTOMATION     ON_OFF_SWITCH              eWeLink          WB01
  49703  C227  001788010867CDDD  END_DEVICE    ONLINE      1  ZIGBEE_LIGHT_LINK          ZLL_ON_OFF_SENSOR          Philips          SML001
                                                           2  ZIGBEE_HOME_AUTOMATION     OCCUPANCY_SENSOR
  49738  C24A  000D6FFFFE941C83  ROUTER        ONLINE      1  ZIGBEE_HOME_AUTOMATION     DIMMABLE_LIGHT             3A Smart Home DE  LXN60-DS27LX1.3
  50963  C713  001788010867CCA3  END_DEVICE    ONLINE      1  ZIGBEE_LIGHT_LINK          ZLL_ON_OFF_SENSOR          Philips          SML001
                                                           2  ZIGBEE_HOME_AUTOMATION     OCCUPANCY_SENSOR
  51856  CA90  086BD7FFFE3F8BB0  ROUTER        ONLINE      1  ZIGBEE_HOME_AUTOMATION     DIMMABLE_LIGHT             3A Smart Home DE  LXN56-DS27LX1.3
  54561  D521  00124B00226A0C09  END_DEVICE    ONLINE      1  ZIGBEE_HOME_AUTOMATION     IAS_ZONE                   eWeLink          MS01
  55137  D761  E29F0111E00BFDB0  ROUTER        ONLINE      1  ZIGBEE_LIGHT_LINK          ZLL_ON_OFF_LIGHT           3A Smart Home DE  LXN-4S27LX1.0
                                                           2  ZIGBEE_LIGHT_LINK          ZLL_ON_OFF_LIGHT
                                                           3  ZIGBEE_LIGHT_LINK          ZLL_ON_OFF_LIGHT
                                                           4  ZIGBEE_LIGHT_LINK          ZLL_ON_OFF_LIGHT
  56963  DE83  804B50FFFEB56A2E  ROUTER        ONLINE      1  ZIGBEE_HOME_AUTOMATION     ON_OFF_LIGHT               SONOFF           01MINIZB
                                                         242  ZIGBEE_GREEN_POWER         0061
  58316  E3CC  00124B0022EBC4F3  END_DEVICE    ONLINE      1  ZIGBEE_HOME_AUTOMATION     IAS_ZONE                   eWeLink          MS01
  60971  EE2B  00124B0022682A2E  END_DEVICE    UNKNOWN     1  ZIGBEE_HOME_AUTOMATION     IAS_ZONE                   eWeLink          MS01
  61014  EE56  804B50FFFEB722DE  ROUTER        ONLINE      1  ZIGBEE_HOME_AUTOMATION     ON_OFF_LIGHT               SONOFF           01MINIZB
                                                         242  ZIGBEE_GREEN_POWER         0061
  64007  FA07  086BD7FFFE5B8255  ROUTER        ONLINE      1  ZIGBEE_HOME_AUTOMATION     DIMMABLE_LIGHT             3A Smart Home DE  LXN56-DS27LX1.3
  64129  FA81  0017880108F4BCBC  END_DEVICE    ONLINE      1  ZIGBEE_LIGHT_LINK          ZLL_NON_COLOR_SCENE_CONTROLLER  Philips          RWL021
                                                           2  ZIGBEE_HOME_AUTOMATION     SIMPLE_SENSOR
  64575  FC3F  086BD7FFFE5AF068  ROUTER        ONLINE      1  ZIGBEE_HOME_AUTOMATION     DIMMABLE_LIGHT             3A Smart Home DE  LXN56-DS27LX1.3
  64587  FC4B  804B50FFFEB7201A  ROUTER        ONLINE      1  ZIGBEE_HOME_AUTOMATION     ON_OFF_LIGHT               SONOFF           01MINIZB
                                                         242  ZIGBEE_GREEN_POWER         0061

openhab> **zigbee node 55137**
IEEE Address     : E29F0111E00BFDB0
Network Address  : 55137
Node Descriptor  : NodeDescriptor [apsFlags=0, bufferSize=80, complexDescriptorAvailable=false, manufacturerCode=0000, logicalType=ROUTER, serverCapabilities=[], incomingTransferSize=80, outgoingTransferSize=80, userDescriptorAvailable=false, frequencyBands=[FREQ_2400_MHZ], macCapabilities=[FULL_FUNCTION_DEVICE, MAINS_POWER, RECEIVER_ON_WHEN_IDLE], extendedEndpointListAvailable=false, extendedSimpleDescriptorListAvailable=false, stackCompliance=20]
Power Descriptor : PowerDescriptor [currentPowerMode=RECEIVER_ON_IDLE, availablePowerSources=[MAINS], currentPowerSource=MAINS, powerLevel=FULL]
Associations     : []
Endpoints        :
            1    : Profile     ZIGBEE_LIGHT_LINK
                 : Device Type ZLL_ON_OFF_LIGHT
                   -> BASIC
                   -> IDENTIFY
                   -> GROUPS
                   -> SCENES
                   -> ON_OFF
                   -> LEVEL_CONTROL
                   -> 0x1000
                   <- BASIC
                   <- ON_OFF
            2    : Profile     ZIGBEE_LIGHT_LINK
                 : Device Type ZLL_ON_OFF_LIGHT
                   -> BASIC
                   -> IDENTIFY
                   -> GROUPS
                   -> SCENES
                   -> ON_OFF
                   -> LEVEL_CONTROL
                   -> 0x1000
                   <- BASIC
                   <- ON_OFF
            3    : Profile     ZIGBEE_LIGHT_LINK
                 : Device Type ZLL_ON_OFF_LIGHT
                   -> BASIC
                   -> IDENTIFY
                   -> GROUPS
                   -> SCENES
                   -> ON_OFF
                   -> LEVEL_CONTROL
                   -> 0x1000
                   <- BASIC
                   <- ON_OFF
            4    : Profile     ZIGBEE_LIGHT_LINK
                 : Device Type ZLL_ON_OFF_LIGHT
                   -> BASIC
                   -> IDENTIFY
                   -> GROUPS
                   -> SCENES
                   -> ON_OFF
                   -> LEVEL_CONTROL
                   -> 0x1000
                   <- BASIC
                   <- ON_OFF
Neighbors        :
Routes           :

openhab> zigbee bindtable  55137
Binding table for node 55137 [E29F0111E00BFDB0]
Src Address          | Dest Address         | Group | Mode    | Cluster
E29F0111E00BFDB0/1   | CCCCCCFFFEA3581D/1   |       | Address | 0008:LEVEL_CONTROL
E29F0111E00BFDB0/2   | CCCCCCFFFEA3581D/1   |       | Address | 0008:LEVEL_CONTROL
E29F0111E00BFDB0/3   | CCCCCCFFFEA3581D/1   |       | Address | 0008:LEVEL_CONTROL
E29F0111E00BFDB0/4   | CCCCCCFFFEA3581D/1   |       | Address | 0006:ON_OFF
E29F0111E00BFDB0/3   | CCCCCCFFFEA3581D/1   |       | Address | 0006:ON_OFF
E29F0111E00BFDB0/4   | CCCCCCFFFEA3581D/1   |       | Address | 0008:LEVEL_CONTROL
E29F0111E00BFDB0/2   | CCCCCCFFFEA3581D/1   |       | Address | 0006:ON_OFF
E29F0111E00BFDB0/1   | CCCCCCFFFEA3581D/1   |       | Address | 0006:ON_OFF

openhab> zigbee endpoint  55137/1
IEEE Address      : E29F0111E00BFDB0
Network Address   : 55137
Endpoint          : 1
Device Profile    : 0xC05E, ZIGBEE_LIGHT_LINK
Device Type       : 0x0000, ZLL_ON_OFF_LIGHT
Device Version    : 1
Input Clusters    : (Server)
   0000 Basic
     - APS Security disabled
        S       0 r-- UNSIGNED_8_BIT_INTEGER    ZCL Version                              Sat Jul 30 16:57:29 AEST 2022 3
        S       1 r-- UNSIGNED_8_BIT_INTEGER    Application Version                      Sat Jul 30 16:57:29 AEST 2022 1
        S       2 r-- UNSIGNED_8_BIT_INTEGER    Stack Version
        S       3 r-- UNSIGNED_8_BIT_INTEGER    HW Version                               Sat Jul 30 16:57:29 AEST 2022 1
        S       4 r-- CHARACTER_STRING          Manufacturer Name                        Sat Jul 30 16:57:29 AEST 2022 3A Smart Home DE
        S       5 r-- CHARACTER_STRING          Model Identifier                         Sat Jul 30 16:57:29 AEST 2022 LXN-4S27LX1.0
        S       6 r-- CHARACTER_STRING          Date Code                                Sat Jul 30 16:57:29 AEST 2022 20220512
        S       7 r-- ENUMERATION_8_BIT         Power Source
        S       8 r-- ENUMERATION_8_BIT         Generic Device Class
        S       9 r-- ENUMERATION_8_BIT         Generic Device Type
        S      10 r-- CHARACTER_STRING          Product Code
        S      11 r-- CHARACTER_STRING          Product URL
        S      16 rw- CHARACTER_STRING          Location Description
        S      17 rw- ENUMERATION_8_BIT         Physical Environment
        S      18 rw- BOOLEAN                   Device Enabled
        S      19 rw- BITMAP_8_BIT              Alarm Mask
        S      20 rw- BITMAP_8_BIT              Disable Local Config
        S   16384 r-- CHARACTER_STRING          SW Build ID                              Sat Jul 30 16:57:29 AEST 2022 1.2.0
   0003 Identify
     - APS Security disabled
        S       0 rw- UNSIGNED_16_BIT_INTEGER   Identify Time
   0004 Groups
     - APS Security disabled
        S       0 r-- BITMAP_8_BIT              Name Support
   0005 Scenes
     - APS Security disabled
        S       0 r-- UNSIGNED_8_BIT_INTEGER    Scene Count
        S       1 r-- UNSIGNED_8_BIT_INTEGER    Current Scene
        S       2 r-- UNSIGNED_16_BIT_INTEGER   Current Group
        S       3 r-- BOOLEAN                   Scene Valid
        S       4 r-- BITMAP_8_BIT              Name Support
        S       5 r-- IEEE_ADDRESS              Last Configured By
   0006 On/Off
     - APS Security disabled
        S       0 r-s BOOLEAN                   On Off                                   Sat Jul 30 17:08:28 AEST 2022 false
        S   16384 r-- BOOLEAN                   Global Scene Control
        S   16385 rw- UNSIGNED_16_BIT_INTEGER   On Time
        S   16386 rw- UNSIGNED_16_BIT_INTEGER   Off Wait Time
        S   16387 rw- ENUMERATION_8_BIT         Start Up On Off
   0008 Level Control
     - APS Security disabled
        S       0 r-s UNSIGNED_8_BIT_INTEGER    Current Level                            Sat Jul 30 17:07:10 AEST 2022 254
        S       1 r-- UNSIGNED_16_BIT_INTEGER   Remaining Time
        S       2 r-- UNSIGNED_8_BIT_INTEGER    Minimum Level
        S       3 r-- UNSIGNED_8_BIT_INTEGER    Maximum Level
        S       4 r-s UNSIGNED_16_BIT_INTEGER   Current Frequency
        S       5 r-- UNSIGNED_16_BIT_INTEGER   Minimum Frequency
        S       6 r-- UNSIGNED_16_BIT_INTEGER   Maximum Frequency
        S      15 r-- BITMAP_8_BIT              Options
        S      16 rw- UNSIGNED_16_BIT_INTEGER   On Off Transition Time
        S      17 rw- UNSIGNED_8_BIT_INTEGER    On Level
        S      18 rw- UNSIGNED_16_BIT_INTEGER   On Transition Time
        S      19 rw- UNSIGNED_16_BIT_INTEGER   Off Transition Time
        S      20 rw- UNSIGNED_16_BIT_INTEGER   Default Move Rate
        S   16384 rw- UNSIGNED_8_BIT_INTEGER    Start Up Current Level
   1000
     - APS Security disabled
Output Clusters   : (Client)
   0000 Basic
     - APS Security disabled
   0006 On/Off
     - APS Security disabled
Groups Supported  : 10
Groups Configured : 0

manually turning the light on , then running the following command

openhab> zigbee read 55137/1 0x0006 0x0
Reading endpoint D761/1, cluster server cluster On/Off (0006), attributes On Off
Response for cluster 0x0006
Attribute    0  On Off                                              BOOLEAN                         true

openhab> zigbee read 55137/1 0x0008 0x0
Reading endpoint D761/1, cluster server cluster Level Control (0008), attributes Current Level
Response for cluster 0x0008
Attribute    0  Current Level                                       UNSIGNED_8_BIT_INTEGER          196

manually turning the light off , then running the following command


openhab> zigbee read 55137/1 0x0006 0x0
Reading endpoint D761/1, cluster server cluster On/Off (0006), attributes On Off
Response for cluster 0x0006
Attribute    0  On Off                                              BOOLEAN                         false

openhab> zigbee read 55137/2 0x0008 0x0
Reading endpoint D761/2, cluster server cluster Level Control (0008), attributes Current Level
Response for cluster 0x0008
Attribute    0  Current Level                                       UNSIGNED_8_BIT_INTEGER          0

Because that’s not how OH works. A dimmer inherits the properties of an OnOf switch so you don’t need both. If the device supports a dimmer, then the binding provides a dimmer channel. This all looks correct, so \i’m not completely sure what the issue is at the moment?

No, but you shouldn’t need to.

I can’t see in the logs how you’re trying to control the device. Are you using a switch item or a dimmer item?

Thank you Chris,

The solution was to simply edit the Item and set it to type Switch, but I swear I had tried that before.

Thank you for your time, I have edited my question as it was not very well structured.

I learned alot about Zigbee while troubleshooting this. One thing I was never able to do was to manually “write” to a Profile/Cluster , do you know the correct syntax?

openhab> zigbee read 55137/1 0x0008 0x0
Reading endpoint D761/1, cluster server cluster Level Control (0008), attributes Current Level
Response for cluster 0x0008
Attribute    0  Current Level                                       UNSIGNED_8_BIT_INTEGER          76

openhab> zigbee read 55137/1 0x0006 0x0
Reading endpoint D761/1, cluster server cluster On/Off (0006), attributes On Off
Response for cluster 0x0006
Attribute    0  On Off                                              BOOLEAN                         false

openhab> zigbee write 55137/1 0x0006 0x0 1
Attribute value write error: READ_ONLY

openhab> zigbee write 55137/1 0x0008 0x0 1
Attribute value write error: READ_ONLY

The syntax you’re using is correct. The problem is that you are trying to change a read-only attribute so you get an error.

Ahh, yes, looking at the setup of the Cluster, I see 16,17,18,19,20 are rw-

0008 Level Control
     - APS Security disabled
        S       0 r-s UNSIGNED_8_BIT_INTEGER    Current Level                            Sat Jul 30 17:07:10 AEST 2022 254
        S       1 r-- UNSIGNED_16_BIT_INTEGER   Remaining Time
        S       2 r-- UNSIGNED_8_BIT_INTEGER    Minimum Level
        S       3 r-- UNSIGNED_8_BIT_INTEGER    Maximum Level
        S       4 r-s UNSIGNED_16_BIT_INTEGER   Current Frequency
        S       5 r-- UNSIGNED_16_BIT_INTEGER   Minimum Frequency
        S       6 r-- UNSIGNED_16_BIT_INTEGER   Maximum Frequency
        S      15 r-- BITMAP_8_BIT              Options
        S      16 rw- UNSIGNED_16_BIT_INTEGER   On Off Transition Time
        S      17 rw- UNSIGNED_8_BIT_INTEGER    On Level
        S      18 rw- UNSIGNED_16_BIT_INTEGER   On Transition Time
        S      19 rw- UNSIGNED_16_BIT_INTEGER   Off Transition Time
        S      20 rw- UNSIGNED_16_BIT_INTEGER   Default Move Rate
        S   16384 rw- UNSIGNED_8_BIT_INTEGER    Start Up Current Level

None of my attempts to read or write seem successfull.
Is this impossible to do from the command line or is just that I cannot get the syntax correct?


openhab> zigbee read 55137/1 0x0008 0x11
Reading endpoint D761/1, cluster server cluster Level Control (0008), attributes On Level
Response for cluster 0x0008
Attribute   17  Error UNSUPPORTED_ATTRIBUTE

openhab> zigbee write  55137/1 0x0008 0x11 0
Attribute value write error: UNSUPPORTED_ATTRIBUTE

openhab> zigbee write  55137/1 0x0008 0x11 0x0
Error: Exception during command execution (NumberFormatException): For input string: "0x0"
openhab>
openhab> zigbee write  55137/1 0x0008 0x11 "1"
Attribute value write error: UNSUPPORTED_ATTRIBUTE

But the commands are successful -:

This is a successful transaction, but the atribute you are trying to write to is a read only attribute. Therefore the device has responded to say that you cannot write to it.

Here again the device has responded to say that it doesn’t support this attribute - it’s the device that has reported this - the command was fine.

The CLI supports this just fine - no problem.

You have the right syntax.

If you want to find out what attributes are supported, you can try the attsupported command - although it will obviously depend on weather or not the device supports that command.

I understand. I tried the attsupported but …

openhab> zigbee attsupported  55137/1 0x0008
Failed to retrieve supported attributes

I will let this go now, a big thank you for your time and assistance

cheers, Ian