Commit graph

63 commits

Author SHA1 Message Date
cdce8p
b91a061cef
Add missing __init__ test files () 2018-09-25 23:08:37 +02:00
cdce8p
3bfe9e757e
Add Carbon Monoxide HomeKit Sensor () 2018-09-21 12:51:02 +02:00
Jerad Meisner
ae63980152 Remove unit_of_measurement from climate entities ()
* Remove unit_of_measurement from climate base class.

* Updated google_assistant component and tests to use core temp units.

* Fixes

* Convert Alexa component to use core temp units for climate entities.

* Fix tests.

* Converted prometheus component.

* Remove unit_of_measurement from homekit thermostat tests.

* Small fix.
2018-08-22 09:17:29 +02:00
Paulus Schoutsen
d071df0dec
Do not make internet connection during tests ()
* Do not make internet connection

* Small improvement
2018-08-07 09:27:40 +02:00
cdce8p
f09f153014 Fix HomeKit test ()
* Don't raise NotImplementedError during test
2018-08-07 09:26:58 +02:00
cdce8p
4de847f84e Bugfix HomeKit name and serial_number ()
* Bugfix HomeKit name and serial_number

* Revert serial_number changes
2018-07-22 09:51:42 +02:00
Matt Schmitt
1533bc1e1f Add support for Homekit battery service () 2018-06-17 20:54:34 +02:00
Matt Schmitt
722c27f1e2 HomeKit style clean up () 2018-06-17 13:37:44 +02:00
Matt Schmitt
f5d74e07d5 Add support for outlets in HomeKit () 2018-06-01 18:04:54 +02:00
roiff
ab3717af76 Homekit Thermostat: Better support for temperature ranges ()
* Support for obtaining temperature range
* Fallback to Defaults
* Fixed unit conversion
* Added test
2018-06-01 13:49:16 +02:00
cdce8p
f1f4d80f24
Homekit Bugfixes ()
* Fix async bug
* Fix debounce bug
2018-05-30 12:39:27 +02:00
cdce8p
7d2563eb1f
Update HAP-python to 2.2.2 ()
* Pass driver to accessory
* Added 'hk_driver' fixture for tests
2018-05-29 22:43:26 +02:00
cdce8p
6f4dd7b057 Improve Homekit media_player options ()
* Optimize imports

* Optimize name

* Optimize config schema

* Rename mode to feature

* Replace mode with feature_list
2018-05-28 10:26:33 -04:00
Matt Schmitt
143be49c66 Add HomeKit support for automations () 2018-05-25 11:38:48 +02:00
Matt Schmitt
a9f19a16ee Add HomeKit support for media players () 2018-05-25 11:37:20 +02:00
cdce8p
0589379de5 Homekit style cleanup ()
* Style cleanup

* Sorted imports
* Harmonized service calls

* Test improvements

* Small update
2018-05-20 22:25:53 -04:00
cdce8p
12e76ef7c1
Update HAP-python to 2.1.0 () 2018-05-18 16:32:57 +02:00
cdce8p
4c328baaa6
Add code to HomeKit lock () 2018-05-18 13:52:52 +02:00
Matt Schmitt
25dcddfeef Add HomeKit support for fans () 2018-05-16 13:15:59 +02:00
Ville Skyttä
234bf1f0ea Spelling, grammar etc fixes ()
* Spelling, grammar etc fixes

* s/an api data/data of an api/
2018-05-13 12:09:28 +02:00
cdce8p
990f476ac9
Homekit test cleanup () 2018-05-12 17:10:19 +02:00
Matt Schmitt
621c653fed Allow HomeKit name to be customized () 2018-05-11 14:22:45 +02:00
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