I tried this:
I created an input_number in slider mode and, when I move the slider, the current_position attribute of cover_sala (below) gets the correct selected value, but cover doesn’t start.
Then do not usecover.shelly_shsw_25 in your Lovelace, use only cover.living_room – with open/close/position.
Then you don’t need input_number in slider mode – use position in cover.living_room. It will start time_counter with time_counter.set service to given {{position}}. It will calculate time needed to move cover from current_position to position and send time_counter.stopped event – which with automations will set a cover in required position.
PS In this case you must also rewrite automations from cover.shelly_shsw_25 to cover.living_room.
Perfect,
I used the code for configuration.yaml, but without changes in automations.yaml because cover.living_room always assumes the “open” state if set_position is > 0 and, therefore, the set_position value does not change.
Leaving the reference "cover.shelly_shsw_25 ONLY in automations.yaml, everything works fine.
Thanks a lot.
P.S.
Is there a way to reverse the state of the open / close label on the set_position slider?
When the value is 0% (= cover completely open), the control shows closed
Great examples Seweryn,
I’d like to implement your time_counter into a command line cover.
this is the config of my cover:
how will I be able to implement this? Many thanks.