Finally i was able to made shelly works fine in roller mode with position in percent.
But i can’t find a way to get roller power consumption .
This is my code after searching in shelly’s API docs:
cover:
- platform: mqtt
name: persiana_estudio
command_topic: "shellies/shellyswitch-XXXXXX/roller/0/command"
position_topic: "shellies/shellyswitch-XXXXXX/roller/0/pos"
set_position_topic: "shellies/shellyswitch-XXXXXX/roller/0/command/pos"
availability_topic: "shellies/shellyswitch-XXXXXX/online"
payload_available: "true"
payload_not_available: "false"
payload_open: "open"
payload_close: "close"
payload_stop: "stop"
retain: false
optimistic: false
qos: 1
position_open: 100
position_closed: 0
sensor:
- platform: mqtt
name: "Potencia"
state_topic: "shellies/shellyswitch-XXXX/roller/power"
unit_of_measurement: "W"
Has anybody a clue of what i’m doing wrong?