sibowler
f7ce9be5f6
Changes to make Passive DPS entites a configurable item
2022-09-10 06:40:53 +10: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
1c9a1e4e4b
Spelling correction
2022-07-14 15:26:58 +10:00
sibowler
f85b25dea9
Fixing formatting/style errors
2022-07-14 08:59:54 +10:00
sibowler
0fe550576a
Fix NumberEntity HA changes and add step control
2022-07-14 06:53:13 +10:00
sibowler
364569bad8
Rebase from upstream
2022-07-14 06:46:36 +10:00
rospogrigio
9a0f5b8edb
Improved code readability (racu10's suggestion)
2022-06-03 12:34:32 +02:00
rospogrigio
8b11ffaf86
Turned all 'print' messages into _LOGGER.debug
2022-06-01 18:05:12 +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
187b7fa131
Merge remote-tracking branch 'upstream/master' into update_interval
2021-12-16 18:44:41 -03:00
regevbr
8e94b5f411
fix sync bug
2021-12-12 15:47:26 +01:00
regevbr
58ba012ad7
fix sync bug
2021-12-12 15:47:26 +01:00
Martín Villagra
d6e7c7dec4
send updatedps with all detected dps by default
2021-11-28 01:46:12 +00:00
Martín Villagra
515b3303e9
add polling option
2021-11-24 00:05:42 +00:00
Martín Villagra
24152569e7
update state only on changes
2021-11-23 21:18:17 +00: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
acd70b655c
Fix name issue from pylint changes ( #252 )
2020-12-17 14:03:40 +01:00
Pierre Ståhl
f72cbc0b5a
Run pylint from tox ( #243 )
2020-12-17 09:26:55 +01:00
ultratoto14
89dabfc105
Reduce heartbeat interval.
2020-12-15 17:12:52 +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
27af622405
Store product key in config entry ( #170 )
2020-11-19 10:13:00 +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
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
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
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
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
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
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
rospogrigio
0e79570483
set_dps now Dispatches status update to all entities
2020-09-30 11:51:13 +02:00
rospogrigio
deeaf0e9eb
More lint fixes
2020-09-30 11:51:13 +02:00