[URGENT!] Z2MQTT switch attribute 'event_type' changes upon restart/reload

(Cross posting from the HA discord)

Hi all! Hoping you can help me before tonight when it turns my light on & plays music at 2am again...

I've pasted three automation traces, one from before I narrowed down the trigger, one after, and yet another one with another change. It still does it.

The trigger is

trigger: state
entity_id:
  - event.lounge_switch_action
# original trace
attribute: event_type
# second trace
not_from:
  - unavailable
not_to:
  - unavailable
  - unknown
# third trace

The traces are:

1

{
  "trace": {
    "last_step": "action/0/choose/1/sequence/0",
    "run_id": "2365720c30cfa15e3c98fa9dac7f25cf",
    "state": "stopped",
    "script_execution": "finished",
    "timestamp": {
      "start": "2026-05-14T14:10:44.490866+00:00",
      "finish": "2026-05-14T14:10:44.873463+00:00"
    },
    "domain": "automation",
    "item_id": "1776654006276",
    "trigger": "state of event.lounge_switch_action",
    "trace": {
      "trigger/0": [
        {
          "path": "trigger/0",
          "timestamp": "2026-05-14T14:10:44.490894+00:00",
          "changed_variables": {
            "this": {
              "entity_id": "automation.lounge_switch",
              "state": "on",
              "attributes": {
                "id": "1776654006276",
                "last_triggered": "2026-05-14T14:09:20.369430+00:00",
                "mode": "restart",
                "current": 0,
                "friendly_name": "Lounge Switch"
              },
              "last_changed": "2026-05-14T14:08:50.340396+00:00",
              "last_reported": "2026-05-14T14:09:26.175535+00:00",
              "last_updated": "2026-05-14T14:09:26.175535+00:00",
              "context": {
                "id": "01KRKD48MZFFDC08PEYNWVK1RB",
                "parent_id": null,
                "user_id": null
              }
            },
            "trigger": {
              "id": "0",
              "idx": "0",
              "alias": null,
              "platform": "state",
              "entity_id": "event.lounge_switch_action",
              "from_state": {
                "entity_id": "event.lounge_switch_action",
                "state": "2026-05-13T22:46:21.924+00:00",
                "attributes": {
                  "event_types": [
                    "1_single",
                    "1_double",
                    "hold",
                    "2_single",
                    "2_double",
                    "3_single",
                    "3_double"
                  ],
                  "event_type": "2_single",
                  "icon": "mdi:gesture-double-tap",
                  "friendly_name": "Lounge Switch Action"
                },
                "last_changed": "2026-05-14T14:09:20.359545+00:00",
                "last_reported": "2026-05-14T14:09:20.359545+00:00",
                "last_updated": "2026-05-14T14:09:20.359545+00:00",
                "context": {
                  "id": "01KRKD42Z7XMFFJVW52GDYGMTK",
                  "parent_id": null,
                  "user_id": null
                }
              },
              "to_state": {
                "entity_id": "event.lounge_switch_action",
                "state": "2026-05-14T14:10:44.489+00:00",
                "attributes": {
                  "event_types": [
                    "1_single",
                    "1_double",
                    "hold",
                    "2_single",
                    "2_double",
                    "3_single",
                    "3_double"
                  ],
                  "event_type": "2_single",
                  "icon": "mdi:gesture-double-tap",
                  "friendly_name": "Lounge Switch Action"
                },
                "last_changed": "2026-05-14T14:10:44.489262+00:00",
                "last_reported": "2026-05-14T14:10:44.489262+00:00",
                "last_updated": "2026-05-14T14:10:44.489262+00:00",
                "context": {
                  "id": "01KRKD6N49GE6X21ZVBMJ781N9",
                  "parent_id": null,
                  "user_id": null
                }
              },
              "for": null,
              "attribute": null,
              "description": "state of event.lounge_switch_action"
            }
          }
        }
      ],
      "action/0": [
        {
          "path": "action/0",
          "timestamp": "2026-05-14T14:10:44.491117+00:00",
          "changed_variables": {
            "context": {
              "id": "01KRKD6N4ATW3DXVA8QB8K7J2C",
              "parent_id": "01KRKD6N49GE6X21ZVBMJ781N9",
              "user_id": null
            }
          },
          "result": {
            "choice": 1
          }
        }
      ],
      "action/0/choose/0": [
        {
          "path": "action/0/choose/0",
          "timestamp": "2026-05-14T14:10:44.491171+00:00",
          "result": {
            "result": false
          }
        }
      ],
      "action/0/choose/0/conditions/0": [
        {
          "path": "action/0/choose/0/conditions/0",
          "timestamp": "2026-05-14T14:10:44.491195+00:00",
          "result": {
            "result": false,
            "entities": []
          }
        }
      ],
      "action/0/choose/1": [
        {
          "path": "action/0/choose/1",
          "timestamp": "2026-05-14T14:10:44.491303+00:00",
          "result": {
            "result": true
          }
        }
      ],
      "action/0/choose/1/conditions/0": [
        {
          "path": "action/0/choose/1/conditions/0",
          "timestamp": "2026-05-14T14:10:44.491324+00:00",
          "result": {
            "result": true,
            "entities": []
          }
        }
      ],
      "action/0/choose/1/sequence/0": [
        {
          "path": "action/0/choose/1/sequence/0",
          "timestamp": "2026-05-14T14:10:44.491438+00:00",
          "result": {
            "params": {
              "domain": "media_player",
              "service": "media_play_pause",
              "service_data": {},
              "target": {
                "entity_id": [
                  "media_player.big_lounge_speakers_2"
                ]
              }
            },
            "running_script": false
          }
        }
      ]
    },
    "config": {
      "id": "1776654006276",
      "description": "",
      "triggers": [
        {
          "trigger": "state",
          "entity_id": [
            "event.lounge_switch_action"
          ]
        }
      ],
      "conditions": [],
      "actions": [
        {
          "choose": [
            {
              "conditions": [
                {
                  "condition": "template",
                  "value_template": "{{ trigger.to_state.attributes.event_type == '1_single' }}"
                }
              ],
              "sequence": [
                {
                  "action": "media_player.media_next_track",
                  "metadata": {},
                  "target": {
                    "entity_id": "media_player.big_lounge_speakers_2"
                  },
                  "data": {}
                }
              ]
            },
            {
              "conditions": [
                {
                  "condition": "template",
                  "value_template": "{{ trigger.to_state.attributes.event_type == '2_single' }}"
                }
              ],
              "sequence": [
                {
                  "action": "media_player.media_play_pause",
                  "metadata": {},
                  "target": {
                    "entity_id": "media_player.big_lounge_speakers_2"
                  },
                  "data": {}
                }
              ]
            },
            {
              "conditions": [
                {
                  "condition": "template",
                  "value_template": "{{ trigger.to_state.attributes.event_type == '3_single' }}"
                }
              ],
              "sequence": [
                {
                  "action": "media_player.media_previous_track",
                  "metadata": {},
                  "target": {
                    "entity_id": "media_player.big_lounge_speakers_2"
                  },
                  "data": {}
                }
              ]
            },
            {
              "conditions": [
                {
                  "condition": "template",
                  "value_template": "{{ trigger.to_state.attributes.event_type == '1_double' }}"
                }
              ],
              "sequence": [
                {
                  "action": "media_player.volume_down",
                  "metadata": {},
                  "target": {
                    "entity_id": "media_player.big_lounge_speakers_2"
                  },
                  "data": {}
                }
              ]
            },
            {
              "conditions": [
                {
                  "condition": "template",
                  "value_template": "{{ trigger.to_state.attributes.event_type == '2_double' }}"
                }
              ],
              "sequence": []
            },
            {
              "conditions": [
                {
                  "condition": "template",
                  "value_template": "{{ trigger.to_state.attributes.event_type == '3_double' }}"
                }
              ],
              "sequence": [
                {
                  "action": "media_player.volume_up",
                  "metadata": {},
                  "target": {
                    "entity_id": "media_player.big_lounge_speakers_2"
                  },
                  "data": {}
                }
              ]
            }
          ]
        }
      ],
      "mode": "restart"
    },
    "blueprint_inputs": null,
    "context": {
      "id": "01KRKD6N4ATW3DXVA8QB8K7J2C",
      "parent_id": "01KRKD6N49GE6X21ZVBMJ781N9",
      "user_id": null
    }
  },
  "logbookEntries": [
    {
      "name": "automation 76",
      "message": "triggered by state of event.lounge_switch_action",
      "source": "state of event.lounge_switch_action",
      "entity_id": "automation.lounge_switch",
      "context_id": "01KRKD6N4ATW3DXVA8QB8K7J2C",
      "domain": "automation",
      "when": 1778767844.4909463
    },
    {
      "state": "paused",
      "entity_id": "media_player.big_lounge_speakers_2",
      "icon": "mdi:speaker",
      "when": 1778767844.8720365,
      "context_event_type": "automation_triggered",
      "context_domain": "automation",
      "context_name": "automation 76",
      "context_message": "triggered by state of event.lounge_switch_action",
      "context_source": "state of event.lounge_switch_action",
      "context_entity_id": "automation.lounge_switch"
    }
  ]
}

2

{
  "trace": {
    "last_step": "action/0/choose/1/sequence/0",
    "run_id": "cc1edd10fee2f2713ca8907d1e919cfb",
    "state": "stopped",
    "script_execution": "finished",
    "timestamp": {
      "start": "2026-05-15T00:09:58.241350+00:00",
      "finish": "2026-05-15T00:09:58.378662+00:00"
    },
    "domain": "automation",
    "item_id": "1776654006276",
    "trigger": "state of event.lounge_switch_action",
    "trace": {
      "trigger/0": [
        {
          "path": "trigger/0",
          "timestamp": "2026-05-15T00:09:58.241410+00:00",
          "changed_variables": {
            "this": {
              "entity_id": "automation.lounge_switch",
              "state": "on",
              "attributes": {
                "id": "1776654006276",
                "last_triggered": "2026-05-15T00:09:55.792312+00:00",
                "mode": "restart",
                "current": 0,
                "friendly_name": "Lounge Switch"
              },
              "last_changed": "2026-05-15T00:09:21.231021+00:00",
              "last_reported": "2026-05-15T00:09:55.793603+00:00",
              "last_updated": "2026-05-15T00:09:55.793603+00:00",
              "context": {
                "id": "01KRMFFSTG3Q2392GB8BM3M0WA",
                "parent_id": "01KRMFFSNQX5EXYTDV13AFHS5C",
                "user_id": null
              }
            },
            "trigger": {
              "id": "0",
              "idx": "0",
              "alias": null,
              "platform": "state",
              "entity_id": "event.lounge_switch_action",
              "from_state": {
                "entity_id": "event.lounge_switch_action",
                "state": "unavailable",
                "attributes": {
                  "event_types": [
                    "1_single",
                    "1_double",
                    "hold",
                    "2_single",
                    "2_double",
                    "3_single",
                    "3_double"
                  ],
                  "icon": "mdi:gesture-double-tap",
                  "friendly_name": "Lounge Switch Action"
                },
                "last_changed": "2026-05-15T00:09:55.639756+00:00",
                "last_reported": "2026-05-15T00:09:57.137124+00:00",
                "last_updated": "2026-05-15T00:09:57.137124+00:00",
                "context": {
                  "id": "01KRMFFV4H71MFPKR41MJ45EES",
                  "parent_id": null,
                  "user_id": null
                }
              },
              "to_state": {
                "entity_id": "event.lounge_switch_action",
                "state": "2026-05-14T14:10:44.489+00:00",
                "attributes": {
                  "event_types": [
                    "1_single",
                    "1_double",
                    "hold",
                    "2_single",
                    "2_double",
                    "3_single",
                    "3_double"
                  ],
                  "event_type": "2_single",
                  "icon": "mdi:gesture-double-tap",
                  "friendly_name": "Lounge Switch Action"
                },
                "last_changed": "2026-05-15T00:09:58.122312+00:00",
                "last_reported": "2026-05-15T00:09:58.122312+00:00",
                "last_updated": "2026-05-15T00:09:58.122312+00:00",
                "context": {
                  "id": "01KRMFFW3AYB89DF2VT1BXZ5XE",
                  "parent_id": null,
                  "user_id": null
                }
              },
              "for": null,
              "attribute": "event_type",
              "description": "state of event.lounge_switch_action"
            }
          }
        }
      ],
      "action/0": [
        {
          "path": "action/0",
          "timestamp": "2026-05-15T00:09:58.241767+00:00",
          "changed_variables": {
            "context": {
              "id": "01KRMFFW715NS13WSRT5N07MJ8",
              "parent_id": "01KRMFFW3AYB89DF2VT1BXZ5XE",
              "user_id": null
            }
          },
          "result": {
            "choice": 1
          }
        }
      ],
      "action/0/choose/0": [
        {
          "path": "action/0/choose/0",
          "timestamp": "2026-05-15T00:09:58.241822+00:00",
          "result": {
            "result": false
          }
        }
      ],
      "action/0/choose/0/conditions/0": [
        {
          "path": "action/0/choose/0/conditions/0",
          "timestamp": "2026-05-15T00:09:58.241852+00:00",
          "result": {
            "result": false,
            "entities": []
          }
        }
      ],
      "action/0/choose/1": [
        {
          "path": "action/0/choose/1",
          "timestamp": "2026-05-15T00:09:58.241957+00:00",
          "result": {
            "result": true
          }
        }
      ],
      "action/0/choose/1/conditions/0": [
        {
          "path": "action/0/choose/1/conditions/0",
          "timestamp": "2026-05-15T00:09:58.241982+00:00",
          "result": {
            "result": true,
            "entities": []
          }
        }
      ],
      "action/0/choose/1/sequence/0": [
        {
          "path": "action/0/choose/1/sequence/0",
          "timestamp": "2026-05-15T00:09:58.242127+00:00",
          "result": {
            "params": {
              "domain": "media_player",
              "service": "media_play_pause",
              "service_data": {},
              "target": {
                "entity_id": [
                  "media_player.big_lounge_speakers_2"
                ]
              }
            },
            "running_script": false
          }
        }
      ]
    },
    "config": {
      "id": "1776654006276",
      "description": "",
      "triggers": [
        {
          "trigger": "state",
          "entity_id": [
            "event.lounge_switch_action"
          ],
          "attribute": "event_type",
          "not_from": [
            "unavailable"
          ],
          "not_to": [
            "unavailable",
            "unknown"
          ]
        }
      ],
      "conditions": [],
      "actions": [
        {
          "choose": [
            {
              "conditions": [
                {
                  "condition": "template",
                  "value_template": "{{ trigger.to_state.attributes.event_type == '1_single' }}"
                }
              ],
              "sequence": [
                {
                  "action": "media_player.media_next_track",
                  "metadata": {},
                  "target": {
                    "entity_id": "media_player.big_lounge_speakers_2"
                  },
                  "data": {}
                }
              ]
            },
            {
              "conditions": [
                {
                  "condition": "template",
                  "value_template": "{{ trigger.to_state.attributes.event_type == '2_single' }}"
                }
              ],
              "sequence": [
                {
                  "action": "media_player.media_play_pause",
                  "metadata": {},
                  "target": {
                    "entity_id": "media_player.big_lounge_speakers_2"
                  },
                  "data": {}
                }
              ]
            },
            {
              "conditions": [
                {
                  "condition": "template",
                  "value_template": "{{ trigger.to_state.attributes.event_type == '3_single' }}"
                }
              ],
              "sequence": [
                {
                  "action": "media_player.media_previous_track",
                  "metadata": {},
                  "target": {
                    "entity_id": "media_player.big_lounge_speakers_2"
                  },
                  "data": {}
                }
              ]
            },
            {
              "conditions": [
                {
                  "condition": "template",
                  "value_template": "{{ trigger.to_state.attributes.event_type == '1_double' }}"
                }
              ],
              "sequence": [
                {
                  "action": "media_player.volume_down",
                  "metadata": {},
                  "target": {
                    "entity_id": "media_player.big_lounge_speakers_2"
                  },
                  "data": {}
                }
              ]
            },
            {
              "conditions": [
                {
                  "condition": "template",
                  "value_template": "{{ trigger.to_state.attributes.event_type == '2_double' }}"
                }
              ],
              "sequence": []
            },
            {
              "conditions": [
                {
                  "condition": "template",
                  "value_template": "{{ trigger.to_state.attributes.event_type == '3_double' }}"
                }
              ],
              "sequence": [
                {
                  "action": "media_player.volume_up",
                  "metadata": {},
                  "target": {
                    "entity_id": "media_player.big_lounge_speakers_2"
                  },
                  "data": {}
                }
              ]
            }
          ]
        }
      ],
      "mode": "restart"
    },
    "blueprint_inputs": null,
    "context": {
      "id": "01KRMFFW715NS13WSRT5N07MJ8",
      "parent_id": "01KRMFFW3AYB89DF2VT1BXZ5XE",
      "user_id": null
    }
  },
  "logbookEntries": [
    {
      "name": "automation 76",
      "message": "triggered by state of event.lounge_switch_action",
      "source": "state of event.lounge_switch_action",
      "entity_id": "automation.lounge_switch",
      "context_id": "01KRMFFW715NS13WSRT5N07MJ8",
      "domain": "automation",
      "when": 1778803798.2414658
    },
    {
      "state": "paused",
      "entity_id": "media_player.big_lounge_speakers_2",
      "icon": "mdi:speaker",
      "when": 1778803798.373004,
      "context_event_type": "automation_triggered",
      "context_domain": "automation",
      "context_name": "automation 76",
      "context_message": "triggered by state of event.lounge_switch_action",
      "context_source": "state of event.lounge_switch_action",
      "context_entity_id": "automation.lounge_switch"
    }
  ]
}

3

{
  "trace": {
    "last_step": "action/0/choose/1/sequence/0",
    "run_id": "41908cf09e80cd1eb352043e9e5d54e7",
    "state": "stopped",
    "script_execution": "finished",
    "timestamp": {
      "start": "2026-05-15T00:52:45.785184+00:00",
      "finish": "2026-05-15T00:52:50.187917+00:00"
    },
    "domain": "automation",
    "item_id": "1776654006276",
    "trigger": "state of event.lounge_switch_action",
    "trace": {
      "trigger/0": [
        {
          "path": "trigger/0",
          "timestamp": "2026-05-15T00:52:45.785239+00:00",
          "changed_variables": {
            "this": {
              "entity_id": "automation.lounge_switch",
              "state": "on",
              "attributes": {
                "id": "1776654006276",
                "last_triggered": "2026-05-15T00:52:43.701733+00:00",
                "mode": "restart",
                "current": 0,
                "friendly_name": "Lounge Switch"
              },
              "last_changed": "2026-05-15T00:09:21.231021+00:00",
              "last_reported": "2026-05-15T00:52:43.702455+00:00",
              "last_updated": "2026-05-15T00:52:43.702455+00:00",
              "context": {
                "id": "01KRMHY5HNXWBKWMHN1Y9VJ0RK",
                "parent_id": "01KRMHY5DKAHCGCX60377RZRFW",
                "user_id": null
              }
            },
            "trigger": {
              "id": "0",
              "idx": "0",
              "alias": null,
              "platform": "state",
              "entity_id": "event.lounge_switch_action",
              "from_state": {
                "entity_id": "event.lounge_switch_action",
                "state": "unavailable",
                "attributes": {
                  "event_types": [
                    "1_single",
                    "1_double",
                    "hold",
                    "2_single",
                    "2_double",
                    "3_single",
                    "3_double"
                  ],
                  "icon": "mdi:gesture-double-tap",
                  "friendly_name": "Lounge Switch Action"
                },
                "last_changed": "2026-05-15T00:52:43.571530+00:00",
                "last_reported": "2026-05-15T00:52:44.742594+00:00",
                "last_updated": "2026-05-15T00:52:44.742594+00:00",
                "context": {
                  "id": "01KRMHY6J66AH7D4G5C85RRH0Z",
                  "parent_id": null,
                  "user_id": null
                }
              },
              "to_state": {
                "entity_id": "event.lounge_switch_action",
                "state": "2026-05-15T00:11:27.878+00:00",
                "attributes": {
                  "event_types": [
                    "1_single",
                    "1_double",
                    "hold",
                    "2_single",
                    "2_double",
                    "3_single",
                    "3_double"
                  ],
                  "event_type": "2_single",
                  "icon": "mdi:gesture-double-tap",
                  "friendly_name": "Lounge Switch Action"
                },
                "last_changed": "2026-05-15T00:52:45.741144+00:00",
                "last_reported": "2026-05-15T00:52:45.741144+00:00",
                "last_updated": "2026-05-15T00:52:45.741144+00:00",
                "context": {
                  "id": "01KRMHY7HDVWAD6NA587BEGRZN",
                  "parent_id": null,
                  "user_id": null
                }
              },
              "for": null,
              "attribute": "event_type",
              "description": "state of event.lounge_switch_action"
            }
          }
        }
      ],
      "action/0": [
        {
          "path": "action/0",
          "timestamp": "2026-05-15T00:52:45.785519+00:00",
          "changed_variables": {
            "context": {
              "id": "01KRMHY7JS2EHEDSQNZ7KWR65N",
              "parent_id": "01KRMHY7HDVWAD6NA587BEGRZN",
              "user_id": null
            }
          },
          "result": {
            "choice": 1
          }
        }
      ],
      "action/0/choose/0": [
        {
          "path": "action/0/choose/0",
          "timestamp": "2026-05-15T00:52:45.785571+00:00",
          "result": {
            "result": false
          }
        }
      ],
      "action/0/choose/0/conditions/0": [
        {
          "path": "action/0/choose/0/conditions/0",
          "timestamp": "2026-05-15T00:52:45.785596+00:00",
          "result": {
            "result": false,
            "entities": []
          }
        }
      ],
      "action/0/choose/1": [
        {
          "path": "action/0/choose/1",
          "timestamp": "2026-05-15T00:52:45.785688+00:00",
          "result": {
            "result": true
          }
        }
      ],
      "action/0/choose/1/conditions/0": [
        {
          "path": "action/0/choose/1/conditions/0",
          "timestamp": "2026-05-15T00:52:45.785710+00:00",
          "result": {
            "result": true,
            "entities": []
          }
        }
      ],
      "action/0/choose/1/sequence/0": [
        {
          "path": "action/0/choose/1/sequence/0",
          "timestamp": "2026-05-15T00:52:45.785826+00:00",
          "result": {
            "params": {
              "domain": "media_player",
              "service": "media_play_pause",
              "service_data": {},
              "target": {
                "entity_id": [
                  "media_player.big_lounge_speakers_2"
                ]
              }
            },
            "running_script": false
          }
        }
      ]
    },
    "config": {
      "id": "1776654006276",
      "description": "",
      "triggers": [
        {
          "trigger": "state",
          "entity_id": [
            "event.lounge_switch_action"
          ],
          "attribute": "event_type",
          "not_from": [
            "unavailable"
          ],
          "not_to": [
            "unavailable",
            "unknown"
          ]
        }
      ],
      "conditions": [],
      "actions": [
        {
          "choose": [
            {
              "conditions": [
                {
                  "condition": "template",
                  "value_template": "{{ trigger.to_state.attributes.event_type == '1_single' }}"
                }
              ],
              "sequence": [
                {
                  "action": "media_player.media_next_track",
                  "metadata": {},
                  "target": {
                    "entity_id": "media_player.big_lounge_speakers_2"
                  },
                  "data": {}
                }
              ]
            },
            {
              "conditions": [
                {
                  "condition": "template",
                  "value_template": "{{ trigger.to_state.attributes.event_type == '2_single' }}"
                }
              ],
              "sequence": [
                {
                  "action": "media_player.media_play_pause",
                  "metadata": {},
                  "target": {
                    "entity_id": "media_player.big_lounge_speakers_2"
                  },
                  "data": {}
                }
              ]
            },
            {
              "conditions": [
                {
                  "condition": "template",
                  "value_template": "{{ trigger.to_state.attributes.event_type == '3_single' }}"
                }
              ],
              "sequence": [
                {
                  "action": "media_player.media_previous_track",
                  "metadata": {},
                  "target": {
                    "entity_id": "media_player.big_lounge_speakers_2"
                  },
                  "data": {}
                }
              ]
            },
            {
              "conditions": [
                {
                  "condition": "template",
                  "value_template": "{{ trigger.to_state.attributes.event_type == '1_double' }}"
                }
              ],
              "sequence": [
                {
                  "action": "media_player.volume_down",
                  "metadata": {},
                  "target": {
                    "entity_id": "media_player.big_lounge_speakers_2"
                  },
                  "data": {}
                }
              ]
            },
            {
              "conditions": [
                {
                  "condition": "template",
                  "value_template": "{{ trigger.to_state.attributes.event_type == '2_double' }}"
                }
              ],
              "sequence": []
            },
            {
              "conditions": [
                {
                  "condition": "template",
                  "value_template": "{{ trigger.to_state.attributes.event_type == '3_double' }}"
                }
              ],
              "sequence": [
                {
                  "action": "media_player.volume_up",
                  "metadata": {},
                  "target": {
                    "entity_id": "media_player.big_lounge_speakers_2"
                  },
                  "data": {}
                }
              ]
            }
          ]
        }
      ],
      "mode": "restart"
    },
    "blueprint_inputs": null,
    "context": {
      "id": "01KRMHY7JS2EHEDSQNZ7KWR65N",
      "parent_id": "01KRMHY7HDVWAD6NA587BEGRZN",
      "user_id": null
    }
  },
  "logbookEntries": [
    {
      "name": "automation 76",
      "message": "triggered by state of event.lounge_switch_action",
      "source": "state of event.lounge_switch_action",
      "entity_id": "automation.lounge_switch",
      "context_id": "01KRMHY7JS2EHEDSQNZ7KWR65N",
      "domain": "automation",
      "when": 1778806365.7852843
    }
  ]
}

Trigger entity

The first one is fully "open" with no guards, so it fires on every change of the state as well as any change of any attribute.

Your not_to/not_from guards aren't working in 2 & 3 because you changed it to monitor the value of the attribute, not the state itself... event_type will never be "unavailable" or "unknown". You can see in both examples that the attribute event_type is non-existent in the from_state.

What you want to do is remove the attribute line, but keep the not_from and not_to.

trigger: state
entity_id:
  - event.lounge_switch_action
not_from:
  - unavailable
not_to:
  - unavailable
  - unknown

Then, depending on what you are trying to do, you will likely want to follow that up with a condition that checks for the value(s) of event_type you want to respond to.

1 Like

Thank you!

What's your recommended condition?

I want all of these event types to work
image

Works without a condition! Many thanks!