Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.google_assistant.trait.TemperatureSettingTrait Class Reference
Inheritance diagram for homeassistant.components.google_assistant.trait.TemperatureSettingTrait:
[legend]
Collaboration diagram for homeassistant.components.google_assistant.trait.TemperatureSettingTrait:
[legend]

Public Member Functions

def climate_google_modes (self)
 
def execute (self, command, data, params, challenge)
 
dict[str, Any] query_attributes (self)
 
dict[str, Any] sync_attributes (self)
 
- Public Member Functions inherited from homeassistant.components.google_assistant.trait._Trait
None __init__ (self, HomeAssistant hass, state, config)
 
def can_execute (self, command, params)
 
dict[str, Any]|None query_notifications (self)
 
dict[str, Any] sync_options (self)
 

Static Public Member Functions

def supported (domain, features, device_class, _)
 
- Static Public Member Functions inherited from homeassistant.components.google_assistant.trait._Trait
def might_2fa (domain, features, device_class)
 

Static Public Attributes

list commands
 
dictionary google_to_hvac = {value: key for key, value in hvac_to_google.items()}
 
dictionary google_to_preset = {value: key for key, value in preset_to_google.items()}
 
dictionary hvac_to_google
 
 name = TRAIT_TEMPERATURE_SETTING
 
dictionary preset_to_google = {climate.PRESET_ECO: "eco"}
 

Additional Inherited Members

- Public Attributes inherited from homeassistant.components.google_assistant.trait._Trait
 config
 
 hass
 
 state
 

Detailed Description

Trait to offer handling both temperature point and modes functionality.

https://developers.google.com/actions/smarthome/traits/temperaturesetting

Definition at line 1121 of file trait.py.

Member Function Documentation

◆ climate_google_modes()

def homeassistant.components.google_assistant.trait.TemperatureSettingTrait.climate_google_modes (   self)
Return supported Google modes.

Definition at line 1155 of file trait.py.

◆ execute()

def homeassistant.components.google_assistant.trait.TemperatureSettingTrait.execute (   self,
  command,
  data,
  params,
  challenge 
)
Execute a temperature point or mode command.

Reimplemented from homeassistant.components.google_assistant.trait._Trait.

Definition at line 1280 of file trait.py.

◆ query_attributes()

dict[str, Any] homeassistant.components.google_assistant.trait.TemperatureSettingTrait.query_attributes (   self)
Return temperature point and modes query attributes.

Reimplemented from homeassistant.components.google_assistant.trait._Trait.

Definition at line 1215 of file trait.py.

◆ supported()

def homeassistant.components.google_assistant.trait.TemperatureSettingTrait.supported (   domain,
  features,
  device_class,
  _ 
)
static
Test if state is supported.

Reimplemented from homeassistant.components.google_assistant.trait._Trait.

Definition at line 1150 of file trait.py.

◆ sync_attributes()

dict[str, Any] homeassistant.components.google_assistant.trait.TemperatureSettingTrait.sync_attributes (   self)
Return temperature point and modes attributes for a sync request.

Reimplemented from homeassistant.components.google_assistant.trait._Trait.

Definition at line 1172 of file trait.py.

Member Data Documentation

◆ commands

list homeassistant.components.google_assistant.trait.TemperatureSettingTrait.commands
static
Initial value:
= [
COMMAND_THERMOSTAT_TEMPERATURE_SETPOINT,
COMMAND_THERMOSTAT_TEMPERATURE_SET_RANGE,
COMMAND_THERMOSTAT_SET_MODE,
]

Definition at line 1128 of file trait.py.

◆ google_to_hvac

dictionary homeassistant.components.google_assistant.trait.TemperatureSettingTrait.google_to_hvac = {value: key for key, value in hvac_to_google.items()}
static

Definition at line 1144 of file trait.py.

◆ google_to_preset

dictionary homeassistant.components.google_assistant.trait.TemperatureSettingTrait.google_to_preset = {value: key for key, value in preset_to_google.items()}
static

Definition at line 1147 of file trait.py.

◆ hvac_to_google

dictionary homeassistant.components.google_assistant.trait.TemperatureSettingTrait.hvac_to_google
static
Initial value:
= {
climate.HVACMode.HEAT: "heat",
climate.HVACMode.COOL: "cool",
climate.HVACMode.OFF: "off",
climate.HVACMode.AUTO: "auto",
climate.HVACMode.HEAT_COOL: "heatcool",
climate.HVACMode.FAN_ONLY: "fan-only",
climate.HVACMode.DRY: "dry",
}

Definition at line 1135 of file trait.py.

◆ name

homeassistant.components.google_assistant.trait.TemperatureSettingTrait.name = TRAIT_TEMPERATURE_SETTING
static

Definition at line 1127 of file trait.py.

◆ preset_to_google

dictionary homeassistant.components.google_assistant.trait.TemperatureSettingTrait.preset_to_google = {climate.PRESET_ECO: "eco"}
static

Definition at line 1146 of file trait.py.


The documentation for this class was generated from the following file: