Commit Graph

237 Commits

Author SHA1 Message Date
Martín Villagra
187b7fa131 Merge remote-tracking branch 'upstream/master' into update_interval 2021-12-16 18:44:41 -03:00
sibowler
5a4167fe5b Fix dependencies to account for Select type. Also fixup errors in Fan due to movement in dependencies. 2021-12-16 10:16:53 +01:00
sibowler
1b53c22791 black styling 2021-12-16 10:16:53 +01:00
sibowler
a0fff6ee2f Fixing up style errors in line with tox. 2021-12-16 10:16:53 +01:00
sibowler
61896605b8 Fixing up style issues 2021-12-16 10:16:53 +01:00
sibowler
fad7e0b1ac Reordering platforms to be alphabetical 2021-12-16 10:16:53 +01:00
sibowler
23a16babad Fix for typo introduced during debugging. 2021-12-16 10:16:53 +01:00
sibowler
e1bb45f2a2 Adding Number and Select as Tuya platforms. Provides support for a wider range of devices. 2021-12-16 10:16:53 +01: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
0db320ee36 add whitelist with 18,19,20 2021-12-01 15:43:33 +00:00
Martín Villagra
943bfa532e log dps_cache 2021-11-30 17:09:08 +00:00
Martín Villagra
3cbe6751d3 revert changes, dont wait for response but use all detected dps 2021-11-29 03:39:22 +00:00
Martín Villagra
23e48b791a revert defaulting to all dps 2021-11-28 10:46:28 +00:00
Martín Villagra
d6e7c7dec4 send updatedps with all detected dps by default 2021-11-28 01:46:12 +00:00
Martín Villagra
e292524793 shorten label text 2021-11-27 17:30:15 +00:00
Martín Villagra
9c6de40731 handle updatedps response 2021-11-27 15:42:05 +00:00
Martín Villagra
515b3303e9 add polling option 2021-11-24 00:05:42 +00:00
Martín Villagra
47c4edc20d fix lint issues 2021-11-23 21:20:43 +00:00
Martín Villagra
24152569e7 update state only on changes 2021-11-23 21:18:17 +00:00
Martín Villagra
e13f02a881 send update dps command with heartbeat 2021-11-23 21:18:17 +00:00
regevbr
62327629a6 fix cover state issue 2021-10-01 11:03:20 +02:00
regevbr
5e71ee4ae8 fix cover state issue 2021-10-01 11:03:20 +02:00
rospogrigio
20a47da824 Added iot_class to manifest.json 2021-06-09 09:36:28 +02:00
Shane Donohoe
885b08c247 Include "big" high fan setting (#413)
The Asakuki diffuser has its speed setting under the 103 DPS and uses "big" for its high setting.

Co-authored-by: Pierre Ståhl <pierre.staahl@gmail.com>
2021-04-01 12:15:51 +02:00
ultratoto14
8cf1a95bab Fix error that happens when in custom scene (#291)
* FIx  error that happens when in custom scene

* Remove unnecessary None

* Remove unnecessary None

Co-authored-by: Pierre Ståhl <pierre.staahl@gmail.com>
2021-03-31 19:32:10 +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
9a240bcc97 Swtiching to version 3.2.1 in manifest.json 2021-03-04 11:20:20 +01:00
rospogrigio
09f6de874b Updated manigest.json adding "version" field 2021-03-04 11:19:45 +01:00
rospogrigio
5637060a87 Fixed close button disabled with 'none' positioning mode 2021-01-07 09:46:01 +01:00
Itai Raz
397e99fec1 allow set small / large values for low and high speed for fans 2021-01-01 19:34:29 +02: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
ultratoto14
0518f58919 Merge branch 'master' into timeout_log 2020-12-17 21:57:21 +01:00
ultratoto14
fd404cb39b Merge branch 'master' into timeout_log 2020-12-17 21:46:59 +01:00
ultratoto14
444ec78e2b Fix review comment. 2020-12-17 21:46:26 +01:00
ultratoto14
acf3e6eccd Merge branch 'master' into scene_fix_2 2020-12-17 21:45:26 +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
dependabot-preview[bot]
8e1e349fa4 Fix HA scene, one more. 2020-12-17 16:20:22 +01:00
ultratoto14
3a4940387c Use debug message for timeout. 2020-12-17 15:01:02 +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
Maarten Weyns
a6e8f282c5 Fixed editor line indentation 2020-12-15 20:11:34 +01:00
Maarten Weyns
c28fac7010 This makes lights smoothly fade from one state to a new state, without the intermediate "turn off" 2020-12-15 20:09:10 +01:00
ultratoto14
3737dec4c2 Merge branch 'master' into light_fixes 2020-12-15 19:27:18 +01:00
ultratoto14
89dabfc105 Reduce heartbeat interval. 2020-12-15 17:12:52 +01:00
ultratoto14
d0653d4f36 Fix HA scenes with bulb without color_temp 2020-12-15 15:13:08 +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
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
b50ee8bb94 Properly close discovery listeners (#225)
Fixes #214
2020-12-07 22:20:21 +01:00