Allow color_mode to be processed in Kelvin for MQTT json light (#36538)

* Allow color_mode to be processed in Kelvin for MQTT json light

* Update source/_integrations/light.mqtt.markdown

* tiny tweak

---------

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
Jan Bouwhuis 2025-01-14 06:49:31 +01:00 committed by GitHub
parent e58ff18d7b
commit 742e960d64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -597,6 +597,11 @@ brightness_scale:
required: false
type: integer
default: 255
color_temp_kelvin:
description: "When set to `true`, `command_topic` will publish color mode updates in Kelvin, and process `state_topic` will process state updates in Kelvin. By default, the `color_temp` values are converted to and from mireds."
required: false
type: boolean
default: false
command_topic:
description: The MQTT topic to publish commands to change the lights state.
required: true
@ -683,10 +688,20 @@ json_attributes_topic:
description: The MQTT topic subscribed to receive a JSON dictionary payload and then set as sensor attributes. Usage example can be found in [MQTT sensor](/integrations/sensor.mqtt/#json-attributes-topic-configuration) documentation.
required: false
type: string
max_kelvin:
description: The maximum color temperature in Kelvin.
required: false
type: integer
default: 6535
max_mireds:
description: The maximum color temperature in mireds.
required: false
type: integer
min_kelvin:
description: The minimum color temperature in Kelvin.
required: false
type: integer
default: 2000
min_mireds:
description: The minimum color temperature in mireds.
required: false