From abc2c90580dd848adf05f0dafbd19276bb108399 Mon Sep 17 00:00:00 2001 From: slajob Date: Fri, 1 Mar 2024 16:39:24 +0100 Subject: [PATCH] open and close cover fix --- custom_components/dirigera_platform/cover.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/dirigera_platform/cover.py b/custom_components/dirigera_platform/cover.py index 501ba31..0b5d58d 100644 --- a/custom_components/dirigera_platform/cover.py +++ b/custom_components/dirigera_platform/cover.py @@ -110,10 +110,10 @@ def is_opening(self): return False def open_cover(self, **kwargs): - self._json_data.set_target_position(0) + self._json_data.set_target_level(0) def close_cover(self, **kwargs): - self._json_data.set_target_position(100) + self._json_data.set_target_level(100) def set_cover_position(self, **kwargs): position = int(kwargs['position'])