Lidl TS0505A Colour Bulb with Zigbee binding can't set color

I have read the available threads similar to my problem with this Zigbee bulb and tried the solutions, but the problem is a little different.
THREAD: brightness control
THREAD: color control.

Set up
Raspi 4 openHAB 3.3.0 Release via openhabian install.
Zigbee binding installed via addons.cfg
zigbee Things defined via home.cfg

Bridge zigbee:coordinator_ember:stick "Zigbee USB Stick" [zigbee_port="/dev/ttyACM1", zigbee_baud=115200, zigbee_flowcontrol=1, zigbee_childtimeout=864000, zigbee_concentrator=1, zigbee_meshupdateperiod=86400, zigbee_panid=47447, zigbee_extendedpanid="EB6242A6B1AFB3BE", zigbee_networkkey="5A 69 67 42 65 65 41 6C 6C 69 61 6E 63 65 30 39", zigbee_powermode=1, zigbee_txpower=8]
{
   Thing device 4c5bb3fffe73ba51 "Innr SP 222 1" [ zigbee_macaddress= "4C5BB3FFFE73BA51"] 
   Thing device f4b3b1fffe42365d "Innr SP 222 2" [ zigbee_macaddress= "f4b3b1fffe42365d"] 
   Thing device 00158d0001d0c5bd "Innr BY 256 1" [ zigbee_macaddress= "00158d0001d0c5bd"] 
   Thing device 00158d0001d0f07d "Innr BY 256 2" [ zigbee_macaddress= "00158d0001d0f07d"] 
   Thing device 842E14FFFE02C3F8 "Lidl TS0505A 1" [ zigbee_macaddress= "842E14FFFE02C3F8"]
   Thing device 588e81fffed402f7 "Lidl TS0505A 2" [ zigbee_macaddress= "588e81fffed402f7"]
}

The problem I have is with the two Lidl TS050A bulbs. Their things look to define fine:

Their items are defined in .items file and this all links correctly.

Dimmer    LidlTS0505A_2Colortemperature              "Lidl 2 Color temperature"                      (gPrototype)                          {channel="zigbee:device:stick:588e81fffed402f7:588E81FFFED402F7_1_colortemperature"}
Color     LidlTS0505A_2Color                         "Lidl 2 Color"                                  (gPrototype)                          {channel="zigbee:device:stick:588e81fffed402f7:588E81FFFED402F7_1_color"}
Switch    LidlTS0505A_2Toggle                        "Lidl 2 Switch"                                 (gPrototype)                          {channel="zigbee:device:stick:588e81fffed402f7:588E81FFFED402F7_1_color"}
Dimmer    LidlTS0505A_2ColorBrightness               "Lidl 2 Color Brightness"                       (gPrototype)                          {channel="zigbee:device:stick:588e81fffed402f7:588E81FFFED402F7_1_color"}

I get the color temperature channel and am able to link an item that works !

color temp channel
I get the color channel and am able to link it to three item types: Color, Dimmer and Switch

color channel
I have set the Color Channel Details to XY Cammands
The Switch and Dimmer item works just fine, but the color picker doesn’t


The Brightness control works fine but neither the Hue or Saturation control effects the bulb.
Any help apricated.

I have even tried this with a similar setup that doesn’t use file configuration .items or .things files, but I get the same results.
To dig in a bit deeper I have used the openhab console with the zigbee commands.

openhab> zigbee nodes

Total known nodes in network: 8
Network  Addr  IEEE Address      Logical Type  State      EP   Profile                    Device Type                Manufacturer     Model
      0  0000  E0798DFFFEA831F1  COORDINATOR   ONLINE
  15482  3C7A  00158D0001D0F07D  ROUTER        ONLINE      1  ZIGBEE_HOME_AUTOMATION     DIMMABLE_LIGHT             innr             BY 265
                                                         242  ZIGBEE_GREEN_POWER         0061
  26030  65AE  588E81FFFED402F7  ROUTER        ONLINE      1  ZIGBEE_HOME_AUTOMATION     EXTENDED_COLOR_LIGHT       _TZ3000_dbou1ap4  TS0505A
                                                         242  ZIGBEE_GREEN_POWER         0061
  26288  66B0  842E14FFFE02C3F8  ROUTER        ONLINE      1  ZIGBEE_HOME_AUTOMATION     EXTENDED_COLOR_LIGHT       _TZ3000_dbou1ap4  TS0505A
                                                         242  ZIGBEE_GREEN_POWER         0061
  54908  D67C  F4B3B1FFFE42365D  ROUTER        ONLINE      1  ZIGBEE_HOME_AUTOMATION     ON_OFF_PLUG_IN_UNIT        innr             SP 222
                                                         242  ZIGBEE_GREEN_POWER         0061
  59508  E874  001C550000084201  UNKNOWN       UNKNOWN
  60104  EAC8  4C5BB3FFFE73BA51  ROUTER        ONLINE      1  ZIGBEE_HOME_AUTOMATION     ON_OFF_PLUG_IN_UNIT        innr             SP 222
                                                         242  ZIGBEE_GREEN_POWER         0061
  62158  F2CE  00158D0001D0C5BD  ROUTER        UNKNOWN     1  ZIGBEE_HOME_AUTOMATION     DIMMABLE_LIGHT             innr             BY 265
                                                         242  ZIGBEE_GREEN_POWER         0061

openhab> zigbee fingerprint 0x65AE
output appears to agree to one included in the first thread referenced

|>| Node Descriptor
| |> Logical Type               ROUTER
| |> MAC Capabilities           [FULL_FUNCTION_DEVICE, MAINS_POWER, RECEIVER_ON_WHEN_IDLE]
| |> Stack Compliance           22
| |> Server Capabilities        []
| |> Buffer Size                82
| |> Incoming Transfer Size     82
| |> Outgoing Transfer Size     82
|
|>| Power Descriptor
| |> Available Power Sources    [MAINS]
| |> Current Power Source       MAINS
| |> Current Power Mode         RECEIVER_ON_IDLE
| |> Power Level                FULL
|
|>| ZDO
| |> ManagementBindRequest      SUCCESS
| |> IeeeAddressRequest         SUCCESS
| |> ManagementLqiRequest       SUCCESS
| |> ManagementRoutingRequest   SUCCESS
|
|>| Basic Information
| |> Generic Device Class
| |> Generic Device Type
| |> Manufacturer Name          _TZ3000_dbou1ap4
| |> Model Indentifier          TS0505A
| |> Product Code
| |> Product URL
| |> Date Code
| |> Application Version        80
| |> Software Build ID
| |> Hardware Version           1
| |> Zcl Version                3
| |> Stack Version              0
| |
| |>| Endpoint 1
| | |> Profile                  0104  ZIGBEE_HOME_AUTOMATION
| | |> Device Type              010D  EXTENDED_COLOR_LIGHT
| | |> Device Version           1
| | |
| | |>| Input Clusters
| | | |
| | | |>| 
| | | | |> Type                 Server [Input]
| | | | |> Manufacturer Spec.   No
| | | | |
| | | | |>| Commands Generated
| | | | | |> FAILURE
| | | | |
| | | | |>| Commands Received
| | | | |> FAILURE
| | | | |
| | | | |>| Attributes Supported
| | | | | |> 0000  ZCL Version                               >> UNSIGNED_8_BIT_INTEGER          3
| | | | | |> 0001  Application Version                       >> UNSIGNED_8_BIT_INTEGER          80
| | | | | |> 0002  Stack Version                             >> UNSIGNED_8_BIT_INTEGER          0
| | | | | |> 0003  HW Version                                >> UNSIGNED_8_BIT_INTEGER          1
| | | | | |> 0004  Manufacturer Name                         >> CHARACTER_STRING                _TZ3000_dbou1ap4
| | | | | |> 0005  Model Identifier                          >> CHARACTER_STRING                TS0505A
| | | | | |> 0006  Date Code                                 >> CHARACTER_STRING
| | | | | |> 0007  Power Source                              >> ENUMERATION_8_BIT               1
| | | | | |> FFDE                                            >> UNSIGNED_8_BIT_INTEGER          11
| | | | | |> FFFD  Cluster Revision                          >> UNSIGNED_16_BIT_INTEGER         2
| | | | | |> FFFE  Attribute Reporting Status                >> ENUMERATION_16_BIT              0
| | | |
| | | |>| Cluster 0003 Identify
| | | | |> Type                 Server [Input]
| | | | |> Manufacturer Spec.   No
| | | | |> Unsupported locally
| | | |
| | | |>| Cluster 0004 Groups
| | | | |> Type                 Server [Input]
| | | | |> Manufacturer Spec.   No
| | | | |> Unsupported locally
| | | |
| | | |>| Cluster 0005 Scenes
| | | | |> Type                 Server [Input]
| | | | |> Manufacturer Spec.   No
| | | | |
| | | | |>| Commands Generated
| | | | | |> FAILURE
| | | | |
| | | | |>| Commands Received
| | | | |> FAILURE
| | | | |
| | | | |>| Attributes Supported
| | | | | |> 0000  Scene Count                               >> UNSIGNED_8_BIT_INTEGER          0
| | | | | |> 0001  Current Scene                             >> UNSIGNED_8_BIT_INTEGER          0
| | | | | |> 0002  Current Group                             >> UNSIGNED_16_BIT_INTEGER         0
| | | | | |> 0003  Scene Valid                               >> BOOLEAN                         false
| | | | | |> 0004  Name Support                              >> BITMAP_8_BIT                    0
| | | | | |> FFFD  Cluster Revision                          >> UNSIGNED_16_BIT_INTEGER         2
| | | |
| | | |>| Cluster 0006 On/Off
| | | | |> Type                 Server [Input]
| | | | |> Manufacturer Spec.   No
| | | | |
| | | | |>| Commands Generated
| | | | | |> FAILURE
| | | | |
| | | | |>| Commands Received
| | | | |> FAILURE
| | | | |
| | | | |>| Attributes Supported
| | | | | |> 0000  On Off                                    >> BOOLEAN                         true
| | | | | |> FFFD  Cluster Revision                          >> UNSIGNED_16_BIT_INTEGER         2
| | | |
| | | |>| Cluster 0008 Level Control
| | | | |> Type                 Server [Input]
| | | | |> Manufacturer Spec.   No
| | | | |
| | | | |>| Commands Generated
| | | | | |> FAILURE
| | | | |
| | | | |>| Commands Received
| | | | |> FAILURE
| | | | |
| | | | |>| Attributes Supported
| | | | | |> 0000  Current Level                             >> UNSIGNED_8_BIT_INTEGER          254
| | | | | |> 000F  Options                                   >> BITMAP_8_BIT                    0
| | | | | |> FFFD  Cluster Revision                          >> UNSIGNED_16_BIT_INTEGER         1
| | | |
| | | |>| Cluster 0300 Color Control
| | | | |> Type                 Server [Input]
| | | | |> Manufacturer Spec.   No
| | | | |> Unsupported locally
| | | |
| | | |>| Cluster 1000
| | | | |> Type                 Server [Input]
| | | | |> Manufacturer Spec.   No
| | | | |> Unsupported locally
| | |
| | |>| Output Clusters
| | | |
| | | |>| Cluster 000A Time
| | | | |> Type                 Client [Output]
| | | | |> Manufacturer Spec.   No
| | | | |> Unsupported locally
| | | |
| | | |>| Cluster 0019 Ota Upgrade
| | | | |> Type                 Client [Output]
| | | | |> Manufacturer Spec.   No
| | | | |
| | | | |>| Commands Generated
| | | | | |> FAILURE
| | | | |
| | | | |>| Commands Received
| | | | |> FAILURE
| | | | |
| | | | |>| Attributes Supported
| | | | | |> 0000  Upgrade Server ID                         >> IEEE_ADDRESS                    FFFFFFFFFFFFFFFF
| | | | | |> 0001  File Offset                               >> UNSIGNED_32_BIT_INTEGER         -1
| | | | | |> 0006  Image Upgrade Status                      >> ENUMERATION_8_BIT               0
| | | | | |> FFFD  Cluster Revision                          >> UNSIGNED_16_BIT_INTEGER         3
| |
| |>| Endpoint 242
| | |> Profile                  A1E0  ZIGBEE_GREEN_POWER
| | |> Device Type              0061
| | |> Device Version           0

openhab> zigbee node 0x65AE
appears to list the COLOR_CONTROL

IEEE Address     : 588E81FFFED402F7
Network Address  : 26030
Node Descriptor  : NodeDescriptor [apsFlags=0, bufferSize=82, complexDescriptorAvailable=false, manufacturerCode=1002, logicalType=ROUTER, serverCapabilities=[], incomingTransferSize=82, outgoingTransferSize=82, userDescriptorAvailable=false, frequencyBands=[FREQ_2400_MHZ], macCapabilities=[FULL_FUNCTION_DEVICE, MAINS_POWER, RECEIVER_ON_WHEN_IDLE], extendedEndpointListAvailable=false, extendedSimpleDescriptorListAvailable=false, stackCompliance=22]
Power Descriptor : PowerDescriptor [currentPowerMode=RECEIVER_ON_IDLE, availablePowerSources=[MAINS], currentPowerSource=MAINS, powerLevel=FULL]
Associations     : []
Endpoints        :
            1    : Profile     ZIGBEE_HOME_AUTOMATION
                 : Device Type EXTENDED_COLOR_LIGHT
                   -> BASIC
                   -> IDENTIFY
                   -> GROUPS
                   -> SCENES
                   -> ON_OFF
                   -> LEVEL_CONTROL
                   -> COLOR_CONTROL
                   -> 0x1000
                   <- TIME
                   <- OTA_UPGRADE
            242  : Profile     ZIGBEE_GREEN_POWER
                 : Device Type 0061
                   <- GREEN_POWER
Neighbors        :
Routes           :

openhab> zigbee read 26030/1 0x0300
These values change with values set by the color picker however it didn’t appear to be very deterministic.
I was unable to figure out the console syntax to send Zigbee commands, if anyone knows, that could perhaps help with debugging.

Reading endpoint 65AE/1, cluster server cluster Color Control (0300), attributes Current Hue, Current Saturation, Remaining Time, Current X, Current Y, Color Temperature, Color Mode, Cluster Revision
Response for cluster 0x0300
Attribute    0  Current Hue                                         UNSIGNED_8_BIT_INTEGER          152
Attribute    1  Current Saturation                                  UNSIGNED_8_BIT_INTEGER          254
Attribute    2  Remaining Time                                      UNSIGNED_16_BIT_INTEGER         0
Attribute    3  Current X                                           UNSIGNED_16_BIT_INTEGER         45874
Attribute    4  Current Y                                           UNSIGNED_16_BIT_INTEGER         19660
Attribute    7  Color Temperature                                   UNSIGNED_16_BIT_INTEGER         153
Attribute    8  Color Mode                                          ENUMERATION_8_BIT               2
Attribute 65533  Cluster Revision                                    UNSIGNED_16_BIT_INTEGER         2

I turned on debug

log:set debug org.openhab.binding.zigbee
log:set debug com.zsmartsystems.zigbee
log:set info com.zsmartsystems.zigbee.dongle.ember.internal.ash

debug log in the file below
debug log.txt (146.7 KB)

Thanks for the support

Looking at the log, the binding is using the HSB commands - not the XY commands. So it seems that this is possibly not set?

You cna use the zigbee write command to write to an attribute.

1 Like

Thanks Chris.

Okay, so this was the hint to help further debugging: What I have found is that if I define the Lidl TS0505A Thing by configuration file it is not possible to change the color control Method to XY in the OH3 GUI. Don’t know why I didn’t think of that before.
The GUI doesn’t complain it just doesn’t give the “Thing updated” message.
The logs I collected above are from a file configured Thing and although I said ‘I have set the Color Channel Details to XY Commands’ apparently it silently fails.

so I tried again without configuration files and was able to use the GUI to set the Color Channel Details to XY Commands. (though I had done this before but couldn’t have). It worked; thanks for the pointer.

Is it possible to define the Thing or modify the color channel to the XY control method via a config file?

Something like:

Thing device 588e81fffed402f7 "Lidl TS0505A 2" [ zigbee_macaddress = "588e81fffed402f7", ColorMode = "XY"]

Yep tried that (see below) but bulb remained stubbornly unchanged. Maybe I’m missing something.

openhab> zigbee read 57672/1 0x0300
Reading endpoint E148/1, cluster server cluster Color Control (0300), attributes Current Hue, Current Saturation, Remaining Time, Current X, Current Y, Color Temperature, Color Mode, Cluster Revision
Response for cluster 0x0300
Attribute    0  Current Hue                                         UNSIGNED_8_BIT_INTEGER          0
Attribute    1  Current Saturation                                  UNSIGNED_8_BIT_INTEGER          254
Attribute    2  Remaining Time                                      UNSIGNED_16_BIT_INTEGER         0
Attribute    3  Current X                                           UNSIGNED_16_BIT_INTEGER         13934
Attribute    4  Current Y                                           UNSIGNED_16_BIT_INTEGER         18703
Attribute    7  Color Temperature                                   UNSIGNED_16_BIT_INTEGER         500
Attribute    8  Color Mode                                          ENUMERATION_8_BIT               1
Attribute 65533  Cluster Revision                                    UNSIGNED_16_BIT_INTEGER         2

openhab> zigbee write 57672/1 0x0300 3 13934
Attribute value write success.

openhab> zigbee write 57672/1 0x0300 4 18703
Attribute value write success.

openhab> zigbee read 57672/1 0x0300
Reading endpoint E148/1, cluster server cluster Color Control (0300), attributes Current Hue, Current Saturation, Remaining Time, Current X, Current Y, Color Temperature, Color Mode, Cluster Revision
Response for cluster 0x0300
Attribute    0  Current Hue                                         UNSIGNED_8_BIT_INTEGER          0
Attribute    1  Current Saturation                                  UNSIGNED_8_BIT_INTEGER          254
Attribute    2  Remaining Time                                      UNSIGNED_16_BIT_INTEGER         0
Attribute    3  Current X                                           UNSIGNED_16_BIT_INTEGER         13934
Attribute    4  Current Y                                           UNSIGNED_16_BIT_INTEGER         18703
Attribute    7  Color Temperature                                   UNSIGNED_16_BIT_INTEGER         500
Attribute    8  Color Mode                                          ENUMERATION_8_BIT               1
Attribute 65533  Cluster Revision                                    UNSIGNED_16_BIT_INTEGER         2

Thanks for your help.

What were you expecting to change? You wrote the same value as was already set, and then read it back and it was the same - that looks correct to me. The writes were successful though.

eg -:

Attribute    3  Current X                                           UNSIGNED_16_BIT_INTEGER         **13934**
zigbee write 57672/1 0x0300 3 **13934**
Attribute    3  Current X                                           UNSIGNED_16_BIT_INTEGER         **13934**

Sorry Chris, I forgot to say, I moved the light colour via the OH3 GUI colour picker to a red colour right before sending the write commands. The values I sent should have turned the light blue.

Ok, but the write was still successful, so it is working ok…