Smart Home Brightness Trait Schema
action.devices.traits.Brightness
- This trait covers how to control the brightness of a device.
Device ATTRIBUTES
Devices with this trait may report the following
attributes as part of the SYNC
operation. To learn
more about handling SYNC
intents, see Intent fulfillment
.
Attributes | Type | Description |
---|---|---|
commandOnlyBrightness
|
Boolean | (Default: Indicates if the device supports using one-way (true) or two-way (false) communication. Set this attribute to true if the device cannot respond to a QUERY intent or Report State for this trait. |
Examples
Device that supports for brightness commands, states query and reporting.
{}
Device that only support for brightness commands.
{ "commandOnlyBrightness": true }
Device STATES
Devices with this trait may report the following
states as part of the QUERY
operation. To learn
more about handling QUERY
intents, see Intent fulfillment
.
States | Type | Description |
---|---|---|
brightness
|
Integer | Current brightness level of the device. |
Examples
What is the brightness level of my light?
{ "brightness": 65 }
Device COMMANDS
Devices with this trait may respond to the following
commands as part of the EXECUTE
operation. To learn
more about handling EXECUTE
intents, see Intent fulfillment
.
action.devices.commands.BrightnessAbsolute
Adjust device absolute brightness.
Parameters
Parameters | Type | Description |
---|---|---|
brightness
|
Integer | Required. New absolute brightness percentage. |
Examples
Adjust my light to 65% brightness.
{ "command": "action.devices.commands.BrightnessAbsolute", "params": { "brightness": 65 } }
action.devices.commands.BrightnessRelative
Adjust device relative brightness.
This command requires the following attributes:{ "commandOnlyBrightness": true }
Parameters
The payload contains one of the following:
Percentage relative adjustment.
Parameters | Type | Description |
---|---|---|
brightnessRelativePercent
|
Integer | Required. The exact percentage of brightness to change. |
Weight relative adjustment.
Parameters | Type | Description |
---|---|---|
brightnessRelativeWeight
|
Integer | Required. This indicates the ambiguous amount of the brightness change. From small amount to large amount, this param will be scaled to integer 0 to 5, with the sign to indicate direction. |
Examples
Brighten my light by 20%.
{ "command": "action.devices.commands.BrightnessRelative", "params": { "brightnessRelativePercent": 20 } }
Dim my light a little.
{ "command": "action.devices.commands.BrightnessRelative", "params": { "brightnessRelativeWeight": -1 } }
Sample utterances
de-DE
- Bitte mach
das Licht ein bisschen dunkler - Bitte stell
das Flurlicht aufein Drittel -
Die Küche ein wenig heller stellen - Erhöhe die Helligkeit
- Erhöhe die Helligkeit um
20% - Helligkeit
der Leselampe auf5 % - Helligkeit
im Wohnzimmer auf10% stellen - Mach
das Licht bitte20 % dunkler - Mach
das Licht bitte20 % heller - Mach
das Licht sehr hell - Mach
das Schlafzimmer ein bisschen dunkler - Mach
das Wohnzimmer dunkler - Stell
das Licht auf50 % ein. - Stelle
das Licht bitte aufmaximale Helligkeit - Stelle
die Beleuchtung heller - Verringere die Helligkeit
der Beleuchtung - Verringere die Helligkeit
in der Küche um20%
en-US
- brighten
light at10% - brighten
lights by20% - brighten
the kitchen slightly - brighten
the kitchen to50 - brighten
the lights up - dim down
the lights - dim
lights a little more - dim
lights by20% - increase brightness in
living room by100% - make it darker in
the living room - make
the bedroom brighter - make
the lights a little bit brighter - make
the living room a little bit dimmer - reduce brightness in
the living room by50% - set
the light tomaximum - turn brightness on
light tomaximum
es-ES
- pon
las luces a lamitad
fr-FR
- Mets
la lumière sur20 % . - Règle la luminosité du
salon aumaximum . - allume
la lampe à20 % de luminosité - allume
la lumière du salon aumaximum - assombris
la cuisine
de
20 % - augmente
l'éclairage de20 % - augmente
l'éclairage de la cuisine - augmente la luminosité de
10 % dansle salon - augmente la luminosité de
la chambre - augmente
un peu l'éclairage - augmente
un peu la luminosité dela chambre - baisse
les lumières - baisse
les lumières de20 % - baisse
un peu la lumière du salon - luminosité de
la chambre à20 % - moins de luminosité dans
le salon