Here is the tricky part: it is also possible to use the remote of each cover.
And I’d like the input_number to reflect the position when it has change with the remote
While the cover.set_cover_position is running, the current_position attribute is changing but not at the same pace.
It is taking a few seconds for the service to end and the current_position to update.
So, if someone is pushing the remote button, the current_position will become different than the input_number. This is your advise, right?
But the current_position will also be different than the input_number while the cover.set_cover_position is running.
I should maybe update the input_number when current_position did not change for a few seconds.
As the state remains open and only the attribute is updated, I’m wondering if I can use the last_updated or last_changed of
What I’ve done so far (in another automation, so I can re-use the trigger.id trick). It is working, you just have to wait for the next 1 minute and 15 seconds (maximum) for it to sync
cover was not updated in the last 15 seconds (stable position)
attribute current_position is different than the input_number (out-of-sync)
input_number is updated for more than 60 seconds (explanation bellow)
The last condition is to avoid that moving the slider will reset it to the cover position value instantly.
That was generating a weird behavior of the cover, starting to move up then down or the opposite.