I'm attempting to change the color of my light from its current setting to blue. When i try to set it to blue it sets dps 21 to "colour", then it sets dps 21 to "white", then it sets dps 24 to "333303E803E8" which is blue. When i stand alone set dps 21 it works fine but when i try to pass it while setting the color it does not work.
[
{
"id": "743e6a9b8f1b9fdb",
"type": "tab",
"label": "Flow 3",
"disabled": false,
"info": "",
"env": []
},
{
"id": "409b64dd2bad8dd4",
"type": "tuya-smart-device",
"z": "743e6a9b8f1b9fdb",
"deviceName": "Bulb 1",
"disableAutoStart": false,
"deviceId": "ebf0dc9fa05d7ef0adhgxj",
"deviceKey": "a9ecc12e4cfeb715",
"storeAsCreds": false,
"deviceIp": "",
"retryTimeout": 1000,
"findTimeout": 10000,
"tuyaVersion": "3.3",
"eventMode": "event-both",
"x": 850,
"y": 300,
"wires": [
[
"4b8255b97dd9ae05"
],
[]
]
},
{
"id": "4b8255b97dd9ae05",
"type": "debug",
"z": "743e6a9b8f1b9fdb",
"name": "debug 24",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 1120,
"y": 300,
"wires": []
},
{
"id": "e189b267d15c7d3e",
"type": "inject",
"z": "743e6a9b8f1b9fdb",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{ multiple: true, data: { '20': true, '22': Brightness, '24': \"666603E803E8\" } }",
"payloadType": "jsonata",
"x": 370,
"y": 300,
"wires": [
[
"0313a49d46ca1cbb"
]
]
},
{
"id": "0313a49d46ca1cbb",
"type": "function",
"z": "743e6a9b8f1b9fdb",
"name": "function 6",
"func": "msg.payload = {\n multiple: true,\n data: {\n '20': true,\n '21': \"colour\",\n '22': 1000,\n '24': \"333303E803E8\"\n\n }\n}\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 540,
"y": 300,
"wires": [
[
"409b64dd2bad8dd4",
"7c0284c86cb1a8a8"
]
]
},
{
"id": "7c0284c86cb1a8a8",
"type": "debug",
"z": "743e6a9b8f1b9fdb",
"name": "debug 25",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 940,
"y": 240,
"wires": []
}
]