Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.intent.GetStateIntentHandler Class Reference
Inheritance diagram for homeassistant.components.intent.GetStateIntentHandler:
[legend]
Collaboration diagram for homeassistant.components.intent.GetStateIntentHandler:
[legend]

Public Member Functions

intent.IntentResponse async_handle (self, intent.Intent intent_obj)
 

Static Public Attributes

string description = "Gets or checks the state of a device or entity"
 
 intent_type = intent.INTENT_GET_STATE
 
dictionary slot_schema
 

Detailed Description

Answer questions about entity states.

Definition at line 235 of file __init__.py.

Member Function Documentation

◆ async_handle()

intent.IntentResponse homeassistant.components.intent.GetStateIntentHandler.async_handle (   self,
intent.Intent  intent_obj 
)
Handle the hass intent.

Definition at line 249 of file __init__.py.

Member Data Documentation

◆ description

string homeassistant.components.intent.GetStateIntentHandler.description = "Gets or checks the state of a device or entity"
static

Definition at line 239 of file __init__.py.

◆ intent_type

homeassistant.components.intent.GetStateIntentHandler.intent_type = intent.INTENT_GET_STATE
static

Definition at line 238 of file __init__.py.

◆ slot_schema

dictionary homeassistant.components.intent.GetStateIntentHandler.slot_schema
static
Initial value:
= {
vol.Any("name", "area", "floor"): cv.string,
vol.Optional("domain"): vol.All(cv.ensure_list, [cv.string]),
vol.Optional("device_class"): vol.All(cv.ensure_list, [cv.string]),
vol.Optional("state"): vol.All(cv.ensure_list, [cv.string]),
vol.Optional("preferred_area_id"): cv.string,
vol.Optional("preferred_floor_id"): cv.string,
}

Definition at line 240 of file __init__.py.


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