Michael Hansen
fdeb9e36c3
Use area id for context instead of name ( #105313 )
2023-12-08 10:05:21 -06:00
Michael Hansen
8c99cf14d3
Context slot decisions moved into hassil ( #104132 )
2023-11-17 11:07:08 -06:00
Michael Hansen
a8acde62ff
Use device area as context during intent recognition ( #103939 )
...
* Use device area as context during intent recognition
* Use guard clauses
2023-11-17 07:34:14 -06:00
Michael Hansen
e157206eeb
Conversation reload with language=None clears all languages ( #103757 )
...
Reload with language=None clears all languages
2023-11-10 13:22:49 -05:00
Tudor Sandu
d3ed8a6b8b
Validate empty sentence triggers ( #103579 )
...
* Validate empty sentence triggers
* Add extra test for no sentences
* Remove extra line
---------
Co-authored-by: Michael Hansen <mike@rhasspy.org>
2023-11-07 11:56:24 -06:00
Michael Hansen
25671a2e42
Add HassNevermind intent (bump intents package) ( #102131 )
...
* Add HassNevermind intent
* Bump intents package to 2023.10.16
2023-10-16 19:13:26 -05:00
Erik Montnemery
da53944a37
Adjust conversation tests which create devices ( #98185 )
2023-08-10 18:22:17 +02:00
Michael Hansen
7cf2199e8b
Bump intents to 2023.8.2 ( #97636 )
2023-08-02 20:01:30 -04:00
Michael Hansen
7e3fdd85fc
Add wildcards to sentence triggers ( #97236 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-07-27 20:30:42 +02:00
Michael Hansen
311c321d06
Add HassShoppingListAddItem to default agent ( #97232 )
...
* Bump hassil and intents package for HassShoppingListAddItem
* Remove hard-coded response text
* Test adding item to the shopping list
* Hook removed import in test for some reason
2023-07-25 22:19:03 -04:00
Franck Nijhof
f2bd122fde
Clean up conversation agent attribution ( #96883 )
...
* Clean up conversation agent attribution
* Clean up google_generative_ai_conversation as well
2023-07-19 09:03:53 +02:00
Michael Hansen
6b8ae0ec86
Ensure trigger sentences do not contain punctuation ( #95633 )
...
* Ensure trigger sentences do not contain punctuation
* Update homeassistant/components/conversation/trigger.py
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-06-30 13:06:26 -05:00
Michael Hansen
487dd3f956
Add targeted entities to sentence debug API ( #95480 )
...
* Return targets with debug sentence API
* Update test
* Update homeassistant/components/conversation/__init__.py
* Include area/domain in test sentences
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-06-28 18:34:43 -04:00
Michael Hansen
79f1c86789
Bump home-assistant-intents to 2023.6.28 ( #95451 )
2023-06-28 19:35:18 +02:00
Paulus Schoutsen
d6cd5648b9
Change conversation default agent behavior ( #95225 )
...
* Change conversation default agent behavior
* Fix tests
2023-06-26 22:10:17 -04:00
Paulus Schoutsen
3f10233833
Add return value to conversation.process service ( #94740 )
...
* Add return value to conversation.process service
* Adjust for new API
2023-06-23 13:32:03 -04:00
Michael Hansen
d811fa0e74
Sentence trigger ( #94613 )
...
* Add async_register_trigger_sentences for default agent
* Add trigger response and trigger handler
* Check callback in test
* Clean up and move response to callback
* Add trigger test
* Drop TriggerAction
* Test we pass sentence to callback
* Match triggers once, allow multiple sentences
* Don't use trigger id
* Use async callback
* No response for now
* Use asyncio.gather for callback responses
* Fix after rebase
* Use a list for trigger sentences
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-06-22 18:29:34 -05:00
Michael Hansen
38614bc3f0
Add websocket command to test intent recognition for default agent ( #94674 )
...
* Add websocket command to test intent recognition for default agent
* Return results as a list
* Only check intent name/entities in test
* Less verbose output in debug API
2023-06-22 12:24:59 -04:00
Paulus Schoutsen
cd330a2740
Pass device ID to conversation input ( #93867 )
2023-05-31 16:56:12 -04:00
Michael Hansen
9f4c9f1ce3
Bump intents to 2023.5.30 ( #93822 )
2023-05-30 22:11:08 +02:00
Michael Hansen
74560ab139
Skip unexposed entities in intent handlers ( #92415 )
...
* Filter intent handler entities by exposure
* Add test for skipping unexposed entities
2023-05-03 12:18:31 -04:00
Erik Montnemery
31de1b17e8
Allow setting google disable 2fa flag on any entity ( #92403 )
...
* Allow setting google disable 2fa flag on any entity
* Fix test
* Include disable_2fa flag in cloud/google_assistant/entities/get
2023-05-03 09:55:38 -04:00
Erik Montnemery
0126cfa9d9
Allow exposing any entity to the default conversation agent ( #92398 )
...
* Allow exposing any entity to the default conversation agent
* Tweak
* Fix race, update tests
* Update tests
2023-05-03 09:45:54 -04:00
Erik Montnemery
4860a8d1e8
Don't use storage collection helper in ExposedEntities ( #92396 )
...
* Don't use storage collection helper in ExposedEntities
* Fix tests
2023-05-03 12:39:22 +02:00
Erik Montnemery
e3c16e634b
Allow exposing entities not in the entity registry to assistants ( #92363 )
2023-05-02 22:08:09 +02:00
Erik Montnemery
f8f7de5d5a
Remove homeassistant from conversation dependencies ( #92170 )
...
* Remove homeassistant from conversation dependencies
* Fix tests
2023-04-28 18:17:48 +02:00
Erik Montnemery
ebd9cd096a
Keep expose setting in sync for assist ( #92158 )
...
* Keep expose setting in sync for assist
* Fix initialization, add test
* Fix tests
* Add AgentManager.async_setup
* Fix typo
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-04-28 15:59:21 +02:00
Erik Montnemery
18f7b92438
Fall back to domain for conversation agents without title ( #92014 )
2023-04-25 22:14:44 +02:00
Paulus Schoutsen
d4fb2cdcf7
Conversation list command to support match-all languages agents ( #91844 )
...
* Conversation list command to support match-all languages agnets
* Reuse var
2023-04-22 12:43:09 -04:00
Michael Hansen
9fdc794b36
Prefer country over language family + MATCH_ALL ( #91753 )
...
* Prefer country over language family
* More test fixes
2023-04-20 13:55:26 -04:00
Erik Montnemery
0429b321b8
Include matching languages in WS conversation/agent/list ( #91730 )
...
* Include matching languages in WS conversation/agent/list
* Allow specifying country
2023-04-20 08:58:43 -04:00
Erik Montnemery
b5ab83def4
Add test for WS conversation/agent/info ( #91652 )
2023-04-19 11:15:21 -04:00
Erik Montnemery
5e9bbeb4ad
Refactor conversation agent WS API for listing agents ( #91590 )
...
* Refactor conversation agent WS API for listing agents
* Add conversation/agent/info back
2023-04-19 10:53:24 -04:00
Erik Montnemery
dc3c47986b
Add property `supported_languages` to `AbstractConversationAgent` ( #91588 )
...
* Add property supported_languages to AbstractConversationAgent
* Fix test
* Use MATCH_ALL for openai supported languages
2023-04-18 15:11:04 -05:00
Paulus Schoutsen
c9d81bd217
Pipelines to default to Home Assistant agent ( #91321 )
...
* Pipelines to default to Home Assistant agent
* Tests fix
2023-04-13 00:34:19 -04:00
Erik Montnemery
2c9e9d0fde
Allow UI configuration of entities exposed to voice_assistant ( #91233 )
...
* Allow UI configuration of entities exposed to voice_assistant
* Invalidate cache when settings change
* Add tests
* Expose entities to conversation by default
* Update tests
2023-04-11 22:39:40 -04:00
Erik Montnemery
3c8397a7b9
Flush conversation name cache when an entity is renamed ( #91214 )
2023-04-11 08:33:08 -04:00
Paulus Schoutsen
ad26317b75
Conversation: allow getting agent info ( #90540 )
...
* Conversation: allow getting agent info
* Add unset agenet back
2023-03-31 14:36:39 -04:00
epenet
0e4c32efe2
Adjust registry access in conversation ( #88879 )
2023-02-28 21:56:18 -05:00
Michael Hansen
59f2b2ad51
Bump intents package version; hassil==1.0.5; home-assistant-intents==2023.2.22 ( #88605 )
...
* Bump hassil and intents versions
* Adjust tests to handle abbreviated responses
2023-02-22 09:36:42 -06:00
Michael Hansen
5bf3a0b7af
Load custom sentences for language variations (en-us, etc.) ( #88498 )
2023-02-20 12:28:04 -05:00
Michael Hansen
325674ec44
Only expose default cloud domains in Assist default agent ( #88274 )
...
* Only expose default cloud domains in default agent
* Copy exposed domain list to conversation
* Implement requested changes
* Add test for exposed devices/areas
2023-02-17 16:19:22 -05:00
Michael Hansen
dc30210237
Use blocking in intent service calls and verify results ( #88035 )
...
* Use blocking in service calls and verify result
* Block for 2 seconds and update states after
* Small timeout in service call to allow exceptions
* Move sun test
2023-02-16 14:01:41 -05:00
epenet
9f688a564f
Add type hints to integration tests (part 4) ( #87848 )
2023-02-11 08:26:13 +01:00
epenet
807c69f621
Add type hints to integration tests (b-c) ( #87698 )
2023-02-08 18:08:43 +01:00
epenet
4142f0d15d
Add return type to tests without arguments ( #87613 )
...
* Add return type to tests without arguments
* Black
* Cancel fixture amends
2023-02-07 14:20:06 +01:00
Paulus Schoutsen
fc38b4327f
Add support for multiple conversation agents ( #87337 )
...
* Add support for multiple conversation agents
* Lock initializing default agent
* Allow unsetting agent when never set
2023-02-03 23:35:29 -05:00
Paulus Schoutsen
f32f46aff5
Fix Assist skipping entities that are hidden or have entity category ( #87096 )
...
Skipping entities that are hidden or have entity category
2023-02-01 10:48:04 -06:00
Michael Hansen
be69c81db5
Prioritize entity names over area names in Assist matching ( #86982 )
...
* Refactor async_match_states
* Check entity name after state, before aliases
* Give entity name matches priority over area names
* Don't force result to have area
* Add area alias in tests
* Move name/area list creation back
* Clean up PR
* More clean up
2023-01-30 23:46:25 -05:00
J. Nick Koston
691a234090
Cache the names and area lists in the default agent ( #86874 )
...
* Cache the names and area lists in the default agent
fixes #86803
* add coverage to make sure the entity cache busts
* add areas test
* cover the last line
2023-01-29 07:16:29 -05:00