I have an Inovelli White Series Matter+Thread light switch. It has a custom button called Config that you can use for automations. Config is listed under Events in Device Info. I’ve noticed some unexpected behavior whenever I run sudo docker compose restart.
Here’s what happens after compose restart exits.
- Home Assistant WebUI comes up
- Inovelli switch entities become unavailable
- 5 minutes passes in the unavailable state
- Inovelli switch comes back to life, setting all of its entity’s values back to what they were before
- Config event fires
The Config event firing on reboot is really bad because it triggers an automation I have that listens for the Config event to fire…
How should I be coding the automation to ignore Config events from reboots? I found some Event docs and also a forum post, but they didn’t turn out too helpful.
Here’s the automation I came up with based on the links above. Unfortunately, this still triggers the automation on reboot.
alias: Inovelli switch
description: ""
triggers:
- trigger: state
entity_id:
- event.inovelli_on_off_switch_config
conditions:
- condition: not
conditions:
- condition: state
entity_id: event.inovelli_on_off_switch_config
state: unavailable
- condition: state
entity_id: event.inovelli_on_off_switch_config
state: unknown
actions:
- choose:
- conditions:
- condition: state
entity_id: event.inovelli_on_off_switch_config
attribute: event_type
state: multi_press_1
sequence:
- action: script.inovelli_switch_turn_on
metadata: {}
data: {}
mode: single
Running HA 2025.10.4 in Docker Compose.


I’m still new to HA, but it seems like since
Configis an event I can’t check if the previous state was from “unknown”. That only works for things that have values? I think?Go to your automation. Make sure it has triggered recently with your bug. Go to it’s traces. Click on the trigger circle (if there are multiple) Scroll down and in ‘step details’ look at the “Changed variables” tab
What does it say?