Tenta o seguinte:
cover:
- platform: template
covers:
sala:
friendly_name: "sala"
position_template: '{{ states.input_number.abertura_sala.state }}'
open_cover:
- service: mqtt.publish
data:
topic: 'cmnd/casa/sala/persiana1up/power'
payload: 'ON'
close_cover:
- service: mqtt.publish
data:
topic: 'cmnd/casa/sala/persiana1down/power'
payload: 'ON'
stop_cover:
- service: mqtt.publish
data:
topic: 'cmnd/casa/sala/perisana1up/POWER'
payload: 'OFF'
- service: mqtt.publish
data:
topic: 'cmnd/casa/sala/perisana1down/POWER'
payload: 'OFF'