Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.alexa.capabilities Namespace Reference

Classes

class  Alexa
 
class  AlexaBrightnessController
 
class  AlexaCameraStreamController
 
class  AlexaCapability
 
class  AlexaChannelController
 
class  AlexaColorController
 
class  AlexaColorTemperatureController
 
class  AlexaContactSensor
 
class  AlexaDoorbellEventSource
 
class  AlexaEndpointHealth
 
class  AlexaEqualizerController
 
class  AlexaEventDetectionSensor
 
class  AlexaInputController
 
class  AlexaLockController
 
class  AlexaModeController
 
class  AlexaMotionSensor
 
class  AlexaPlaybackController
 
class  AlexaPlaybackStateReporter
 
class  AlexaPowerController
 
class  AlexaPowerLevelController
 
class  AlexaRangeController
 
class  AlexaSceneController
 
class  AlexaSecurityPanelController
 
class  AlexaSeekController
 
class  AlexaSpeaker
 
class  AlexaStepSpeaker
 
class  AlexaTemperatureSensor
 
class  AlexaThermostatController
 
class  AlexaTimeHoldController
 
class  AlexaToggleController
 

Functions

str get_resource_by_unit_of_measurement (State entity)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
dictionary UNIT_TO_CATALOG_TAG
 

Detailed Description

Alexa capabilities.

Function Documentation

◆ get_resource_by_unit_of_measurement()

str homeassistant.components.alexa.capabilities.get_resource_by_unit_of_measurement ( State  entity)
Translate the unit of measurement to an Alexa Global Catalog keyword.

Definition at line 98 of file capabilities.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.alexa.capabilities._LOGGER = logging.getLogger(__name__)
private

Definition at line 73 of file capabilities.py.

◆ UNIT_TO_CATALOG_TAG

dictionary homeassistant.components.alexa.capabilities.UNIT_TO_CATALOG_TAG
Initial value:
1 = {
2  UnitOfTemperature.CELSIUS: AlexaGlobalCatalog.UNIT_TEMPERATURE_CELSIUS,
3  UnitOfTemperature.FAHRENHEIT: AlexaGlobalCatalog.UNIT_TEMPERATURE_FAHRENHEIT,
4  UnitOfTemperature.KELVIN: AlexaGlobalCatalog.UNIT_TEMPERATURE_KELVIN,
5  UnitOfLength.METERS: AlexaGlobalCatalog.UNIT_DISTANCE_METERS,
6  UnitOfLength.KILOMETERS: AlexaGlobalCatalog.UNIT_DISTANCE_KILOMETERS,
7  UnitOfLength.INCHES: AlexaGlobalCatalog.UNIT_DISTANCE_INCHES,
8  UnitOfLength.FEET: AlexaGlobalCatalog.UNIT_DISTANCE_FEET,
9  UnitOfLength.YARDS: AlexaGlobalCatalog.UNIT_DISTANCE_YARDS,
10  UnitOfLength.MILES: AlexaGlobalCatalog.UNIT_DISTANCE_MILES,
11  UnitOfMass.GRAMS: AlexaGlobalCatalog.UNIT_MASS_GRAMS,
12  UnitOfMass.KILOGRAMS: AlexaGlobalCatalog.UNIT_MASS_KILOGRAMS,
13  UnitOfMass.POUNDS: AlexaGlobalCatalog.UNIT_WEIGHT_POUNDS,
14  UnitOfMass.OUNCES: AlexaGlobalCatalog.UNIT_WEIGHT_OUNCES,
15  UnitOfVolume.LITERS: AlexaGlobalCatalog.UNIT_VOLUME_LITERS,
16  UnitOfVolume.CUBIC_FEET: AlexaGlobalCatalog.UNIT_VOLUME_CUBIC_FEET,
17  UnitOfVolume.CUBIC_METERS: AlexaGlobalCatalog.UNIT_VOLUME_CUBIC_METERS,
18  UnitOfVolume.GALLONS: AlexaGlobalCatalog.UNIT_VOLUME_GALLONS,
19  PERCENTAGE: AlexaGlobalCatalog.UNIT_PERCENT,
20  "preset": AlexaGlobalCatalog.SETTING_PRESET,
21 }

Definition at line 75 of file capabilities.py.