Korrespondierender Thread im Home-Assistant-Forum:
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…
community.home-assistant.io
Hallo zusammen,
ich habe ein Problem mit einem Shelly Plus i4 (mit Tasmota 13.4). Ich habe an dem Shelly 4 Buttons eingerichtet, die im Switchmode 6 laufen. Setoption32 steht auf 10, also sendet der Shelly nach 1 Sekunde "Button festhalten" einen HOLD anstelle eines TOGGLE.
Mein Problem: Der Home-Assistant bekommt den TOGGLE per MQTT mit, den HOLD irgendwie nicht:
06:22:14.112 MQT: stat/tasmota_790E48/RESULT = {“Switch2”:{“Action”:“TOGGLE”}}
06:22:17.124 MQT: stat/tasmota_790E48/RESULT = {“Switch2”:{“Action”:“HOLD”}}
Woran kann das liegen?
das YAML für TOGGLE:
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
und das nicht funktionierende YAML für HOLD:
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