[RELEASE] Local tuya RGBW Bulb Driver

Hello, by popular demand I have finally gone and bought myself a tuya wifi Bulb (Ledvance) and implemented a driver for local tuya integration to Hubitat. The driver is able to control on/off, color temperature, dim level, and full RGB settings. Bugs might exist, but it seems to work at my end.

If you need a tip on how to get hold of the secret key for Ledvance products see this blog post on the home-assistant forum: LEDVANCE integration - this is how to do it as per 08/22 - Configuration - Home Assistant Community

6 Likes

This is great - I'm happy to see this driver get some love.

The four floor lamps I have are a little more complicated as they use the base64 encoding for their color value, and they also send the payload on dps 51. I see in your new driver you have more than just dps 20 for on off... I see 21-25 I think it was.

Could you possibly add a customizable field for us to pick a dps value that sends any string we want for total customization? Right now I'm using node-red to inject dps 51 with a specific string of characters that enables the floor lamp to cycle colors from top to bottom in a specific sequence I want. I can obtain that string from a python command and do not expect that functionality in your driver - I just wanted to be able to send custom strings to my devices on a custom dps value.

dps value 20 still turns my lamps on and off - but I'd like to set them to different values on dps 51. There may be more dps values that accept information so I figured if you could add a field for 51, it might be better for future proofing the driver to have a blank field that you could ask for/specify a value (and I could enter 51) in order to send custom strings to my lamp with this driver...

Is that possible?

Hi Erik,

Thanks for the suggestion. Feature added in the latest update to the driver. The added command is SendCustomDataToDevice(data, endpoint).

Hi,

Background: New to Hubitat, been using HA for a couple of years. Used to be a dev (30 years ago) not really now!

I tried this driver with a couple of Tuya RGBW Wifi bulbs and had no luck. Are you open to looking at the logs and seeing if its an easy fix?

Would be great to get them working locally on Hubitat.
Thanks
Paul

Yes, sure please feel free to share the logs and I will see what I can do.

So not sure what logs are best. Is this what you need?

Thanks
Paul


dev:142023-05-05 15:49:38.872debugSending message to 192.168.1.36:6668 msg: 000055AA0000000000000007000000B3332E31623963623835636336383839353435395A4D78376147717438727961357557354B4861425235705242726A5A576B704867535146417378363855435163656C66314E44325745624B43484B3351386E6B544A693237624849572F53745136437376437768523232376D556F59566C6B2B44426F485878545164476543366F4641695052787739356B784A52757A73735259774651683578377A766A315A71495452535A794B773D3DF53E77C10000AA55
dev:142023-05-05 15:49:38.869debugHEX crc: f53e77c1 : 4
dev:142023-05-05 15:49:38.868debug195
dev:142023-05-05 15:49:38.762debugPrefix: 000055AA00000000000000
dev:142023-05-05 15:49:38.759debug179
dev:142023-05-05 15:49:38.756debug332E31623963623835636336383839353435395A4D78376147717438727961357557354B4861425235705242726A5A576B704867535146417378363855435163656C66314E44325745624B43484B3351386E6B544A693237624849572F53745136437376437768523232376D556F59566C6B2B44426F485878545164476543366F4641695052787739356B784A52757A73735259774651683578377A766A315A71495452535A794B773D3D000000000000AA55
dev:142023-05-05 15:49:38.753debugpayload after=3.1b9cb85cc68895459ZMx7aGqt8rya5uW5KHaBR5pRBrjZWkpHgSQFAsx68UCQcelf1ND2WEbKCHK3Q8nkTJi27bHIW/StQ6CsvCwhR227mUoYVlk+DBoHXxTQdGeC6oFAiPRxw95kxJRuzssRYwFQh5x7zvj1ZqITRSZyKw==
dev:142023-05-05 15:49:38.749debugpreMd5Stringdata=ZMx7aGqt8rya5uW5KHaBR5pRBrjZWkpHgSQFAsx68UCQcelf1ND2WEbKCHK3Q8nkTJi27bHIW/StQ6CsvCwhR227mUoYVlk+DBoHXxTQdGeC6oFAiPRxw95kxJRuzssRYwFQh5x7zvj1ZqITRSZyKw==||lpv=3.1||398d5cf37b3f335f
dev:142023-05-05 15:49:38.746debugEncrypted payload: 5A4D78376147717438727961357557354B4861425235705242726A5A576B704867535146417378363855435163656C66314E44325745624B43484B3351386E6B544A693237624849572F53745136437376437768523232376D556F59566C6B2B44426F485878545164476543366F4641695052787739356B784A52757A73735259774651683578377A766A315A71495452535A794B773D3D
dev:142023-05-05 15:49:38.742debugpayload before={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683298178","dps":{"20":true}}
dev:142023-05-05 15:49:38.740debug31
dev:142023-05-05 15:43:50.103debugSocket status message received:send error: Connection reset by peer (Write failed)
dev:142023-05-05 15:43:49.166debugSending message to 192.168.1.36:6668 msg: 000055AA0000000000000007000000B3332E31626330633034653066326335323937315A4D78376147717438727961357557354B4861425235705242726A5A576B704867535146417378363855435163656C66314E44325745624B43484B3351386E6B544A693237624849572F537451364373764377685235444A30724369777045574735546D534E2B5271376543366F4641695052787739356B784A52757A73735259774651683578377A766A315A71495452535A794B773D3D0F7802BB0000AA55
dev:142023-05-05 15:43:49.164debugHEX crc: f7802bb : 3.5
dev:142023-05-05 15:43:49.163debug195
dev:142023-05-05 15:43:49.062debugPrefix: 000055AA00000000000000
dev:142023-05-05 15:43:49.060debug179
dev:142023-05-05 15:43:49.058debug332E31626330633034653066326335323937315A4D78376147717438727961357557354B4861425235705242726A5A576B704867535146417378363855435163656C66314E44325745624B43484B3351386E6B544A693237624849572F537451364373764377685235444A30724369777045574735546D534E2B5271376543366F4641695052787739356B784A52757A73735259774651683578377A766A315A71495452535A794B773D3D000000000000AA55
dev:142023-05-05 15:43:49.055debugpayload after=3.1bc0c04e0f2c52971ZMx7aGqt8rya5uW5KHaBR5pRBrjZWkpHgSQFAsx68UCQcelf1ND2WEbKCHK3Q8nkTJi27bHIW/StQ6CsvCwhR5DJ0rCiwpEWG5TmSN+Rq7eC6oFAiPRxw95kxJRuzssRYwFQh5x7zvj1ZqITRSZyKw==
dev:142023-05-05 15:43:49.053debugpreMd5Stringdata=ZMx7aGqt8rya5uW5KHaBR5pRBrjZWkpHgSQFAsx68UCQcelf1ND2WEbKCHK3Q8nkTJi27bHIW/StQ6CsvCwhR5DJ0rCiwpEWG5TmSN+Rq7eC6oFAiPRxw95kxJRuzssRYwFQh5x7zvj1ZqITRSZyKw==||lpv=3.1||398d5cf37b3f335f
dev:142023-05-05 15:43:49.051debugEncrypted payload: 5A4D78376147717438727961357557354B4861425235705242726A5A576B704867535146417378363855435163656C66314E44325745624B43484B3351386E6B544A693237624849572F537451364373764377685235444A30724369777045574735546D534E2B5271376543366F4641695052787739356B784A52757A73735259774651683578377A766A315A71495452535A794B773D3D
dev:142023-05-05 15:43:49.047debugpayload before={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683297829","dps":{"20":true}}
dev:142023-05-05 15:43:49.046debug31
dev:142023-05-05 15:41:34.777debugSending message to 192.168.1.36:6668 msg: 000055AA0000000000000007000000B3332E31363136306435653531613466326231665A4D78376147717438727961357557354B4861425235705242726A5A576B704867535146417378363855435163656C66314E44325745624B43484B3351386E6B544A693237624849572F5374513643737643776852784148476D6779536E374770704135544479457A696943366F4641695052787739356B784A52757A73735259774651683578377A766A315A71495452535A794B773D3D28EAAD260000AA55
dev:142023-05-05 15:41:34.775debugHEX crc: 28eaad26 : 4
dev:142023-05-05 15:41:34.773debug195
dev:142023-05-05 15:41:34.634debugPrefix: 000055AA00000000000000
dev:142023-05-05 15:41:34.632debug179
dev:142023-05-05 15:41:34.630debug332E31363136306435653531613466326231665A4D78376147717438727961357557354B4861425235705242726A5A576B704867535146417378363855435163656C66314E44325745624B43484B3351386E6B544A693237624849572F5374513643737643776852784148476D6779536E374770704135544479457A696943366F4641695052787739356B784A52757A73735259774651683578377A766A315A71495452535A794B773D3D000000000000AA55
dev:142023-05-05 15:41:34.627debugpayload after=3.16160d5e51a4f2b1fZMx7aGqt8rya5uW5KHaBR5pRBrjZWkpHgSQFAsx68UCQcelf1ND2WEbKCHK3Q8nkTJi27bHIW/StQ6CsvCwhRxAHGmgySn7GppA5TDyEziiC6oFAiPRxw95kxJRuzssRYwFQh5x7zvj1ZqITRSZyKw==
dev:142023-05-05 15:41:34.625debugpreMd5Stringdata=ZMx7aGqt8rya5uW5KHaBR5pRBrjZWkpHgSQFAsx68UCQcelf1ND2WEbKCHK3Q8nkTJi27bHIW/StQ6CsvCwhRxAHGmgySn7GppA5TDyEziiC6oFAiPRxw95kxJRuzssRYwFQh5x7zvj1ZqITRSZyKw==||lpv=3.1||398d5cf37b3f335f
dev:142023-05-05 15:41:34.623debugEncrypted payload: 5A4D78376147717438727961357557354B4861425235705242726A5A576B704867535146417378363855435163656C66314E44325745624B43484B3351386E6B544A693237624849572F5374513643737643776852784148476D6779536E374770704135544479457A696943366F4641695052787739356B784A52757A73735259774651683578377A766A315A71495452535A794B773D3D
dev:142023-05-05 15:41:34.615debugpayload before={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683297694","dps":{"20":true}}
dev:142023-05-05 15:41:34.614debug31

Also, here is the Get Device Sepcification Attribute details from the Tuya IOT site.

{
  "result": {
    "category": "dj",
    "functions": [
      {
        "code": "switch_led",
        "dp_id": 20,
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "work_mode",
        "dp_id": 21,
        "type": "Enum",
        "values": "{\"range\":[\"white\",\"colour\",\"scene\",\"music\"]}"
      },
      {
        "code": "bright_value_v2",
        "dp_id": 22,
        "type": "Integer",
        "values": "{\"min\":10,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}"
      },
      {
        "code": "temp_value_v2",
        "dp_id": 23,
        "type": "Integer",
        "values": "{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}"
      },
      {
        "code": "colour_data_v2",
        "dp_id": 24,
        "type": "Json",
        "values": "{\"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}}"
      },
      {
        "code": "scene_data_v2",
        "dp_id": 25,
        "type": "Json",
        "values": "{\"scene_num\":{\"min\":1,\"scale\":0,\"max\":8,\"step\":1},\"scene_units\": {\"unit_change_mode\":{\"range\":[\"static\",\"jump\",\"gradient\"]},\"unit_switch_duration\":{\"min\":0,\"scale\":0,\"max\":100,\"step\":1},\"unit_gradient_duration\":{\"min\":0,\"scale\":0,\"max\":100,\"step\":1},\"bright\":{\"min\":0,\"scale\":0,\"max\":1000,\"step\":1},\"temperature\":{\"min\":0,\"scale\":0,\"max\":1000,\"step\":1},\"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}}}"
      },
      {
        "code": "countdown_1",
        "dp_id": 26,
        "type": "Integer",
        "values": "{\"unit\":\"\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}"
      },
      {
        "code": "music_data",
        "dp_id": 27,
        "type": "Json",
        "values": "{\"change_mode\":{\"range\":[\"direct\",\"gradient\"]}, \"bright\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}, \"temperature\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}, \"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":255,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":255,\"step\":1}}"
      },
      {
        "code": "control_data",
        "dp_id": 28,
        "type": "Json",
        "values": "{\"change_mode\":{\"range\":[\"direct\",\"gradient\"]}, \"bright\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}, \"temperature\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}, \"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":255,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":255,\"step\":1}}"
      }
    ],
    "status": [
      {
        "code": "switch_led",
        "dp_id": 20,
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "work_mode",
        "dp_id": 21,
        "type": "Enum",
        "values": "{\"range\":[\"white\",\"colour\",\"scene\",\"music\"]}"
      },
      {
        "code": "bright_value_v2",
        "dp_id": 22,
        "type": "Integer",
        "values": "{\"min\":10,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}"
      },
      {
        "code": "temp_value_v2",
        "dp_id": 23,
        "type": "Integer",
        "values": "{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}"
      },
      {
        "code": "colour_data_v2",
        "dp_id": 24,
        "type": "Json",
        "values": "{\"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}}"
      },
      {
        "code": "scene_data_v2",
        "dp_id": 25,
        "type": "Json",
        "values": "{\"scene_num\":{\"min\":1,\"scale\":0,\"max\":8,\"step\":1},\"scene_units\": {\"unit_change_mode\":{\"range\":[\"static\",\"jump\",\"gradient\"]},\"unit_switch_duration\":{\"min\":0,\"scale\":0,\"max\":100,\"step\":1},\"unit_gradient_duration\":{\"min\":0,\"scale\":0,\"max\":100,\"step\":1},\"bright\":{\"min\":0,\"scale\":0,\"max\":1000,\"step\":1},\"temperature\":{\"min\":0,\"scale\":0,\"max\":1000,\"step\":1},\"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}}}"
      },
      {
        "code": "countdown_1",
        "dp_id": 26,
        "type": "Integer",
        "values": "{\"unit\":\"\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}"
      },
      {
        "code": "music_data",
        "dp_id": 27,
        "type": "Json",
        "values": "{\"change_mode\":{\"range\":[\"direct\",\"gradient\"]}, \"bright\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}, \"temperature\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}, \"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":255,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":255,\"step\":1}}"
      },
      {
        "code": "control_data",
        "dp_id": 28,
        "type": "Json",
        "values": "{\"change_mode\":{\"range\":[\"direct\",\"gradient\"]}, \"bright\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}, \"temperature\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":1000,\"step\":1}, \"h\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":360,\"step\":1},\"s\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":255,\"step\":1},\"v\":{\"min\":0,\"scale\":0,\"unit\":\"\",\"max\":255,\"step\":1}}"
      }
    ]
  },
  "success": true,
  "t": 1683373196918,
  "tid": "b9c1472eec0211ed9b213e97a7ff9260"
}

Hi Paul,

It looks like you are using protocol version 3.1, is this by intention? I haven't tested with 3.1 version bulbs, only 3.3 as these are the only one I could get hold of.

I suspect the bulb might expect 3.3 version protocol as it shuts down the socket connection after you send the message to it:

dev:142023-05-05 15:43:50.103debugSocket status message received:send error: Connection reset by peer (Write failed)
dev:142023-05-05 15:43:49.166debugSending message to 192.168.1.36:6668 msg: 000055AA0000000000000007000000B3332E31626330633034653066326335323937315A4D78376147717438727961357557354B4861425235705242726A5A576B704867535146417378363855435163656C66314E44325745624B43484B3351386E6B544A693237624849572F537451364373764377685235444A30724369777045574735546D534E2B5271376543366F4641695052787739356B784A52757A73735259774651683578377A766A315A71495452535A794B773D3D0F7802BB0000AA55

My suggestion to try selecting protocol 3.3 instead:

Potentially you might need to do a firmware update to protocol 3.3 on the bulb itself via the "factory" shipped tuya app, e.g. Smartlife, LDV Wifi, tuya Smart, Jinvoo Smart, etc.

That's really wierd, I was trying all sorts of things, 3.0, 3.3 and I had no luck. Now I change back to 3.3 and it works! Sorry for the hassle and thanks for the driver!

So it's still pretty unreliable.

I'm trying to control a number of lights on one room using a Zigbee scene switch. THis is the log from one of the Tuya Wifi bulbs

dev:142023-05-06 14:11:18.164errorjava.lang.ArrayIndexOutOfBoundsException: Index 48 out of bounds for length 28 on line 230 (method parse)
dev:142023-05-06 14:11:03.760errorjava.lang.ArrayIndexOutOfBoundsException: Index 48 out of bounds for length 28 on line 230 (method parse)
dev:142023-05-06 14:10:42.482errorjava.lang.ArrayIndexOutOfBoundsException: Index 48 out of bounds for length 28 on line 230 (method parse)
dev:142023-05-06 14:10:24.662errorjava.lang.ArrayIndexOutOfBoundsException: Index 48 out of bounds for length 28 on line 230 (method parse)
dev:142023-05-06 14:10:01.011errorjava.lang.ArrayIndexOutOfBoundsException: Index 48 out of bounds for length 28 on line 230 (method parse)
dev:142023-05-06 14:09:39.520errorjava.lang.ArrayIndexOutOfBoundsException: Index 48 out of bounds for length 28 on line 230 (method parse)
dev:142023-05-06 14:09:25.946errorjava.lang.ArrayIndexOutOfBoundsException: Index 48 out of bounds for length 28 on line 230 (method parse)
dev:142023-05-06 14:05:47.262errorjava.lang.ArrayIndexOutOfBoundsException: Index 48 out of bounds for length 28 on line 230 (method parse)
dev:142023-05-06 14:05:29.572errorjava.lang.ArrayIndexOutOfBoundsException: Index 48 out of bounds for length 28 on line 230 (method parse)
dev:142023-05-06 14:05:17.236debugSocket status message received:send error: Connection reset by peer (Write failed)
dev:142023-05-06 13:47:11.425errorjava.lang.ArithmeticException: Division undefined on line 641 (method setColor)
dev:142023-05-06 13:47:07.814errorjava.lang.ArithmeticException: Division undefined on line 641 (method setColor)
dev:142023-05-06 13:39:06.428warndebug logging is: false
dev:142023-05-06 13:39:06.426infoupdated...
dev:142023-05-05 16:53:30.050warndebug logging disabled...
dev:142023-05-05 16:23:29.889warndebug logging is: true
dev:142023-05-05 16:23:29.887infoupdated...
dev:142023-05-05 16:23:24.916warndebug logging is: false
dev:142023-05-05 16:23:24.914infoupdated...
dev:142023-05-05 16:09:54.473warndebug logging disabled...
dev:142023-05-05 15:49:39.594debugSocket status message received:send error: Connection reset by peer (Write failed)
dev:142023-05-05 15:49:38.872debugSending message to 192.168.1.36:6668 msg: 000055AA0000000000000007000000B3332E31623963623835636336383839353435395A4D78376147717438727961357557354B4861425235705242726A5A576B704867535146417378363855435163656C66314E44325745624B43484B3351386E6B544A693237624849572F53745136437376437768523232376D556F59566C6B2B44426F485878545164476543366F4641695052787739356B784A52757A73735259774651683578377A766A315A71495452535A794B773D3DF53E77C10000AA55
dev:142023-05-05 15:49:38.869debugHEX crc: f53e77c1 : 4
dev:142023-05-05 15:49:38.868debug195
dev:142023-05-05 15:49:38.762debugPrefix: 000055AA00000000000000
dev:142023-05-05 15:49:38.759debug179
dev:142023-05-05 15:49:38.756debug332E31623963623835636336383839353435395A4D78376147717438727961357557354B4861425235705242726A5A576B704867535146417378363855435163656C66314E44325745624B43484B3351386E6B544A693237624849572F53745136437376437768523232376D556F59566C6B2B44426F485878545164476543366F4641695052787739356B784A52757A73735259774651683578377A766A315A71495452535A794B773D3D000000000000AA55
dev:142023-05-05 15:49:38.753debugpayload after=3.1b9cb85cc68895459ZMx7aGqt8rya5uW5KHaBR5pRBrjZWkpHgSQFAsx68UCQcelf1ND2WEbKCHK3Q8nkTJi27bHIW/StQ6CsvCwhR227mUoYVlk+DBoHXxTQdGeC6oFAiPRxw95kxJRuzssRYwFQh5x7zvj1ZqITRSZyKw==
dev:142023-05-05 15:49:38.749debugpreMd5Stringdata=ZMx7aGqt8rya5uW5KHaBR5pRBrjZWkpHgSQFAsx68UCQcelf1ND2WEbKCHK3Q8nkTJi27bHIW/StQ6CsvCwhR227mUoYVlk+DBoHXxTQdGeC6oFAiPRxw95kxJRuzssRYwFQh5x7zvj1ZqITRSZyKw==||lpv=3.1||398d5cf37b3f335f
dev:142023-05-05 15:49:38.746debugEncrypted payload: 5A4D78376147717438727961357557354B4861425235705242726A5A576B704867535146417378363855435163656C66314E44325745624B43484B3351386E6B544A693237624849572F53745136437376437768523232376D556F59566C6B2B44426F485878545164476543366F4641695052787739356B784A52757A73735259774651683578377A766A315A71495452535A794B773D3D
dev:142023-05-05 15:49:38.742debugpayload before={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683298178","dps":{"20":true}}
dev:142023-05-05 15:49:38.740debug31
dev:142023-05-05 15:43:50.103debugSocket status message received:send error: Connection reset by peer (Write failed)
dev:142023-05-05 15:43:49.166debugSending message to 192.168.1.36:6668 msg: 000055AA0000000000000007000000B3332E31626330633034653066326335323937315A4D78376147717438727961357557354B4861425235705242726A5A576B704867535146417378363855435163656C66314E44325745624B43484B3351386E6B544A693237624849572F537451364373764377685235444A30724369777045574735546D534E2B5271376543366F4641695052787739356B784A52757A73735259774651683578377A766A315A71495452535A794B773D3D0F7802BB0000AA55
dev:142023-05-05 15:43:49.164debugHEX crc: f7802bb : 3.5
dev:142023-05-05 15:43:49.163debug195
dev:142023-05-05 15:43:49.062debugPrefix: 000055AA00000000000000
dev:142023-05-05 15:43:49.060debug179
dev:142023-05-05 15:43:49.058debug

For these it looks like there is an attempt at setting the dim level to 0, which causes a division by zero, hence the error message below. This should be a simple fix to the driver.

Thanks for the investigation. Debug logs below.

ev:142023-05-06 14:47:19.379errorjava.lang.ArrayIndexOutOfBoundsException: Index 48 out of bounds for length 28 on line 230 (method parse)
dev:142023-05-06 14:47:19.374debugMessage type: 7
dev:142023-05-06 14:47:19.373debugBytes incoming: 28
dev:142023-05-06 14:47:19.372debugEncrypted message detected
dev:142023-05-06 14:47:19.371debugRaw incoming data: x�p��U
dev:142023-05-06 14:47:19.369debug000055AA00000000000000070000000C00000000789370910000AA55
dev:142023-05-06 14:47:19.368debugReceiving message from device
dev:142023-05-06 14:47:16.044debugSending message to 192.168.1.36:6668 msg: 000055AA000000000000000700000077332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C2147AC526A449C7CD82B3D730A40713EC81D8310786E3E17E1E152B59A829C185F91A9CEE0C40000AA55
dev:142023-05-06 14:47:16.043debugHEX crc: a9cee0c4 : 4
dev:142023-05-06 14:47:16.041debug135
dev:142023-05-06 14:47:15.969debugPrefix: 000055AA00000000000000
dev:142023-05-06 14:47:15.968debug119
dev:142023-05-06 14:47:15.966debug332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C2147AC526A449C7CD82B3D730A40713EC81D8310786E3E17E1E152B59A829C185F91000000000000AA55
dev:142023-05-06 14:47:15.964debugpayload after={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683380835","dps":{}}
dev:142023-05-06 14:47:15.962debug64cc7b686aadf2bc9ae6e5b9287681479a5106b8d95a4a4781240502cc7af1409071e95fd4d0f65846ca0872b743c9e44c98b6edb1c85bf4ad43a0acbc2c2147ac526a449c7cd82b3d730a40713ec81d8310786e3e17e1e152b59a829c185f91
dev:142023-05-06 14:47:15.960debugpayload before={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683380835","dps":{}}
dev:142023-05-06 14:47:15.958debug33
dev:142023-05-06 14:47:15.792debugSending message to 192.168.1.36:6668 msg: 000055AA000000000000000700000097332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C2147AC526A449C7CD82B3D730A40713EC81DD4CD54639B93D89D9A15F974E7948194097DFFBBD8478429E3F7C2192B2222D3E652F112E45AC37D1BB9E429FB98735CD184EBD80000AA55
dev:142023-05-06 14:47:15.791debugHEX crc: d184ebd8 : 4
dev:142023-05-06 14:47:15.789debug167
dev:142023-05-06 14:47:15.694debugPrefix: 000055AA00000000000000
dev:142023-05-06 14:47:15.693debug151
dev:142023-05-06 14:47:15.690debug332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C2147AC526A449C7CD82B3D730A40713EC81DD4CD54639B93D89D9A15F974E7948194097DFFBBD8478429E3F7C2192B2222D3E652F112E45AC37D1BB9E429FB98735C000000000000AA55
dev:142023-05-06 14:47:15.688debugpayload after={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683380835","dps":{"24":"001503e801f4","21":"colour"}}
dev:142023-05-06 14:47:15.686debug64cc7b686aadf2bc9ae6e5b9287681479a5106b8d95a4a4781240502cc7af1409071e95fd4d0f65846ca0872b743c9e44c98b6edb1c85bf4ad43a0acbc2c2147ac526a449c7cd82b3d730a40713ec81dd4cd54639b93d89d9a15f974e7948194097dffbbd8478429e3f7c2192b2222d3e652f112e45ac37d1bb9e429fb98735c
dev:142023-05-06 14:47:15.683debugpayload before={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683380835","dps":{"24":"001503e801f4","21":"colour"}}
dev:142023-05-06 14:47:15.681debug33
dev:142023-05-06 14:47:15.393debug[hue:6, saturation:100, level:50]
dev:142023-05-06 14:47:15.392debug6, 100, 100
dev:142023-05-06 14:47:15.391debugHSV to HSL
dev:142023-05-06 14:47:15.390debug[hue:6, saturation:100, level:100]
dev:142023-05-06 14:47:11.219debugDecryted message: {"devId":"02788604500291d7c52d","dps":{"20":false},"t":1683380831}
dev:142023-05-06 14:47:11.217debug*********** Decrypting **************
dev:142023-05-06 14:47:11.215debugAssembled payload for decrypt: 64CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF140E1A30810F105A26F3C2BA55EC345FC88C1159865BB4FE10186B0A72ECFC02D09F14DA58B3852A214EDA4C5796DAF933E
dev:142023-05-06 14:47:11.210debugEnd of message: 80
dev:142023-05-06 14:47:11.205debugMessage type: 7
dev:142023-05-06 14:47:11.204debugBytes incoming: 318
dev:142023-05-06 14:47:11.203debugEncrypted message detected
dev:142023-05-06 14:47:11.198debugRaw incoming data: x�p��UU�k3.3d�{hj����(v�G�Q��ZJG�$�z�@���o<+�^�E����e�O����.��- �M��8R���ym��>����UU�ax�p��UU�{3.3d�{hj����(v�G�Q��ZJG�$�z�@EH^���ŷU�*I{q���&�D�/i�¨#��XJ������&<��G6|־V%��¼�e4h�:`,\�U
dev:142023-05-06 14:47:11.191debug000055AA00000000000000070000000C00000000789370910000AA55000055AA00000000000000080000006B00000000332E3300000000000001130000000164CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF140E1A30810F105A26F3C2BA55EC345FC88C1159865BB4FE10186B0A72ECFC02D09F14DA58B3852A214EDA4C5796DAF933EA08585010000AA55000055AA00000000000000070000000C00000000789370910000AA55000055AA00000000000000080000007B00000000332E3300000000000001140000000164CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF14045485EDECAC1C5B755F12A497B71B10BE3D926B80E44872F69D8C2A8239D9A584A9BF5B280A4D8263C08ECC347367CD6BE561125EACFC2BC8F1B340168C33A60172C145C0000AA55
dev:142023-05-06 14:47:11.190debugReceiving message from device
dev:142023-05-06 14:47:09.304debugSending message to 192.168.1.36:6668 msg: 000055AA0000000000000007000000A7332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C21470052478E2A5096FC054B163BBC79D3EAF1D3E0D280BF88B706A55C1CBE96C830C826B14C392484D1F63B6F7FCFDA2E80D215B2A27F94C7DC34D98C7822E3AC03D17233F572EDF49603210941F3981A1EB88A3C840000AA55
dev:142023-05-06 14:47:09.303debugHEX crc: b88a3c84 : 4
dev:142023-05-06 14:47:09.301debug183
dev:142023-05-06 14:47:09.202debugPrefix: 000055AA00000000000000
dev:142023-05-06 14:47:09.201debug167
dev:142023-05-06 14:47:09.199debug332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C21470052478E2A5096FC054B163BBC79D3EAF1D3E0D280BF88B706A55C1CBE96C830C826B14C392484D1F63B6F7FCFDA2E80D215B2A27F94C7DC34D98C7822E3AC03D17233F572EDF49603210941F3981A1E000000000000AA55
dev:142023-05-06 14:47:09.197debugpayload after={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683380829","dps":{"24":"000003e801f4","20":false,"21":"colour"}}
dev:142023-05-06 14:47:09.194debug64cc7b686aadf2bc9ae6e5b9287681479a5106b8d95a4a4781240502cc7af1409071e95fd4d0f65846ca0872b743c9e44c98b6edb1c85bf4ad43a0acbc2c21470052478e2a5096fc054b163bbc79d3eaf1d3e0d280bf88b706a55c1cbe96c830c826b14c392484d1f63b6f7fcfda2e80d215b2a27f94c7dc34d98c7822e3ac03d17233f572edf49603210941f3981a1e
dev:142023-05-06 14:47:09.192debugpayload before={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683380829","dps":{"24":"000003e801f4","20":false,"21":"colour"}}
dev:142023-05-06 14:47:09.190debug33
dev:142023-05-06 14:47:09.047debugSending message to 192.168.1.36:6668 msg: 000055AA000000000000000700000097332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C214763AFE1E71626FEBAF18627DB8F6BA70CF1D3E0D280BF88B706A55C1CBE96C830097DFFBBD8478429E3F7C2192B2222D3E652F112E45AC37D1BB9E429FB98735C0BFCEBC80000AA55
dev:142023-05-06 14:47:09.045debugHEX crc: bfcebc8 : 3.5
dev:142023-05-06 14:47:09.044debug167
dev:142023-05-06 14:47:08.935debugPrefix: 000055AA00000000000000
dev:142023-05-06 14:47:08.934debug151
dev:142023-05-06 14:47:08.932debug332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C214763AFE1E71626FEBAF18627DB8F6BA70CF1D3E0D280BF88B706A55C1CBE96C830097DFFBBD8478429E3F7C2192B2222D3E652F112E45AC37D1BB9E429FB98735C000000000000AA55
dev:142023-05-06 14:47:08.930debugpayload after={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683380828","dps":{"24":"000003e801f4","21":"colour"}}
dev:142023-05-06 14:47:08.927debug64cc7b686aadf2bc9ae6e5b9287681479a5106b8d95a4a4781240502cc7af1409071e95fd4d0f65846ca0872b743c9e44c98b6edb1c85bf4ad43a0acbc2c214763afe1e71626febaf18627db8f6ba70cf1d3e0d280bf88b706a55c1cbe96c830097dffbbd8478429e3f7c2192b2222d3e652f112e45ac37d1bb9e429fb98735c
dev:142023-05-06 14:47:08.925debugpayload before={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683380828","dps":{"24":"000003e801f4","21":"colour"}}
dev:142023-05-06 14:47:08.923debug33
dev:142023-05-06 14:47:08.639debug[hue:0, saturation:100, level:50]
dev:142023-05-06 14:47:08.638debug0, 100, 100
dev:142023-05-06 14:47:08.637debugHSV to HSL
dev:142023-05-06 14:47:08.635debug[hue:0, saturation:100, level:100]
dev:142023-05-06 14:47:01.634errorjava.lang.ArrayIndexOutOfBoundsException: Index 48 out of bounds for length 28 on line 230 (method parse)
dev:142023-05-06 14:47:01.628debugMessage type: 7
dev:142023-05-06 14:47:01.627debugBytes incoming: 28
dev:142023-05-06 14:47:01.626debugEncrypted message detected
dev:142023-05-06 14:47:01.625debugRaw incoming data: x�p��U
dev:142023-05-06 14:47:01.623debug000055AA00000000000000070000000C00000000789370910000AA55
dev:142023-05-06 14:47:01.622debugReceiving message from device
dev:142023-05-06 14:46:58.073debug[hue:0, saturation:100, value:100]
dev:142023-05-06 14:46:58.071debug0, 100, 50
dev:142023-05-06 14:46:58.061debugHSL to HSV
dev:142023-05-06 14:46:58.059debugDecryted message: {"devId":"02788604500291d7c52d","dps":{"24":"000003e801f4"},"t":1683380818}
dev:142023-05-06 14:46:58.057debug*********** Decrypting **************
dev:142023-05-06 14:46:58.055debugAssembled payload for decrypt: 64CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF14045485EDECAC1C5B755F12A497B71B10B16A5089C2924CD50F68016A4028403789E4D2F8263214D9F318AE597DD2B70AD
dev:142023-05-06 14:46:58.049debugEnd of message: 80
dev:142023-05-06 14:46:58.044debugMessage type: 7
dev:142023-05-06 14:46:58.043debugBytes incoming: 151
dev:142023-05-06 14:46:58.041debugEncrypted message detected
dev:142023-05-06 14:46:58.039debugRaw incoming data: x�p��UU�k3.3d�{hj����(v�G�Q��ZJG�$�z�@EH^���ŷU�*I{q���)$�P����x�M/�c!M�1���+p�<��#�U
dev:142023-05-06 14:46:58.034debug000055AA00000000000000070000000C00000000789370910000AA55000055AA00000000000000080000006B00000000332E3300000000000001120000000164CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF14045485EDECAC1C5B755F12A497B71B10B16A5089C2924CD50F68016A4028403789E4D2F8263214D9F318AE597DD2B70AD3CB0F8230000AA55
dev:142023-05-06 14:46:58.032debugReceiving message from device
dev:142023-05-06 14:46:57.977debugSending message to 192.168.1.36:6668 msg: 000055AA000000000000000700000077332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C2147605C912E4811645325CD51C17812F45A8310786E3E17E1E152B59A829C185F91DD9A71050000AA55
dev:142023-05-06 14:46:57.888debugHEX crc: dd9a7105 : 4
dev:142023-05-06 14:46:57.868debug135
dev:142023-05-06 14:46:57.682debugPrefix: 000055AA00000000000000
dev:142023-05-06 14:46:57.680debug119
dev:142023-05-06 14:46:57.679debug332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C2147605C912E4811645325CD51C17812F45A8310786E3E17E1E152B59A829C185F91000000000000AA55
dev:142023-05-06 14:46:57.654debugpayload after={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683380817","dps":{}}
dev:142023-05-06 14:46:57.650debug64cc7b686aadf2bc9ae6e5b9287681479a5106b8d95a4a4781240502cc7af1409071e95fd4d0f65846ca0872b743c9e44c98b6edb1c85bf4ad43a0acbc2c2147605c912e4811645325cd51c17812f45a8310786e3e17e1e152b59a829c185f91
dev:142023-05-06 14:46:57.643debugpayload before={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683380817","dps":{}}
dev:142023-05-06 14:46:57.641debug33
dev:142023-05-06 14:46:57.490debugSending message to 192.168.1.36:6668 msg: 000055AA000000000000000700000097332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C2147605C912E4811645325CD51C17812F45AF1D3E0D280BF88B706A55C1CBE96C830097DFFBBD8478429E3F7C2192B2222D3E652F112E45AC37D1BB9E429FB98735C31BF6FF10000AA55
dev:142023-05-06 14:46:57.488debugHEX crc: 31bf6ff1 : 4
dev:142023-05-06 14:46:57.487debug167
dev:142023-05-06 14:46:57.390debugPrefix: 000055AA00000000000000
dev:142023-05-06 14:46:57.388debug151
dev:142023-05-06 14:46:57.386debug332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C2147605C912E4811645325CD51C17812F45AF1D3E0D280BF88B706A55C1CBE96C830097DFFBBD8478429E3F7C2192B2222D3E652F112E45AC37D1BB9E429FB98735C000000000000AA55
dev:142023-05-06 14:46:57.384debugpayload after={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683380817","dps":{"24":"000003e801f4","21":"colour"}}
dev:142023-05-06 14:46:57.380debug64cc7b686aadf2bc9ae6e5b9287681479a5106b8d95a4a4781240502cc7af1409071e95fd4d0f65846ca0872b743c9e44c98b6edb1c85bf4ad43a0acbc2c2147605c912e4811645325cd51c17812f45af1d3e0d280bf88b706a55c1cbe96c830097dffbbd8478429e3f7c2192b2222d3e652f112e45ac37d1bb9e429fb98735c
dev:142023-05-06 14:46:57.378debugpayload before={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683380817","dps":{"24":"000003e801f4","21":"colour"}}
dev:142023-05-06 14:46:57.376debug33
dev:142023-05-06 14:46:57.089debug[hue:0, saturation:100, level:50]
dev:142023-05-06 14:46:57.086debug0, 100, 100
dev:142023-05-06 14:46:57.085debugHSV to HSL
dev:142023-05-06 14:46:57.083debug[hue:0, saturation:100, level:100]
dev:142023-05-06 14:46:50.848debug[hue:6, saturation:100, value:100]
dev:142023-05-06 14:46:50.845debug6, 100, 50
dev:142023-05-06 14:46:50.843debugHSL to HSV
dev:142023-05-06 14:46:50.825debugDecryted message: {"devId":"02788604500291d7c52d","dps":{"24":"001503e801f4","20":true,"21":"colour"},"t":1683380811}
dev:142023-05-06 14:46:50.822debug*********** Decrypting **************
dev:142023-05-06 14:46:50.820debugAssembled payload for decrypt: 64CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF140BF111F69968AB133245BBE832E7A20378CEA63682AC1ABF30C2B044D4639992A774FCB39DDA96C8CBFA7CB6D51A081D5FA7E586C03CD3B3CF89C9264BD3839766C8257E18B488621B19FF603990D6010
dev:142023-05-06 14:46:50.811debugEnd of message: 112
dev:142023-05-06 14:46:50.804debugMessage type: 7
dev:142023-05-06 14:46:50.803debugBytes incoming: 350
dev:142023-05-06 14:46:50.802debugEncrypted message detected
dev:142023-05-06 14:46:50.797debugRaw incoming data: x�p��UU��3.3d�{hj����(v�G�Q��ZJG�$�z�@�i���3$[��.z 7��ch*���+MF9�*wO�9ݩl����mQ����~Xl�;<���d�89vl�W�H�!����
`ʟw�UU�ax�p��UU�{3.3d�{hj����(v�G�Q��ZJG�$�z�@�i���3$[��.z 7Nh�e�| �B��\�J������&<��G6|�f�5�:��eWmR��-~4z�%�U
dev:142023-05-06 14:46:50.788debug000055AA00000000000000070000000C00000000789370910000AA55000055AA00000000000000080000008B00000000332E3300000000000001100000000164CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF140BF111F69968AB133245BBE832E7A20378CEA63682AC1ABF30C2B044D4639992A774FCB39DDA96C8CBFA7CB6D51A081D5FA7E586C03CD3B3CF89C9264BD3839766C8257E18B488621B19FF603990D6010CA9F770E0000AA55000055AA00000000000000070000000C00000000789370910000AA55000055AA00000000000000080000007B00000000332E3300000000000001110000000164CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF140BF111F69968AB133245BBE832E7A20374E6810800B65D77C09A94288EF5CE79D4A9BF5B280A4D8263C08ECC347367CD666AE35FF3A9B921B576D5205AD9B2D7E347ABB250000AA55
dev:142023-05-06 14:46:50.787debugReceiving message from device
dev:142023-05-06 14:46:48.681debugSending message to 192.168.1.36:6668 msg: 000055AA0000000000000007000000A7332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C2147C98E3B2616D64D58190FB88C0D53AC28D4CD54639B93D89D9A15F974E7948194264434D02743727B897688DA9392EFD3826DEBEBB04199070B3C91A422674AEAB8C365076F85BDB6CDA14179D423BD222514140F0000AA55
dev:142023-05-06 14:46:48.680debugHEX crc: 2514140f : 4
dev:142023-05-06 14:46:48.678debug183
dev:142023-05-06 14:46:48.555debugPrefix: 000055AA00000000000000
dev:142023-05-06 14:46:48.553debug167
dev:142023-05-06 14:46:48.551debug332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C2147C98E3B2616D64D58190FB88C0D53AC28D4CD54639B93D89D9A15F974E7948194264434D02743727B897688DA9392EFD3826DEBEBB04199070B3C91A422674AEAB8C365076F85BDB6CDA14179D423BD22000000000000AA55
dev:142023-05-06 14:46:48.549debugpayload after={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683380808","dps":{"24":"001503e801f4","20":true,"21":"colour"}}
dev:142023-05-06 14:46:48.545debug64cc7b686aadf2bc9ae6e5b9287681479a5106b8d95a4a4781240502cc7af1409071e95fd4d0f65846ca0872b743c9e44c98b6edb1c85bf4ad43a0acbc2c2147c98e3b2616d64d58190fb88c0d53ac28d4cd54639b93d89d9a15f974e7948194264434d02743727b897688da9392efd3826debebb04199070b3c91a422674aeab8c365076f85bdb6cda14179d423bd22
dev:142023-05-06 14:46:48.542debugpayload before={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683380808","dps":{"24":"001503e801f4","20":true,"21":"colour"}}
dev:142023-05-06 14:46:48.540debug33
dev:142023-05-06 14:46:48.424debugSending message to 192.168.1.36:6668 msg: 000055AA000000000000000700000097332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C2147C98E3B2616D64D58190FB88C0D53AC28D4CD54639B93D89D9A15F974E7948194097DFFBBD8478429E3F7C2192B2222D3E652F112E45AC37D1BB9E429FB98735C4816A13E0000AA55
dev:142023-05-06 14:46:48.418debugHEX crc: 4816a13e : 4
dev:142023-05-06 14:46:48.412debug167
dev:142023-05-06 14:46:48.302debugPrefix: 000055AA00000000000000
dev:142023-05-06 14:46:48.301debug151
dev:142023-05-06 14:46:48.299debug332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C2147C98E3B2616D64D58190FB88C0D53AC28D4CD54639B93D89D9A15F974E7948194097DFFBBD8478429E3F7C2192B2222D3E652F112E45AC37D1BB9E429FB98735C000000000000AA55
dev:142023-05-06 14:46:48.297debugpayload after={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683380808","dps":{"24":"001503e801f4","21":"colour"}}
dev:142023-05-06 14:46:48.290debug64cc7b686aadf2bc9ae6e5b9287681479a5106b8d95a4a4781240502cc7af1409071e95fd4d0f65846ca0872b743c9e44c98b6edb1c85bf4ad43a0acbc2c2147c98e3b2616d64d58190fb88c0d53ac28d4cd54639b93d89d9a15f974e7948194097dffbbd8478429e3f7c2192b2222d3e652f112e45ac37d1bb9e429fb98735c
dev:142023-05-06 14:46:48.285debugpayload before={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683380808","dps":{"24":"001503e801f4","21":"colour"}}
dev:142023-05-06 14:46:48.283debug33
dev:142023-05-06 14:46:48.002debug[hue:6, saturation:100, level:50]
dev:142023-05-06 14:46:48.001debug6, 100, 100
dev:142023-05-06 14:46:48.000debugHSV to HSL
dev:142023-05-06 14:46:47.999debug[hue:6, saturation:100, level:100]
dev:142023-05-06 14:46:36.158errorjava.lang.ArrayIndexOutOfBoundsException: Index 48 out of bounds for length 28 on line 230 (method parse)
dev:142023-05-06 14:46:36.120debugMessage type: 7
dev:142023-05-06 14:46:36.118debugBytes incoming: 28
dev:142023-05-06 14:46:36.117debugEncrypted message detected
dev:142023-05-06 14:46:36.115debugRaw incoming data: x�p��U
dev:142023-05-06 14:46:36.111debug000055AA00000000000000070000000C00000000789370910000AA55
dev:142023-05-06 14:46:36.109debugReceiving message from device
dev:142023-05-06 14:46:34.767debugSending message to 192.168.1.36:6668 msg: 000055AA000000000000000700000077332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C2147A674A91541CE9313E64C345BD6E17B478310786E3E17E1E152B59A829C185F91418E87920000AA55
dev:142023-05-06 14:46:34.766debugHEX crc: 418e8792 : 4
dev:142023-05-06 14:46:34.764debug135
dev:142023-05-06 14:46:34.677debugPrefix: 000055AA00000000000000
dev:142023-05-06 14:46:34.675debug119
dev:142023-05-06 14:46:34.673debug332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C2147A674A91541CE9313E64C345BD6E17B478310786E3E17E1E152B59A829C185F91000000000000AA55
dev:142023-05-06 14:46:34.672debugpayload after={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683380794","dps":{}}
dev:142023-05-06 14:46:34.669debug64cc7b686aadf2bc9ae6e5b9287681479a5106b8d95a4a4781240502cc7af1409071e95fd4d0f65846ca0872b743c9e44c98b6edb1c85bf4ad43a0acbc2c2147a674a91541ce9313e64c345bd6e17b478310786e3e17e1e152b59a829c185f91
dev:142023-05-06 14:46:34.667debugpayload before={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683380794","dps":{}}
dev:142023-05-06 14:46:34.665debug33
dev:142023-05-06 14:46:34.430debugSending message to 192.168.1.36:6668 msg: 000055AA000000000000000700000097332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C2147A674A91541CE9313E64C345BD6E17B47D4CD54639B93D89D9A15F974E7948194097DFFBBD8478429E3F7C2192B2222D3E652F112E45AC37D1BB9E429FB98735C2BFAFBE70000AA55
dev:142023-05-06 14:46:34.418debugHEX crc: 2bfafbe7 : 4
dev:142023-05-06 14:46:34.412debug167
dev:142023-05-06 14:46:34.278debugPrefix: 000055AA00000000000000
dev:142023-05-06 14:46:34.276debug151
dev:142023-05-06 14:46:34.274debug332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C2147A674A91541CE9313E64C345BD6E17B47D4CD54639B93D89D9A15F974E7948194097DFFBBD8478429E3F7C2192B2222D3E652F112E45AC37D1BB9E429FB98735C000000000000AA55
dev:142023-05-06 14:46:34.271debugpayload after={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683380794","dps":{"24":"001503e801f4","21":"colour"}}
dev:142023-05-06 14:46:34.267debug64cc7b686aadf2bc9ae6e5b9287681479a5106b8d95a4a4781240502cc7af1409071e95fd4d0f65846ca0872b743c9e44c98b6edb1c85bf4ad43a0acbc2c2147a674a91541ce9313e64c345bd6e17b47d4cd54639b93d89d9a15f974e7948194097dffbbd8478429e3f7c2192b2222d3e652f112e45ac37d1bb9e429fb98735c
dev:142023-05-06 14:46:34.259debugpayload before={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683380794","dps":{"24":"001503e801f4","21":"colour"}}
dev:142023-05-06 14:46:34.256debug33
dev:142023-05-06 14:46:33.963debug[hue:6, saturation:100, level:50]
dev:142023-05-06 14:46:33.962debug6, 100, 100
dev:142023-05-06 14:46:33.960debugHSV to HSL
dev:142023-05-06 14:46:33.956debug[hue:6, saturation:100, level:100]
dev:142023-05-06 14:45:34.272warndebug logging is: true

Hi Paul,

It turns out that the bulb see a brightness value of 0 as an illegal command, hence it sends an error message back, which my driver did not account for.

Now I have updated the driver so that when brightness is set to 0 it sends the lowest possible brightness setting instead, 1. And I have fixed the divide by zero issue.

Please go-ahead and update your driver and let me know how it goes.

BR
Ivar

Thanks, still a little unreliable. In the logs there is a 'bulb does not understand command' message.

dev:142023-05-06 15:24:24.684debugSending message to 192.168.1.36:6668 msg: 000055AA0000000000000007000000A7332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C2147EAE4C43F55AE2B98BB5F209E637AB0ACD4CD54639B93D89D9A15F974E7948194264434D02743727B897688DA9392EFD3826DEBEBB04199070B3C91A422674AEAB8C365076F85BDB6CDA14179D423BD223A6C8E480000AA55
dev:142023-05-06 15:24:24.683debugHEX crc: 3a6c8e48 : 4
dev:142023-05-06 15:24:24.682debug183
dev:142023-05-06 15:24:24.589debugPrefix: 000055AA00000000000000
dev:142023-05-06 15:24:24.587debug167
dev:142023-05-06 15:24:24.585debug332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C2147EAE4C43F55AE2B98BB5F209E637AB0ACD4CD54639B93D89D9A15F974E7948194264434D02743727B897688DA9392EFD3826DEBEBB04199070B3C91A422674AEAB8C365076F85BDB6CDA14179D423BD22000000000000AA55
dev:142023-05-06 15:24:24.583debugpayload after={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683383064","dps":{"24":"001503e801f4","20":true,"21":"colour"}}
dev:142023-05-06 15:24:24.579debug64cc7b686aadf2bc9ae6e5b9287681479a5106b8d95a4a4781240502cc7af1409071e95fd4d0f65846ca0872b743c9e44c98b6edb1c85bf4ad43a0acbc2c2147eae4c43f55ae2b98bb5f209e637ab0acd4cd54639b93d89d9a15f974e7948194264434d02743727b897688da9392efd3826debebb04199070b3c91a422674aeab8c365076f85bdb6cda14179d423bd22
dev:142023-05-06 15:24:24.577debugpayload before={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683383064","dps":{"24":"001503e801f4","20":true,"21":"colour"}}
dev:142023-05-06 15:24:24.575debug33
dev:142023-05-06 15:24:24.396debugSending message to 192.168.1.36:6668 msg: 000055AA000000000000000700000097332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C2147EAE4C43F55AE2B98BB5F209E637AB0ACD4CD54639B93D89D9A15F974E7948194097DFFBBD8478429E3F7C2192B2222D3E652F112E45AC37D1BB9E429FB98735C316A7AF10000AA55
dev:142023-05-06 15:24:24.395debugHEX crc: 316a7af1 : 4
dev:142023-05-06 15:24:24.393debug167
dev:142023-05-06 15:24:24.303debugPrefix: 000055AA00000000000000
dev:142023-05-06 15:24:24.301debug151
dev:142023-05-06 15:24:24.299debug332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C2147EAE4C43F55AE2B98BB5F209E637AB0ACD4CD54639B93D89D9A15F974E7948194097DFFBBD8478429E3F7C2192B2222D3E652F112E45AC37D1BB9E429FB98735C000000000000AA55
dev:142023-05-06 15:24:24.297debugpayload after={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683383064","dps":{"24":"001503e801f4","21":"colour"}}
dev:142023-05-06 15:24:24.293debug64cc7b686aadf2bc9ae6e5b9287681479a5106b8d95a4a4781240502cc7af1409071e95fd4d0f65846ca0872b743c9e44c98b6edb1c85bf4ad43a0acbc2c2147eae4c43f55ae2b98bb5f209e637ab0acd4cd54639b93d89d9a15f974e7948194097dffbbd8478429e3f7c2192b2222d3e652f112e45ac37d1bb9e429fb98735c
dev:142023-05-06 15:24:24.290debugpayload before={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683383064","dps":{"24":"001503e801f4","21":"colour"}}
dev:142023-05-06 15:24:24.283debug33
dev:142023-05-06 15:24:23.978debug[hue:6, saturation:100, level:50]
dev:142023-05-06 15:24:23.977debug6, 100, 100
dev:142023-05-06 15:24:23.976debugHSV to HSL
dev:142023-05-06 15:24:23.975debug[hue:6, saturation:100, level:100]
dev:142023-05-06 15:24:08.651debugBulb did not understand command
dev:142023-05-06 15:24:08.650debugDecryted message:
dev:142023-05-06 15:24:08.648debugAssembled payload for decrypt: 000055AA00000000000000070000000C00000000
dev:142023-05-06 15:24:08.646debugEnd of message: 20
dev:142023-05-06 15:24:08.643debugMessage type: 7
dev:142023-05-06 15:24:08.642debugBytes incoming: 28
dev:142023-05-06 15:24:08.641debugEncrypted message detected
dev:142023-05-06 15:24:08.640debugRaw incoming data: x�p��U
dev:142023-05-06 15:24:08.638debug000055AA00000000000000070000000C00000000789370910000AA55
dev:142023-05-06 15:24:08.637debugReceiving message from device
dev:142023-05-06 15:24:05.249debugSending message to 192.168.1.36:6668 msg: 000055AA000000000000000700000077332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C2147DED34FA423688F03C6691C7AA9F52EEC8310786E3E17E1E152B59A829C185F91538BC54E0000AA55
dev:142023-05-06 15:24:05.248debugHEX crc: 538bc54e : 4
dev:142023-05-06 15:24:05.241debug135
dev:142023-05-06 15:24:05.166debugPrefix: 000055AA00000000000000
dev:142023-05-06 15:24:05.164debug119
dev:142023-05-06 15:24:05.162debug332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C2147DED34FA423688F03C6691C7AA9F52EEC8310786E3E17E1E152B59A829C185F91000000000000AA55
dev:142023-05-06 15:24:05.160debugpayload after={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683383045","dps":{}}
dev:142023-05-06 15:24:05.157debug64cc7b686aadf2bc9ae6e5b9287681479a5106b8d95a4a4781240502cc7af1409071e95fd4d0f65846ca0872b743c9e44c98b6edb1c85bf4ad43a0acbc2c2147ded34fa423688f03c6691c7aa9f52eec8310786e3e17e1e152b59a829c185f91
dev:142023-05-06 15:24:05.153debugpayload before={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683383045","dps":{}}
dev:142023-05-06 15:24:05.151debug33
dev:142023-05-06 15:24:04.963debugSending message to 192.168.1.36:6668 msg: 000055AA000000000000000700000097332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C2147C836701321826A7957DE3B466F804AA2D4CD54639B93D89D9A15F974E7948194097DFFBBD8478429E3F7C2192B2222D3E652F112E45AC37D1BB9E429FB98735CB1EFE03D0000AA55
dev:142023-05-06 15:24:04.961debugHEX crc: b1efe03d : 4
dev:142023-05-06 15:24:04.960debug167
dev:142023-05-06 15:24:04.869debugPrefix: 000055AA00000000000000
dev:142023-05-06 15:24:04.867debug151
dev:142023-05-06 15:24:04.864debug332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C2147C836701321826A7957DE3B466F804AA2D4CD54639B93D89D9A15F974E7948194097DFFBBD8478429E3F7C2192B2222D3E652F112E45AC37D1BB9E429FB98735C000000000000AA55
dev:142023-05-06 15:24:04.861debugpayload after={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683383044","dps":{"24":"001503e801f4","21":"colour"}}
dev:142023-05-06 15:24:04.857debug64cc7b686aadf2bc9ae6e5b9287681479a5106b8d95a4a4781240502cc7af1409071e95fd4d0f65846ca0872b743c9e44c98b6edb1c85bf4ad43a0acbc2c2147c836701321826a7957de3b466f804aa2d4cd54639b93d89d9a15f974e7948194097dffbbd8478429e3f7c2192b2222d3e652f112e45ac37d1bb9e429fb98735c
dev:142023-05-06 15:24:04.853debugpayload before={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683383044","dps":{"24":"001503e801f4","21":"colour"}}
dev:142023-05-06 15:24:04.851debug33
dev:142023-05-06 15:24:04.533debug[hue:6, saturation:100, level:50]
dev:142023-05-06 15:24:04.530debug6, 100, 100
dev:142023-05-06 15:24:04.529debugHSV to HSL
dev:142023-05-06 15:24:04.527debug[hue:6, saturation:100, level:100]
dev:142023-05-06 15:23:51.533debugBulb did not understand command
dev:142023-05-06 15:23:51.531debugDecryted message:
dev:142023-05-06 15:23:51.529debugAssembled payload for decrypt: 000055AA00000000000000070000000C00000000
dev:142023-05-06 15:23:51.524debugEnd of message: 20
dev:142023-05-06 15:23:51.521debugMessage type: 7
dev:142023-05-06 15:23:51.520debugBytes incoming: 28
dev:142023-05-06 15:23:51.518debugEncrypted message detected
dev:142023-05-06 15:23:51.516debugRaw incoming data: x�p��U
dev:142023-05-06 15:23:51.514debug000055AA00000000000000070000000C00000000789370910000AA55
dev:142023-05-06 15:23:51.512debugReceiving message from device
dev:142023-05-06 15:23:48.173debugSending message to 192.168.1.36:6668 msg: 000055AA000000000000000700000077332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C21477A60D07126A712FD5371513CEF2BF85F8310786E3E17E1E152B59A829C185F91E5E009E50000AA55
dev:142023-05-06 15:23:48.171debugHEX crc: e5e009e5 : 4
dev:142023-05-06 15:23:48.169debug135
dev:142023-05-06 15:23:48.093debugPrefix: 000055AA00000000000000
dev:142023-05-06 15:23:48.091debug119
dev:142023-05-06 15:23:48.088debug332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C21477A60D07126A712FD5371513CEF2BF85F8310786E3E17E1E152B59A829C185F91000000000000AA55
dev:142023-05-06 15:23:48.086debugpayload after={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683383028","dps":{}}
dev:142023-05-06 15:23:48.082debug64cc7b686aadf2bc9ae6e5b9287681479a5106b8d95a4a4781240502cc7af1409071e95fd4d0f65846ca0872b743c9e44c98b6edb1c85bf4ad43a0acbc2c21477a60d07126a712fd5371513cef2bf85f8310786e3e17e1e152b59a829c185f91
dev:142023-05-06 15:23:48.078debugpayload before={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683383028","dps":{}}
dev:142023-05-06 15:23:48.076debug33
dev:142023-05-06 15:23:47.900debugSending message to 192.168.1.36:6668 msg: 000055AA000000000000000700000097332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C21471041C0553735DBB04CFBD3CC3FF86B19D4CD54639B93D89D9A15F974E7948194097DFFBBD8478429E3F7C2192B2222D3E652F112E45AC37D1BB9E429FB98735CC23FC08F0000AA55
dev:142023-05-06 15:23:47.897debugHEX crc: c23fc08f : 4
dev:142023-05-06 15:23:47.896debug167
dev:142023-05-06 15:23:47.808debugPrefix: 000055AA00000000000000
dev:142023-05-06 15:23:47.806debug151
dev:142023-05-06 15:23:47.802debug332E3300000000000000000000000064CC7B686AADF2BC9AE6E5B9287681479A5106B8D95A4A4781240502CC7AF1409071E95FD4D0F65846CA0872B743C9E44C98B6EDB1C85BF4AD43A0ACBC2C21471041C0553735DBB04CFBD3CC3FF86B19D4CD54639B93D89D9A15F974E7948194097DFFBBD8478429E3F7C2192B2222D3E652F112E45AC37D1BB9E429FB98735C000000000000AA55
dev:142023-05-06 15:23:47.799debugpayload after={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683383027","dps":{"24":"001503e801f4","21":"colour"}}
dev:142023-05-06 15:23:47.794debug64cc7b686aadf2bc9ae6e5b9287681479a5106b8d95a4a4781240502cc7af1409071e95fd4d0f65846ca0872b743c9e44c98b6edb1c85bf4ad43a0acbc2c21471041c0553735dbb04cfbd3cc3ff86b19d4cd54639b93d89d9a15f974e7948194097dffbbd8478429e3f7c2192b2222d3e652f112e45ac37d1bb9e429fb98735c
dev:142023-05-06 15:23:47.789debugpayload before={"devId":"02788604500291d7c52d","uid":"02788604500291d7c52d","t":"1683383027","dps":{"24":"001503e801f4","21":"colour"}}
dev:142023-05-06 15:23:47.787debug33
dev:142023-05-06 15:23:47.490debug[hue:6, saturation:100, level:50]
dev:142023-05-06 15:23:47.488debug6, 100, 100
dev:142023-05-06 15:23:47.487debugHSV to HSL
dev:142023-05-06 15:23:47.485debug[hue:6, saturation:100, lev

The command that the bulb does not understand is an empty command.

What action are you trying to do when the message becomes empty( "dps":{}")?

Hi,
I'm using the Basic Button controller triggered from a Zigbee 4 scene switch. When a button is pressed it first changes the colour then toggles the switch. Each switch is assigned a colour, so first change colour then toggle.
What field is dps?
Thanks
Paul

The DPS field contains the actual commands sent to the bulb. So an empty DPS field means that no command is sent to the bulb. But I can't immediately see how that is possible that the driver ever sends an empty DPS "string". (Sorry about the late reply, I have been on business travel the last week).

No need to apologize, you have developed and are supporting this better than most commercial organisations.

I'll look into it again and will see if I can gather any more information.

@holand.ivar, is there a modification I can make that will allow me to supply the raw parameters for my lights? e.g. I have set a light through the mobile app. It returns the following:

  • rawMessage : {20=true, 21=colour, 22=1000, 24=007803e803e8, 25=07464602000003e803e800000000464602007803e803e80000000046460200f003e803e800000000464602003d03e803e80000000046460200ae03e803e800000000464602011303e803e800000000, 26=0, 34=true}

Is there a way to just supply parameter 25 from a stored variable or in a rule and call it a day? I would like to set up a dozen or so preset "scenes" and simply copying/storing/supplying the value would simplify things a lot for the color side of things. I'm able to manipulate the White side of things with ease. It's the color side which is difficult to get right.

@holand.ivar I have followed all the correct steps to get this great driver working, but cannot seem to get to the finish line?

Can you look at this debug log for my tuya RGB A19 bulb and let me know what is missing? I can make it work using the Python tinytuya project so I know I have the correct ip, Device ID and Device local key. I did notice that my tinytuya scan reported a protocol of 3.4 and this driver only allow up to a tuya protocol 3.3.

Thanks

[dev:2734](http://10.0.0.79/logs#)2023-12-10 04:11:15.054 AM[debug](http://10.0.0.79/logs#)Sending message to 10.0.0.64:6668 msg: 000055AA000000000000000A00000088990567D41C1E9D10B7D3202AABFE5FE2AB5E11239FB0929A0DA7704CFFD3C12E5C5FF879F69F25256EF57D8079727A7DAB5E11239FB0929A0DA7704CFFD3C12ECBA20F085EF5744D04E6394674EBE8C74141E25B78339E9ACC2647477C1DC14B7459BA6CAA173F876030E4085743BB7E3C0DAF34D6F04242AB836FB489CD914963FE8BF50000AA55
[dev:2734](http://10.0.0.79/logs#)2023-12-10 04:11:15.047 AM[debug](http://10.0.0.79/logs#)HEX crc: 63fe8bf5 : 4
[dev:2734](http://10.0.0.79/logs#)2023-12-10 04:11:15.045 AM[debug](http://10.0.0.79/logs#)152
[dev:2734](http://10.0.0.79/logs#)2023-12-10 04:11:14.975 AM[debug](http://10.0.0.79/logs#)Prefix: 000055AA00000000000000
[dev:2734](http://10.0.0.79/logs#)2023-12-10 04:11:14.973 AM[debug](http://10.0.0.79/logs#)136
[dev:2734](http://10.0.0.79/logs#)2023-12-10 04:11:14.971 AM[debug](http://10.0.0.79/logs#)990567D41C1E9D10B7D3202AABFE5FE2AB5E11239FB0929A0DA7704CFFD3C12E5C5FF879F69F25256EF57D8079727A7DAB5E11239FB0929A0DA7704CFFD3C12ECBA20F085EF5744D04E6394674EBE8C74141E25B78339E9ACC2647477C1DC14B7459BA6CAA173F876030E4085743BB7E3C0DAF34D6F04242AB836FB489CD9149000000000000AA55
[dev:2734](http://10.0.0.79/logs#)2023-12-10 04:11:14.969 AM[debug](http://10.0.0.79/logs#)payload after={"devId":"eb35eb35b2f1dcv6910bzm","gwId":"eb35ebv5b2f1dcd6910bzm","uid":"eb3reb3vb2f0dcd6910bzm","t":"1702199474"}
[dev:2734](http://10.0.0.79/logs#)2023-12-10 04:11:14.965 AM[debug](http://10.0.0.79/logs#)990567d41c1e9d10b7d3202aabfe5fe2ab5e11239fb0929a0da7704cffd3c12e5c5ff879f69f25256ef57d8079727a7dab5e11239fb0929a0da7704cffd3c12ecba20f085ef5744d04e6394674ebe8c74141e25b78339e9acc2647477c1dc14b7459ba6caa173f876030e4085743bb7e3c0daf34d6f04242ab836fb489cd9149
[dev:2734](http://10.0.0.79/logs#)2023-12-10 04:11:14.962 AM[debug](http://10.0.0.79/logs#)payload before={"devId":"eb35eb35b2fxdcb6910bzm","gwId":"eb35es35b2fedcd6910bzm","uid":"eb35ebf5b2f0dcd6910bzm","t":"1702199474"}
[dev:2734](http://10.0.0.79/logs#)2023-12-10 04:11:14.960 AM[debug](http://10.0.0.79/logs#)33
[dev:2734](http://10.0.0.79/logs#)2023-12-10 04:11:14.920 AM[warn](http://10.0.0.79/logs#)debug logging is: true

I will definitively look into that. Let me see what I can do, I will keep you posted.