Pierre Ståhl
f72cbc0b5a
Run pylint from tox ( #243 )
2020-12-17 09:26:55 +01:00
Pierre Ståhl
e7d58be91c
Add localtuya.set_dp service ( #236 )
2020-12-15 09:36:34 +01:00
Pierre Ståhl
10e55e67b4
Add support for passive devices ( #171 )
...
* Add support for passive devices
* Fix a few issues
* Fix broken handling of closing a connection
This fixes the following error:
AttributeError: 'NoneType' object has no attribute 'write'
* Always use discovery broadcasts to trigger connects
From now on there's no connect loop but all attempts are initiated by
received discovery messages.
* Fix cancelling of heartbeat task
* Verify entry has been loaded before connecting
* Don't reset seqno when switching to type_d device
2020-12-15 09:08:46 +01:00
Pierre Ståhl
566859501d
Add missing variable to log point ( #174 )
2020-11-20 11:00:57 +01:00
Pierre Ståhl
27af622405
Store product key in config entry ( #170 )
2020-11-19 10:13:00 +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
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
baad2cfab0
Fix review comments
2020-10-16 12:40:06 +02:00
Pierre Ståhl
59dfc35759
Fix bug when unloading an entry
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
29c852f96c
Add support for reloading from YAML
2020-10-04 22:36:28 +02:00
rospogrigio
dee728d008
Fixed postlund's remarks
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
0e79570483
set_dps now Dispatches status update to all entities
2020-09-30 11:51:13 +02:00
Pierre Ståhl
7a9deea830
Do not block event loop on updates
2020-09-28 22:51:17 +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
d22d081335
Clean up YAML examples in code files
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
0048ce6d5e
Move YAML config to component
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
Pierre Ståhl
4e72767b30
Fix flake8 issues and enable flake8 in tox
2020-09-23 17:50:24 +02:00
Pierre Ståhl
a18c69f8eb
Fix pydocstyle issues and enable in tox
2020-09-23 16:47:08 +02:00
rospogrigio
83b3b6f21b
Moved TuyaCache to __init__.py, and renamed to TuyaDevice. In pytuya, renamed TuyaDevice to TuyaInterface
2020-09-22 00:51:33 +02:00
Pierre Ståhl
16e4e9407f
Reload integration if config entry changes
...
This makes changes under options apply without restart.
2020-09-21 00:46:26 +02:00
rospogrigio
c266e0f904
add_request_dps moved into prepare_setup_entities, plus code cleaning
2020-09-19 15:59:59 +02:00
rospogrigio
6700e02c52
set_dpsUsed turned into add_dps_to_request ; used it when setting up entities
2020-09-19 15:59:59 +02:00
rospogrigio
6f14df2d74
Replaced some hardcoded strings with constants and config_entries
2020-09-18 14:45:51 +02:00
rospogrigio
1a9f7382fc
LocaltuyaCover now inherits from LocalTuyaEntity
2020-09-18 14:45:51 +02:00
Pierre Ståhl
9973c5fdcb
Pass config entry to LocalTuyaEntity
2020-09-18 09:14:12 +02:00
Pierre Ståhl
bd98b7cd93
Add base entity class LocalTuyaEntity
...
All platforms will inherit from this class in the end, but this commit
starts with switch only.
2020-09-18 09:14:12 +02:00
rospogrigio
b0ee281894
Merge branch 'master' into pytuya_refactoring
2020-09-15 12:41:52 +02:00
Pierre Ståhl
9493f17de6
Forward config entry only to used platforms
2020-09-15 12:29:07 +02:00
rospogrigio
386d59b497
config_entry forwarded only to proper platform; DOMAIN imported from component
2020-09-15 10:59:06 +02:00
rospogrigio
ce2461df2b
Merge branch 'master' into pytuya_refactoring
2020-09-14 23:32:55 +02:00
Pierre Ståhl
ae64158da5
Use correct device class from pytuya
2020-09-10 10:42:44 +02:00
Pierre Ståhl
7018625f04
Add light support and clean up schemas
2020-09-09 22:59:37 +02:00
Pierre Ståhl
0600b2730b
Make config flows general based on entities
2020-09-08 12:00:23 +02:00
Pierre Ståhl
b8333affc5
Add support for config flows for switches
2020-09-06 10:29:39 +02:00
mileperhour
919c62d9b9
Add files via upload
...
0.92 breakout changes
2019-05-16 20:00:31 +02:00