Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.google_assistant.trait.CameraStreamTrait Class Reference
Inheritance diagram for homeassistant.components.google_assistant.trait.CameraStreamTrait:
[legend]
Collaboration diagram for homeassistant.components.google_assistant.trait.CameraStreamTrait:
[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)
 

Public Attributes

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

Static Public Attributes

list commands = [COMMAND_GET_CAMERA_STREAM]
 
 name = TRAIT_CAMERA_STREAM
 
 None
 

Detailed Description

Trait to stream from cameras.

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

Definition at line 367 of file trait.py.

Member Function Documentation

◆ execute()

def homeassistant.components.google_assistant.trait.CameraStreamTrait.execute (   self,
  command,
  data,
  params,
  challenge 
)
Execute a get camera stream command.

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

Definition at line 398 of file trait.py.

◆ query_attributes()

dict[str, Any] homeassistant.components.google_assistant.trait.CameraStreamTrait.query_attributes (   self)
Return camera stream attributes.

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

Definition at line 394 of file trait.py.

◆ supported()

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

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

Definition at line 379 of file trait.py.

◆ sync_attributes()

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

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

Definition at line 386 of file trait.py.

Member Data Documentation

◆ commands

list homeassistant.components.google_assistant.trait.CameraStreamTrait.commands = [COMMAND_GET_CAMERA_STREAM]
static

Definition at line 374 of file trait.py.

◆ name

homeassistant.components.google_assistant.trait.CameraStreamTrait.name = TRAIT_CAMERA_STREAM
static

Definition at line 373 of file trait.py.

◆ None

homeassistant.components.google_assistant.trait.CameraStreamTrait.None
static

Definition at line 376 of file trait.py.

◆ stream_info

homeassistant.components.google_assistant.trait.CameraStreamTrait.stream_info

Definition at line 401 of file trait.py.


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