Classes | |
| class | DynamicServiceIntentHandler |
| class | Intent |
| class | IntentCategory |
| class | IntentError |
| class | IntentHandleError |
| class | IntentHandler |
| class | IntentResponse |
| class | IntentResponseErrorCode |
| class | IntentResponseTarget |
| class | IntentResponseTargetType |
| class | IntentResponseType |
| class | IntentUnexpectedError |
| class | InvalidSlotInfo |
| class | MatchFailedError |
| class | MatchFailedReason |
| class | MatchTargetsCandidate |
| class | MatchTargetsConstraints |
| class | MatchTargetsPreferences |
| class | MatchTargetsResult |
| class | NoStatesMatchedError |
| class | ServiceIntentHandler |
| class | UnknownIntent |
Functions | |
| None | _add_areas (area_registry.AreaRegistry areas, device_registry.DeviceRegistry devices, Iterable[MatchTargetsCandidate] candidates) |
| Iterable[MatchTargetsCandidate] | _filter_by_device_classes (Iterable[str] device_classes, Iterable[MatchTargetsCandidate] candidates) |
| Iterable[MatchTargetsCandidate] | _filter_by_features (int features, Iterable[MatchTargetsCandidate] candidates) |
| Iterable[MatchTargetsCandidate] | _filter_by_name (str name, Iterable[MatchTargetsCandidate] candidates) |
| str | _normalize_name (str name) |
| Iterable[IntentHandler] | async_get (HomeAssistant hass) |
| IntentResponse | async_handle (HomeAssistant hass, str platform, str intent_type, _SlotsType|None slots=None, str|None text_input=None, Context|None context=None, str|None language=None, str|None assistant=None, str|None device_id=None, str|None conversation_agent_id=None) |
| Iterable[State] | async_match_states (HomeAssistant hass, str|None name=None, str|None area_name=None, str|None floor_name=None, Collection[str]|None domains=None, Collection[str]|None device_classes=None, list[State]|None states=None, str|None assistant=None) |
| MatchTargetsResult | async_match_targets (HomeAssistant hass, MatchTargetsConstraints constraints, MatchTargetsPreferences|None preferences=None, list[State]|None states=None) |
| None | async_register (HomeAssistant hass, IntentHandler handler) |
| None | async_remove (HomeAssistant hass, str intent_type) |
| None | async_test_feature (State state, int feature, str feature_name) |
| Iterable[area_registry.AreaEntry] | find_areas (str name, area_registry.AreaRegistry areas) |
| Iterable[floor_registry.FloorEntry] | find_floors (str name, floor_registry.FloorRegistry floors) |
| str | non_empty_string (Any value) |
Variables | |
| _IntentSlotsType | |
| _LOGGER = logging.getLogger(__name__) | |
| _SlotsType | |
| string | INTENT_CANCEL_ALL_TIMERS = "HassCancelAllTimers" |
| string | INTENT_CANCEL_TIMER = "HassCancelTimer" |
| string | INTENT_DECREASE_TIMER = "HassDecreaseTimer" |
| string | INTENT_GET_CURRENT_DATE = "HassGetCurrentDate" |
| string | INTENT_GET_CURRENT_TIME = "HassGetCurrentTime" |
| string | INTENT_GET_STATE = "HassGetState" |
| string | INTENT_INCREASE_TIMER = "HassIncreaseTimer" |
| string | INTENT_NEVERMIND = "HassNevermind" |
| string | INTENT_PAUSE_TIMER = "HassPauseTimer" |
| string | INTENT_RESPOND = "HassRespond" |
| string | INTENT_SET_POSITION = "HassSetPosition" |
| string | INTENT_START_TIMER = "HassStartTimer" |
| string | INTENT_TIMER_STATUS = "HassTimerStatus" |
| string | INTENT_TOGGLE = "HassToggle" |
| string | INTENT_TURN_OFF = "HassTurnOff" |
| string | INTENT_TURN_ON = "HassTurnOn" |
| string | INTENT_UNPAUSE_TIMER = "HassUnpauseTimer" |
| SLOT_SCHEMA = vol.Schema({}, extra=vol.ALLOW_EXTRA) | |
| string | SPEECH_TYPE_PLAIN = "plain" |
| string | SPEECH_TYPE_SSML = "ssml" |
Module to coordinate user intentions.
|
private |
|
private |
|
private |
|
private |
|
private |
| Iterable[IntentHandler] homeassistant.helpers.intent.async_get | ( | HomeAssistant | hass | ) |
| IntentResponse homeassistant.helpers.intent.async_handle | ( | HomeAssistant | hass, |
| str | platform, | ||
| str | intent_type, | ||
| _SlotsType | None | slots = None, |
||
| str | None | text_input = None, |
||
| Context | None | context = None, |
||
| str | None | language = None, |
||
| str | None | assistant = None, |
||
| str | None | device_id = None, |
||
| str | None | conversation_agent_id = None |
||
| ) |
| Iterable[State] homeassistant.helpers.intent.async_match_states | ( | HomeAssistant | hass, |
| str | None | name = None, |
||
| str | None | area_name = None, |
||
| str | None | floor_name = None, |
||
| Collection[str] | None | domains = None, |
||
| Collection[str] | None | device_classes = None, |
||
| list[State] | None | states = None, |
||
| str | None | assistant = None |
||
| ) |
| MatchTargetsResult homeassistant.helpers.intent.async_match_targets | ( | HomeAssistant | hass, |
| MatchTargetsConstraints | constraints, | ||
| MatchTargetsPreferences | None | preferences = None, |
||
| list[State] | None | states = None |
||
| ) |
| None homeassistant.helpers.intent.async_register | ( | HomeAssistant | hass, |
| IntentHandler | handler | ||
| ) |
| None homeassistant.helpers.intent.async_remove | ( | HomeAssistant | hass, |
| str | intent_type | ||
| ) |
| None homeassistant.helpers.intent.async_test_feature | ( | State | state, |
| int | feature, | ||
| str | feature_name | ||
| ) |
| Iterable[area_registry.AreaEntry] homeassistant.helpers.intent.find_areas | ( | str | name, |
| area_registry.AreaRegistry | areas | ||
| ) |
| Iterable[floor_registry.FloorEntry] homeassistant.helpers.intent.find_floors | ( | str | name, |
| floor_registry.FloorRegistry | floors | ||
| ) |
| str homeassistant.helpers.intent.non_empty_string | ( | Any | value | ) |
|
private |
| string homeassistant.helpers.intent.INTENT_CANCEL_ALL_TIMERS = "HassCancelAllTimers" |
| string homeassistant.helpers.intent.INTENT_CANCEL_TIMER = "HassCancelTimer" |
| string homeassistant.helpers.intent.INTENT_DECREASE_TIMER = "HassDecreaseTimer" |
| string homeassistant.helpers.intent.INTENT_GET_CURRENT_DATE = "HassGetCurrentDate" |
| string homeassistant.helpers.intent.INTENT_GET_CURRENT_TIME = "HassGetCurrentTime" |
| string homeassistant.helpers.intent.INTENT_GET_STATE = "HassGetState" |
| string homeassistant.helpers.intent.INTENT_INCREASE_TIMER = "HassIncreaseTimer" |
| string homeassistant.helpers.intent.INTENT_NEVERMIND = "HassNevermind" |
| string homeassistant.helpers.intent.INTENT_PAUSE_TIMER = "HassPauseTimer" |
| string homeassistant.helpers.intent.INTENT_RESPOND = "HassRespond" |
| string homeassistant.helpers.intent.INTENT_SET_POSITION = "HassSetPosition" |
| string homeassistant.helpers.intent.INTENT_START_TIMER = "HassStartTimer" |
| string homeassistant.helpers.intent.INTENT_TIMER_STATUS = "HassTimerStatus" |
| string homeassistant.helpers.intent.INTENT_TOGGLE = "HassToggle" |
| string homeassistant.helpers.intent.INTENT_TURN_OFF = "HassTurnOff" |
| string homeassistant.helpers.intent.INTENT_TURN_ON = "HassTurnOn" |
| string homeassistant.helpers.intent.INTENT_UNPAUSE_TIMER = "HassUnpauseTimer" |
| homeassistant.helpers.intent.SLOT_SCHEMA = vol.Schema({}, extra=vol.ALLOW_EXTRA) |
| string homeassistant.helpers.intent.SPEECH_TYPE_PLAIN = "plain" |