Commit graph

30 commits

Author SHA1 Message Date
Franck Nijhof
1ead6d6762
Automatically onboard Yeelight () 2022-06-22 21:19:34 +02:00
J. Nick Koston
ad9e1fe166
Fix reload race in yeelight when updating the ip address () 2022-06-12 20:29:44 -07:00
epenet
a29990a784
Use new CONF_MODEL core constant (1/3) ()
* Use CONF_MODEL in axis

* Use CONF_MODEL in denonavr

* Use CONF_MODEL in flux_led

* Use CONF_MODEL in konnected

* Use CONF_MODEL in steamist

* Use CONF_MODEL in tellstick

* Use CONF_MODEL in tensorflow

* Use CONF_MODEL in twinkly

* Use CONF_MODEL in yeelight

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-29 11:11:58 +02:00
J. Nick Koston
8f0b6eac41
Fix yeelight config flow ip update and timeout () 2022-02-19 17:24:50 +01:00
Joshua Roys
9134e5c844
Get discovered zeroconf IPv6 addresses () 2022-02-11 16:46:17 -06:00
epenet
73a4dba2ae
Use dataclass properties in yeelight discovery ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-30 22:28:19 -10:00
J. Nick Koston
67684d68ff
Fix slow yeelight discovery test () 2021-11-25 11:39:37 -06:00
epenet
2468724378
Use SsdpServiceInfo for ssdp tests (part 2) ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-25 09:45:35 -06:00
J. Nick Koston
881d35ab17
Split up yeelight code into multiple files () 2021-11-23 11:56:07 -06:00
epenet
9f74ad06d6
Update ZeroconfServiceInfo in tests (t-z) ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-23 11:28:50 -06:00
epenet
560546f65e
Use dataclass for DhcpServiceInfo ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-23 13:35:53 +01:00
epenet
8b26b69366
Use ServiceInfo in yeelight ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-22 08:15:14 -06:00
J. Nick Koston
c3c0a52929
Fix overriding the yeelight model if it is not known () 2021-10-26 21:04:19 +02:00
J. Nick Koston
147febb18a
Prevent yeelight discovery from overloading the bulb () 2021-10-17 20:30:43 -07:00
Paulus Schoutsen
a4d9019ffc
Refactor persistent notification to no longer route all data via a service ()
* Convert persistent notification tests to async

* Create/dismiss persistent notifications in exposed functions, not service calls

* Fix notify persistent_notification

* Remove setting up persistent_notification

* Drop more setups

* Empty methods

* Undeprecate sync methods because too big task

* Fix setup clearing notifications

* Fix a bunch of tests

* Fix more tests

* Uno mas

* Test persistent notification events

* Clean up stale comment

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-10-07 12:58:00 +02:00
João Pedro Hickmann
4513a46248
Add zeroconf support for yeelight () 2021-09-28 20:53:43 -05:00
J. Nick Koston
089dfad78a
Ensure yeelight model is set in the config entry ()
* Ensure yeelight model is set in the config entry

- If the model was not set in the config entry the light could
  be sent commands it could not handle

* update tests

* fix test
2021-08-26 13:02:59 -05:00
J. Nick Koston
b71f2689d7
Make yeelight aware of the network integration () 2021-08-20 19:09:22 -05:00
J. Nick Koston
3cb7227040
Normalize the display name of yeelight devices ()
Co-authored-by: Teemu R. <tpr@iki.fi>
2021-08-20 14:32:48 -07:00
J. Nick Koston
8103d9ae3c
Add missing id to yeelights that were setup manually () 2021-08-19 08:46:14 -05:00
J. Nick Koston
e7a0604a40
Make yeelight discovery async () 2021-08-18 09:36:13 -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
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
Paulus Schoutsen
aef24a807e
Yeelight: Do not log errors when cannot connect () 2021-05-13 22:33:18 -07:00
J. Nick Koston
c037ebb27c
Add discovery to yeelight () 2021-05-11 19:55:50 -05:00
tkdrob
add0d9d3eb
Use core constants for yeelight () 2021-02-16 09:00:09 -05:00
Franck Nijhof
65cf2fcb6f
Drop asynctest () 2021-01-01 22:31:56 +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