Cover template + position_template doesn't work

I’m trying to configure the cover template with position_template property. I’ve got a modbus sensor which seems to be working fine. It outputs the proper number in the entity, I’ve checked in two places:

image

but when used in the cover template like that:

image

I always have an error that the position is “unavailable”:

What I’m doing wrong?

I don’t see anything wrong, but maybe add a value_template to see if it helps:
value_template:"{{ states('sensor.bedroom_blind_position') | int >0 }}"