Christian Clauss
df7d2b3aeb
Fix typos found by codespell ( #31243 )
...
* Fix typos found by codespell
* Fix typos found by codespell
* codespell: Furture ==> Future
* Update test_config_flow.py
* Update __init__.py
* Spellcheck: successfull ==> successful
* Codespell: unsuccesful ==> unsuccessful
* Codespell: cant ==> can't
* Codespell: firware ==> firmware
* Codespell: mimick ==> mimic
2020-01-31 08:33:00 -08:00
Jc2k
a58c796641
Add support for homekit air quality sensors ( #30510 )
...
* Add air quality sensor
* Fix comment from review
* Fix comment from review
* Lint fix
2020-01-06 16:35:10 +01:00
Jc2k
fffc5a5fbb
Add support for v1 and v2 HomeKit fans. ( #30503 )
...
* Add support for v1 and v2 HomeKit fans.
* Lint fix
2020-01-05 15:56:46 +01:00
Ville Skyttä
5216477353
Be consistent with Home Assistant and Hass.io spelling ( #30500 )
...
* Be consistent with Home Assistant spelling
* Be consistent with Hass.io spelling
2020-01-05 14:09:17 +02:00
Jc2k
fccb13b762
Add homekit_controller service.sensor.smoke ( #30269 )
2019-12-30 08:05:49 +00:00
Jc2k
8a22a38353
Accept homekit_controller pairing codes both with and without dashes ( #30273 )
...
* Handle MalformedPinError from homekit_python
* Handle both formats of pin codes
2019-12-30 07:36:01 +00:00
Jc2k
b41480ae46
Add a config entry mechanism to rediscover a discovery that was ignored ( #30099 )
...
* Mechanism to rediscover a discovery that was ignored
* Add core config entry tests for new rediscover step
* Add tests for homekit_controller implementation of async_step_rediscover
* Rename rediscover to unignore
* Comment the new ignore/unignore mechanisms
2019-12-21 11:22:07 +01:00
Jc2k
c3144eddbb
Set unique id on homekit_controller config entries ( #30035 )
...
* Set unique id on config entries
* Changes from review
2019-12-19 09:45:22 +01:00
Bas Nijholt
776d8cfdc9
Sort imports according to PEP8 for specific_devices ( #29687 )
2019-12-09 11:51:36 +01:00
Bas Nijholt
d2c1e5d45c
Sort imports according to PEP8 for homekit_controller ( #29646 )
2019-12-08 18:14:26 +01:00
springstan
3b5da9c44a
Move imports to top for homekit_controller ( #29564 )
...
* Move imports to top for homekit_controller
* Fix IpPairing mock in two test files
2019-12-08 16:50:57 +00:00
GaryOkie
a9a1c2b91d
Update Homekit climate.py to remap current mode ( #28625 )
...
* Update Homekit climate.py to remap current mode
This update changes the mapping of Homekit's Current Mode Heating/Cooling State to show the HASS Hvac_action attribute as "idle" instead of "off" when the returned value is 0.
* Update climate.py
removed imported constant no longer being used (CURRENT_HVAC_OFF)
* corrected update to climate.py
trying again to remove unused constant.
* Update test_climate.py
* removed "change" comment
The added comment describing the change was not needed and should not be included, as it will already be described via "git annotate" (per @jc2k)
2019-11-12 00:35:09 +01: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
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
Robert Svensson
a2589f56e1
Add system options to config entries ( #25926 )
...
* Add system options to config entries
* For feedback
* Follow most of balloobs comments
* Fix balloobs comments
* Improvements
* Fix second round of Balloobs comments
* Fix third round
* Add system options to mock config entry
* Fix integration tests
* Fix the last failing tests
* Fix disabled string
* Fix failing disabled_by tests
* New tests
* Config entry WS API tests
* Fix comments
2019-08-17 21:34:11 -07:00
Jc2k
34cde21876
Fix for HomeKit controller state not updating after put ( #25903 )
2019-08-13 10:09:55 +02:00
tleegaard
61c6838fa2
Add support for HomeKit CO2 sensors ( #25603 )
2019-08-01 11:24:46 +01: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
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
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
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
692eeb3687
Fix ecobee 3 homekit pairing ( #23882 )
2019-05-16 14:32:13 +02: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
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
baeb3cddc6
Set placeholders in homekit config flow title ( #23311 )
2019-04-22 21:32:39 -07:00
Jc2k
b3a8b0056b
Add and use an async_fire_service_discovered helper ( #23232 )
2019-04-19 08:38:50 -04:00
Jc2k
4ac9a2e9de
Add storage for cacheable homekit entity maps. ( #23191 )
2019-04-18 08:55:34 -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
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
Jc2k
906f0113ad
Add more HomeKit device enumeration tests ( #22194 )
...
* Test that Aqara Gateway, Ecobee 3 and Lennox E30 is correctly enumerated
* Move json to fixtures directory
* Move IO to executor
2019-03-30 11:21:11 +01:00
Jc2k
8bf5e57b7f
Move HKDevice into connection ( #22430 )
2019-03-27 20:01:10 -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
Jc2k
c2aa06d0d4
Add some tests for Koogeek LS1 ( #22141 )
2019-03-19 00:58:56 -07:00
Penny Wood
f195ecca4b
Consolidate all platforms that have tests ( #22109 )
...
* Moved climate components with tests into platform dirs.
* Updated tests from climate component.
* Moved binary_sensor components with tests into platform dirs.
* Updated tests from binary_sensor component.
* Moved calendar components with tests into platform dirs.
* Updated tests from calendar component.
* Moved camera components with tests into platform dirs.
* Updated tests from camera component.
* Moved cover components with tests into platform dirs.
* Updated tests from cover component.
* Moved device_tracker components with tests into platform dirs.
* Updated tests from device_tracker component.
* Moved fan components with tests into platform dirs.
* Updated tests from fan component.
* Moved geo_location components with tests into platform dirs.
* Updated tests from geo_location component.
* Moved image_processing components with tests into platform dirs.
* Updated tests from image_processing component.
* Moved light components with tests into platform dirs.
* Updated tests from light component.
* Moved lock components with tests into platform dirs.
* Moved media_player components with tests into platform dirs.
* Updated tests from media_player component.
* Moved scene components with tests into platform dirs.
* Moved sensor components with tests into platform dirs.
* Updated tests from sensor component.
* Moved switch components with tests into platform dirs.
* Updated tests from sensor component.
* Moved vacuum components with tests into platform dirs.
* Updated tests from vacuum component.
* Moved weather components with tests into platform dirs.
* Fixed __init__.py files
* Fixes for stuff moved as part of this branch.
* Fix stuff needed to merge with balloob's branch.
* Formatting issues.
* Missing __init__.py files.
* Fix-ups
* Fixup
* Regenerated requirements.
* Linting errors fixed.
* Fixed more broken tests.
* Missing init files.
* Fix broken tests.
* More broken tests
* There seems to be a thread race condition.
I suspect the logger stuff is running in another thread, which means waiting until the aio loop is done is missing the log messages.
Used sleep instead because that allows the logger thread to run. I think the api_streams sensor might not be thread safe.
* Disabled tests, will remove sensor in #22147
* Updated coverage and codeowners.
2019-03-18 23:07:39 -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
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
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
Jc2k
e22802a4d4
Add support for HomeKit motion sensor devices ( #20555 )
2019-01-28 20:30:56 -08:00