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

Public Member Functions

def __init__ (self, hass, state, config)
 
def execute (self, command, data, params, challenge)
 
def execute_fanspeed (self, data, params)
 
def execute_reverse (self, data, params)
 
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 = [COMMAND_SET_FAN_SPEED, COMMAND_REVERSE]
 
 name = TRAIT_FAN_SPEED
 

Private Attributes

 _ordered_speed
 

Additional Inherited Members

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

Detailed Description

Trait to control speed of Fan.

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

Definition at line 1687 of file trait.py.

Constructor & Destructor Documentation

◆ __init__()

def homeassistant.components.google_assistant.trait.FanSpeedTrait.__init__ (   self,
  hass,
  state,
  config 
)
Initialize a trait for a state.

Definition at line 1696 of file trait.py.

Member Function Documentation

◆ execute()

def homeassistant.components.google_assistant.trait.FanSpeedTrait.execute (   self,
  command,
  data,
  params,
  challenge 
)
Execute a smart home command.

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

Definition at line 1837 of file trait.py.

◆ execute_fanspeed()

def homeassistant.components.google_assistant.trait.FanSpeedTrait.execute_fanspeed (   self,
  data,
  params 
)
Execute an SetFanSpeed command.

Definition at line 1787 of file trait.py.

◆ execute_reverse()

def homeassistant.components.google_assistant.trait.FanSpeedTrait.execute_reverse (   self,
  data,
  params 
)
Execute a Reverse command.

Definition at line 1821 of file trait.py.

◆ query_attributes()

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

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

Definition at line 1768 of file trait.py.

◆ supported()

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

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

Definition at line 1711 of file trait.py.

◆ sync_attributes()

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

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

Definition at line 1719 of file trait.py.

Member Data Documentation

◆ _ordered_speed

homeassistant.components.google_assistant.trait.FanSpeedTrait._ordered_speed
private

Definition at line 1706 of file trait.py.

◆ commands

list homeassistant.components.google_assistant.trait.FanSpeedTrait.commands = [COMMAND_SET_FAN_SPEED, COMMAND_REVERSE]
static

Definition at line 1694 of file trait.py.

◆ name

homeassistant.components.google_assistant.trait.FanSpeedTrait.name = TRAIT_FAN_SPEED
static

Definition at line 1693 of file trait.py.


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