Skip to content

Commit ae6a082

Browse files
authored
Add flash and transition feature flags for MQTT json light (#38478)
1 parent f6426cd commit ae6a082

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

source/_integrations/light.mqtt.markdown

+10
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,11 @@ effect_list:
666666
description: The list of effects the light supports.
667667
required: false
668668
type: [string, list]
669+
flash:
670+
description: Flag that defines if light supports the flash feature.
671+
required: false
672+
type: boolean
673+
default: true
669674
flash_time_long:
670675
description: The duration, in seconds, of a “long” flash.
671676
required: false
@@ -757,6 +762,11 @@ supported_color_modes:
757762
description: A list of color modes supported by the list. Possible color modes are `onoff`, `brightness`, `color_temp`, `hs`, `xy`, `rgb`, `rgbw`, `rgbww`, `white`. Note that if `onoff` **or** `brightness` are used, that must be the _only_ value in the list.
758763
required: false
759764
type: list
765+
transition:
766+
description: Flag that defines if light supports the transition feature.
767+
required: false
768+
type: boolean
769+
default: true
760770
unique_id:
761771
description: An ID that uniquely identifies this light. If two lights have the same unique ID, Home Assistant will raise an exception. Required when used with device-based discovery.
762772
required: false

source/_integrations/mqtt.markdown

+2
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,7 @@ support_url:
740740
'evt_typ': 'event_types',
741741
'exp_aft': 'expire_after',
742742
'fanspd_lst': 'fan_speed_list',
743+
'flsh': 'flash',
743744
'flsh_tlng': 'flash_time_long',
744745
'flsh_tsht': 'flash_time_short',
745746
'fx_cmd_t': 'effect_command_topic',
@@ -933,6 +934,7 @@ support_url:
933934
'tilt_status_t': 'tilt_status_topic',
934935
'tilt_status_tpl': 'tilt_status_template',
935936
'tit': 'title',
937+
'trns': 'transition',
936938
'uniq_id': 'unique_id',
937939
'unit_of_meas': 'unit_of_measurement',
938940
'url_t': 'url_topic',

0 commit comments

Comments
 (0)