J. Nick Koston
24d7a464e1
Refactor logbook to reduce overhead and complexity ( #71509 )
2022-05-08 21:47:26 -07:00
Paulus Schoutsen
6e675d6f07
Fix homekit tests in beta ( #71268 )
2022-05-03 14:09:35 -07:00
J. Nick Koston
60bfcc6be4
Allow hidden entities to be selected in homekit include mode ( #71250 )
2022-05-03 09:47:13 -07:00
J. Nick Koston
034ba7d3ff
Only read HomeKit service/chars from disk once ( #70354 )
2022-04-21 13:54:44 -07:00
J. Nick Koston
47c3aef7a2
Fix registered entities without a category not being exclude-able in the HomeKit UI ( #69543 )
2022-04-07 13:46:41 +02:00
J. Nick Koston
220beefb89
Prevent HomeKit from offering hidden entities ( #69042 )
2022-04-01 13:34:44 +02:00
Erik Montnemery
1c57e65cea
Exclude hidden entities from homekit ( #68552 )
2022-03-23 10:32:51 +01:00
Lester Lo
56abd5f2cf
Add homekit pm type sensor ( #46060 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-03-08 08:37:20 +01:00
J. Nick Koston
f268191985
Handle fan_modes being set to None in homekit ( #67790 )
2022-03-07 09:10:38 -08:00
J. Nick Koston
6d2302b703
Add guards for HomeKit version/names that break apple watches ( #67585 )
2022-03-03 15:03:46 -08:00
J. Nick Koston
f69571f164
Add support for climate fan and oscillate mode to HomeKit ( #66463 )
2022-02-22 09:58:31 +01:00
J. Nick Koston
f2f2a08966
Add support for auto target fan state in HomeKit fans ( #66383 )
2022-02-21 19:08:09 +01:00
J. Nick Koston
41f602c3df
Fix loss of ability to control white channel in HomeKit on RGB&W lights ( #65864 )
...
* Fix loss of ability to control white channel in HomeKit on RGB&W lights
- Fix white channel missing from RGB/W lights
- Fix temp missing from RGB/CW lights
- Fixes #65529
* cover the missing case
* bright fix
* force brightness notify on color mode change as well
2022-02-06 14:12:30 -08:00
J. Nick Koston
62da194340
Add diagnostics support to HomeKit ( #65942 )
...
* Add diagnostics support to HomeKit
* remove debug
2022-02-06 14:02:07 -08:00
J. Nick Koston
d53124910f
Add entity category support to HomeKit ( #64492 )
2022-01-19 21:48:50 -10:00
J. Nick Koston
36e2617796
Ensure homekit options flow remembers excluded entities during edit ( #64401 )
2022-01-18 19:17:43 -10:00
Li-Huai (Allan) Lin
64d0b89ca1
Fix humidifier state error in HomeKit ( #61432 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-01-16 19:03:54 -10:00
J. Nick Koston
d3f980d402
Convert siri requests for target heating cooling state auto to a valid mode ( #60220 )
2022-01-12 15:06:09 -08:00
J. Nick Koston
5622db10b1
Fix HomeKit reporting/setting colors when white values are present ( #63948 )
2022-01-12 14:58:25 -08:00
J. Nick Koston
1019156899
Fix homekit options being mutated during config_flow/migration ( #64003 )
2022-01-12 14:56:24 -08:00
J. Nick Koston
9dd09f66e2
Ensure selected entity is pre-selected in homekit options flow ( #63628 )
...
* Ensure selected entity is pre-selected in homekit options flow
- We recently adjusted the flow to exclude entities that had
been deleted from breaking the UI validation. We need to include
single entities in the set of all supported entities since
accessory mode has no domain filter
* tweak
* Additional fixes
* small tweak to speed up building the set
* merged fixed version for test branch
2022-01-07 17:46:39 -08:00
J. Nick Koston
945477a482
Fix KeyError during call to homekit.unpair ( #63627 )
2022-01-07 19:47:14 +01:00
J. Nick Koston
5c8271552a
Add hardware revision support to homekit ( #63336 )
2022-01-04 16:19:12 +01:00
Erik Montnemery
e9b746e874
Add turned on or off device trigger to toggle entity ( #61089 )
...
* Add turned on or off device trigger to toggle entity
* Renamed changed_states trigger to toggled
* Adjust tests
* Fix homekit triggers test
* Add tests
* Adjust tests after rebase
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-01-03 10:41:30 +01:00
J. Nick Koston
417172eef2
Cleanup HomeKit names to avoid unknown error when adding ( #62831 )
2021-12-27 09:53:33 +01:00
Lorenzo Brescanzin
0da710c4e0
Fix HomeKit sensor update check ( #62705 )
2021-12-24 08:39:37 -10:00
Erik Montnemery
cb2c2d98c3
Remove unnecessary checks before calling os.makedirs ( #62576 )
2021-12-23 09:59:31 +01:00
Franck Nijhof
c5d62ccc7e
Add input_button support to HomeKit ( #62590 )
2021-12-22 13:23:57 -10:00
Ville Skyttä
c5e6489475
Use DeviceAutomationType in tests/components/[h-l]* ( #62441 )
2021-12-20 22:18:53 +01:00
Dave T
168fefad88
Use DeviceClass Enums in homekit ( #62218 )
2021-12-20 12:53:44 -06:00
epenet
931d51949d
Use new DeviceClass enums in homekit ( #61665 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-18 19:07:04 -06:00
J. Nick Koston
8200101785
Fix HomeKit covers with device class window and no tilt ( #61566 )
2021-12-12 14:10:40 -08:00
J. Nick Koston
52e0027fad
Limit homekit sources to prevent exceeding 100 limit ( #59743 )
2021-11-23 22:15:08 +01:00
J. Nick Koston
6524cd4eb2
Fix user input malformed with deleted entities in HomeKit exclude flow ( #60061 )
2021-11-23 11:46:54 -06:00
J. Nick Koston
400aaeaa91
Ensure homekit setup messages run in event loop ( #60226 )
2021-11-23 11:40:20 -06:00
J. Nick Koston
7359083e98
Remove legacy executor usage from HomeKit tests ( #60180 )
2021-11-22 22:37:28 -06:00
Franck Nijhof
766c889e70
Add button support to HomeKit ( #60165 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-11-23 00:46:51 +01:00
Erik Montnemery
49a27e12ad
Add support to entity registry for overriding device_class ( #59985 )
2021-11-22 08:38:06 -08:00
J. Nick Koston
347c4ea137
Bump zeroconf to 0.37.0 ( #59932 )
2021-11-18 20:23:20 -08:00
J. Nick Koston
0fb21af07f
Strip out deleted entities when configuring homekit ( #59844 )
2021-11-18 15:21:51 -08:00
Paulus Schoutsen
31153ac155
Move fixtures part 1 ( #58902 )
2021-11-01 20:47:05 -07:00
Paulus Schoutsen
f51e1fcb67
Check for uncaught service not found exceptions ( #58010 )
2021-11-01 14:33:09 +01:00
J. Nick Koston
438ca73aba
Complete removal of auto_start, zeroconf_default_interface, and safe_mode from HomeKit ( #58320 )
2021-10-24 11:46:35 +02:00
J. Nick Koston
ddab7f3024
Bump HAP-python to 4.30 ( #57284 )
2021-10-07 20:06:27 -07:00
Paulus Schoutsen
a4d9019ffc
Refactor persistent notification to no longer route all data via a service ( #57157 )
...
* Convert persistent notification tests to async
* Create/dismiss persistent notifications in exposed functions, not service calls
* Fix notify persistent_notification
* Remove setting up persistent_notification
* Drop more setups
* Empty methods
* Undeprecate sync methods because too big task
* Fix setup clearing notifications
* Fix a bunch of tests
* Fix more tests
* Uno mas
* Test persistent notification events
* Clean up stale comment
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-10-07 12:58:00 +02:00
J. Nick Koston
88e42a540e
Remove leftover debug prints in tests ( #56409 )
2021-09-19 12:43:02 +02:00
Erik Montnemery
be0819b456
Mock out network.util.async_get_source_ip in tests ( #56339 )
2021-09-17 21:40:58 -10:00
J. Nick Koston
7524daad86
Fix HomeKit requests with hvac mode and temperature in the same call ( #56239 )
2021-09-17 22:47:06 -07:00
Erik Montnemery
45046941c6
Avoid creating sockets in homekit port available tests ( #56342 )
2021-09-17 04:16:57 -10:00
J. Nick Koston
0fc89780e9
Fix listener leak in HomeKit on reload ( #56143 )
...
* Fix listener leak in HomeKit on reload
* Fix mocking
2021-09-12 15:06:03 -07:00
Greg Thornton
f1556ead6d
Don't cache HomeKit camera stream source from entity ( #56136 )
2021-09-12 08:09:09 -07:00
Greg Thornton
371aa03bca
Add audio support option to HomeKit camera UI config flow ( #56107 )
2021-09-11 16:41:30 -10:00
J. Nick Koston
eff59e8b00
Use the same server name for all HomeKit bridges ( #55860 )
2021-09-11 19:00:26 -07:00
J. Nick Koston
195ee2a188
Avoid creating sockets in homekit port available tests ( #55668 )
...
* Avoid creating sockets in homekit port available tests
* prevent new bridge from being setup -- its too fast now that the executor job is gone and it revealed an unpatched setup
2021-09-03 17:15:28 -10:00
Erik Montnemery
7dbe8070f7
Mock out network.util.async_get_source_ip in tests ( #55592 )
2021-09-02 20:44:50 +02:00
ha0y
433775cf4b
Add input_select and select domain support for HomeKit ( #54760 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-08-30 15:28:26 -05:00
J. Nick Koston
bd0af57ef2
Support device triggers in HomeKit ( #53869 )
2021-08-25 16:47:39 +02:00
J. Nick Koston
99465f53c7
Bump HAP-python to 4.1.0 ( #55005 )
2021-08-23 21:00:26 +02:00
J. Nick Koston
87496ae75c
Fix HomeKit cover creation with tilt position, open/close, no set position ( #54727 )
2021-08-17 22:41:22 -05:00
J. Nick Koston
d0b11568cc
Ensure HomeKit passes min/max mireds as ints ( #54372 )
2021-08-10 20:28:01 -05:00
J. Nick Koston
e99576c094
Pass width and height when requesting camera snapshot ( #53835 )
2021-08-10 19:33:06 -05:00
J. Nick Koston
4da451fcf7
Improve HomeKit Color with Color Temp implementation ( #54371 )
2021-08-10 15:16:51 -07:00
Niccolo Zapponi
483a4535c8
Handle software version being None when setting up HomeKit accessories ( #54130 )
...
* Convert all HomeKit service info to string prior to checking for max length
* Added check for None software version
* Added test case for numeric version number
* Update tests/components/homekit/test_accessories.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* Fix style & none version test
* Fix test
* revert other change since it should be covered by the format_sw_version fix
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-08-06 09:34:42 -07:00
J. Nick Koston
adc9f75493
Increase time before scene and script HomeKit entities are reset ( #54105 )
2021-08-05 19:24:24 -07:00
J. Nick Koston
26cb588ee2
Handle empty software version when setting up HomeKit ( #54068 )
...
Fixes #54059 Fixes #54024
2021-08-05 10:47:14 -07:00
J. Nick Koston
df03cce471
Enforce maximum length for HomeKit characteristics ( #53913 )
2021-08-03 10:09:10 -07:00
Milan Meulemans
8ab3d9cc12
Use homeassistant.const instead of integration const for device_info ATTR_ ( #53703 )
2021-08-02 15:11:41 +02:00
J. Nick Koston
65c6943784
Bump HAP-python to 4.0.0 ( #53780 )
2021-08-02 15:08:32 +02:00
J. Nick Koston
72bd3f7128
Bump HAP-python to 3.6.0 ( #53754 )
2021-07-30 12:44:28 -07:00
J. Nick Koston
6eb3307734
Fix invalid homekit state when arming ( #53646 )
...
- Maybe fixes #48538
2021-07-28 16:09:49 -07:00
J. Nick Koston
84a7a5fd32
Split color temp and color into separate HomeKit services when a light supports both ( #53471 )
2021-07-27 10:10:05 -07:00
J. Nick Koston
0f15d2bf19
Ensure HomeKit accessories are started again after reset ( #53372 )
2021-07-24 16:31:30 +02:00
J. Nick Koston
009f34bfed
Add a homekit.unpair service to forcefully remove pairings ( #53303 )
...
- Sometimes homekit will go unresponsive because a pairing for a specific
device is missing. To avoid deleting the config entry and recreating
it, which can be a painful process if there are many bridged entities,
the homekit.unpair service allows forceful removal of the pairings so
the accessory can be paired again.
2021-07-22 12:44:36 +02:00
J. Nick Koston
e78a62c802
Fix homekit locks not being created from when setup from the UI ( #53301 )
2021-07-21 22:22:06 -07:00
J. Nick Koston
fe89603ee7
Update homekit lock to support locking, unlocking, jammed ( #52819 )
2021-07-20 21:55:19 -07:00
J. Nick Koston
f20602e11d
Auto recreate HomeKit TVs when the sources are out of sync ( #53208 )
2021-07-20 21:46:39 -07:00
J. Nick Koston
2a65c5f93c
Recreate HomeKit accessories when calling the reset_accessory service ( #53199 )
2021-07-20 21:45:21 -07:00
J. Nick Koston
671e838085
Execute scripts from HomeKit ( #53106 )
2021-07-19 12:07:12 +02:00
J. Nick Koston
236738c455
Add support for tilt only covers to HomeKit ( #53130 )
2021-07-18 10:17:58 -10:00
J. Nick Koston
6c05e2746d
Improve error message when HomeKit does not support an entity ( #53129 )
2021-07-18 09:27:25 -10:00
J. Nick Koston
30d465e9dd
Update homekit to use network integration ( #52946 )
2021-07-14 11:44:58 +02:00
J. Nick Koston
75d6ffebc8
Improve error when HomeKit accessory underlying entity is missing ( #51713 )
...
* Improve error when HomeKit accessory underlying entity is missing
* docstring in test
2021-06-13 17:27:04 -05:00
Ville Skyttä
7d03b02192
Spelling fixes ( #51642 )
2021-06-11 13:35:03 +02:00
J. Nick Koston
0e7c2cddf7
Upgrade HAP-python to 3.5.0 ( #51261 )
...
* Upgrade HAP-python to 3.4.2
- Fixes for malformed event sending
- Performance improvements
* Bump
* update tests to point to async
2021-05-31 20:47:12 +02:00
Erik Montnemery
e0ac12bd56
Use supported_color_modes in homekit ( #49177 )
2021-04-14 09:18:34 +02:00
J. Nick Koston
5365fb6c72
Fix setting up remotes that lack a supported features list in homekit ( #49152 )
2021-04-13 12:44:07 +02:00
J. Nick Koston
9790f3f609
Create homekit locks according to spec ( #48453 )
...
Any accessories, regardless of transport, that enable physical access to the home, such as door locks, must not be bridged.
2021-03-31 09:22:30 -07:00
J. Nick Koston
6b93c4073d
Ensure homekit yaml config works when there is an ignored config entry ( #48175 )
2021-03-21 21:17:04 -10:00
J. Nick Koston
fd310e1f41
Update homekit to improve representation of activity based remotes ( #47261 )
2021-03-21 21:55:20 -07:00
Marc Mueller
54d1e9985f
Update typing 15 ( #48079 )
2021-03-18 15:13:22 +01:00
J. Nick Koston
15aa00d6cc
Fix homekit checking for port cleanup too many times ( #47836 )
...
* Fix homekit checking for port cleanup too many times
The loop should have terminated as soon as the port was available
* coverage
* tweak homekit shutdown wait
2021-03-15 05:14:46 +01:00
Mick Vleeshouwer
9a98dcf432
Add HomeKit support for new CO / CO2 device class ( #47737 )
2021-03-12 09:03:47 -10:00
J. Nick Koston
f4b775b125
Cleanup homekit and remove aid storage from hass.data ( #47488 )
2021-03-11 22:05:03 -08:00
Erik Montnemery
87e7cebd36
Update tests c-h to use registry async_get ( #47652 )
2021-03-09 14:31:17 +01:00
J. Nick Koston
2e89f152ba
Bump HAP-python to 3.4.0 ( #47476 )
...
* Bump HAP-python to 3.3.3
* bump
* fix mocking
2021-03-07 01:30:57 +01:00
J. Nick Koston
853da40e70
Increment the homekit config version when restarting ( #47209 )
...
If an entity changes between restart the iOS/controller
device may have cached the old chars for the accessory.
To force the iOS/controller to reload the chars, we
increment the config version when Home Assistant restarts
2021-02-28 20:42:09 -08:00
Paulus Schoutsen
7c2545af6e
Use async_capture_events to avoid running in executor ( #47111 )
2021-02-26 13:28:52 -08:00
J. Nick Koston
87cbbcb014
Automatically create HomeKit accessory mode entries ( #46473 )
...
When we set up HomeKit, we asked users if they wanted
to create an entry in bridge or accessory mode.
This approach required the user to understand how HomeKit works and
choose which type to create.
When the user includes the media player or camera domains,
we exclude them from the bridge and create the additional entries
for each entity in accessory mode.
2021-02-23 16:22:23 -08:00
J. Nick Koston
d9ab1482bc
Add support for preset modes in homekit fans ( #45962 )
2021-02-20 19:24:14 -08:00
J. Nick Koston
b775a0d796
Run homekit service calls in async since the server is now async ( #45859 )
...
* Simplify homekit runs and service calls
Now that the homekit server is async, call_service
and run are running in the Home Assistant event loop
* remove comment
* remove another comment
2021-02-19 21:34:52 -10:00