Using scene to open / close covers

Hi everyone, I have five curtain switches based on Tuya.
Seams that each curtain has the following three states:

  1. Open (0%)
  2. Unknown (1-99%)
  3. Closed (100%)

What I want to achieve is a scene which will open/close each curtain to a specific location.
I opened / closed each curtain to the desired location and I created a scene.
The issue is that the scene works only while the desired location is either 0% or 100%
e.g. If I want if I want to open / close a curtain to 35% it will not work.

Can someone help me here?
Thanks

I do not use scenes myself, so I am not sure this is the cause, but the template you use seems to be broken. I do not know of a position function you seem to use for the cover slider, and you also seem to use the position of a wrong cover for the value, but that should be its state (open, close, opening, …) So try to change these two lines to inherit state and position from the original blind:

        position_template: "{{ state_attr('cover.dining_room_curtain', 'current_position') }}"
        value_template: "{{ state('cover.dining_room_curtain') }}"

But what is your intention with this template? Only to change the direction? It seems to inherit all from the dining room curtain otherwise. I do not understand what you want the slider to do if the original curtain does not support positioning. In that case the position attribute of the original curtain may not be functioning correctly, and you may need to convert the state to positions and use a script to set positions. Does the original even know its current state? And if it does not support positioning through a slider, the set_cover_position you now use will probably not work either.

Thanks @Edwin_D for trying to help.
I rephrased my question above.
Bottom line, I want to be able to set a curtain into a specific position between 1-99%
Appreciate your help

Scenes will not be of any use if the curtain specifies “unknown” for all intermediate positions. That is because the scene will use the current position to store as the desired position. If the curtain is able to set the positions inbetween, but does not report it back, you have two options.

One: use scripts instead of scenes to set the desired state. I do not use scenes because I hate the fact that scenes use the current values when editing a scene. Way to easy for a scene to be destroyed because an automation or a person decides to control the target while editing the scene. And it is a pain you can only edit the “Sleep” scene with all lights off. Add to this that scenes do not allow for conditional actions, while scripts do.

Two: If you really want to use scenes, then you can create a template cover that uses an input boolean to remember the last position you sent the curtain to. But the input boolean will be incorrect if you can also manually control the curtain. So I’d go for the script and accept you do not know intermediate positions. Scrips can do way more than scenes ever will (except store current positions, but this is exactly what is not possible for you).

any update to this

im having the same issue i have 3 blinds running off Tuya gateway (RF)

I have the scenes imported scene.open_blinds & scene.close_blinds and wanted this to be something like a button that can show opened/close and also setting the posistion of the blinds e.g 50%

unfortunatly the enity has no state of what the posistion is so wondered if could use some programming todo this in a clever way!?

It’s maybe not the most elegant, but you could set the blinds to a known position (either 0% or 100%) and then time how long it takes to go to 50%, and then use that as a delay time to stop the blind opening/closing at the half way point.

that sounds like a work around but have no idea where to start