deconz-community / node-red-contrib-deconz

Node-Red Nodes for deCONZ connectivity.
GNU General Public License v3.0
81 stars 16 forks source link

Transition time for led not zero #224

Open VincentLiq opened 1 year ago

VincentLiq commented 1 year ago

I have a led strip controller from Gledopto. We have an issue when we change the light color, the light changes the color with a transition time. but we have the node configured to have a transition Time of zero. The example below will change the color from blue to red. (https://github.com/deconz-community/node-red-contrib-deconz/assets/124067481/00399b71-69b5-4101-86e2-c3b11d749475)

[ { "id": "13fd5aaabdcf3003", "type": "deconz-output", "z": "c80bd961ee1ee964", "name": "ledstrip", "config_version": 2, "server": "", "statustext": "", "statustext_type": "default", "search_type": "device", "device_list": [ "lights/uniqueid/00:12:4b:00:1f:6a:0d:7c-0b" ], "device_name": "", "query": "{}", "commands": [ { "arg": { "on": { "type": "keep", "value": "" }, "alert": { "type": "str", "value": "" }, "effect": { "type": "str", "value": "none" }, "colorloopspeed": { "type": "num", "value": "0" }, "transitiontime": { "type": "num", "value": "0" }, "retryonerror": { "type": "num", "value": "0" }, "aftererror": { "type": "continue", "value": "" }, "bri": { "direction": "set", "type": "num", "value": "255" }, "sat": { "direction": "set", "type": "num", "value": "255" }, "hue": { "direction": "set", "type": "msg", "value": "hue" }, "ct": { "direction": "set", "type": "num", "value": "" }, "xy": { "direction": "set", "type": "json", "value": "[]" } }, "type": "deconz_state", "domain": "lights" } ], "specific": { "delay": { "type": "num", "value": "50" }, "result": { "type": "at_end", "value": "" } }, "x": 870, "y": 380, "wires": [ [ "91b59e9b6914e976" ] ] } ]

Zehir commented 1 year ago

Could you send me what msg you get after the output node ?

VincentLiq commented 1 year ago

{"_msgid":"f0ed3983cbcf0b7f","hue":43690,"payload_in":2,"payload":[{"result":{"bri":254,"effect":"none","hue":43690,"sat":254},"request":{"bri":255,"sat":255,"hue":43690,"effect":"none","colorloopspeed":0,"transitiontime":0},"meta":{"capabilities":{"alerts":["none","select","lselect"],"color":{"ct":{"max":495,"min":155},"effects":["none","colorloop"],"modes":["ct","effect","hs","xy"]}},"colorcapabilities":31,"config":{"groups":["0","1"]},"ctmax":495,"ctmin":155,"etag":"fc8e6aaec640d31a3688c434c6c3ae30","hascolor":true,"lastannounced":null,"lastseen":"2023-05-25T14:09Z","manufacturername":"GLEDOPTO","modelid":"GL-C-008","name":"Extended color light 1","state":{"alert":"none","bri":254,"colormode":"hs","ct":155,"effect":"none","hue":100,"on":true,"reachable":true,"sat":254,"xy":[0.7483,0.2503]},"swversion":"2.0.2","type":"Extended color light","uniqueid":"00:12:4b:00:1f:6a:0d:7c-0b","device_type":"lights","device_id":1,"device_path":"lights/uniqueid/00:12:4b:00:1f:6a:0d:7c-0b","device_colorcapabilities":["hs","xy","effect","ct"]},"errors":[{"address":"/lights/1/state","description":"missing parameter, effect, for parameter, colorloopspeed","type":5}]}]}

Zehir commented 1 year ago

It's look like there is a unrelated error about colorloop. Can you show the node configuration ?

About the transition time It's send, maybe It's not supported by the device

VincentLiq commented 1 year ago

this is the configuration of the phoscon node [ { "id": "ea372b9a4ee1ad92", "type": "deconz-output", "z": "73e6b4e7cc900d54", "name": "ledstrip", "config_version": 2, "server": "e401b4cf41d8583d", "statustext": "", "statustext_type": "default", "search_type": "device", "device_list": [ "lights/uniqueid/00:12:4b:00:1f:6a:0d:7c-0b" ], "device_name": "", "query": "{}", "commands": [ { "arg": { "on": { "type": "keep", "value": "" }, "alert": { "type": "str", "value": "" }, "effect": { "type": "str", "value": "none" }, "colorloopspeed": { "type": "num", "value": "0" }, "transitiontime": { "type": "num", "value": "0" }, "retryonerror": { "type": "num", "value": "0" }, "aftererror": { "type": "continue", "value": "" }, "bri": { "direction": "set", "type": "num", "value": "255" }, "sat": { "direction": "set", "type": "num", "value": "255" }, "hue": { "direction": "set", "type": "msg", "value": "hue" }, "ct": { "direction": "set", "type": "num", "value": "" }, "xy": { "direction": "set", "type": "json", "value": "[]" } }, "type": "deconz_state", "domain": "lights", "uniqueId": "ui-id-12" } ], "specific": { "delay": { "type": "num", "value": "50" }, "result": { "type": "at_end", "value": "" } }, "x": 660, "y": 320, "wires": [ [] ] }, { "id": "e401b4cf41d8583d", "type": "deconz-server", "name": "DTEC: 1C", "config_version": 1, "ip": "172.16.0.172", "port": "80", "ws_port": "8088", "secure": false, "polling": "15" } ]

Zehir commented 6 months ago

@VincentLiq is this issue still present ?