I have a Scene for mpv (thats a media player like vlc), in addition with the great lua script simple-mpv-webui.
At the moment I created a kind of progress bar, with a slider, as there is no origin progress bar element in the Scene :(
It works, but I want to refresh the slider every maybe 5 seconds.
At the moment I use a Button 'Refresh', where I perform the Task again to set the position.
In the Task I do a Hide Scene and Show Scene to get the new values into the scene.
It doesnt work otherwise but it is ugly, because the Scene is shortly disappearing and reappearing, not nice.
I would like to refresh the values of the Scene Elements only, but the Task doesnt change them, when the Scene started this very Task. It works only if I do a Hide Scene and then again Show Scene Action in that Task.
Is there a recomended way to do this better?
I thought about the Return Value Action, the Scene Performs the Task, the Task returns its new values (separated with some special character) as Return to the Scene and the Scene does a Variable Split Action to get all new values and does some Scene-Element-Value Actions with them. This should work, but it is not that nice neither.
Still I dont know how to refresh automatically then.
Is there an easier way?
Xiaomi Mi A1 with Android 9 and Tasker 5.15.2-beta
I would post the Task and the Scene here, but it is already so big, I dont think this would be of much help.