Closed dwmw2 closed 2 months ago
Manually built (git clone - npm run build - npm install
9.18.1
13.3.0
Light objects are advertised for MQTT AutoDiscovery using an out-of-date method.
The documentation at https://developers.home-assistant.io/docs/core/entity/light/ says that all lights should report supported_color_modes, including those which only support ColorMode.BRIGHTNESS or ColorMode.ONOFF.
supported_color_modes
ColorMode.BRIGHTNESS
ColorMode.ONOFF
Use a Z-Wave light/dimmer device, and see the contents of its discovery topic.
I expected to see
supported_color_modes: ["brightness"],
or
supported_color_modes: ["onoff"],
in the device configuration object.
No response
@dwmw2 Prepared a fix on #3895
That was fast. Thanks!
Checklist
Deploy method
Manually built (git clone - npm run build - npm install
Z-Wave JS UI version
9.18.1
ZwaveJS version
13.3.0
Describe the bug
Light objects are advertised for MQTT AutoDiscovery using an out-of-date method.
The documentation at https://developers.home-assistant.io/docs/core/entity/light/ says that all lights should report
supported_color_modes
, including those which only supportColorMode.BRIGHTNESS
orColorMode.ONOFF
.To Reproduce
Use a Z-Wave light/dimmer device, and see the contents of its discovery topic.
Expected behavior
I expected to see
or
in the device configuration object.
Additional context
No response