[Last update trigger] Ignore default intents

Hi,

I am using the last update trigger sensor to perform an action when another app sends a broadcast message with a specific intent. I do not need to push any other received intents to the HASS server. Is it possible to ignore the default events like “io.homeassistant.companion.android.UPDATE_SENSORS”?

Thanks

if you mean that you registered for a specific intent in the sensor settings then dont go by the state of the sensor, instead go by the event that gets sent to the server.

https://companion.home-assistant.io/docs/integrations/app-events

on because that is a valid state, the sensor state will always reflect that of what caused its last update

Thanks, to clarify: I registered a specific intent in the last update trigger sensor settings. When the intent is sent, I can see the state change in the Home Assistant logbook. I then use an automation that triggers when the “[Device] Last update trigger” entity changes to the ID of the intent.

I want to prevent the last update trigger sensor from reporting any intents other than the ones I registered. The reason is that these events unnecessarily inflate my event log (logbook).

If you only want to trigger on the one specific intent the event is the one you are really after. In fact it may provide more data than just the state as we send all intent data along with the event. Like for example some intents come with an additional value to use like a smartwatch that reports its battery level using an intent.

I dont think you can exclude certain states from the logbook. The sensors primary function is to report the reason for the last update which it is doing. Use the event which is the primary use case of registering the intent as it retrieves all intent data and not just the action update.

Okay, thanks. It would be nice to have more fine-grained control over which intents are forwarded to HA in the future.

If you really want to ignore values create a template sensor and filter out the values you dont care for. This sensor will not change in what it reports as its purpose is to give the reason for the last sensor update.