Commit Graph

230 Commits

Author SHA1 Message Date
lsaadeh
26e66a088f Merge branch 'master' into master 2021-12-17 09:23:50 +11: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
Louis
e45be52a9e rename variables 2021-12-13 11:09:13 +11:00
lsaadeh
61b0a14c64 Merge branch 'master' into master 2021-12-13 10:44:24 +11: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
Louis
65758ba6e2 Formatting and variables 2021-12-11 22:19:52 +11:00
Louis
d271da1b50 Implement optional light variable to reverse color temp 2021-12-11 21:54:57 +11: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
rospogrigio
a74af936a4 Fix for issue #186 (wrong initialization values for _timer_start and _previous_state) 2020-11-24 22:50:47 +01:00
ultratoto14
3ecae049bb overzealous check. 2020-11-23 20:30:45 +01:00
ultratoto14
14333b260d Use color picker white point. 2020-11-23 13:36:50 +01:00
Pierre Ståhl
52c62c5596 Fix typo of dp_id in fan platform (#178) 2020-11-22 07:21:41 +01:00
Pierre Ståhl
566859501d Add missing variable to log point (#174) 2020-11-20 11:00:57 +01:00
Pierre Ståhl
f376d8584a Fix broken exception logging (#173) 2020-11-20 10:40:35 +01:00
Pierre Ståhl
27af622405 Store product key in config entry (#170) 2020-11-19 10:13:00 +01:00