Cover - invert up/down icons

Hi,

I have two shelly2.5 covers and work fine.

I want to change open/close arrows icons so my frontend look like:

aaa

My configuration is this:

  - title: Tende da sole
    cards:
      - type: entities
        entities:
          - entity: cover.terrazza_cucina
            type: cover
            name: Cucina
          - type: custom:slider-entity-row
            entity: cover.terrazza_cucina
            full_row: true

Any ideas?

Thanks in advance.
Vittore.

1 Like

Can you post the configuration for cover.terrazza_cucina?

- platform: mqtt
  name: "terrazza_cucina"
  command_topic: "shellies/shellyswitch25-E66F41/roller/0/command"
  state_topic: "shellies/shellyswitch25-E66F41/roller/0"
  position_topic: "shellies/shellyswitch25-E66F41/roller/0/pos"
  set_position_topic: "shellies/shellyswitch25-E66F41/roller/0/command/pos"
  payload_available: "true"
  payload_not_available: "false"
  qos: 1
  retain: false
  payload_open: "open"
  payload_close: "close"
  payload_stop: "stop"
  position_open: 100
  position_closed: 0
  optimistic: false

Try this:

- platform: mqtt
  name: "terrazza_cucina"
  command_topic: "shellies/shellyswitch25-E66F41/roller/0/command"
  state_topic: "shellies/shellyswitch25-E66F41/roller/0"
  position_topic: "shellies/shellyswitch25-E66F41/roller/0/pos"
  set_position_topic: "shellies/shellyswitch25-E66F41/roller/0/command/pos"
  payload_available: "true"
  payload_not_available: "false"
  qos: 1
  retain: false
  payload_open: "close"
  payload_close: "open"
  payload_stop: "stop"
  position_open: 0
  position_closed: 100
  optimistic: false

I swapped the payloads for open and closed and position. This should swap what the buttons do. They will still be called the same thing though so hopefully you are not using voice commands via google home or Alexa.

2 Likes

It would be nice to know if it works.

Hello, I was dealing with the same issue. Tom solution works perfectly.

…but the final solution on my point of view is to set all the system parts coherently, it is more convenient at the end to swap the Shelly 2.5 output and rewire the physical command button consequently. At that point it is no more necessary to swap the mqtt payloads.

Hello, I have the same problem, but the solution don’t works for me, could you help me please?

I have the following MQTT shelly settings:

And the following configuration in covers.jaml

# Tenda da Sole della Sala
  - platform: mqtt
    name: "Tenda da Sole della Sala"
    command_topic: "shellies/Tenda da Sole della Sala/roller/0/command"
    
    state_topic: "shellies/Tenda da Sole della Sala/roller/0"
    
    position_topic: "shellies/Tenda da Sole della Sala/roller/0/pos"
    set_position_topic: "shellies/Tenda da Sole della Sala/roller/0/command/pos"
    availability_topic: "shellies/Tenda da Sole della Sala/online"
    payload_available: "true"
    payload_not_available: "false"
    #qos: 1
    qos: 0
    retain: false
    
    #payload_open: "open"
    #payload_close: "close"
    payload_open: "close"
    payload_close: "open"
    
    payload_stop: "stop"
    position_open: 100
    position_closed: 0
    optimistic: false

The results is:

Annotazione 2020-08-31 130529

How can I find this configuration? I have a cover from SmartWingsHome which I want to invert the buttons, same like in this discussion. But, I can’t find that YAML configuration.

1 Like