Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.google_assistant.trait.StartStopTrait Class Reference
Inheritance diagram for homeassistant.components.google_assistant.trait.StartStopTrait:
[legend]
Collaboration diagram for homeassistant.components.google_assistant.trait.StartStopTrait:
[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 = [COMMAND_START_STOP, COMMAND_PAUSE_UNPAUSE]
 
 name = TRAIT_START_STOP
 

Private Member Functions

def _execute_cover_or_valve (self, command, data, params, challenge)
 
def _execute_vacuum (self, command, data, params, challenge)
 

Additional Inherited Members

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

Detailed Description

Trait to offer StartStop functionality.

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

Definition at line 841 of file trait.py.

Member Function Documentation

◆ _execute_cover_or_valve()

def homeassistant.components.google_assistant.trait.StartStopTrait._execute_cover_or_valve (   self,
  command,
  data,
  params,
  challenge 
)
private
Execute a StartStop command.

Definition at line 947 of file trait.py.

◆ _execute_vacuum()

def homeassistant.components.google_assistant.trait.StartStopTrait._execute_vacuum (   self,
  command,
  data,
  params,
  challenge 
)
private
Execute a StartStop command.

Definition at line 910 of file trait.py.

◆ execute()

def homeassistant.components.google_assistant.trait.StartStopTrait.execute (   self,
  command,
  data,
  params,
  challenge 
)
Execute a StartStop command.

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

Definition at line 900 of file trait.py.

◆ query_attributes()

dict[str, Any] homeassistant.components.google_assistant.trait.StartStopTrait.query_attributes (   self)
Return StartStop query attributes.

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

Definition at line 878 of file trait.py.

◆ supported()

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

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

Definition at line 851 of file trait.py.

◆ sync_attributes()

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

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

Definition at line 864 of file trait.py.

Member Data Documentation

◆ commands

list homeassistant.components.google_assistant.trait.StartStopTrait.commands = [COMMAND_START_STOP, COMMAND_PAUSE_UNPAUSE]
static

Definition at line 848 of file trait.py.

◆ name

homeassistant.components.google_assistant.trait.StartStopTrait.name = TRAIT_START_STOP
static

Definition at line 847 of file trait.py.


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