Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
12.23k stars 1.69k forks source link

TS0504B RGBW controller does not expose `color_power_on_behavior` or `do_not_disturb` #21830

Closed bwindsor closed 8 months ago

bwindsor commented 8 months ago

What happened?

I should be able to set the power on behavior for this device.

What did you expect to happen?

I am unable to set the power on behavior for this device through the Z2M frontend.

I notice that the TS0503B, which is exactly the same device without the white channel, does support these.

image

The only difference in the code is that the TS0504B has an additional custom color converter to handle the white channel:

https://github.com/Koenkk/zigbee-herdsman-converters/blob/523c1e7147a2178382c9cb883e047bffdd0c2a18/src/devices/tuya.ts#L1104-L1122

Is this extra toZigbee converter somehow removing the color_power_on_behavior and do_not_disturb exposes?

(aside, my device also has white label {vendor: 'BTF-Lighting', model: 'C04Z'} which is not included in the converters.)

How to reproduce it (minimal and precise)

Connect a TS0504B device to a Zigbee network. It appears in Z2M but only light attributes are exposed. After a power interruption the lights come on and I can't change this from Z2M.

Zigbee2MQTT version

1.34.0

Adapter firmware version

0x26580700

Adapter

ConBee2

Setup

HA add-on, raspberry pi 4, HAOS.

Debug log

No response

Koenkk commented 8 months ago

All these options should be present in the latest dev branch

bwindsor commented 8 months ago

Right, sorry for unnecessary noise, I hadn't understood that the master branch of herdsman converters isn't what's in production, and z2m just refers to a particular release of the converters. I'll close this and test the dev branch and will reopen if I find the issue still exists.