I have an automation:
for a Matter over Thread button. However, it does not work as intended. When pressing the button, it works correctly, but I am getting phantom presses.
As you can see, the button was last pressed at 11:04 PM. However, at 11:46:14 PM, it “detected an event”, which re-ran the automation as if I had just pressed the button.
I have no idea what these events are, or how to eliminate them.
Full YAML of automation:
alias: Test Button
description: ""
triggers:
- trigger: state
entity_id:
- event.bilresa_dual_button_button_1
id: top
- trigger: state
entity_id:
- event.bilresa_dual_button_button_2
id: bottom
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id:
- top
sequence:
- choose:
- conditions:
- condition: state
entity_id: event.bilresa_dual_button_button_1
state:
- multi_press_1
attribute: event_type
sequence:
- action: light.toggle
metadata: {}
target:
entity_id: light.bedside_lamp
data: {}
- conditions:
- condition: trigger
id:
- bottom
sequence:
- action: script.slowly_turn_off_bedroom_lights
metadata: {}
data: {}
- data: {}
target:
entity_id:
- light.bedside_lamp
- light.entrance
- light.basement_all
- light.downstairs_hall_all
- light.downstairs_bathroom_all
- light.work_office_all
action: light.turn_off
- if:
- condition: time
before: "07:30:00"
after: "22:00:00"
then:
- data:
option: Night
target:
entity_id: input_select.house_mode
action: input_select.select_option
- if:
- condition: state
entity_id: input_boolean.guests
state: "off"
then:
- data: {}
target:
entity_id: light.upstairs_all
action: light.turn_off
continue_on_error: true
mode: single

