I made a template into the configuration.yaml file long time agoin fact, got some help form the community.
The point is that on the last update i received a warning that the template will be deprecated, so I moved on to the template helper system and I managed to get it work, almost work.
To be set up I have to day that the reason for templating my cover cover.2
is because I installed a door sensor and I wanted to prevent the cover from closing if the door is opened, and for replace the close button in the cover card for a script which takes into account the door open/close state I decided to do the template.
Well the point is that everything works but the set position .
I submit some captures of the recently created template.
well , have to say that I think I solved myself, after re-reading the previous template, and the error itself, I have realized that there were a part missing
position: "{{ position }}"
in the data field, the point is that I didn´t know where to writer down that, but editing in yaml mode I found it.
I think that was the problem, I´ll wait for you to agree.