From 418142f970c162b49c0a90530f6e170ee20ae300 Mon Sep 17 00:00:00 2001 From: Philipp Grimm Date: Wed, 27 Mar 2024 22:38:36 +0100 Subject: [PATCH] test cover position --- README.md | 2 +- custom_components/eltako/cover.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fd846a92..c62d7290 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Elatko devices are exemplarily mentioned. You can find [here](https://www.eltako * A5-04-01 (Temperature and Humidity Sensor) * A5-04-02 (Temperature and Humidity Sensor e.g.: FLGTF, FLT58, FFT60) * A5-04-03 (Temperature and Humidity Sensor e.g.: FFT60) - * A5-06-01 (Light - Twilight and Illumination) + * A5-06-01 (Light - Twilight and daylight in one sensor value) * A5-07-01 (Occupancy sensor) * A5-08-01 (Light-, Temperature-, Occupancy Sensor e.g.: FABH65S, FBH65, FBH65S, FBH65TF) * A5-09-0C (Air Quality / VOCā  (Volatile Organic Compounds) e.g. [FLGTF](https://github.com/grimmpp/home-assistant-eltako/tree/main/docs/flgtf_temp_humidity_air_quality/readme.md)) diff --git a/custom_components/eltako/cover.py b/custom_components/eltako/cover.py index 93ad9e28..152bca21 100644 --- a/custom_components/eltako/cover.py +++ b/custom_components/eltako/cover.py @@ -291,7 +291,11 @@ def value_changed(self, msg): self._attr_is_closed = True self._attr_is_opening = False self._attr_is_closing = False - elif self._attr_current_cover_position == 100: + # elif self._attr_current_cover_position == 100: + # self._attr_is_closed = False + # self._attr_is_opening = False + # self._attr_is_closing = False + else: self._attr_is_closed = False self._attr_is_opening = False self._attr_is_closing = False