Commit graph

191 commits

Author SHA1 Message Date
cdce8p
8fcf085829
Rewritten HomeKit tests ()
* Use pytest fixtures and parametrize
* Use async
2018-05-11 01:21:59 +02:00
cdce8p
91fe6e4e56 Add debounce to move_cover ()
* Add debounce to move_cover

* Fix spelling mistake
2018-05-06 20:55:38 -04:00
cdce8p
95d27bd1fa Sensor device classes ()
* Added light device class, moved device classes to const

* Removed unnecessary icons

* Replace 'lux' with 'lx'

* Fix comment

* Changed device_class name
2018-05-05 09:37:40 -04:00
Matt Schmitt
255a85ad02 HomeKit: Support triggered state for alarm_control_panel () 2018-05-05 00:09:16 +02:00
cdce8p
bb76ba67f3
Homekit: Changed device_class requirement Humidity Sensor () 2018-05-04 22:48:38 +02:00
cdce8p
e37fd5b132 Update HAP-python to 2.0.0 ()
* Fixed async (added 'async_add_job' and 'add_job')

* Driver status

* Use pyhap category constants

* Changed 'set_broker' to 'set_driver'

* Changed loader method names

* Use 'serv.configure_char'

* Use 'self.set_info_service'

* Use 'self.add_preload_service'

* Fix hound issue

* Updated HAP-python to 2.0.0
2018-05-04 16:46:00 +02:00
roiff
c9de2f015b HomeKit - Climate: power state on/off support ()
* add power state  support on off
* Added check for current operation mode
* Extended 'set_heat_cool'
* Added tests
2018-05-03 18:22:43 +02:00
cdce8p
46c260fd85 Added CONF_IP_ADDRESS to HomeKit () 2018-04-30 08:58:17 -04:00
Matt Schmitt
2091f86e25 Clean up HomeKit accessory information characteristics ()
* Update accessory information characteristics
* Add firmware revision characteristic
2018-04-28 23:17:30 +02:00
Maciej Bieniek
c78e8eb578 Add support for light sensors with 'lx' unit to HomeKit ()
* add support for light sensors with lx unit

* add test for light sensor with 'lx' unit
2018-04-28 17:14:34 +02:00
Matt Schmitt
51f55bddb7 HomeKit Alarm Control Panel Code Exception Fix ()
* Catch exception for KeyError
* Use get and added test
2018-04-21 16:16:46 +02:00
Nick Whyte
b589dbf26c Support basic covers with open/close/stop services HomeKit ()
* Support basic covers with open/close/stop services
* Support optional stop
* Tests
2018-04-18 14:39:58 +02:00
Mark Coombes
993866a314 Support Garage Doors in HomeKit () 2018-04-12 18:08:48 +02:00
Yonsm
c863b9614c Support CO2/PM2.5/Light sensors in HomeKit ()
* Support co2/light/air sensor in HomeKit
* Add tests
* Added tests
* changed device_class lux to light
2018-04-12 15:01:41 +02:00
cdce8p
dd7e6edf61
HomeKit type_cover fix ()
* Removed char_position_state
* Changed service call
2018-04-12 13:19:21 +02:00
cdce8p
2a5751c09d Homekit refactor () 2018-04-11 22:24:14 +02:00
Phil Kates
c61611d2b4 Add Homekit locks support ()
* homekit: Add locks support
* Improved upgradeability
2018-04-09 16:23:49 +02:00
Yonsm
cb51553c2d Support binary_sensor and device_tracker in HomeKit ()
* Support binary_sensor and device_tracker for HomeKit
* Add test for get_accessory and binary sensor
* Test service.display_name and char_detected.display_name
* Split test to improve speed
2018-04-09 15:32:28 +02:00
cdce8p
262ea14e5a Add timeout / debounce (for brightness and others) ()
* Add async timeout feature

* Decorator for setter methods to limit service calls to HA
* Changed to async
* Use async_call_later
* Use lastargs, async_add_job

* Use dict for lastargs

* Updated tests to stop patch
2018-04-06 23:11:53 +02:00
cdce8p
85487612d5 Update Homekit to 1.1.9 ()
* Version bump to HAP-python==1.1.9

* Updated types and tests
2018-04-06 10:20:59 -04:00
Niklas Morberg
bb5484edac Support color temperature in Homekit ()
* Add support for color temperature
* Add test for color temp
2018-04-05 18:06:23 +02:00
cdce8p
206e38a2ab
Update HAP-python to 1.1.8 ()
* Bump version to HAP-python==1.1.8
* Required changes for version change
* Small bugfix lights
2018-04-05 13:20:20 +02:00
cdce8p
692b2644c7
Minor style changes, cleanup ()
* Minor style changes, cleanup
* Change 'self._entity.id' to 'self.entity_id'
* Use const 'STATE_OFF'
* Added CATEGORY constants
* Removed *args from accessory types
* Changed 'self._hass' to 'self.hass'
* Added log debug msg (for added lights)
2018-04-05 00:52:25 +02:00
Ville Skyttä
415af5e257 Spelling fixes () 2018-04-04 23:30:02 +02:00
cdce8p
cea2de5eb5
HomeKit: Fix setting light brightness ()
* Added test
2018-03-29 18:35:57 +02:00
cdce8p
2bebfec3a6
Homekit: Fix security systems ()
* Fix alarm_code=None
* Added test
2018-03-27 23:39:25 +02:00
cdce8p
9eda04b787
Homekit: Bugfix Thermostat Fahrenheit support ()
* Bugfix thermostat temperature conversion
* util -> temperature_to_homekit
* util -> temperature_to_states
* util -> convert_to_float
* Added tests, deleted log msg
2018-03-27 11:31:18 +02:00
cdce8p
7db37a3834 HomeKit: Bugfix & improved logging ()
* Bugfix & improved logging

* Removed logging statements

* Removed logging test
2018-03-25 12:53:15 +02:00
Adam Mills
89c7c80e42 Use hue/sat as internal light color interface ()
* Accept and report both xy and RGB color for lights

* Fix demo light supported_features

* Add new XY color util functions

* Always make color changes available as xy and RGB

* Always expose color as RGB and XY

* Consolidate color supported_features

* Test fixes

* Additional test fix

* Use hue/sat as the hass core color interface

* Tests updates

* Assume MQTT RGB devices need full RGB brightness

* Convert new platforms

* More migration

* Use float for HS API

* Fix backwards conversion for KNX lights

* Adjust limitless min saturation for new scale
2018-03-18 15:00:29 -07:00
cdce8p
f6ae2d338d
Homekit: Use util functions for unit conversion ()
* Updated to util/color for conversion
* Updated temperature sensor to use util/temperature conversion
2018-03-16 11:38:44 +01:00
cdce8p
2350ce96a6
Homekit: New supported devices ()
* Fixed log message
* Added support for scripts
* Added support for lights
* Small refactoring
* Added support for humidity sensor
* Added tests
2018-03-16 01:05:28 +01:00
cdce8p
d348f09d3d
HomeKit Restructure (new config options) ()
* Restructure
* Pincode will now be autogenerated and display using a persistence notification
* Added 'homekit.start' service
* Added config options
* Renamed files for types
* Improved tests
* Changes (based on feedback)
* Removed CONF_PIN_CODE
* Added services.yaml
* Service will only be registered if auto_start=False
* Bugfix names, changed default port
* Generate aids with zlib.adler32
* Added entity filter, minor changes
* Small changes
2018-03-15 02:48:21 +01:00
cdce8p
3ca139e21e HomeKit Bugfix: names ()
* Fix display_names, changed default port (+1)

* Revert port change
2018-03-09 19:41:59 -08:00
maxclaey
4218b31e7b Add support for alarm system, switch and thermostat to homekit ()
* Added support for security system, switch and thermostat
* Processing review
* Only perform set call when the call didn't come from HomeKit
* Added support for alarm_code
* Take into account review remarks
* Provide tests for HomeKit security systems, switches and thermostats
* Support STATE_AUTO
* Guard if state exists
* Improve support for thermostat auto mode
* Provide both high and low at the same time for home assistant
* Set default values within accepted ranges
* Added tests for auto mode
* Fix thermostat test error
* Use attributes.get instead of indexing for safety
* Avoid hardcoded attributes in tests
2018-03-07 13:17:52 +01:00
cdce8p
168e1f0e2d Improved Homekit tests ()
* Added test for temperature fahrenheit

* Restructured tests to use more mocks

* Rearanged homekit constants

* Improved 'test_homekit_class'

* Added import statements

* Fix Pylint Test errors
2018-03-01 15:20:02 -08:00
Johann Kellerman
4821858afb Homekit schema gracefully fail with integer ()
* Homekit schema gracefully fail with integer
* Fix return value
* Added test
* Fix 2
2018-02-27 01:09:49 +01:00
cdce8p
6a665ffb84 Fix homekit: temperature calculation () 2018-02-26 22:29:52 +01:00
cdce8p
27b1d448a3 Homekit Update, Support for TempSensor (°F) ()
* Changed version of "HAP-python" to "v1.1.7"

* Updated acc file to simplify init calls

* Code refactored and '°F' temp Sensors added

* Changed call to 'HomeAccessory' and 'HomeBridge'
* Extended function of 'add_preload_service' to add additional characteristics
* Added function to override characteristic property values

* TemperatureSensor
  * Added unit
  * Added calc_temperature

* Updated tests
2018-02-25 19:27:40 -08:00
cdce8p
eacfbc048a
Improved Homekit tests ()
* Spelling and typos
* Updated 'test_homekit_pyhap_interaction'
* Patch ip_address
2018-02-25 10:58:13 +01:00
cdce8p
42ab4e1366 Homekit component test bugfixes for py3.5 2018-02-20 01:40:56 +01:00
cdce8p
eec3bad94f Add support for HomeKit ()
* Basic Homekit support

* Added Temperatur Sensor
* Added Window Cover

* Code refactored

* Added class HomeAccessory(Accessory)
* Added class HomeBridge(Bridge)
* Changed homekit imports to relative, to enable use in custom_components
* Updated requirements
* Added docs
* Other smaller changes

* Changed Homekit from entity to class

* Changes based on feedback
* Updated config schema
* Add only covers that support set_cover_position

* Addressed comments, updated to pyhap==1.1.5

* For lint: added files to gen_requirements_all
* Added codeowner

* Small change to Wrapper classes

* Moved imports to import_types, small changes

* Small changes, added tests

* Homekit class: removed add_accessory since it's already covered by pyhap
* Added test requirement: HAP-python
* Added test suit for homekit setup and interaction between HA and pyhap
* Added test suit for get_accessories function

* Test bugfix

* Added validate pincode, tests for cover and sensor types
2018-02-19 14:46:22 -08:00