service: cover.set_cover_position
data:
position: >
{{ range(1,20) | random | int }}
target:
entity_id: cover.your_cover_entity_name
i’m using entity id’s instead of device id because of this:
but if you really want to stay with device_id, you can still use the position template