From 9f22f576cc0833f7968e36a5d0e4958ef972a90c Mon Sep 17 00:00:00 2001 From: Will Rouesnel Date: Tue, 26 Dec 2023 21:37:45 +1100 Subject: [PATCH 1/2] Update for `tuya.cover` with `invert_position_report` Add the new parameter for `tuya.cover`. --- components/cover/tuya.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/components/cover/tuya.rst b/components/cover/tuya.rst index 2293cdd636..3c39d44d15 100644 --- a/components/cover/tuya.rst +++ b/components/cover/tuya.rst @@ -40,6 +40,7 @@ Configuration variables: - **min_value** (*Optional*, int): The lowest position value, meaning cover closed. Defaults to 0. - **max_value** (*Optional*, int): the highest position value, meaning cover opened. Defaults to 255. - **invert_position** (*Optional*, boolean): Sets the direction of travel to be inverted, if direction_datapoint is configured. +- **invert_position_report** (*Optional*, boolean): Invert reported position percentages calculated from `min_value` and `max_value` i.e. 70% becomes 30%. - All other options from :ref:`Cover `. Supported devices From 5d4d8fda08e319b327582d149848027a9e329e46 Mon Sep 17 00:00:00 2001 From: Samuel Sieb Date: Wed, 5 Jun 2024 00:57:46 -0700 Subject: [PATCH 2/2] Update components/cover/tuya.rst --- components/cover/tuya.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/cover/tuya.rst b/components/cover/tuya.rst index 3c39d44d15..6d8adcc501 100644 --- a/components/cover/tuya.rst +++ b/components/cover/tuya.rst @@ -40,7 +40,7 @@ Configuration variables: - **min_value** (*Optional*, int): The lowest position value, meaning cover closed. Defaults to 0. - **max_value** (*Optional*, int): the highest position value, meaning cover opened. Defaults to 255. - **invert_position** (*Optional*, boolean): Sets the direction of travel to be inverted, if direction_datapoint is configured. -- **invert_position_report** (*Optional*, boolean): Invert reported position percentages calculated from `min_value` and `max_value` i.e. 70% becomes 30%. +- **invert_position_report** (*Optional*, boolean): Invert reported position percentages calculated from `min_value` and `max_value` i.e. 70% becomes 30%. Defaults to false. - All other options from :ref:`Cover `. Supported devices