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

Public Member Functions

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
 
 name = TRAIT_TEMPERATURE_CONTROL
 

Additional Inherited Members

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

Detailed Description

Trait for devices (other than thermostats) that support controlling temperature.

Control the target temperature of water heaters.
Offers a workaround for Temperature sensors by setting queryOnlyTemperatureControl
in the response.

https://developers.google.com/assistant/smarthome/traits/temperaturecontrol

Definition at line 983 of file trait.py.

Member Function Documentation

◆ execute()

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

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

Definition at line 1088 of file trait.py.

◆ query_attributes()

dict[str, Any] homeassistant.components.google_assistant.trait.TemperatureControlTrait.query_attributes (   self)
Return temperature states.

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

Definition at line 1046 of file trait.py.

◆ supported()

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

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

Definition at line 1000 of file trait.py.

◆ sync_attributes()

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

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

Definition at line 1010 of file trait.py.

Member Data Documentation

◆ commands

list homeassistant.components.google_assistant.trait.TemperatureControlTrait.commands
static
Initial value:
= [
COMMAND_SET_TEMPERATURE,
]

Definition at line 995 of file trait.py.

◆ name

homeassistant.components.google_assistant.trait.TemperatureControlTrait.name = TRAIT_TEMPERATURE_CONTROL
static

Definition at line 993 of file trait.py.


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