rospogrigio
39ef76bafb
Fixed tox issues
2023-01-10 22:24:05 +01:00
rospogrigio
3bf69d69f0
Fixed tox issues
2023-01-10 22:24:05 +01:00
rospogrigio
c6a9460d06
Introduced 3.4 protocol option in config flow
2023-01-10 22:24:05 +01:00
sibowler
21f7af6ba8
Implementing safe default for devices not requiring RESET
2022-09-07 23:21:06 +10:00
sibowler
ad1f757818
Implementing RESET Tuya function to enable devices which are stuck in a zombie mode to start responding to commands. Added configurable DPS for Reset command as found devices wouldn't 'wake up' unless they had exactly the right entries
2022-07-20 06:14:12 +10:00
sibowler
364569bad8
Rebase from upstream
2022-07-14 06:46:36 +10: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
d7f53ada07
Fixed Adding new device manually
2022-05-30 12:08:20 +02:00
rospogrigio
f9b88c79a0
Fixed wrong 'already_configured' message when editing entities
2022-05-27 12:54:20 +02:00
rospogrigio
cd39a3a74d
tox fixes
2022-05-23 17:26:19 +02:00
rospogrigio
6c6b955048
First tox fixes
2022-05-23 15:31:08 +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
Martín Villagra
515b3303e9
add polling option
2021-11-24 00:05:42 +00: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
aeb27a4d75
Fix improper closing in config flow ( #237 )
...
Forgot to add an await to the close method in pytuya when validating the
device. This results in the connection never being closed after adding a
device, giving "connection resets" until the connection fails, the
device or Home Assistant is restarted.
2020-12-15 10:56:45 +01:00
Pierre Ståhl
27af622405
Store product key in config entry ( #170 )
2020-11-19 10:13:00 +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
Pierre Ståhl
c8a44019fa
Improve discovery error output ( #134 )
2020-11-17 12:26:18 +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
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
Pierre Ståhl
1d830552df
Fix bug when connection fails
2020-10-16 22:43:00 +02:00
Pierre Ståhl
cad31f1ffe
Convert pytuya to asyncio
2020-10-14 13:10:20 +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
Pierre Ståhl
2879761eae
Remove unneeded YAML import flag
2020-09-26 22:59:28 +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
0048ce6d5e
Move YAML config to component
2020-09-26 22:38:26 +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
1e23120872
Add device discovery to config flow
2020-09-21 00:43:06 +02:00
Pierre Ståhl
5507652bae
Add support for options flow
2020-09-18 17:31:14 +02:00
rospogrigio
7afd19d197
Still prefer to keep '(YAML)' suffix for Integrations imported from YAML, for the moment
2020-09-18 09:40:12 +02:00
Pierre Ståhl
e79b4cf619
Use friendly_name instead of name in config entry
2020-09-18 09:40:12 +02:00
rospogrigio
16cb29297b
Introduced dps detection with bruteforcing for type_0d devices
2020-09-16 19:36:51 +02:00
Pierre Ståhl
0290b11dae
Request DPS 1-150 in config flow
2020-09-16 19:36:51 +02:00
rospogrigio
4056c0abb0
Fixing device name
2020-09-16 10:03:19 +02:00
rospogrigio
c99cc1f077
Removed unneeded friendly_name fields
2020-09-15 23:31:33 +02:00
rospogrigio
22ccd51926
Fixed TuyaDevice init calls
2020-09-15 09:24:53 +02:00
rospogrigio
6c68cdcbcc
Merge branch 'pytuya_refactoring' into physical_device
2020-09-15 00:15:46 +02:00
rospogrigio
0e94b681db
Fixed import from YAML in config_flow.py
2020-09-14 20:44:55 +02:00
rospogrigio
c008339f43
First working implementation of Devices
2020-09-11 14:48:49 +02:00
rospogrigio
9a45eb8398
Fixed conflicts
2020-09-11 11:55:43 +02:00
Pierre Ståhl
11763d90c5
Use generic Device in config flow
2020-09-09 23:06:28 +02:00
Pierre Ståhl
7efb3024fb
Support arbitrary flow schemas for platforms
2020-09-09 23:05:42 +02:00
Pierre Ståhl
7018625f04
Add light support and clean up schemas
2020-09-09 22:59:37 +02:00