Description
Describe the bug
I have several tuya cover switch. It seems that the implementaiton of tuya cover devices is reporting the attribute 0x0008 "Current Position Lift Percentage" using the scale "% open". It seems that Deconz uses for most of it's cover the scale "% close".
A great job has been done implementing these tuya devices (cover was added in ##3134)
I spooted this issue in Home assistant in home-assistant/core#40627
Steps to reproduce the behavior
Expected behavior
@Smanar do you thing that the Deconz logic for "Current Position Lift Percentage" could be applied for tuya covers? I mean start using the scale "% closed".
This could be done by applying something in the code like "Current Position Lift Percentage" =100-(Present Current Position Lift Percentage)
Both me and @Kane610 have made extensive testing on this under #home-assistant/core#40627
In this post ##1121 (comment) @ebaauw explains the logic behind this.
Do you think it's possible to fix it?
Thank you in advance
Screenshots
Environment
- Host system: (Raspberry Pi / PC / NAS)
- Running method: (Raspbian / Ubuntu / Home Assistent deCONZ Add-on / Marthoc Docker container / Windows / Virtual Machine)
- Firmware version: (26xxyy00)
- deCONZ version: (2.xx.yy)
- Device: (ConBee I / ConBee II / RaspBee I / RaspBee II)
- Do you use an USB extension cable: (yes / no) -- only relevant for ConBee I/II
- Is there any other USB or serial devices connected to the host system? If so: Which?