Hello,
Using Mosquito MQTT and Shelly 2.5 via MQTT. Trying to implement button long push action. My automation simple automation for testing :
alias: 1 2aukstas long press
description: ''
trigger:
- platform: mqtt
topic: shellies/shellyswitch25-40F5202A29E1/input_event/0
- platform: mqtt
topic: shellies/shellyswitch25-40F5202A29E1/input_event/1
condition:
- condition: template
value_template: '{{ trigger.payload_json.event == ''L'' }}'
action:
- service: notify.mobile_app_andriaus_iphone_pro
data:
message: mygtukas long push
- service: light.turn_off
data: {}
entity_id: light.2nd_floor_foyer_light
mode: single
The problem is: First long push is working,but after this automation goes to infinite look trigering action every 30 seconds