Commit Graph

70 Commits

Author SHA1 Message Date
Elad Bar
9c0e733804 Replaced SUPPORT_* with enums, set minimum HA version in HACS configuration to 2024.1.0 2024-01-05 13:29:06 +02:00
rospogrigio
c15fcaa9b8 Fix for unknown state of covers/shutters 2023-01-12 19:14:55 +01:00
sibowler
19a0cb6d15 Fixing slight format error 2022-09-04 14:06:10 +10:00
sibowler
8c4894371f Fix for cover issues with new state restore functionality 2022-09-04 14:02:06 +10:00
sibowler
8de987b2a0 Fix for cover defect 2022-09-01 22:25:24 +10:00
sibowler
f85b25dea9 Fixing formatting/style errors 2022-07-14 08:59:54 +10:00
sibowler
364569bad8 Rebase from upstream 2022-07-14 06:46:36 +10:00
rospogrigio
8b11ffaf86 Turned all 'print' messages into _LOGGER.debug 2022-06-01 18:05:12 +02: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
5637060a87 Fixed close button disabled with 'none' positioning mode 2021-01-07 09:46:01 +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
rospogrigio
a74af936a4 Fix for issue #186 (wrong initialization values for _timer_start and _previous_state) 2020-11-24 22:50:47 +01:00
Pierre Ståhl
27af622405 Store product key in config entry (#170) 2020-11-19 10:13:00 +01:00
rospogrigio
4793e09104 Cover fake positioning revised (#162)
* Introduced time-difference-based method for cover fake positioning
* Time-difference-based method for cover fake positioning now supports also movement inversion
2020-11-18 10:06:11 +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
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
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
44db913514 Rename set_dps to set_dp in pytuya 2020-10-15 18:54:36 +02:00
Pierre Ståhl
cad31f1ffe Convert pytuya to asyncio 2020-10-14 13:10:20 +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
dee728d008 Fixed postlund's remarks 2020-10-02 10:08:52 +02:00
rospogrigio
d9a9490535 Slight coding improvement 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
ee853ddb83 Positioning mode changed from 'yes' to 'position'; removed 'stop' command configuration 2020-10-02 10:08:52 +02:00
rospogrigio
e0b1cf54fd Removed configuration of 'stop' command 2020-10-02 10:08:52 +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
rospogrigio
e1594bf474 Cover refactoring: introduced parameter positioning_type = [none/yes/fake] 2020-10-02 10:08:52 +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
rospogrigio
c266e0f904 add_request_dps moved into prepare_setup_entities, plus code cleaning 2020-09-19 15:59:59 +02:00
rospogrigio
6700e02c52 set_dpsUsed turned into add_dps_to_request ; used it when setting up entities 2020-09-19 15:59:59 +02:00
rospogrigio
6f14df2d74 Replaced some hardcoded strings with constants and config_entries 2020-09-18 14:45:51 +02:00
rospogrigio
1a9f7382fc LocaltuyaCover now inherits from LocalTuyaEntity 2020-09-18 14:45:51 +02:00
rospogrigio
c99cc1f077 Removed unneeded friendly_name fields 2020-09-15 23:31:33 +02:00
rospogrigio
b3006a7c68 Merge branch 'pytuya_refactoring' into physical_device 2020-09-15 11:28:36 +02:00
rospogrigio
386d59b497 config_entry forwarded only to proper platform; DOMAIN imported from component 2020-09-15 10:59:06 +02:00
rospogrigio
6c68cdcbcc Merge branch 'pytuya_refactoring' into physical_device 2020-09-15 00:15:46 +02:00
rospogrigio
ce2461df2b Merge branch 'master' into pytuya_refactoring 2020-09-14 23:32:55 +02:00
rospogrigio
285bffdc68 Fixed async_setup_entry in cover.py 2020-09-14 20:57:50 +02:00
rospogrigio
27edcacde2 Fixed missing merging conflicts 2020-09-13 14:59:24 +02:00
rospogrigio
6c77ce1c38 Fixed merging conflicts 2020-09-13 14:17:52 +02:00