Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Roller Shutter sometimes goes to 0 instead of 100 #1619

Open
solyom-a opened this issue Jan 28, 2025 · 0 comments
Open

Roller Shutter sometimes goes to 0 instead of 100 #1619

solyom-a opened this issue Jan 28, 2025 · 0 comments

Comments

@solyom-a
Copy link

solyom-a commented Jan 28, 2025

Using roller shutter sometimes when I set to 100% open in homekit it goes to 0%.
It only happens when setting to 100% open, with any other number its working.

15430738831 shelly_hap_window_c:375 WC 1: HAPSetTgtPos 100.00 cur 79.68 tgt 79.68 lmd 1
15430744694 shelly_hap_window_c:350 WC 1: Tgt pos 79.68 -> 0.00 (HAPalt)

Usually it happens when I moved the shutter very recently.
After this I tap the top of the roller shutter in homekit to set to 100% and it overwrites to go to 0%.

Probably related to the tile tapping override logic in windowcovering::HAPSetTgtPos.
If there isn’t a clean fix possible maybe we could have a toggle in the admin UI to disable this feature, and always go to the requested target?

// Settings to 92%
15832161711 shelly_hap_window_c:375 WC 1: HAPSetTgtPos 92.00 cur 87.01 tgt 91.00 lmd 1
15832167386 shelly_hap_window_c:350 WC 1: Tgt pos 91.00 -> 92.00 (HAP)
15832189211 shelly_hap_window_c:340 WC 1: Cur pos 87.25 -> 87.29, P = 165.07
15832989296 shelly_hap_window_c:340 WC 1: Cur pos 89.22 -> 89.50, P = 164.93
15833789344 shelly_hap_window_c:340 WC 1: Cur pos 91.43 -> 91.71, P = 165.00
15833795450 shelly_hap_window_c:350 WC 1: Tgt pos 92.00 -> 91.71 (fixup)
15833800566 shelly_output.cpp:77    Output 1: on -> off (moving)
15833806487 shelly_hap_window_c:330 WC 1: State: moving -> stop (23 -> 24)
15834019002 mgos_sys_config.c:323   Saved to conf9.json
15834025655 shelly_hap_window_c:330 WC 1: State: stop -> stopping (24 -> 25)
15834034284 shelly_hap_window_c:330 WC 1: State: stopping -> idle (25 -> 0)
// Stops at 91%

// Settings to 100%, but starts to go to 0
15855715113 shelly_hap_window_c:375 WC 1: HAPSetTgtPos 100.00 cur 91.71 tgt 91.71 lmd 1
15855720970 shelly_hap_window_c:350 WC 1: Tgt pos 91.71 -> 0.00 (HAPalt)
15855726707 shelly_hap_window_c:330 WC 1: State: idle -> move (0 -> 20)
15855787208 shelly_output.cpp:77    Output 2: off -> on (move)

Video:
https://github.com/user-attachments/assets/8f9ac65b-1187-4d9f-9d0b-c3e002dbc1ad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant