Commit Graph

212 Commits

Author SHA1 Message Date
ultratoto14 6cd509f4f8 Remove default scale factor (#138) 2020-11-05 14:34:48 +01:00
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 c6de437e86 Only forward config entry to each platform once
Fixes #94
2020-10-22 11:30:48 +02:00
Pierre Ståhl 3f854337ad Fix status exception when no payload 2020-10-21 12:09:06 +02:00
Pierre Ståhl d96d02357b Use manual discovery if no device has been set ul 2020-10-21 10:49:29 +02:00
Pierre Ståhl 439f8aec0c Passively discover devices and update IP addresses 2020-10-21 10:49:29 +02:00
rospogrigio 032fceac2e Cover uppercase and new commands (#81)
* Introduced uppercase detection for cover commands
* Added FZ_ZZ as open_close available commands for covers
* Added FZ_ZZ in the YAML config example
* Introduced invert_position Option for cover
* Cover slider inverted properly
* Fixed wrong sample YAML config for cover
* Fixed postlund's remark
2020-10-21 10:23:00 +02:00
rospogrigio 3bc16739d9 Introduced 1_2_3 Commands set for covers 2020-10-20 22:31:33 +02:00
rospogrigio f48a45f267 Updated manifest.json : changed repo URL 2020-10-19 23:19:33 +02:00
rospogrigio c8e358e6f2 Restored original position of manifest.json 2020-10-19 17:49:07 +02:00
rospogrigio b2705567c1 Moved manifest.json 2020-10-19 17:30:49 +02:00
rospogrigio 740e7ef14b Update manifest.json
Removed "cryptography==2.9.2" from requirements, as it is a base/core dependency already.
2020-10-19 16:52:22 +02:00
rospogrigio d8602e4fe3 Introduced hacs.json and updated manifest.json 2020-10-19 13:04:46 +02:00
Pierre Ståhl e6538a4681 Fix bugs in pytuya
This handles responses without a return code and also fixes support for
unencrypted clients. Made a few tweaks to debug logs as well.
2020-10-19 10:43:31 +02:00
Pierre Ståhl 1d830552df Fix bug when connection fails 2020-10-16 22:43:00 +02:00
Pierre Ståhl 98fee92c83 Return None if no color temp option 2020-10-16 12:40:06 +02:00
Pierre Ståhl baad2cfab0 Fix review comments 2020-10-16 12:40:06 +02:00
Pierre Ståhl 15a79ec690 Re-map light brightness range
Home Assistant uses brightness range 0-255 whilst Tuya somewhere around
29-1092. This commit maps brightness between these two ranges.
2020-10-16 12:40:06 +02:00
Pierre Ståhl 47d2900a2c Add set_dps to set multiple datapoints 2020-10-15 18:54:36 +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 5d64cb4e18 Convert fan platform to asyncio 2020-10-14 14:21:10 +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 7384f1fc54 Add context to pytuya logging 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 2565074c9c Add missing await 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 1da5c2c2e1 Fix linting issues 2020-10-06 10:49:23 +02:00
danVnest 51a92da6b3 Include support for color temp instead of unfinished color 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
Pierre Ståhl 29c852f96c Add support for reloading from YAML 2020-10-04 22:36:28 +02:00
rospogrigio 0d329e97b9 Fixed last postlund's remarks 2020-10-02 10:08:52 +02:00
rospogrigio dee728d008 Fixed postlund's remarks 2020-10-02 10:08:52 +02:00
rospogrigio d9a9490535 Slight coding improvement 2020-10-02 10:08:52 +02:00
rospogrigio ff79bd04cd Fixed postlund's comments. Unified open_close config options 2020-10-02 10:08:52 +02:00
rospogrigio ee853ddb83 Positioning mode changed from 'yes' to 'position'; removed 'stop' command configuration 2020-10-02 10:08:52 +02:00
rospogrigio e0b1cf54fd Removed configuration of 'stop' command 2020-10-02 10:08:52 +02:00
rospogrigio 1bd0a28045 Cover Curr and Set Pos DPS now are chosen in a drop-down menu 2020-10-02 10:08:52 +02:00
rospogrigio e1594bf474 Cover refactoring: introduced parameter positioning_type = [none/yes/fake] 2020-10-02 10:08:52 +02:00