Commit Graph

179 Commits (d4586fb2e4c0d931658e5c0cb434b15fd37d19d8)

Author SHA1 Message Date
J. Diego Rodríguez Royo 63ab13681a
Home Connect entities availability based on the connected state of the appliance ()
* Base the entity availability on the connected state of the appliance

* cache `ha_id`

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Inlcude coordinator `available` property at entity

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2025-02-01 12:46:49 +01:00
J. Diego Rodríguez Royo efcfd97d1b
Filter programs by execution type at select program entities at Home Connect ()
* Filter programs by execution type at select program entities

* Suggestions and improvements

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Use function and translation key at select program entity description

* Fix select entity description docstring

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2025-02-01 12:06:39 +01:00
J. Diego Rodríguez Royo 285a0a6c81
Fix Home Connect actions keys ()
* Fix actions

* Use coerce

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2025-02-01 10:47:27 +01:00
Martin Hjelmare 9bc3c417ae
Add codeowner to Home Connect () 2025-01-31 12:36:40 -06:00
J. Diego Rodríguez Royo 4d4e11a0eb
Fetch all programs instead of only the available ones at Home Connect ()
Fetch all programs instead of only the available ones
2025-01-31 08:26:57 +01:00
J. Diego Rodríguez Royo b637129208
Migrate from homeconnect dependency to aiohomeconnect ()
* Migrate from homeconnect dependency to aiohomeconnect

* Reload the integration if there is an API error on event stream

* fix typos at coordinator tests

* Setup config entry at coordinator tests

* fix ruff

* Bump aiohomeconnect to version 0.11.4

* Fix set program options

* Use context based updates at coordinator

* Improved how `context_callbacks` cache is invalidated

* fix

* fixes and improvements at coordinator

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Remove stale Entity inheritance

* Small improvement for light subscriptions

* Remove non-needed function

It had its purpose before some refactoring before the firs commit, no is no needed as is only used at HomeConnectEntity constructor

* Static methods and variables at conftest

* Refresh the data after an event stream interruption

* Cleaned debug logs

* Fetch programs at coordinator

* Improvements

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Simplify obtaining power settings from coordinator data

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Remove unnecessary statement

* use `is UNDEFINED` instead of `isinstance`

* Request power setting only when it is strictly necessary

* Bump aiohomeconnect to 0.12.1

* use raw keys for diagnostics

* Use keyword arguments where needed

* Remove unnecessary statements

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2025-01-30 02:42:41 +01:00
epenet b594c29171
Standardize homeassistant imports in component (g-h) () 2025-01-29 11:57:01 +01:00
epenet a05ac6255c
Standardize util imports () 2025-01-28 15:54:06 +01:00
J. Diego Rodríguez Royo 57294fa461
Do not base power switch state on appliance's operation state at Home Connect () 2025-01-19 20:24:48 +01:00
J. Diego Rodríguez Royo ac58494b55
Improve program related sensors at Home Connect () 2025-01-19 12:02:23 +01:00
J. Diego Rodríguez Royo 33d552e3f7
Add power switch only if it is available at Home Connect () 2025-01-19 11:58:38 +01:00
J. Diego Rodríguez Royo 67e2379d2b
Iterate over a copy of the list of programs at Home Connect select setup entry () 2025-01-06 15:21:02 +01:00
J. Diego Rodríguez Royo 140ff50eaf
Fix how function arguments are passed on actions at Home Connect () 2025-01-06 15:03:25 +01:00
Norbert Rittel 7ec10bfd6f
Use uppercase "ID" in Home Connect strings () 2025-01-05 20:19:45 +01:00
J. Diego Rodríguez Royo c06bc53724
Deprecate Home Connect program switches () 2024-12-18 14:26:37 +01:00
J. Diego Rodríguez Royo a6520d2627
Handle Home Connect error at diagnostics () 2024-12-18 10:52:45 +01:00
J. Diego Rodríguez Royo 0d0ef6bf03
Add exception handlers to Home Connect action calls ()
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2024-12-06 22:58:13 +01:00
J. Diego Rodríguez Royo 8c6a24c368
Use HomeAssistant error in the right cases ()
* Use the correct exceptions

* Improved exception strings
2024-11-29 22:11:15 -05:00
TheJulianJES 0f5e0dd4bf
Fix Home Connect microwave programs () 2024-11-28 08:06:31 +01:00
J. Diego Rodríguez Royo c2d6599736
Home connect program select entities ()
* Home connect selector for programs

* Mark program switches as deprecated

* Simplified translation keys

* Improvements for program select entity

* Revert mark program switches as deprecated

* Return `None` if program is `None` or empty string

* Fix program format

* Use `is` instead of `==`

* Program selector entity selects program instead of start the selected program

* Fix typo

* Active and selected program

* Added ServiceValidationError

* Delete unnecessary `service` param at tests

* Use full program keys

* Fix again typos in programs states

* Use map for translations

* Add error handling for when the selected program is not registered on the program map

* Reverse map for programs and translation keys

* Remove stale string

* Log only once that the program is not part of the official Home Connect API specification

* pop programs

* Move `RE_CAMEL_CASE` to a better place

* Added warning if updated program is not valid

* Stale test function name

* Improve log about unknown program at update

* Add underscore before numbers in translation keys

* Added suggested changes

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Use target for adding an executor job

* Apply suggestions from code review

* Clean whitespace

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-11-27 16:34:41 +01:00
J. Diego Rodríguez Royo 53b87f47fb
Fix Home Connect service validation error placeholders () 2024-11-22 19:28:08 +01:00
J. Diego Rodríguez Royo 7fba788f18
Use `ConfigEntry.runtime_data` to store runtime data at Home Connect ()
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-11-22 15:25:22 +01:00
J. Diego Rodríguez Royo 1ab2bbe3b0
Don't save Home Assistant device ID at Home Connect device () 2024-11-21 20:45:43 +01:00
J. Diego Rodríguez Royo 80e8b8d61b
Add diagnostics per device to Home Connect ()
* Add diagnostics per device to Home Connect

* Include programs at device diagnostics

* Applied suggestions from epenet

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Applied more suggestions from epenet

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Test naming consistency

Co-authored-by: abmantis <amfcalt@gmail.com>

* Add return type to `_generate_entry_diagnostics`

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
Co-authored-by: abmantis <amfcalt@gmail.com>
2024-11-20 22:01:57 +01:00
J. Diego Rodríguez Royo 85610901e0
Add programs to Home Connect diagnostics () 2024-11-20 09:09:50 +01:00
Johnny Willemsen a6094c4cce
Add diagnostics to HomeConnect ()
Co-authored-by: J. Diego Rodríguez Royo <jdrr1998@hotmail.com>
Co-authored-by: Joostlek <joostlek@outlook.com>
2024-11-18 13:01:07 +01:00
J. Diego Rodríguez Royo ae1203336d
Add links to deprecation issue message for Home Connect Binary door () 2024-11-10 16:37:53 +01:00
J. Diego Rodríguez Royo 0430e6794e
Delete binary door deprecation issue on unload at Home Connect () 2024-11-06 14:44:17 +01:00
J. Diego Rodríguez Royo 080e3d7a42
Removed stale translation and improved `set_setting` translation at Home Connect () 2024-11-05 15:17:03 +01:00
J. Diego Rodríguez Royo f194a689cc
Fetch power off state for Home Connect appliances' power switch () 2024-10-29 13:56:45 +01:00
J. Diego Rodríguez Royo 0e959b3019
Added deprecation to binary door sensor at Home Connect ()
Co-authored-by: Joostlek <joostlek@outlook.com>
2024-10-29 12:46:39 +01:00
J. Diego Rodríguez Royo 668626b920
Add ServiceValidationError to Home Connect ()
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-10-28 16:48:56 +01:00
boergegrunicke 46dd96a4b7
Add dishwasher salt and rinse aid nearly empty sensors ()
Co-authored-by: Robert Contreras <beastie29a@users.noreply.github.com>
2024-10-26 16:09:11 +02:00
J. Diego Rodríguez Royo 2acad4a78c
Home connect number platform with temperature set points entities () 2024-10-26 14:04:52 +02:00
J. Diego Rodríguez Royo 275bbc81f0
Add Time platform with alarm clock to Home Connect ()
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-10-26 11:42:51 +02:00
J. Diego Rodríguez Royo fee1bde231
Fix program switches unique ID at Home Connect () 2024-10-25 20:05:29 +02:00
J. Diego Rodríguez Royo d8a06777fe
Fix coffee maker device type name at applicances with programs list at Home Connect () 2024-10-25 20:04:53 +02:00
J. Diego Rodríguez Royo a948c7d69d
Door entity as enum sensor at Home Connect () 2024-10-25 18:18:21 +02:00
J. Diego Rodríguez Royo 6fb74482d7
Add Diegorro98 as Home Connect code owner () 2024-10-25 18:06:22 +02:00
J. Diego Rodríguez Royo a77cb1e579
Home connect light generalization and RGB support () 2024-10-25 15:08:50 +02:00
J. Diego Rodríguez Royo eaa4a43458
Remove erroneous switch entity description at Home Connect () 2024-10-19 19:30:00 +02:00
J. Diego Rodríguez Royo b5a6bb74ce
Fix binary sensor at Home Connect () 2024-10-12 11:30:38 +02:00
J. Diego Rodríguez Royo 6a12a24d73
Migrate device models to entity descriptions and add localization & icons at Home Connect ()
* Delete device models and use entity descriptions

* Home Connect localization & icons

* Update homeassistant/components/home_connect/strings.json

* Update homeassistant/components/home_connect/icons.json

* Fix tests

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-10-11 17:52:06 +02:00
J. Diego Rodríguez Royo 0d795aad16
Use BSH keys as unique ID's suffix at Home Connect ()
* Use BSH keys as as unique id suffix instead of the simple description

* Update tests/components/home_connect/test_init.py

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-10-06 12:40:13 +02:00
J. Diego Rodríguez Royo b7ba789370
Code quality improvements at Home Connect ()
Added types to all arguments and return values to all functions

Defined class members and its types outside the constructor

Improved logic at binary sensor
2024-09-23 13:33:19 +02:00
Alberto Montes b2401bf2e3
Update string formatting to use f-string on components ()
* Update string formatting to use f-string on components

* Update code given review feedback

* Use f-string

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-09-19 11:38:25 +02:00
Robert Contreras 4d04402ad4
Add Home Connect light entity for cooling appliances ()
* Add Home Connect light entities for fridge

* Update homeassistant/components/home_connect/light.py

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-09-17 15:56:20 +02:00
Robert Contreras 85aa32338e
Add Home Connect sensors for fridge door states and alarms ()
* New sensors for Fridge door states and alarms

* Move 2 option entities to binary_sensor, tests

* Change state translations

* Fix stale docstring
2024-09-13 19:31:35 +02:00
Robert Contreras d686b877b1
Home Connect add FridgeFreezer switch entities ()
* Home Connect add FridgeFreezer switch entities

* Fix unrelated test

* Implemented requested changes from review

* Move exist_fn check code to setup

* Assign entity_description during init

* Resolve issue with functional testing
2024-09-05 20:52:12 +02:00
Erik Montnemery cffa8b4feb
Update icons.json to new service schema part 2 () 2024-08-28 13:47:41 +02:00