Mqtt cover Shelly

Hi,

I have configured in Configuration.yaml my Shelly Cover to use them with mqtt cover instructions.

Shutters are working fine with shlley integration but for other reasons I want to use them also with mqtt topics.

My configuration.yaml is defined like this:

  • name: “Persiana Cocina Mqtt”
    unique_id: “Persiana_cocina_mqtt”
    availability_topic: “shellyplus2pm-xxxxxxxx/online”
    payload_available: “true”
    payload_not_available: “false”
    state_topic: “shellyplus2pm-xxxxxxxxx/status/cover:0”
    value_template: “{{ value_json.state }}”
    state_opening: “opening”
    state_closing: “closing”
    state_stopped: “stopped”
    state_open: “open”
    state_closed: “closed”
    position_topic: “shellyplus2pm-xxxxxxxxx/status/cover:0”
    position_template: “{{ value_json.current_pos | int }}”
    position_open: 100
    position_closed: 0
    command_topic: “shellyplus2pm-xxxxxxxxxxxx”
    payload_open: ‘{“id”:0,“src”:“shellyplus2pm-xxxxxxxx”,“method”:“Cover.Open”,“params”:{“id”:0}}’
    payload_close: ‘{“id”:0,“src”:“shellyplus2pm-xxxxxxxx”,“method”:“Cover.Close”,“params”:{“id”:0}}’
    payload_stop: ‘{“id”:0,“src”:“shellyplus2pm-4xxxxxxxxx”,“method”:“Cover.Stop”,“params”:{“id”:0}}’
    set_position_topic: “shellyplus2pm-xxxxxxxxxxxx/rpc”
    set_position_template: ‘{“id”:0,“src”:“shellyplus2pm-xxxxxxxxxxx”,“method”:“Cover.GoToPosition”,“params”:{“id”:0,“pos”:{{ position }}}}’

I can control them with cover position, but it´s imposible to close or open them, only open partially send them a %.

Any idea how to solve it?

Thanks

You can use Shellies Discovery Gen2.

Thanks I will try