1
0
mirror of https://github.com/home-assistant/core.git synced 2025-06-07 22:57:06 +00:00

20 Commits

Author SHA1 Message Date
Allen Porter
6675b497bd
Improve LLM tool descriptions for brightness and volume percentage ()
* Improve tool descriptions for brightness and volume percentage

* Address lint errors

* Update intent.py to revert of a light

* Create explicit types to make intent slots more future proof

* Remove comments about slot type

---------

Co-authored-by: Franck Nijhof <git@frenck.dev>
2025-03-08 22:28:35 -05:00
epenet
a05ac6255c
Standardize util imports () 2025-01-28 15:54:06 +01:00
epenet
3c06fe1e21
Move light constants to separate module () 2024-12-06 20:25:17 +01:00
Michael Hansen
2dc49f0410
Add platforms to intent handlers () 2024-05-28 16:46:08 -04:00
Michael Hansen
75ab4d2398
Add temperature slot to light turn on intent () 2024-05-28 14:53:49 -04:00
Michael Hansen
8079cc0464
Add description to intent handlers and use in LLM helper () 2024-05-21 12:54:34 -04:00
Michael Hansen
7923471b94
Intent target matching and media player enhancements ()
* Working

* Tests are passing

* Fix climate

* Requested changes from review
2024-05-07 22:01:03 -04:00
Marc Mueller
59a6035d3f
Add empty line after module docstring [j-m] () 2024-03-08 09:01:29 -05:00
epenet
54f709f704
Adjust registry access in intent () 2023-02-28 21:58:19 -05:00
Michael Hansen
ea95abcb30
Use intent responses from home-assistant-intents ()
* Use intent responses from home_assistant_intents

* Use error responses from home_assistant_intents

* Remove speech checks for intent tests (set by conversation now)

* Bump hassil and home-assistant-intents versions

* Use Home Assistant JSON reader when loading intents

* Remove speech checks for light tests (done in agent)

* Add more tests for code coverage

* Add test for reloading on new component

* Add test for non-default response
2023-01-23 22:38:41 -05:00
Michael Hansen
5aca996f22
HassTurnOn/Off intents to also handle cover entities ()
* Move entity/area resolution to async_match_states

* Special case for covers in HassTurnOn/Off

* Enable light color/brightness on areas

* Remove async_register from default agent

* Remove CONFIG_SCHEMA from conversation component

* Fix intent tests

* Fix light test

* Move entity/area resolution to async_match_states

* Special case for covers in HassTurnOn/Off

* Enable light color/brightness on areas

* Remove async_register from default agent

* Remove CONFIG_SCHEMA from conversation component

* Fix intent tests

* Fix light test

* Fix humidifier intent handlers

* Remove DATA_CONFIG for conversation

* Copy ServiceIntentHandler code to light

* Add proper errors to humidifier intent handlers
2023-01-19 17:15:01 -06:00
Michael Hansen
961c8cc167
Update intent response ()
* Add language to conversation and intent response

* Move language to intent response instead of speech

* Extend intent response for voice MVP

* Add tests for error conditions in conversation/process

* Move intent response type data into "data" field

* Move intent response error message back to speech

* Remove "success" from intent response

* Add id to target in intent response

* target defaults to None

* Update homeassistant/helpers/intent.py

* Fix test

* Return conversation_id and multiple targets

* Clean up git mess

* Fix linting errors

* Fix more async_handle signatures

* Separate conversation_id and IntentResponse

* Add unknown error code

* Add ConversationResult

* Don't set domain on single entity

* Language is required for intent response

* Add partial_action_done

* Default language in almond agent

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-12-13 16:46:40 -06:00
Franck Nijhof
69e622b327
Clean up accessing intent helpers via hass () 2022-05-17 20:33:51 +02:00
Marc Mueller
ae6d9c229e
Use const imports [l-z] () 2022-01-05 18:21:20 +01:00
Erik Montnemery
bcd8f43e7b
Update light intents to check supported_color_modes () 2021-05-14 14:23:29 -07:00
J. Nick Koston
251d8919ea
Add domain filter support to async_all to match async_entity_ids ()
This avoids copying all the states before applying
the filter
2020-09-06 23:20:32 +02:00
springstan
157f972d72
Use f-strings in integrations starting with "H" - "L" ()
* Use f-strings in integrations starting with "H"

* Use f-strings in integrations starting with "I"

* Use f-strings in integrations starting with "J"

* Use f-strings in integrations starting with "K"

* Use f-strings in integrations starting with "L"

* Fix lint error

* Use join instead of f-string in homekit_controller

* Use local variables with f-strings

* Fix lint error

* Escape the characters in f-string

* Sort imports with isort in homeworks light

* Fix pylint error

* Fix broken tests

* Fix broken tests v2
2020-02-28 12:39:29 +01:00
Paulus Schoutsen
c85a7934ed
Add brightness_step to light.turn_on ()
* Clean up light turn on service

* Add brightness_step to turn_on schema

* Fix import

* Fix imports 2

* Fix RFLink test
2020-02-04 16:13:29 -08:00
Bas Nijholt
aeff27680b use isort to sort imports according to PEP8 for light () 2019-12-08 22:46:23 +05:30
Paulus Schoutsen
d1aa0cea97
Move intent registration to own integration ()
* Move intent registration to own integration.

* Lint
2019-12-01 14:12:57 -08:00