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

All slider ui elements stop working after some time #18

Open
kennymc-c opened this issue Jan 24, 2025 · 17 comments
Open

All slider ui elements stop working after some time #18

kennymc-c opened this issue Jan 24, 2025 · 17 comments

Comments

@kennymc-c
Copy link
Contributor

All ui slider elements e.g. for brightness or covers only seem to work for a limited time. I can change the brightness 2 or 3 times and then I'm not able to move the slider anymore for any entity that uses sliders. Even killing and restarting the app doesn't help to fix it. I think the update to the lasted build had reactivated the function so maybe there is something permanent stored that gets reset/deleted with an update.

@kennymc-c
Copy link
Contributor Author

I think this could also be related to touch controls as it works better when running the app on my Mac although I sometimes still see this issue there too but not constantly.

@albaintor
Copy link
Owner

This should be better now with build 111. Please confirm.

Of course playing with sliders may not always work : the connection chain may fail or with a response time that may not be fast enough.
I have random lags with my chain remote -> home assistant -> target device (ex philips hue)

@kennymc-c
Copy link
Contributor Author

I can't notice a difference with Build 111. Using sliders just results in moving the pop up window up and down. The color wheel and the switch are working like excepted. I'm using the Hue integration for lights.

@albaintor
Copy link
Owner

Not sure to understand your problem :

  • moving slider results in moving pages ?
  • sliders work for a while then stop working

Gestures on sliders are a little tricky because we are in scrolling views (both horizontal and vertical)
You have to hold your finger a little bit before dragging the slider

@kennymc-c
Copy link
Contributor Author

You have to hold your finger a little bit before dragging the slider

Ahh, that was the trick!

Just one thing that's not working: With lights that only support brightness and color temperature the ct slider can be adjusted but it doesn't have an effect. On the remote this slider works and it also works with app using color lights

@albaintor
Copy link
Owner

Can you confirm this still does not work with the new release ? This is strange, maybe the reported features by the entity light are not correct

@kennymc-c
Copy link
Contributor Author

Yes, still preset with 115. The ct slider is also at 0% for all non color lights. The correct value is shown on the remote. Also with both color and non color lights the ct slider turns off the light when it's 0% which is not happening with the remote ui.

@albaintor
Copy link
Owner

Sliders are now fixed

@kennymc-c
Copy link
Contributor Author

No, the color temperature slider still doesn't work

@albaintor
Copy link
Owner

You're right, it worked some time ago. I am on it

@albaintor
Copy link
Owner

Fixed in build > 133

@kennymc-c
Copy link
Contributor Author

Still the exact same behaviour as before with 1.2.0 (133)

@albaintor
Copy link
Owner

Can you double check please ? I can change temperature settings and it works on my version (I am on 1.2.1 now)
image

@kennymc-c
Copy link
Contributor Author

Your screenshot shows a color light. The issue only happens with lights that support color temperature but no color.

I also noticed that after changign the ct slider with color lights, where the slider works, the percentage value changes to a completly different value. But the slider stays at the same position:

ScreenRecording_02-16-2025.13-08-26_1.MP4

All problems are not happening when using the remote itself. Also the color temperature slider works different as the color is less saturated when using the remote.

@albaintor
Copy link
Owner

This other issue is related to the remote that is not able to process changes fast enough, although I added a debounce mechanism : when you move the slider, I don't send the changed value each time but after 500ms. But even though the remote is slow to process changes. On my side it goes through HA then Philips Hue. I guess this is faster going through Philips Hue integration directly.

At the end of the video we can see that the last changed CT is not taken into account but there is nothing I can do about it when the remote fails.

@kennymc-c
Copy link
Contributor Author

I think i just cut the video to early so the last command is also recognized.
What do you mean by the remote is not fast enough? On the remote itself I don't have these problems. I'm using the Hue integration directly.

@albaintor
Copy link
Owner

The remote is not very reactive to handle commands, especially with HA in the chain. I understand this is better with Hue integration. So when you move the slider, the commands are not processed quickly. On the remote this is faster of course because the front end is directly connected to the backend and the remote doesn't have to handle API request & answers.
And sometimes some commands fails for some reason (weak wifi connection, a chain of commands not processed fast enough...)

This is the reason why I introduced a debounce mechanism to avoid flooding but sometimes the remote is just too "busy"

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

2 participants