Hello
I want to use above Button to toggle a switch.
Therefore I wrote tis very basic automation:
alias: Z2 Toggel
description: ''
trigger:
- platform: state
entity_id: sensor.klingel_k1_action
condition: []
action:
- type: toggle
device_id: 7f0786a09275524bb427e9e18xxxxxxx
entity_id: switch.z2
domain: switch
mode: single
Problem is that over time in inregular sequence the battery driven button send a signal to initiate the automation - without beeing pessed
Has anyone an idea how I can overcome this problem e.g. by determinming the press pressing duartion (which hopefully could be different ot the βnoiseβ operated triggers)