Marcel van der Veldt
e1e6925097
Refactor of Hue integration with full V2 support ( #58996 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-11-16 11:59:17 -08:00
J. Nick Koston
e6e8d7eded
Convert color temperature to visible color in lights ( #55219 )
2021-08-25 21:56:36 +02:00
Paulus Schoutsen
ee2c950716
Merge system options into pref properties ( #51347 )
...
* Make system options future proof
* Update tests
* Add types
2021-06-01 22:34:31 +02:00
Paulus Schoutsen
56774a9f63
Hue: unique ID for groups + remote events ( #50748 )
2021-05-17 08:07:25 -07:00
Franck Nijhof
c68b259bd3
Cleanup of unused connection_class logic ( #49865 )
...
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-04-29 23:12:58 +02: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
7ab2d91bf0
Add suggested area to hue ( #47056 )
2021-02-26 10:35:09 -06:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Philip Allgaier
dde6305549
Cleanup unused loggers (components N-Z + tests) ( #41982 )
2020-10-16 21:24:08 -05:00
Paulus Schoutsen
2af984917e
Use asynctest-mock in most places ( #35109 )
...
* Use asynctest-mock in most places
* Fix broken patch in pilight
2020-05-03 11:27:19 -07:00
Paulus Schoutsen
6fa29d6e2e
Fix Hue brightness values over 127 off by one ( #34190 )
2020-04-14 13:31:38 +02:00
Paulus Schoutsen
ba8ae17487
Fix hue ct ( #33791 )
2020-04-08 11:31:41 +02:00
Paulus Schoutsen
0a3ec6fea1
Correct Hue mireds for lights ( #33597 )
2020-04-04 14:29:03 -07:00
Eugenio Panadero
71aaf2d809
Add device triggers for Hue remotes ( #33476 )
...
* Store device_registry entry id in HueEvent
so it can be retrieved with that key when using device triggers
* Add device_trigger for hue_event from hue remotes
* supporting Hue dimmer switch & Hue Tap
* State mapping and strings are copied from deCONZ
* refactor mock_bridge for hue tests
and also share `setup_bridge_for_sensors`
for test_sensor_base and test_device_trigger.
* Add tests for device triggers with hue remotes
* Remove some triggers
2020-04-01 11:42:22 -07:00
Eugenio Panadero
977f1a6916
Fix hue tests that have uncaught exceptions ( #33443 )
2020-03-31 10:17:09 -05:00
Victor Guimarães
93a844b1d5
Hue Group features based on the bulbs in it ( #31897 )
...
* Computes the features of a hue group as the union of the features of the bulbs in the group
* Moved create item to a function
* Added test for hue group features
2020-02-17 10:22:34 -08:00
Paulus Schoutsen
989dd32258
Hue to retry if hub errors out ( #31616 )
...
* Respect semaphore
* Add retries when connection reset
* Also catch OSError from aiohttp when authenticating
2020-02-08 13:20:37 -08:00
Paulus Schoutsen
0d474e1183
Update the update coordinator API to make it easier to use ( #31471 )
...
* Update the update coordinator API to make it easier to use
* failed_last_update -> last_update_success
2020-02-06 09:29:29 -08:00
Paulus Schoutsen
166d770ddd
Update Hue data fetching ( #31338 )
...
* Refactor Hue Lights to use DataCoordinator
* Redo how Hue updates data
* Address comments
* Inherit from Entity and remove pylint disable
* Add tests for debounce
2020-01-31 14:47:40 -08:00
Paulus Schoutsen
9aa02e35a7
Entity Component to no longer generate automatic groups ( #23789 )
2020-01-07 17:30:53 +01:00
Bas Nijholt
c7cf1b820c
Sort imports according to PEP8 for hue ( #29757 )
2019-12-09 13:25:04 +01:00
Bram Kragten
d91dd68b31
Limit parallel requests to Philips Hue ( #29189 )
...
* Limit parallel requests to Philips Hue
* Fix tests
* Remove loop
* Update homeassistant/components/hue/bridge.py
Co-Authored-By: Paulus Schoutsen <balloob@gmail.com>
2019-12-01 13:24:16 -08:00
Bram Kragten
549e8cf2c5
Hue: Create new config flow when auth is lost ( #28204 )
...
* Hue: Create new config flow when auth is lost
* Fix tests
* Fix tests
* Comments
* Lint
2019-10-28 08:45:08 -07:00
Bram Kragten
b75639d9d1
Remove lamps and groups from ha when removed from Hue ( #26881 )
...
* Remove light when removed from hue
* add remove_config_entry_id
* Review + bump aiohue
* lint
* Add tests
2019-09-25 14:00:18 -07: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
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Markus Jankowski
264e70922b
Fix effects on HUE integration for Osram bulbs ( #22789 )
...
* Fix hue effect for others
* New suggestion
* switched implementation to remove colorloop for osram bulbs
* Check ATTR_EFFECT in kwargs
* Fix tests
2019-05-07 09:53:14 -07:00
starkillerOG
f353d51ab1
Add check to validate gamut ( #20518 )
...
* color.util - Add check to validate gamut
* fix indents
* fix typo
* Add check to validate gamut
* Add tests for gamut checker
* fix test
* fix pylint issues
* fix hue light gamut tests
* add check to validate gamut
* move None check
* Move None check
* Include prompt to update bridge/bulb on error
* fix wrong commit
* fix error message
* Update light.py
2019-01-28 17:52:00 -08:00
starkillerOG
11602c1da0
Improve Philips Hue color conversion 2 ( #20118 )
...
* Add gamut capability to color util
* Include gamut in hue_test
* Improve Philips Hue color conversion
* correct import for new location hue.light
* include file changes between PR's
* update aiohue version
* update aiohue version
* update aiohue version
* fix hue_test
Now Idea why it failed compared to the previous time
* Include gamut in hue_test
* fix hue_test
* Try to test hue gamut conversion
supply a color that is well outside the color gamut of the light, and see if the response is correctly converted to within the reach of the light.
* switch from gamut A to gamut B for the tests.
* remove white space in blanck line
* Fix gamut hue test
* Add Gamut tests for the util.color
* fix hue gamut test
* fix hue gamut test
* Improve Philips Hue color conversion
2019-01-15 11:30:50 -08:00
Paulus Schoutsen
a8f22287ca
Allow embedded platforms ( #19948 )
...
* Allow embedded platforms
* Fix test
2019-01-11 11:30:22 -08:00