Ville Skyttä
761d7f21e9
Upgrade pylint ( #27279 )
...
* Upgrade pylint to 2.4.2 and astroid to 2.3.1
https://pylint.readthedocs.io/en/latest/whatsnew/2.4.html
https://pylint.readthedocs.io/en/latest/whatsnew/changelog.html#what-s-new-in-pylint-2-4-1
https://pylint.readthedocs.io/en/latest/whatsnew/changelog.html#what-s-new-in-pylint-2-4-2
* unnecessary-comprehension fixes
* invalid-name fixes
* self-assigning-variable fixes
* Re-enable not-an-iterable
* used-before-assignment fix
* invalid-overridden-method fixes
* undefined-variable __class__ workarounds
https://github.com/PyCQA/pylint/issues/3090
* no-member false positive disabling
* Remove some no longer needed disables
* using-constant-test fix
* Disable import-outside-toplevel for now
* Disable some apparent no-value-for-parameter false positives
* invalid-overridden-method false positive disables
https://github.com/PyCQA/pylint/issues/3150
* Fix unintentional Entity.force_update override in AfterShipSensor
2019-10-07 08:17:39 -07:00
HomeAssistant Azure
e005f6f23a
[ci skip] Translation update
2019-10-03 00:34:28 +00:00
Franck Nijhof
c7da781efc
Update documentation link URL for integrations in all manifests ( #27114 )
2019-10-02 09:25:44 -07:00
HomeAssistant Azure
b04a70995e
[ci skip] Translation update
2019-09-27 00:32:12 +00:00
tleegaard
2ffbe5b99f
Inverting states for opening/closing Homekit covers ( #26872 )
...
* Update cover.py
* Update test_cover.py
2019-09-24 21:16:08 -07:00
HomeAssistant Azure
24cbae6ec3
[ci skip] Translation update
2019-09-21 00:32:16 +00:00
HomeAssistant Azure
a390cf7c6a
[ci skip] Translation update
2019-09-18 00:32:12 +00:00
HomeAssistant Azure
771c674e90
[ci skip] Translation update
2019-09-17 00:32:14 +00:00
HomeAssistant Azure
e204d22a9e
[ci skip] Translation update
2019-09-08 00:32:16 +00:00
HomeAssistant Azure
0b1f389c76
[ci skip] Translation update
2019-09-07 00:32:45 +00:00
Franck Nijhof
f9edec19ad
Use literal string interpolation in integrations H-J (f-strings) ( #26380 )
2019-09-03 17:27:14 +02:00
Paulus Schoutsen
385a496944
Update translations
2019-09-01 22:30:09 -07:00
Jc2k
944b544b2e
Add support for Homekit accessory battery sensors ( #26210 )
...
* Add simple battery sensor
* Add test for battery sensor based on a real device
* Vary icon based on battery state
* Add test for battery sensory
* Read other battery related states from accessory
* Add a device class to the battery sensor
* Respect the low battery flag from the device
2019-08-31 13:18:18 +01:00
Paulus Schoutsen
e69953fe2d
Update translations
2019-08-28 12:45:48 -07:00
Jc2k
2bd832cd7a
Skip homekit_controller polls when system is overloaded and still trying to process the previous one ( #25968 )
...
* Skip async_update if there are signs of backpressure
* Black
* Only warn once
* Log on recovery
* Formatting fix
2019-08-17 21:14:46 -07:00
Jc2k
002f74c76b
Update homekit_controller import style ( #25940 )
2019-08-14 09:14:15 -07:00
Jc2k
34cde21876
Fix for HomeKit controller state not updating after put ( #25903 )
2019-08-13 10:09:55 +02:00
Paulus Schoutsen
87119472a3
Update translations
2019-08-11 20:42:50 -07:00
Ville Skyttä
a54ade1189
Spelling fixes ( #25666 )
2019-08-02 23:20:06 +02:00
Jc2k
a177ef02e3
Bump homekit_python to 0.15 ( #25631 )
2019-08-01 12:44:30 -07:00
Jc2k
36129af447
Fix polling HomeKit devices with multiple services per accessory ( #25629 )
2019-08-01 16:35:19 +01:00
tleegaard
61c6838fa2
Add support for HomeKit CO2 sensors ( #25603 )
2019-08-01 11:24:46 +01:00
Paulus Schoutsen
37d78af42c
Add translations
2019-07-31 16:16:40 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Jc2k
8c69fd91ff
Only poll HomeKit connection once for all entities on a single bridge/pairing ( #25249 )
...
* Stub for polling from a central location
* Allow connection to know the entity objects attached to it
* Move polling logic to connection
* Don't poll if no characteristics selected
* Loosen coupling between entity and HKDevice
* Disable track_time_interval when removing entry
* Revert self.entities changes
* Use @callback for async_state_changed
* Split out unload and remove and add a test
* Test that entity is gone and fix docstring
2019-07-22 09:22:44 -07:00
David Radcliffe
11c74cd0d7
Add support for contact binary sensors in homekit_controller ( #25355 )
2019-07-22 08:40:55 +01:00
Pascal Vizeli
84cf76ba36
Climate 1.0 ( #23899 )
...
* Climate 1.0 / part 1/2/3
* fix flake
* Lint
* Update Google Assistant
* ambiclimate to climate 1.0 (#24911 )
* Fix Alexa
* Lint
* Migrate zhong_hong
* Migrate tuya
* Migrate honeywell to new climate schema (#24257 )
* Update one
* Fix model climate v2
* Cleanup p4
* Add comfort hold mode
* Fix old code
* Update homeassistant/components/climate/__init__.py
Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>
* Update homeassistant/components/climate/const.py
Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>
* First renaming
* Rename operation to hvac for paulus
* Rename hold mode to preset mode
* Cleanup & update comments
* Remove on/off
* Fix supported feature count
* Update services
* Update demo
* Fix tests & use current_hvac
* Update comment
* Fix tests & add typing
* Add more typing
* Update modes
* Fix tests
* Cleanup low/high with range
* Update homematic part 1
* Finish homematic
* Fix lint
* fix hm mapping
* Support simple devices
* convert lcn
* migrate oem
* Fix xs1
* update hive
* update mil
* Update toon
* migrate deconz
* cleanup
* update tesla
* Fix lint
* Fix vera
* Migrate zwave
* Migrate velbus
* Cleanup humity feature
* Cleanup
* Migrate wink
* migrate dyson
* Fix current hvac
* Renaming
* Fix lint
* Migrate tfiac
* migrate tado
* Fix PRESET can be None
* apply PR#23913 from dev
* remove EU component, etc.
* remove EU component, etc.
* ready to test now
* de-linted
* some tweaks
* de-lint
* better handling of edge cases
* delint
* fix set_mode typos
* apply PR#23913 from dev
* remove EU component, etc.
* ready to test now
* de-linted
* some tweaks
* de-lint
* better handling of edge cases
* delint
* fix set_mode typos
* delint, move debug code
* away preset now working
* code tidy-up
* code tidy-up 2
* code tidy-up 3
* address issues #18932 , #15063
* address issues #18932 , #15063 - 2/2
* refactor MODE_AUTO to MODE_HEAT_COOL and use F not C
* add low/high to set_temp
* add low/high to set_temp 2
* add low/high to set_temp - delint
* run HA scripts
* port changes from PR #24402
* manual rebase
* manual rebase 2
* delint
* minor change
* remove SUPPORT_HVAC_ACTION
* Migrate radiotherm
* Convert touchline
* Migrate flexit
* Migrate nuheat
* Migrate maxcube
* Fix names maxcube const
* Migrate proliphix
* Migrate heatmiser
* Migrate fritzbox
* Migrate opentherm_gw
* Migrate venstar
* Migrate daikin
* Migrate modbus
* Fix elif
* Migrate Homematic IP Cloud to climate-1.0 (#24913 )
* hmip climate fix
* Update hvac_mode and preset_mode
* fix lint
* Fix lint
* Migrate generic_thermostat
* Migrate incomfort to new climate schema (#24915 )
* initial commit
* Update climate.py
* Migrate eq3btsmart
* Lint
* cleanup PRESET_MANUAL
* Migrate ecobee
* No conditional features
* KNX: Migrate climate component to new climate platform (#24931 )
* Migrate climate component
* Remove unused code
* Corrected line length
* Lint
* Lint
* fix tests
* Fix value
* Migrate geniushub to new climate schema (#24191 )
* Update one
* Fix model climate v2
* Cleanup p4
* Add comfort hold mode
* Fix old code
* Update homeassistant/components/climate/__init__.py
Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>
* Update homeassistant/components/climate/const.py
Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>
* First renaming
* Rename operation to hvac for paulus
* Rename hold mode to preset mode
* Cleanup & update comments
* Remove on/off
* Fix supported feature count
* Update services
* Update demo
* Fix tests & use current_hvac
* Update comment
* Fix tests & add typing
* Add more typing
* Update modes
* Fix tests
* Cleanup low/high with range
* Update homematic part 1
* Finish homematic
* Fix lint
* fix hm mapping
* Support simple devices
* convert lcn
* migrate oem
* Fix xs1
* update hive
* update mil
* Update toon
* migrate deconz
* cleanup
* update tesla
* Fix lint
* Fix vera
* Migrate zwave
* Migrate velbus
* Cleanup humity feature
* Cleanup
* Migrate wink
* migrate dyson
* Fix current hvac
* Renaming
* Fix lint
* Migrate tfiac
* migrate tado
* delinted
* delinted
* use latest client
* clean up mappings
* clean up mappings
* add duration to set_temperature
* add duration to set_temperature
* manual rebase
* tweak
* fix regression
* small fix
* fix rebase mixup
* address comments
* finish refactor
* fix regression
* tweak type hints
* delint
* manual rebase
* WIP: Fixes for honeywell migration to climate-1.0 (#24938 )
* add type hints
* code tidy-up
* Fixes for incomfort migration to climate-1.0 (#24936 )
* delint type hints
* no async unless await
* revert: no async unless await
* revert: no async unless await 2
* delint
* fix typo
* Fix homekit_controller on climate-1.0 (#24948 )
* Fix tests on climate-1.0 branch
* As part of climate-1.0, make state return the heating-cooling.current characteristic
* Fixes from review
* lint
* Fix imports
* Migrate stibel_eltron
* Fix lint
* Migrate coolmaster to climate 1.0 (#24967 )
* Migrate coolmaster to climate 1.0
* fix lint errors
* More lint fixes
* Fix demo to work with UI
* Migrate spider
* Demo update
* Updated frontend to 20190705.0
* Fix boost mode (#24980 )
* Prepare Netatmo for climate 1.0 (#24973 )
* Migration Netatmo
* Address comments
* Update climate.py
* Migrate ephember
* Migrate Sensibo
* Implemented review comments (#24942 )
* Migrate ESPHome
* Migrate MQTT
* Migrate Nest
* Migrate melissa
* Initial/partial migration of ST
* Migrate ST
* Remove Away mode (#24995 )
* Migrate evohome, cache access tokens (#24491 )
* add water_heater, add storage - initial commit
* add water_heater, add storage - initial commit
delint
add missing code
desiderata
update honeywell client library & CODEOWNER
add auth_tokens code, refactor & delint
refactor for broker
delint
* Add Broker, Water Heater & Refactor
add missing code
desiderata
* update honeywell client library & CODEOWNER
add auth_tokens code, refactor & delint
refactor for broker
* bugfix - loc_idx may not be 0
more refactor - ensure pure async
more refactoring
appears all r/o attributes are working
tweak precsion, DHW & delint
remove unused code
remove unused code 2
remove unused code, refactor _save_auth_tokens()
* support RoundThermostat
bugfix opmode, switch to util.dt, add until=1h
revert breaking change
* store at_expires as naive UTC
remove debug code
delint
tidy up exception handling
delint
add water_heater, add storage - initial commit
delint
add missing code
desiderata
update honeywell client library & CODEOWNER
add auth_tokens code, refactor & delint
refactor for broker
add water_heater, add storage - initial commit
delint
add missing code
desiderata
update honeywell client library & CODEOWNER
add auth_tokens code, refactor & delint
refactor for broker
delint
bugfix - loc_idx may not be 0
more refactor - ensure pure async
more refactoring
appears all r/o attributes are working
tweak precsion, DHW & delint
remove unused code
remove unused code 2
remove unused code, refactor _save_auth_tokens()
support RoundThermostat
bugfix opmode, switch to util.dt, add until=1h
revert breaking change
store at_expires as naive UTC
remove debug code
delint
tidy up exception handling
delint
* update CODEOWNERS
* fix regression
* fix requirements
* migrate to climate-1.0
* tweaking
* de-lint
* TCS working? & delint
* tweaking
* TCS code finalised
* remove available() logic
* refactor _switchpoints()
* tidy up switchpoint code
* tweak
* teaking device_state_attributes
* some refactoring
* move PRESET_CUSTOM back to evohome
* move CONF_ACCESS_TOKEN_EXPIRES CONF_REFRESH_TOKEN back to evohome
* refactor SP code and dt conversion
* delinted
* delinted
* remove water_heater
* fix regression
* Migrate homekit
* Cleanup away mode
* Fix tests
* add helpers
* fix tests melissa
* Fix nehueat
* fix zwave
* add more tests
* fix deconz
* Fix climate test emulate_hue
* fix tests
* fix dyson tests
* fix demo with new layout
* fix honeywell
* Switch homekit_controller to use HVAC_MODE_HEAT_COOL instead of HVAC_MODE_AUTO (#25009 )
* Lint
* PyLint
* Pylint
* fix fritzbox tests
* Fix google
* Fix all tests
* Fix lint
* Fix auto for homekit like controler
* Fix lint
* fix lint
2019-07-08 14:00:24 +02:00
Paulus Schoutsen
92816b57ef
Update translations
2019-06-14 14:53:13 -07:00
Penny Wood
84e6813779
Rename via_hub to via_device ( #24360 )
...
* Rename via_hub to via_device
* Fixed registry interactions
2019-06-10 09:10:44 -07:00
Paulus Schoutsen
0dc0706eb2
Add more HomeKit models for discovery ( #24391 )
...
* Add more HomeKit models for discovery
* Discover Tradfri with HomeKit
* Add Wemo device info
* Allow full match for HomeKit model
* Fix tests
2019-06-07 22:59:51 -07:00
Paulus Schoutsen
14c0ada9ac
Update translations
2019-06-04 08:50:48 -07:00
Paulus Schoutsen
70fe4f22db
Log HomeKit model ( #24229 )
2019-05-31 22:59:16 -07:00
Jc2k
bcee3f9570
homekit_controller no longer logs with transient network errors causing crypto failures as it will auto recover ( #24193 )
2019-05-30 09:40:38 -07:00
Jc2k
9303a56d8f
Fix duplicated discovered homekit devices ( #24178 )
2019-05-29 15:49:59 -07:00
Robert Svensson
42ee8eef50
Move Homekit controller component to user zeroconf discovery ( #24042 )
2019-05-29 11:20:04 -07:00
Paulus Schoutsen
fd3902f7e7
update translations
2019-05-29 10:16:58 -07:00
Paulus Schoutsen
206029eadc
Update translations
2019-05-23 13:32:35 -07:00
Paulus Schoutsen
f995ab9d54
Don't pass in loop ( #23984 )
...
* Don't pass in loop
* Revert some changes
* Lint + Axis revert
* reinstate loop
* Fix a test
* Set loop
* Update camera.py
* Lint
2019-05-22 21:09:59 -07:00
Jc2k
5b0d1415ad
Have homekit_controller use device registry ( #23874 )
...
* Add device registry support
* HK doesn't use mac as a connection id
2019-05-17 08:41:20 +02:00
Jc2k
03a0a3572b
Fix icons for homekit_controller sensors ( #23921 )
2019-05-16 22:30:48 +01:00
Jc2k
692eeb3687
Fix ecobee 3 homekit pairing ( #23882 )
2019-05-16 14:32:13 +02:00
Paulus Schoutsen
1e22c8daca
Automatically generate config flow list ( #23802 )
...
* Add config flow to manifest.json
* Still load config flows via config flow platform
* Fix typo
* Lint
* Update config_flows.py"
* Catch import error when setting up entry
* Lint
* Fix tests
* Fix imports
* Lint
* Fix Unifi tests
* Fix translation test
* Add homekit_controller config flow
2019-05-13 01:16:55 -07:00
Jc2k
b8cbd39985
HomeKit Controller: Adopt config entries for pairing with homekit accessories ( #23825 )
...
* Fix user initiated pairing + show more user friendly name
* Add lock around async_refresh_entity_map
* Migrate homekit_controller to config entries.
* Improve docstring
Co-Authored-By: Martin Hjelmare <marhje52@kth.se>
* Add dummy async_setup_platform
* add_service -> async_add_service
* Add missing returns
* Enable coverage checks for homekit_controller
2019-05-12 23:56:05 -07:00
Paulus Schoutsen
e51925fc58
Update translations
2019-05-08 20:20:58 -07:00
Jc2k
0fe21f2015
Support STATE_AUTO in homekit_controller climate ( #23583 )
2019-05-01 22:44:54 -05:00
Jc2k
7ff77936ad
Add and improve Homekit controller pairing messages and errors ( #23532 )
...
* Be clear about pairing code format
* Handle more homekit errors while pairing
* Update en translation
* Fix log message feedback
2019-05-01 17:02:29 -06:00
Jc2k
1c4367e5a9
Fix min/max temp and humidity for homekit_controller climate ( #23421 )
...
* Fix min/max temp and humidity for homekit_controller climate.
* Fix typo
2019-05-01 00:08:30 +02:00
Jc2k
7612703092
Bump homekit_python to 0.14.0 ( #23562 )
2019-04-30 08:44:48 -04:00
Jc2k
baeb3cddc6
Set placeholders in homekit config flow title ( #23311 )
2019-04-22 21:32:39 -07:00
Jc2k
e7054e0fd2
Avoid calling async code in sync context ( #23235 )
2019-04-19 10:59:54 -07:00
Jc2k
21a194f9d8
Review feedback from #23191 ( #23233 )
2019-04-19 08:39:06 -04:00
Jc2k
4ac9a2e9de
Add storage for cacheable homekit entity maps. ( #23191 )
2019-04-18 08:55:34 -07:00
Jc2k
6bb4199824
Add @Jc2k to codeowners for homekit_controller ( #23173 )
2019-04-17 19:16:20 -07:00
Jc2k
a97fb8fd10
Support fetching/setting humidity of HomeKit controller thermostats ( #23040 )
...
* Add support for homekit humidity control
* Add tests
2019-04-17 10:03:32 -07:00
Jc2k
f7afd9d6bc
Fix handling of homekit_controler zeroconf c# changes ( #22995 )
2019-04-17 10:02:51 -07:00
Jc2k
88455a8a8b
homekit_controller: Support cover stop ( #23046 )
2019-04-17 10:02:04 -07:00
Paulus Schoutsen
dcb4eb39fa
Update translations
2019-04-17 09:31:34 -07:00
Jc2k
e97b2b7015
Fix homekit_controller climate supported operation_list being blank ( #23095 )
...
* Fix tado supported operation modes when used with homekit_controller
* Replace with list comp as requested in review
* More list comps
2019-04-15 17:09:21 +02:00
cgtobi
2c07bfb9e0
Remove dependencies and requirements ( #23024 )
...
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit fe7171b4cd
.
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit 391355ee2c
.
* Remove dependencies and requirements
* Fix flake8 complaints
* Fix more flake8 complaints
* Revert non-component removals
2019-04-12 10:13:30 -07:00
Paulus Schoutsen
57f17707c6
Specify configurator as dependency ( #23030 )
2019-04-11 20:11:56 -07:00
Paulus Schoutsen
e9d9861bda
Update translations
2019-04-10 15:01:32 -07:00
Paulus Schoutsen
0d2646ba25
Update translations
2019-04-09 08:34:20 -07:00
Paulus Schoutsen
cfe4cf30ad
Add manifests ( #22699 )
...
* Add manifests
* Update auto name
* Update codeowners
* Add requirements from platforms
* Minor cleanup
* Incorporate changes from awarecan PR
2019-04-03 21:14:45 -07:00
Jc2k
16e0953f26
Fix racy homekit_controller platform setup caused by #22368 ( #22655 )
2019-04-02 09:57:58 +02:00
Jason Hu
8d86722c0e
Fix dev branch ( #22493 )
2019-03-28 11:09:12 +01:00
Paulus Schoutsen
9d21afa444
Update translations
2019-03-27 21:32:58 -07:00
Paulus Schoutsen
92457ca5ca
Fix syntax error
2019-03-27 20:16:00 -07:00
Jc2k
8bf5e57b7f
Move HKDevice into connection ( #22430 )
2019-03-27 20:01:10 -07:00
Jc2k
d8817bb127
Remove homekit_controller duplicate legacy pairing loader code ( #22442 )
2019-03-28 00:36:50 +01:00
Jc2k
133ae63ed0
Add missing append ( #22414 )
2019-03-26 07:39:05 -07:00
Jc2k
a62c116959
Remove get_serial helper that is no longer needed. ( #22368 )
2019-03-25 23:49:51 -07:00
Jc2k
b2ba9d07ca
Fix unavailable state for homekit locks and covers ( #22390 )
2019-03-25 23:40:28 -07:00
Jc2k
f997957054
Remove unused const ( #22383 )
2019-03-25 16:28:34 +01:00
Jc2k
af4b85d39d
Give HomeKit locks better names by default ( #22333 )
...
## Description:
This is a follow up to #22171 . There we set the name of an entity based on the `accessory-information` homekit service, rather than using the zeroconf/avahi name metadata. Unfortunately Lock also sets its name from zeroconf directly, rather than picking it up from the base class. This test updates it to be like the other homekit entities and use the base class.
(This is from my ongoing homekit_controller configentry branch).
## Checklist:
- [x] The code change is tested and works locally.
- [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
- [x] There is no commented out code in this PR.
2019-03-24 18:21:04 -07:00
Paulus Schoutsen
72bb94de96
Update translations
2019-03-21 12:57:20 -07:00
Paulus Schoutsen
4b1de61110
Use relative imports inside integrations ( #22235 )
...
* Use relative imports inside integrations
* Lint
* Fix automation tests
* Fix scene imports
2019-03-20 22:56:46 -07:00
Jc2k
0344c761fc
Better handling of HomeKit accessory-information service ( #22171 )
...
* HomeKit controller: Better handling of accessory-information service
* Changes from review
2019-03-19 15:04:20 -04:00
Paulus Schoutsen
50ec3d7de5
Update translations
2019-03-13 12:57:00 -07:00
Jc2k
deb66bb748
HomeKit controller light - remove code that can never execute ( #21951 )
2019-03-13 12:53:33 -07:00
Jc2k
c0b859d8da
Set homekit controller entity as unavailable if new connections fail ( #21901 )
...
* Set entity as unavailable if new connections fail
* Fix docstring
2019-03-12 18:45:34 -07:00
Jc2k
e618e2f348
Fix error introduced by #21933 ( #21988 )
2019-03-12 18:37:33 -07:00
Jc2k
2b1b47bfdd
homekit_controller: Bump homekit to 0.13.0 ( #21965 )
...
* Bump homekit to 0.13.0
* Update gen_requirements_all.py
* Escape values used in TESTS_REQUIREMENTS
2019-03-12 21:54:08 +01:00
Paulus Schoutsen
d635111e4f
Update translations
2019-03-12 11:31:17 -07:00
Jc2k
5e2302e469
Add an asyncio Lock around pairing, which cant be used concurrently ( #21933 )
2019-03-11 11:59:41 -07:00
Jc2k
b0d55d1946
HomeKit controller config flow fixes ( #21898 )
...
* HomeKit controller config flow fixes
* This does work if you have latest vol-serialize
2019-03-11 10:07:12 +01:00
Paulus Schoutsen
5fbe2d5477
Update translations
2019-03-09 21:26:26 -08:00
Jc2k
dbf129dfdd
Start preparing for homekit_controller config entries ( #21564 )
...
* Start preparing for homekit_controller config entries
* Review feedback
* Review feedback
* Only use the vol.strip validator for pairing_code
* CV not required now
* Changes from review
* Changes after review
2019-03-06 19:44:52 -08:00
cpopp
84b84559a4
Add support for homekit controller sensors ( #21535 )
...
Adds support for homekit devices with temperature, humidity, and
light level characteristics (such as the iHome iSS50)
2019-02-28 10:09:04 -08:00
koreth
3e9376c418
Handle capitalized HomeKit property names ( #21382 )
...
The Velux ACTIVE gateway uses `C#` rather than `c#` as the name of
the property that holds the count of accessories. Apple's HomeKit docs
suggest that properties should be case-insensitive, so update the
code to not assume the property names are lower case.
2019-02-24 13:56:52 +01:00
Joakim Plate
c5de32e7b1
Climate const.py move ( #20945 )
...
* Move constants to const.py
* Import from const instead of climate
2019-02-14 20:34:43 +01:00
Fabian Affolter
3736120c6a
Update file header ( #21061 )
...
* Update file header
* Fix lint issue
* Fix lint issue
2019-02-14 16:01:46 +01:00
Jc2k
ee3631e93e
Fix homekit_controller non-standard hk characteristics ( #20824 )
2019-02-08 11:00:51 +01:00
Jc2k
e0e5b860e4
Homekit Motion Sensor Review feedback ( #20568 )
2019-01-29 11:25:18 -05:00
Jc2k
e22802a4d4
Add support for HomeKit motion sensor devices ( #20555 )
2019-01-28 20:30:56 -08:00
Jc2k
abeb875c61
Homekit controller BLE groundwork (part 2) ( #20548 )
...
* Only fetch values of characteristics we are tracking.
* Use callbacks on subclasses to update individual values
* Update alarm_control_panel to use update callbacks
* Update climate to use update callbacks
* Update cover to use update callbacks
* Update light to use update callbacks
* Update lock to use update callbacks
* Update switch to use update callbacks
* Remove compatibility code as all entities migrated
* pylint by name rather than code
2019-01-28 21:27:26 +01:00
Jc2k
41c1997b88
Homekit controller BLE groundwork ( #20538 )
...
* Define the characteristics to poll (or subscribe to) up front
* Configure characteristics immediately instead of during first poll
* Do as much cover configuration upfront as possible
* Remove test workaround as no longer needed
* Remove switch code that is already handled by HomeKitEntity
* Remove lock code already handled by HomeKitEntity
* Remove light code already handled by HomeKitEntity
* Remove alarm code already handled by HomeKitEntity
* Remove climate code already handled by HomeKitEntity
2019-01-28 17:21:20 +01:00
Jc2k
995758b8ac
Add more HomeKit controller tests ( #20515 )
...
* homekit_controller tests: automatically find entity ids in tests
Some entities use dynamic ids because of the nature of the test fakes it is
hard to predict the name of the entity that will be created. This inspects the
EntityComponent of the domain to find the freshly created entity.
* homekit_controller: Tests can now define their own Service models.
All existing tests use models as defined upstream. But upstream only defines a
few service models. This adds a generic model helper for creating test
service/characteristic models.
* homekit_controller: Add cover tests
* homekit_controller: Add lock tests
* homekit_controller: Add alarm_control_panel tests
* homekit_controller: Update light tests for color_temp.
* Revert "homekit_controller tests: automatically find entity ids in tests"
This reverts commit 506caa4c3e
.
* homekit_controller: Mock entity name so entity_id is consistent.
Also remove spurious subclass overrides that are identical to parent class.
* homekit_controler: Make tests less awkward as allowed top level imports
2019-01-28 13:20:32 +01:00
Jc2k
10e3698fd7
Add homekit_controller tests ( #20457 )
...
* Add a test for a homekit_controller switch
* Add a test for a homekit_controller lightbulb
* Add a test for homekit_controller thermostat
* Changes from review
* Patch utcnow to known time in HK tests
* Neater fixture use per review
2019-01-27 12:34:49 +01:00
Jc2k
cea2bf94bd
Move homekit_controller entity types under homekit_controller platform ( #20376 )
...
* Move homekit_controller entity types under homekit_controller platform
* Update coveragerc as homekit_controller moved
2019-01-25 07:43:01 -08:00
Jc2k
a396ee2cb5
Bump homekit==0.12.2 + improve controller reliability ( #20325 )
...
Sessions were timing out and requiring a HA restart in order to restore
functionality. Network disconnects are now handled and sessions will be
automatically recovered after they fail.
2019-01-23 20:44:21 +01:00
Austin Drummond
3b83a64f7c
Add support for HomeKit Controller covers ( #19866 )
...
* Added support for HomeKit Controller covers
* removed copied code
* more linting fixes
* added device type to service info
* added checks for value in characteristics
* added state stopped parsing
* removed logger
* removed unused args
* fixed inits
* removed unused imports
* fixed lint issues
* fixed lint issues
* remove state_unknown
* remove validation of kwargs in homekit controller covers
* guarantee tilt position is not none before setting
2019-01-13 19:09:47 +01:00
Austin Drummond
7676b3fbe8
Add support for HomeKit Controller Locks ( #19867 )
...
* Added HomeKit Controller Lock
* cleaned up code according to standards
* fixed lint issues
* added private constant for jammed state
* removed state_unknown
2019-01-12 03:48:28 +01:00
Austin Drummond
bf40bea965
Support for Homekit controller/alarm control panel ( #19612 )
...
* added support for homekit security systems
* fixed linting issues
* fixed indentation issues
* simplifired logic on homekit_controller alarm controller panel
* cleaned up battery level const on homekit controller alarm control panel
2019-01-04 12:54:37 -07:00
Jc2k
855274e354
Fix homekit_controller pairing regression ( #19654 )
...
* Fix homekit_controller pairing regression
* Use constant for pairing file name
2018-12-30 14:44:26 -05:00
Jc2k
e0f50a9e54
Update homekit controller to homekit==0.12.0 ( #19549 )
2018-12-24 22:13:17 +01:00
Filip Bednárik
9329ec2486
Add support for switches in homekit controller ( #17916 )
2018-11-06 15:32:32 +01:00
Ville Skyttä
707b7c202d
Narrow scope of various pylint inline disables ( #15364 )
...
* Narrow scope of various pylint inline disables
* Whitespace tweaks
2018-10-10 12:17:11 +02:00
Adam Mills
3abdf217bb
Homekit controller reconnect ( #17060 )
...
* Add threaded call_later helper
* Reconnect to device when connection fails
* Consolidate connection logs and warn on first
2018-10-04 09:25:05 +02:00
Matthew Garrett
db3cdb288e
Update HomeKit module code ( #15502 )
...
This fixes a bunch of bugs, including issues with concurrency in devices
that present multiple accessories, devices that insist on the TLV entries
being in the order that Apple use, and handling devices that send headers
and data in separate chunks. This should improve compatibility with
a whole bunch of HomeKit devices.
2018-07-17 10:06:06 +02:00
Matthew Garrett
c587536547
Ignore some HomeKit devices ( #15316 )
...
There are some devices that speak HomeKit that we shouldn't expose. Some
bridges (such as the Hue) provide reduced functionality over HomeKit and
have a functional native API, so should be ignored. We also shouldn't
offer to configure the built-in Home Assistant HomeKit bridge.
2018-07-12 11:52:37 +02:00
Ville Skyttä
b92350fb55
Lint cleanup ( #15103 )
...
* Remove unneeded inline pylint disables
* Remove unneeded noqa's
* Use symbol names instead of message ids in inline pylint disables
2018-06-25 13:05:07 -04:00
Adam Mills
038168c417
Support for Homekit Controller climate devices ( #15057 )
...
* Support for Homekit Controller climate devices
* Handle stale state when operating mode off
2018-06-25 09:45:26 -04:00
Ville Skyttä
cb646e48d0
Upgrade pylint to 1.9.2 ( #14916 )
2018-06-13 07:08:39 -04:00
Matthew Garrett
ef48a7ca2c
Fix Python 3.6 compatibility for HomeKit controller ( #14160 )
...
Python 3.6's http client passes an additional argument to _send_output,
so add that to the function definition.
2018-04-29 09:46:36 +02:00
Matthew Garrett
e4cb3af76d
Handle HomeKit configuration failure more cleanly ( #14041 )
...
* Handle HomeKit configuration failure more cleanly
Add support for handling cases where HomeKit configuration fails, and give
the user more information about what to do.
* Don't consume the exception for a homekit.UnknownError
If we get an UnknownError then we should alert the user but also still
generate the backtrace so there's actually something for them to file in
a bug report.
2018-04-22 16:38:01 -04:00
Matthew Garrett
ac2298189e
Add support for controlling homekit lights and switches ( #13346 )
...
* Add support for controlling homekit lights and switches
This adds support for controlling lights and switches that expose a HomeKit
control interface, avoiding the requirement to implement protocol-specific
components.
* Comment out the homekit requirement
This needs to build native code, so leave it commented for now
* Review updates
* Make HomeKit auto-discovery optional
Add an "enable" argument to the discovery component and add a list of
optional devices types (currently just HomeKit) to discover
* Further review comments
* Update requirements_all.txt
* Fix houndci complaints
* Further review updates
* Final review fixup
* Lint fixups
* Fix discovery tests
* Further review updates
2018-04-13 19:25:35 +02:00