Commit graph

73 commits

Author SHA1 Message Date
Marc Mueller
72801867d6
Use assignment expressions 38 () 2021-10-31 18:49:18 +01:00
J. Nick Koston
faecc90b38
Workaround brightness transition delay from off in older yeelight models () 2021-10-31 16:11:07 +01:00
Erik Montnemery
56f746fd39
Coerce to tuple before asserting the sequence () 2021-10-30 16:50:24 +02:00
J. Nick Koston
4653d0b079
Retry yeelight setup later if first update fails () 2021-10-27 10:09:45 +02:00
Marc Mueller
62c20860ac
Use assignment expressions 22 () 2021-10-21 08:33:10 +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
427f2a085b
Reconnect and retry yeelight commands after previous wifi drop out () 2021-10-15 09:37:13 -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
23cbd9075a
Wait for yeelight internal state to change before update after on/off () 2021-09-29 13:49:33 -05: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
10fa63775d
Ensure yeelights resync state if they are busy on first connect () 2021-08-27 12:43:53 -05: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
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
Franck Nijhof
2ed386f9e6
Migrate to async_get_current_platform everywhere () 2021-05-03 09:34:28 -07:00
Marc Mueller
1dc25a5864
Bump python-typing-update to 0.3.2 ()
* Bump python-version-update to 0.3.2
* Changes after update
* Fix pylint issues
2021-03-25 21:09:06 +01:00
Erik Montnemery
1fc8e32d86
Update integrations t-z to override extra_state_attributes() () 2021-03-11 20:16:26 +01:00
tkdrob
add0d9d3eb
Use core constants for yeelight () 2021-02-16 09:00:09 -05:00
Xiaonan Shen
daa9449f18
Fix yeelight brightness in music mode () 2021-01-21 08:54:24 +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
springstan
92379ad8d2
Use list literal without using dict.keys() () 2020-10-30 09:19:13 -05: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
e6a65b8bd3
Bump yeelight to 0.5.4 () 2020-10-09 13:30:42 +02: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
d37a5cdde5
Fix yeelight flash ()
* Fix yeelight flash

* Use cast instead of string comparison

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2020-07-15 15:51:33 +02:00
Franck Nijhof
53545c984b
Log lines do not end with a full stop () 2020-07-05 23:04:19 +02:00
zewelor
871afd2bf2
Remove Yeelight model to device type mapping () 2020-06-12 14:51:48 +02:00
zewelor
92756f9b12
Add explicit return none and binary sensor availability to yeelight ()
* Add explicit return none and binary sensor availbility

* Fix
2020-05-15 17:41:53 +02:00
zewelor
8cf354c042
Provide yeelight unique_id using ssdp discovery ()
* Provide yeelight unique_id using ssdp discovery

* Fixes

* Comment fix

* Cleanup initialization logic and add unique id to binary sensor

* Update homeassistant/components/yeelight/__init__.py

Co-authored-by: Teemu R. <tpr@iki.fi>

* Update homeassistant/components/yeelight/__init__.py

Co-authored-by: Teemu R. <tpr@iki.fi>

* Update comment

* Update comment

* Fix wrong model docstring

Co-authored-by: Teemu R. <tpr@iki.fi>
2020-05-14 19:44:32 +02:00
Teemu R
ecdcfb835d
Add yeelight meteorite (YLDL01YL, ceiling10) () 2020-05-01 13:00:44 -06:00
Erik Montnemery
e4333a7a44
Rename Light to LightEntity () 2020-04-26 18:49:41 +02:00
springstan
db72039b8f
Use list literals () 2020-04-04 23:14:47 +02:00
Paulus Schoutsen
4ebbabcdd1
Unsub dispatcher when removing entity from hass ()
* Unsub dispatcher when removing entity from hass

* Update homeassistant/components/plaato/sensor.py

Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/volvooncall/__init__.py

Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-04-02 09:25:33 -07:00
sbilly
c1908d16b5
Add 'Yeelight LED Ceiling Light' model ()
* Add 'Yeelight LED Ceiling Light' model

Add new model https://www.yeelight.com/en_US/product/luna

* Update requirements_all.txt bump to yeelight 0.5.1

Update requirements_all.txt bump to yeelight 0.5.1

* Update manifest.json, bump to 0.5.1

Update manifest.json, bump to 0.5.1
2020-03-16 14:21:27 +01:00
zewelor
ce13fb8d73 Support yeelight color light with nightlight ()
* Support color light with nightlight

* Better nightlight mode support check

* Lint fixes

* Remove brightness control for color light with nightlight mode
2020-01-13 06:03:48 +01:00
Ville Skyttä
fa4fa30461 Various string cleanups ()
* Remove some unnecessary string concatenations

* Replace some simple str.formats with f-strings

* Replace some string concatenations with f-strings
2020-01-03 14:47:06 +01:00
Ville Skyttä
e6388e186c
Remove unnecessary string literal concatenations () 2020-01-02 21:17:10 +02:00
zewelor
575eb48feb Show current effect in yeelight device ()
* Show current effect in yeelight device

* Use device_state_attributes instead of state_attributes

* Add early return in set effect

* Make single if elif chain

* Fix if elif

* Fix if elif
2019-12-16 16:23:05 +01:00
Bas Nijholt
3f469eac28 Sort imports according to PEP8 for yeelight () 2019-12-09 13:10:24 +01:00
Quentame
5b1f44ba19 Move imports in yeelight + yeelightsunflower component ()
* Move imports in yeelight + yeelightsunflower component

* Fix pylint

* Fix pylint (again)
2019-10-15 13:37:40 +02:00
Kevin Eifinger
04ead6f273 move ATTR_MODE to homeassistant.const () 2019-10-02 09:33:47 -07:00
zewelor
ce42b46ccd Fix yeelight inheritance order () 2019-09-18 10:07:07 -07:00