From 70f36edae9ad75312d437090999b4139c4004429 Mon Sep 17 00:00:00 2001 From: Enrique Mingorance Cano Date: Fri, 12 Apr 2024 18:02:51 +0200 Subject: [PATCH 1/3] [issue 484] mrs100 position functionality --- custom_components/meross_cloud/cover.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/custom_components/meross_cloud/cover.py b/custom_components/meross_cloud/cover.py index 0ced5065df..c6673708c4 100644 --- a/custom_components/meross_cloud/cover.py +++ b/custom_components/meross_cloud/cover.py @@ -130,6 +130,10 @@ def supported_features(self): # So we don't support that on HA neither. return CoverEntityFeature.OPEN | CoverEntityFeature.CLOSE | CoverEntityFeature.STOP + @property + def current_cover_position(self): + return self._device.get_position(channel=self._channel_id) or 50 + @property def is_closed(self): return self._device.get_position(channel=self._channel_id) == 0 From 79b5362d4a3c048517ffd2290b4b917e56ae112d Mon Sep 17 00:00:00 2001 From: Enrique Mingorance Cano Date: Wed, 17 Apr 2024 10:23:57 +0200 Subject: [PATCH 2/3] current_cover_position just returns device.get_position --- custom_components/meross_cloud/cover.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/meross_cloud/cover.py b/custom_components/meross_cloud/cover.py index c6673708c4..1d9e23a5f7 100644 --- a/custom_components/meross_cloud/cover.py +++ b/custom_components/meross_cloud/cover.py @@ -132,7 +132,7 @@ def supported_features(self): @property def current_cover_position(self): - return self._device.get_position(channel=self._channel_id) or 50 + return self._device.get_position(channel=self._channel_id) @property def is_closed(self): From 80899b95ab81ae669db0e3e32a691b85e181c0ae Mon Sep 17 00:00:00 2001 From: Enrique Mingorance Cano Date: Wed, 17 Apr 2024 10:24:10 +0200 Subject: [PATCH 3/3] meross_iot to 0.4.7.0b1 --- custom_components/meross_cloud/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/meross_cloud/manifest.json b/custom_components/meross_cloud/manifest.json index 843f72d343..0a1585c04d 100644 --- a/custom_components/meross_cloud/manifest.json +++ b/custom_components/meross_cloud/manifest.json @@ -5,7 +5,7 @@ "issue_tracker": "https://github.com/albertogeniola/meross-homeassistant", "dependencies": ["persistent_notification"], "codeowners": ["@albertogeniola"], - "requirements": ["meross_iot==0.4.6.2"], + "requirements": ["meross_iot==0.4.7.0b1"], "config_flow": true, "quality_scale": "platinum", "iot_class": "cloud_push",