Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.alexa.smart_home.SmartHomeView Class Reference
Inheritance diagram for homeassistant.components.alexa.smart_home.SmartHomeView:
[legend]
Collaboration diagram for homeassistant.components.alexa.smart_home.SmartHomeView:
[legend]

Public Member Functions

None __init__ (self, AlexaConfig smart_home_config)
 
web.Response|bytes post (self, HomeAssistantRequest request)
 

Public Attributes

 smart_home_config
 

Static Public Attributes

string name = "api:alexa:smart_home"
 
 url = SMART_HOME_HTTP_ENDPOINT
 

Detailed Description

Expose Smart Home v3 payload interface via HTTP POST.

Definition at line 136 of file smart_home.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.alexa.smart_home.SmartHomeView.__init__ (   self,
AlexaConfig  smart_home_config 
)
Initialize.

Definition at line 142 of file smart_home.py.

Member Function Documentation

◆ post()

web.Response | bytes homeassistant.components.alexa.smart_home.SmartHomeView.post (   self,
HomeAssistantRequest  request 
)
Handle Alexa Smart Home requests.

The Smart Home API requires the endpoint to be implemented in AWS
Lambda, which will need to forward the requests to here and pass back
the response.

Definition at line 146 of file smart_home.py.

Member Data Documentation

◆ name

string homeassistant.components.alexa.smart_home.SmartHomeView.name = "api:alexa:smart_home"
static

Definition at line 140 of file smart_home.py.

◆ smart_home_config

homeassistant.components.alexa.smart_home.SmartHomeView.smart_home_config

Definition at line 144 of file smart_home.py.

◆ url

homeassistant.components.alexa.smart_home.SmartHomeView.url = SMART_HOME_HTTP_ENDPOINT
static

Definition at line 139 of file smart_home.py.


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