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.
…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.
# 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
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.