[Device Support / Bug]: Incorrect color selection / color jumping issue for [TS0505B_1_1]
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.7k
- Forks
- 2k
- Avg merge
- 18h 55m
- Merged PRs (30d)
- 35
Description
What happened?
When changing the color using the color picker in Zigbee2MQTT, the lamp does not set to the selected color. As soon as I release the color picker wheel, the color suddenly jumps to a completely different color (e.g., pink or green). The color selection is unpredictable and unstable.
What did you expect to happen?
The lamp should stay on the exact color selected on the color wheel without jumping to other colors.
How to reproduce it (minimal and precise)
- Go to the device control tab in Zigbee2MQTT.
- Drag the color picker to any specific color.
- Release the picker and observe the physical lamp color changing unexpectedly to a different tone (like pink or green).
Zigbee2MQTT version
2.14.1 (unknown)
Adapter firmware version
{"maintrel":1,"majorrel":2,"minorrel":7,"product":1,"revision":20210708,"transportrev":2}
Adapter
ZStack3x0
Setup
os: #1 SMP PREEMPT_DYNAMIC Thu Jul 30 12:44:18 UTC 2026 - 6.18.39-haos - x64
node: v24.18.1
ha: true
Device database.db entry
No response
Debug log
[9/5/2026, 12:43:11 AM] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Zigbee Lamp', payload '{"brightness":10,"color":{"h":130,"hue":130,"x":0.321,"y":0.3307},"color_mode":"color_temp","color_power_on_behavior":"customized","color_temp":165,"do_not_disturb":null,"effect":null,"level_config":{"on_level":"previous"},"linkquality":90,"state":"ON"}'
[9/5/2026, 12:43:12 AM] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Zigbee Lamp', payload '{"brightness":10,"color":{"h":130,"hue":130,"x":0.4871,"y":0.4147},"color_mode":"color_temp","color_power_on_behavior":"customized","color_temp":418,"do_not_disturb":null,"effect":null,"level_config":{"on_level":"previous"},"linkquality":90,"state":"ON"}'
[9/5/2026, 12:43:13 AM] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Zigbee Lamp', payload '{"brightness":10,"color":{"h":130,"hue":130,"x":0.5267,"y":0.4133},"color_mode":"color_temp","color_power_on_behavior":"customized","color_temp":500,"do_not_disturb":null,"effect":null,"level_config":{"on_level":"previous"},"linkquality":87,"state":"ON"}'
[9/5/2026, 12:43:17 AM] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Zigbee Lamp', payload '{"brightness":10,"color":{"h":130,"hue":130,"x":0.5267,"y":0.4133},"color_mode":"color_temp","color_power_on_behavior":"customized","color_temp":500,"do_not_disturb":null,"effect":null,"level_config":{"on_level":"previous"},"linkquality":90,"state":"ON"}'
[9/5/2026, 12:43:19 AM] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Zigbee Lamp', payload '{"brightness":10,"color":{"h":130,"hue":130,"x":0.445,"y":0.4067},"color_mode":"color_temp","color_power_on_behavior":"customized","color_temp":346,"do_not_disturb":null,"effect":null,"level_config":{"on_level":"previous"},"linkquality":90,"state":"ON"}'
[9/5/2026, 12:43:21 AM] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Zigbee Lamp', payload '{"brightness":10,"color":{"h":130,"hue":130,"x":0.407,"y":0.3916},"color_mode":"color_temp","color_power_on_behavior":"customized","color_temp":288,"do_not_disturb":null,"effect":null,"level_config":{"on_level":"previous"},"linkquality":90,"state":"ON"}'
[9/5/2026, 12:43:23 AM] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Zigbee Lamp', payload '{"brightness":10,"color":{"h":130,"hue":130,"x":0.3629,"y":0.3651},"color_mode":"color_temp","color_power_on_behavior":"customized","color_temp":225,"do_not_disturb":null,"effect":null,"level_config":{"on_level":"previous"},"linkquality":90,"state":"ON"}'
[9/5/2026, 12:43:45 AM] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Zigbee Lamp', payload '{"brightness":10,"color":{"h":130,"hue":130,"x":0.3629,"y":0.3651},"color_mode":"color_temp","color_power_on_behavior":"customized","color_temp":225,"do_not_disturb":false,"effect":null,"level_config":{"on_level":"previous"},"linkquality":90,"state":"ON"}'
[9/5/2026, 12:47:14 AM] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Zigbee Lamp', payload '{"brightness":10,"color":{"h":130,"hue":130,"x":0.3629,"y":0.3651},"color_mode":"color_temp","color_power_on_behavior":"customized","color_temp":225,"do_not_disturb":false,"effect":null,"level_config":{"on_level":"previous"},"linkquality":78,"state":"ON"}'
[9/5/2026, 12:49:09 AM] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Zigbee Lamp', payload '{"brightness":10,"color":{"h":130,"hue":130,"x":0.7347,"y":0.2652999999999999},"color_mode":"xy","color_power_on_behavior":"customized","color_temp":157,"do_not_disturb":false,"effect":null,"level_config":{"on_level":"previous"},"linkquality":84,"state":"ON"}'
[9/5/2026, 12:49:14 AM] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Zigbee Lamp', payload '{"brightness":10,"color":{"h":130,"hue":130,"x":0.4401490053370204,"y":0.31522762894337186},"color_mode":"xy","color_power_on_behavior":"customized","color_temp":489,"do_not_disturb":false,"effect":null,"level_config":{"on_level":"previous"},"linkquality":87,"state":"ON"}'
[9/5/2026, 12:49:14 AM] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Zigbee Lamp', payload '{"brightness":10,"color":{"h":130,"hue":130,"x":0.4401490053370204,"y":0.31522762894337186},"color_mode":"xy","color_power_on_behavior":"customized","color_temp":489,"do_not_disturb":false,"effect":null,"level_config":{"on_level":"previous"},"linkquality":84,"state":"ON"}'
[9/5/2026, 12:49:18 AM] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Zigbee Lamp', payload '{"brightness":10,"color":{"h":130,"hue":130,"x":0.49389750157173884,"y":0.30611703341018853},"color_mode":"xy","color_power_on_behavior":"customized","color_temp":500,"do_not_disturb":false,"effect":null,"level_config":{"on_level":"previous"},"linkquality":87,"state":"ON"}'
[9/5/2026, 12:50:04 AM] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/health', payload '{"response_time":1788562205645,"os":{"load_average":[0.11,0.11,0.09],"memory_used_mb":3599.93,"memory_percent":45.7321},"process":{"uptime_sec":91202,"memory_used_mb":131.01,"memory_percent":1.6643},"mqtt":{"connected":true,"queued":0,"published":896,"received":235},"devices":{"0xa4c1382fbb575af3":{"messages":325,"messages_per_sec":0.0996,"leave_count":0,"network_address_changes":0}}}'
Notes
Device
definition: TS0505B_1_1 - Tuya (v0.0.0)
software_build_id: z.1.0
date_code: undefined
endpoints:
{"1":{"bindings":[],"clusters":{"input":["genBasic","genIdentify","genGroups","genScenes","genOnOff","genLevelCtrl","lightingColorCtrl","touchlink"],"output":["genOta","genTime"]},"configured_reportings":[],"scenes":[]}}
Health
time: Sat Sep 05 2026 01:20:05 GMT+0200 (Central European Summer Time)
os.load_average: 0.14, 0.11, 0.09
os.memory_percent: 45.8222
process.memory_percent: 1.7981
process.uptime_sec: 93002
{"leave_count":0,"messages":652,"messages_per_sec":0.1288,"network_address_changes":0}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the color-picker behavior in the Zigbee2MQTT device control tab and review the debug log alongside the TS0505B_1_1 device definition. Compare the reported color, color_mode, color temperature, and XY values; done means the lamp remains at the color selected on the wheel.
Written by the indexing model from the issue text.
Assessment
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100