mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 21:36:52 +00:00
Add flash and transition feature flags for MQTT json light (#38478)
This commit is contained in:
parent
f6426cda2e
commit
ae6a082e47
@ -666,6 +666,11 @@ effect_list:
|
|||||||
description: The list of effects the light supports.
|
description: The list of effects the light supports.
|
||||||
required: false
|
required: false
|
||||||
type: [string, list]
|
type: [string, list]
|
||||||
|
flash:
|
||||||
|
description: Flag that defines if light supports the flash feature.
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
flash_time_long:
|
flash_time_long:
|
||||||
description: The duration, in seconds, of a “long” flash.
|
description: The duration, in seconds, of a “long” flash.
|
||||||
required: false
|
required: false
|
||||||
@ -757,6 +762,11 @@ supported_color_modes:
|
|||||||
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.
|
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.
|
||||||
required: false
|
required: false
|
||||||
type: list
|
type: list
|
||||||
|
transition:
|
||||||
|
description: Flag that defines if light supports the transition feature.
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
unique_id:
|
unique_id:
|
||||||
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.
|
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.
|
||||||
required: false
|
required: false
|
||||||
|
@ -740,6 +740,7 @@ support_url:
|
|||||||
'evt_typ': 'event_types',
|
'evt_typ': 'event_types',
|
||||||
'exp_aft': 'expire_after',
|
'exp_aft': 'expire_after',
|
||||||
'fanspd_lst': 'fan_speed_list',
|
'fanspd_lst': 'fan_speed_list',
|
||||||
|
'flsh': 'flash',
|
||||||
'flsh_tlng': 'flash_time_long',
|
'flsh_tlng': 'flash_time_long',
|
||||||
'flsh_tsht': 'flash_time_short',
|
'flsh_tsht': 'flash_time_short',
|
||||||
'fx_cmd_t': 'effect_command_topic',
|
'fx_cmd_t': 'effect_command_topic',
|
||||||
@ -933,6 +934,7 @@ support_url:
|
|||||||
'tilt_status_t': 'tilt_status_topic',
|
'tilt_status_t': 'tilt_status_topic',
|
||||||
'tilt_status_tpl': 'tilt_status_template',
|
'tilt_status_tpl': 'tilt_status_template',
|
||||||
'tit': 'title',
|
'tit': 'title',
|
||||||
|
'trns': 'transition',
|
||||||
'uniq_id': 'unique_id',
|
'uniq_id': 'unique_id',
|
||||||
'unit_of_meas': 'unit_of_measurement',
|
'unit_of_meas': 'unit_of_measurement',
|
||||||
'url_t': 'url_topic',
|
'url_t': 'url_topic',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user