Commit graph

27 commits

Author SHA1 Message Date
epenet
5d8b35face
Use light enums in yeelight () 2022-04-26 14:55:44 +02:00
Alex Yao
88309a26b7
Fix Yeelight Music Mode Rate Limits () 2022-02-06 15:34:27 -06:00
J. Nick Koston
881d35ab17
Split up yeelight code into multiple files () 2021-11-23 11:56:07 -06:00
J. Nick Koston
faecc90b38
Workaround brightness transition delay from off in older yeelight models () 2021-10-31 16:11:07 +01:00
J. Nick Koston
4653d0b079
Retry yeelight setup later if first update fails () 2021-10-27 10:09:45 +02:00
J. Nick Koston
fb5d117df4
Always send color/temp when switching from an effect in yeelight () 2021-10-15 09:37:23 -07:00
J. Nick Koston
a58085639e
Restore yeelight workaround for failing to update state after on/off () 2021-10-10 00:01:45 -07:00
J. Nick Koston
1aeab65f56
Fix yeelight state when controlled outside of Home Assistant () 2021-10-03 00:08:31 -07:00
J. Nick Koston
9e2a29dc37
Improve yeelight stability by moving timeout handling to upstream library () 2021-09-20 12:32:01 -05:00
J. Nick Koston
bad6b2f7f5
Standardize yeelight exception handling () 2021-09-17 22:25:19 -07:00
J. Nick Koston
c3972b22fd
Fix yeelight brightness when nightlight switch is disabled () 2021-08-26 15:18:36 -05:00
J. Nick Koston
ae1d2926cf
Fix some yeelights showing wrong state after on/off () 2021-08-26 13:25:26 -05:00
J. Nick Koston
e6e8d7eded
Convert color temperature to visible color in lights () 2021-08-25 21:56:36 +02:00
J. Nick Koston
e7a0604a40
Make yeelight discovery async () 2021-08-18 09:36:13 -07:00
J. Nick Koston
4ae6435a64
Avoid increasing yeelight rate limit when the state is already set () 2021-08-10 15:17:49 -07:00
starkillerOG
a23da30c29
Yeelight local push updates ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-08-09 13:33:34 -05:00
Erik Montnemery
dad7a597ae
Add color_mode support to yeelight light ()
* Add color_mode support to yeelight light

* Satisfy pylint

* Address review comment

* Improve test coverage

* Improve test coverage
2021-06-25 17:37:15 +02:00
Daniel Rheinbay
3c452f8c9b
Refactor yeelight integration to use only flows ()
* Refactor light.py to use only flows.py, eliminating transitions.py

* Reformat yeelight source code using black
2021-06-01 09:04:49 +02:00
Erik Montnemery
5f2326fb57
Add support for light color modes ()
* Add support for light color modes

* Update tests

* Update comments

* Fix bugs, add tests

* Suppress lint errors

* Don't suppress brightness when state is ambiguous

* Improve reproduce_state + add tests

* Add comment

* Change COLOR_MODE_* constants, rename COLOR_MODE_DIMMER to COLOR_MODE_BRIGHTNESS

* Fix tests

* Tweaks
2021-03-16 12:51:39 +01:00
Erik Montnemery
b3fecb1c95
Update tests t-z to use async_get() instead of async_get_registry() () 2021-03-09 14:25:03 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest () 2021-01-01 22:31:56 +01:00
zewelor
16ddbb95f4
Add yeelight service to enable disable music mode ()
* Add service to enable / disable music mode

* Black reformat

* Update test

* Fix tests

* Revert consts cleanup

* Use entity method as service call

* Use ATTR for service call

* Sort

* Add tests

* Fix isort

* Fix print

* Black
2020-12-30 17:00:28 +01:00
Daniel Rheinbay
498654a1e0
Add vendor effects to Yeelight integration ()
Add effects shipped by Yeelight in their apps, as these effects are quite popular and have been missing from Home Assistant.
2020-11-22 21:41:09 +01:00
Xiaonan Shen
f23fcfcd9b
Fix yeelight connection issue ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-10-27 14:47:11 +01:00
Xiaonan Shen
7b3182fa8f
Improve Yeelight code ()
* Rename ipaddr to ip_addr

* Move custom services to entity services

* Remove platform data

* Change service setup to callback

* Rename ip_addr to host

* Use _host inside class
2020-09-02 18:42:12 +02:00
Xiaonan Shen
45a927ffb2
Add config flow to yeelight () 2020-08-31 16:40:56 +02:00
Xiaonan Shen
e8b6ed5a27
Add platform tests to yeelight ()
* Add platform tests to yeelight

* Update requirements

* Break long string
2020-08-02 16:37:31 +02:00