Solved: Tasmota on Shelly i4 button_short_press vs button_long_press

Hi there!
I’m controlling all my shutters (grouped by an helper) in HA using buttons on a shelly plus i4 with tasmota but am stuck on achieving a long press in order to not fully close the shutters.

So my Switches on the shelly are defined like this:
06:20:01.137 CMD: switchmode1
06:20:01.145 MQT: stat/tasmota_790E48/RESULT = {“SwitchMode1”:6}
06:20:02.817 CMD: switchmode2
06:20:02.828 MQT: stat/tasmota_790E48/RESULT = {“SwitchMode2”:6}
06:20:04.508 CMD: switchmode3
06:20:04.516 MQT: stat/tasmota_790E48/RESULT = {“SwitchMode3”:6}
06:20:05.780 CMD: switchmode4
06:20:05.792 MQT: stat/tasmota_790E48/RESULT = {“SwitchMode4”:6}
06:20:11.374 CMD: setoption32
06:20:11.381 MQT: stat/tasmota_790E48/RESULT = {“SetOption32”:10}

Having a short press on one button will result in a “TOGGLE”
06:22:14.112 MQT: stat/tasmota_790E48/RESULT = {“Switch2”:{“Action”:“TOGGLE”}}

Having a 1-Second Press on the button will result in an “HOLD”
06:22:17.124 MQT: stat/tasmota_790E48/RESULT = {“Switch2”:{“Action”:“HOLD”}}

The working automation for TOGGLE-Command in HA looks like this:
alias: OG runter
description: “”
trigger:

  • platform: device
    domain: tasmota
    device_id: 1d0f863041b298e32b89e307e083acf4
    type: button_short_press
    subtype: switch_2
    discovery_id: D48AFC790E48_switch_2_TOGGLE
    condition:
    action:
  • service: cover.close_cover
    target:
    entity_id: cover.rollos_og
    data: {}
    mode: single

But the long_press isn’t proposed in graphical editor of HA, so I edited the automation in yaml like this, but unfortunately it doesn’t work:

alias: Rollos_OG_Schlitz
description: “”
trigger:

  • platform: device
    domain: tasmota
    device_id: 1d0f863041b298e32b89e307e083acf4
    type: button_long_press
    subtype: switch_2
    discovery_id: D48AFC790E48_switch_2_HOLD
    condition:
    action:
  • service: cover.set_cover_position
    target:
    entity_id:
    - cover.rollos_og
    data:
    position: 10
    mode: single

Any hints on what could be my mistake?

These are the topics from Tasmota:
06:26:05.021 CMD: buttontopic2
06:26:05.033 MQT: stat/tasmota_790E48/RESULT = {“ButtonTopic”:“0”}
06:26:15.007 CMD: switchtopic2
06:26:15.015 MQT: stat/tasmota_790E48/RESULT = {“SwitchTopic”:“”}

06:27:53.377 MQT: stat/tasmota_790E48/STATUS6 = {“StatusMQT”:{“MqttHost”:“192.168.151.10”,“MqttPort”:1883,“MqttClientMask”:“DVES_%06X”,“MqttClient”:“DVES_790E48”,“MqttUser”:“mqttuser”,“MqttCount”:4,“MAX_PACKET_SIZE”:1200,“KEEPALIVE”:30,“SOCKET_TIMEOUT”:4}}

Solved:

I just needed to add “setoption73 1” to discouple the buttons from Power1-4 (there are no relays in shelly plus i4, anyway)