Commit Graph

30 Commits

Author SHA1 Message Date
ultratoto14
657850e39c Add support of RGB lights (#120)
* Make set_dps available.

* Adding RGB support, brightness fix, color_temp range.

* Update README for light options

* Formatting

* Formatting

* Need to force to white to ensure color picker is updated.

* Detect color mode RGB/HSV based on color length.

* Extract rgb encoded color check in method.

* Make check method private.

* Fix exception when color is not available (maybe when powered off)

* Reformat.
2020-10-28 09:54:54 +01:00
Pierre Ståhl
d783293a21 Add support for HSV encoded color lights (#90)
* Add support for HSV encoded color light

* Add debug logs for entity config

* Unset color when going to white mode
2020-10-26 12:09:31 +01:00
Kendell R
c1878f82e2 Improve GitHub Actions (#97)
* Delete hassfest.yaml

* Update and rename ci.yaml to tox.yaml

* Create combined.yaml

* Update hacs.json

* Update README.md

* Update combined.yaml

* Remove unused import

* Restored wrongly deleted line in cover.py

* Update config_flow.py

* Update __init__.py

Co-authored-by: Pierre Ståhl <pierre.staahl@gmail.com>
Co-authored-by: rospogrigio <49229287+rospogrigio@users.noreply.github.com>
2020-10-22 11:43:47 +02:00
Pierre Ståhl
44db913514 Rename set_dps to set_dp in pytuya 2020-10-15 18:54:36 +02:00
Pierre Ståhl
81c04bfc4e Fix broken support for 0d devices 2020-10-15 18:48:34 +02:00
Pierre Ståhl
136e44c549 Minor final fixes 2020-10-14 13:10:20 +02:00
Pierre Ståhl
b0603313ff Fixed some bugs 2020-10-14 13:10:20 +02:00
Pierre Ståhl
91f788865c Add more temporary logging 2020-10-14 13:10:20 +02:00
Pierre Ståhl
ff3ca99b29 Add logging and stability fixes 2020-10-14 13:10:20 +02:00
Pierre Ståhl
59dfc35759 Fix bug when unloading an entry 2020-10-14 13:10:20 +02:00
Pierre Ståhl
5cd76f87ea Ignore status updates without datapoints 2020-10-14 13:10:20 +02:00
Pierre Ståhl
b2c4e93a47 Disconnect on missing heartbeats 2020-10-14 13:10:20 +02:00
Pierre Ståhl
f971646333 Close connection properly on error 2020-10-14 13:10:20 +02:00
Pierre Ståhl
cad31f1ffe Convert pytuya to asyncio 2020-10-14 13:10:20 +02:00
Pierre Ståhl
f5146ad4eb Add brightness and color_temp to example 2020-10-06 10:49:23 +02:00
Pierre Ståhl
792fcc5186 Add color temp and brightness config to light 2020-10-06 10:49:23 +02:00
Pierre Ståhl
8456c6039c Add platform specific DPS to requests 2020-10-05 09:44:13 +02:00
Pierre Ståhl
8cc978a04d Refactor async_setup_entry 2020-10-05 09:44:13 +02:00
rospogrigio
0e79570483 set_dps now Dispatches status update to all entities 2020-09-30 11:51:13 +02:00
rospogrigio
deeaf0e9eb More lint fixes 2020-09-30 11:51:13 +02:00
rospogrigio
32850b973d More lint fixes 2020-09-30 11:51:13 +02:00
rospogrigio
e5ce098016 More lint fixes 2020-09-30 11:51:13 +02:00
rospogrigio
56c266d344 Fixing lint output 2020-09-30 11:51:13 +02:00
rospogrigio
8d0c65ad56 Restored missing docstring for TuyaDevice.set_dps() 2020-09-30 11:51:13 +02:00
rospogrigio
3fc19da259 Updating the status of TuyaDevice using the response of the set_dps() call 2020-09-30 11:51:13 +02:00
Pierre Ståhl
e673340229 Fix missing attributes bug 2020-09-28 07:13:30 +02:00
Pierre Ståhl
caaf884a7a Get status once per device instead of per platform 2020-09-27 14:19:35 +02:00
Pierre Ståhl
63090ba985 Store DPS as integers in config entry
Also require protocol_version to be a string and validate version to be
supported.
2020-09-26 22:38:26 +02:00
rospogrigio
3259a4f654 Second part of one_device_only big merge 2020-09-26 22:38:26 +02:00
Pierre Ståhl
fefee6944f Add shared code to a common module 2020-09-24 09:20:31 +02:00