Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge πŸŒ‰, get rid of your proprietary Zigbee bridges πŸ”¨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
12.19k stars 1.68k forks source link

Wrong current_position value (inverted values) #24755

Closed marcopaggioro closed 5 days ago

marcopaggioro commented 1 week ago

What happened?

For a few days now I have seen the "open" and "closed" values ​​of my roller shutters reversed. When the roller shutter is completely up (raised) I see "closed" from the interface and when the roller shutter is completely down (lowered) I see "open" from the interface. Since the command detects that the roller shutter is already lowered, the button to lower it is deactivated and vice versa

image

When the shutter is up I expect current_position to 100 (as described here) but It is:

current_position: 0
device_class: shutter
icon: mdi:window-shutter
friendly_name: Tapparella studio
supported_features: 15

Device: https://it.aliexpress.com/item/1005002353449152.html?spm=a2g0o.productlist.main.11.77f67266RdXYiq&algo_pvid=c5202f23-937a-42b3-83bf-e8c2258dab87&algo_exp_id=c5202f23-937a-42b3-83bf-e8c2258dab87-5&pdp_npi=4%40dis%21EUR%2128.22%2114.39%21%21%2129.29%2114.94%21%40211b816617315194529965001e2f50%2112000030751917120%21sea%21IT%21820641017%21X&curPageLogUid=J8jaKcCSbAUO&utparam-url=scene%3Asearch%7Cquery_from%3A

What did you expect to happen?

Until a few days ago (maximum 2/3 weeks) when the roller shutter was completely up (raised) I could see "open" from the interface

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

1.41.0 commit: cc31cea

Adapter firmware version

20210708

Adapter

https://www.amazon.it/gp/product/B09KXTCMSC/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1

Setup

Z2M and HA with Docker in Debian 12.8 and SBC is LibreComputer Alta AML-A311D-CC

Debug log

log.log

BeFygo commented 1 week ago

I just noticed the same for my "_TZ3000_1dd0d5yi" these devices have been working correctly for over a year and now (assuming with the upgrade to V1.41.0) it looks like the feedback position is reverse.

marcopaggioro commented 1 week ago

🟒 The bug IS NOT present in 1.40.2 πŸ”΄ The bug IS present in latest (1.41.0) ⚠️The bug IS NOT present in latest-dev

Koenkk commented 1 week ago

It has been fixed in latest-dev indeed and will be included in the next z2m release.

BeFygo commented 1 week ago

I also confirm that its fixed in latest-dev. Great work, like usual :)