ultratoto14
5ec66f2400
Merge branch 'master' into music_mode_fix
2020-11-18 11:49:36 +01:00
Pierre Ståhl
1dbae752ef
Give error if no DPS are found in config flow ( #167 )
...
Fixes #153
2020-11-18 11:39:11 +01:00
ultratoto14
3356b3dd63
Wrong check that enable music mode evry time.
2020-11-18 11:06:54 +01:00
rospogrigio
4793e09104
Cover fake positioning revised ( #162 )
...
* Introduced time-difference-based method for cover fake positioning
* Time-difference-based method for cover fake positioning now supports also movement inversion
2020-11-18 10:06:11 +01:00
ultratoto14
92f237298b
Merge pull request #146 from ultratoto14/light_scenes
...
Scene support for lights.
2020-11-18 09:56:03 +01:00
ultratoto14
457bae1456
Follow review comments.
2020-11-17 15:11:46 +01:00
ultratoto14
26f5e17772
Merge branch 'master' into light_scenes
2020-11-17 14:17:43 +01:00
Pierre Ståhl
0531a284c7
Add contextual logging where applicable ( #124 )
...
* Add contextual logging where applicable
* Compress device id in log output
2020-11-17 12:54:01 +01:00
Pierre Ståhl
c8a44019fa
Improve discovery error output ( #134 )
2020-11-17 12:26:18 +01:00
ultratoto14
9ca3efb161
Fix brightness issues.
2020-11-17 08:42:39 +01:00
ultratoto14
352ba58336
Add RGB only scenes.
2020-11-16 14:11:42 +01:00
ultratoto14
9be72d1152
Update internal state whatever mode is.
2020-11-16 11:32:54 +01:00
ultratoto14
8d91d9278b
Merge branch 'master' into light_scenes
2020-11-16 07:29:40 +00:00
ThomasADavis
3e52811aac
Fan controller updates ( #155 )
...
* Fan controller updates.
This updates the fan controller to be more dynamic on which dp's it uses.
Fan speeds can 1,2,3,4 or low,medium,mid,high,auto. Fans with more
than 3 speeds is not supported by Home Assistant.
Variable speed fans are not supported at this time.
* rename set_dps -> set_dp
* change to use self._dp_id instead of a fixed dp
Co-authored-by: Thomas Davis <tdavis@nersc.gov >
Co-authored-by: Pierre Ståhl <pierre.staahl@gmail.com >
2020-11-16 07:10:02 +01:00
ultratoto14
2ca5a154c5
Merge branch 'master' into light_scenes
2020-11-15 19:41:06 +01:00
ThomasADavis
e137d598f0
This makes sure that any scaling is only applied to numeric values. ( #154 )
...
* This makes sure that any scaling is only applied to numeric values.
* Updates fan controller.
This adds support for 3 speed fans, 4 speeds fan (with choice of 3 of the 4 speeds),
fans speed of 1,2,3,4 or low,medium,mid,high, and auto.
Fans that have variable speeds, or greater than 4 speeds is not supported
at this time. HA does not support variable speed fans and more than 3 speeds.
* Revert "Updates fan controller."
This reverts commit 00352da2de72d02977d8a7d3780aabf4f28ee0fa.
Co-authored-by: Thomas Davis <tdavis@nersc.gov >
2020-11-15 18:49:08 +01:00
ultratoto14
10069817d0
Remove unecessary constants.
2020-11-10 14:13:03 +01:00
ultratoto14
6e07a5581f
First try to add scenes.
2020-11-09 13:39:46 +01:00
ultratoto14
a0f4fdf337
Use default home assistant behavior. Return only relevant data per mode. ( #129 )
2020-11-06 21:37:36 +01:00
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
rospogrigio
f3cfde0308
Updated tuyadebug.tgz (1.0.0)
2020-10-22 23:03:34 +02: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
Pierre Ståhl
a217b2553c
Add debug log instructions to readme
2020-10-20 12:54:41 +02:00
rospogrigio
f48a45f267
Updated manifest.json : changed repo URL
2020-10-19 23:19:33 +02:00
rospogrigio
fffd07b5e6
Further corrections for integration in HACS
2020-10-19 22:40:15 +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
c191d590cf
Fixed hacs.json
2020-10-19 13:27:59 +02:00
rospogrigio
d8602e4fe3
Introduced hacs.json and updated manifest.json
2020-10-19 13:04:46 +02:00
rospogrigio
70fa5ca5eb
Added logo to info.md
2020-10-19 12:52:10 +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