rospogrigio
bf8f2bb06c
Merge branch 'master' into master
2023-09-16 13:03:45 +02:00
Neal Joslin
62011a9d6b
Fixed initialization with API but no internet.
2023-07-25 23:17:59 -04:00
Ovidiu Nitan
494d334e9e
Allow calling localtuya.set_dp service by non-admin users
2022-11-20 12:46:28 +02:00
rospogrigio
dd565379a3
Optimized setup_entities by regrouping platforms
2022-06-20 10:23:34 +02:00
rospogrigio
1efe8db021
Fixed restoring entity state when reloading
2022-06-08 14:08:48 +02:00
rospogrigio
d8b1946ed5
Cleaned debug messages
2022-06-07 10:55:21 +02:00
rospogrigio
d1a024148b
Merge branch 'master' into localtuya_4.0
2022-06-06 14:05:22 +00:00
rospogrigio
4c0072f404
Introduced checkbox to choose whether to setup Cloud API account
2022-06-06 15:59:50 +02:00
rospogrigio
da8ed8d82b
Fix for 'KeyError: tuya_devices' at startup
2022-06-01 17:31:58 +02:00
rospogrigio
110585b3f8
Changed deprecated async_get_registry() to async_get()
2022-05-31 15:02:19 +02:00
rospogrigio
98643a4012
Fixed diagnostics currupting stored config_entry
2022-05-26 13:49:52 +02:00
rospogrigio
6c6b955048
First tox fixes
2022-05-23 15:31:08 +02:00
rospogrigio
f85e579a68
Fixed device diagnostic corrupting config entry
2022-05-23 14:38:03 +02:00
rospogrigio
6be13c5ba0
Obfuscated diagnostics; fixed IP auto-update; cleaned logs
2022-05-23 11:22:48 +00:00
rospogrigio
cdfe8e4906
Finalized device editing, device diagnostics, auto-update of local key and IP
2022-05-23 13:18:56 +02:00
rospogrigio
afc0230796
Introduced migration; fixed update when adding device
2022-05-23 13:18:56 +02:00
rospogrigio
d4c20ebfed
Modified config flow, introduced device deletion
2022-05-23 13:18:56 +02:00
rikman122
ca01833061
lint test fixes
2021-11-08 20:35:46 +01:00
rikman122
1f98b6533b
added sample YAML
2021-06-11 16:20:03 +02:00
Pierre Ståhl
66fdc164a3
Make connection retries every minute ( #288 )
...
* Make connection retries every minute
This mimics the re-connect loop previosuly present, but in a simpler
form. Every 60 seconds, a new connection attempt is made as well as
initially when a device is set up.
* Fix device look up in reconnect loop
2021-03-05 23:16:27 +01:00
rospogrigio
9bfeb107f5
Cover fake position persistent ( #213 )
...
* Introduced read/store to JSON file of cover's last position for fake positioning
* renamed "fake" positioning to "timed"; introduced timed movement timeout equal to full opening time
* Made waiting for timeout for stopping non-blocking
* Introduced status storing using RestoreEntity
* Fixed postlund's remarks
* Updated cover samples in README and info.md
2020-12-30 22:47:45 +01:00
Pierre Ståhl
654c6cdc62
Support adding and removing entities to devices ( #191 )
...
New entities can be added via + button under Integrations (like when
adding a new device) and entities can be removed from Options.
2020-12-17 21:36:24 +01:00
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