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

Public Member Functions

None __init__ (self, str intent_type, str domain, str service, str|None speech=None, _IntentSlotsType|None required_slots=None, _IntentSlotsType|None optional_slots=None, set[str]|None required_domains=None, int|None required_features=None, set[str]|None required_states=None, str|None description=None, set[str]|None platforms=None, set[type[StrEnum]]|None device_classes=None)
 
tuple[str, str] get_domain_and_service (self, Intent intent_obj, State state)
 
- Public Member Functions inherited from homeassistant.helpers.intent.DynamicServiceIntentHandler
None __init__ (self, str intent_type, str|None speech=None, _IntentSlotsType|None required_slots=None, _IntentSlotsType|None optional_slots=None, set[str]|None required_domains=None, int|None required_features=None, set[str]|None required_states=None, str|None description=None, set[str]|None platforms=None, set[type[StrEnum]]|None device_classes=None)
 
None async_call_service (self, str domain, str service, Intent intent_obj, State state)
 
IntentResponse async_handle (self, Intent intent_obj)
 
IntentResponse async_handle_states (self, Intent intent_obj, MatchTargetsResult match_result, MatchTargetsConstraints match_constraints, MatchTargetsPreferences|None match_preferences=None)
 
dict slot_schema (self)
 
- Public Member Functions inherited from homeassistant.helpers.intent.IntentHandler
str __repr__ (self)
 
bool async_can_handle (self, Intent intent_obj)
 
_SlotsType async_validate_slots (self, _SlotsType slots)
 

Public Attributes

 domain
 
 service
 
- Public Attributes inherited from homeassistant.helpers.intent.DynamicServiceIntentHandler
 description
 
 device_classes
 
 intent_type
 
 platforms
 
 required_domains
 
 required_features
 
 required_states
 
 speech
 

Additional Inherited Members

- Static Public Attributes inherited from homeassistant.helpers.intent.DynamicServiceIntentHandler
 float
 
- Static Public Attributes inherited from homeassistant.helpers.intent.IntentHandler
 None
 

Detailed Description

Service Intent handler registration.

Service specific intent handler that calls a service by name/entity_id.

Definition at line 1146 of file intent.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.helpers.intent.ServiceIntentHandler.__init__ (   self,
str  intent_type,
str  domain,
str  service,
str | None   speech = None,
_IntentSlotsType | None   required_slots = None,
_IntentSlotsType | None   optional_slots = None,
set[str] | None   required_domains = None,
int | None   required_features = None,
set[str] | None   required_states = None,
str | None   description = None,
set[str] | None   platforms = None,
set[type[StrEnum]] | None   device_classes = None 
)
Create service handler.

Definition at line 1152 of file intent.py.

Member Function Documentation

◆ get_domain_and_service()

tuple[str, str] homeassistant.helpers.intent.ServiceIntentHandler.get_domain_and_service (   self,
Intent  intent_obj,
State   state 
)
Get the domain and service name to call.

Reimplemented from homeassistant.helpers.intent.DynamicServiceIntentHandler.

Definition at line 1183 of file intent.py.

Member Data Documentation

◆ domain

homeassistant.helpers.intent.ServiceIntentHandler.domain

Definition at line 1180 of file intent.py.

◆ service

homeassistant.helpers.intent.ServiceIntentHandler.service

Definition at line 1181 of file intent.py.


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