Automation based on Debuglog

I’m trying to set up a trigger for a new automatisation based on a debug log entry as I do not have a status/attribute for it.

2024-01-18 14:00:30.470 INFO (MainThread) [aiopioneer.pioneer_avr] Global: audio.output_channels.SW: active (0501111110001000000000000111110001000000000012400000000)

So in case it is in status active the automation should start.

Any idea how I can realise it?

If it creates a log then it probably generates an event.

You can use that event in a triggered template sensor.

https://www.home-assistant.io/docs/automation/trigger/#event-trigger

https://www.home-assistant.io/integrations/template/#trigger-based-template-binary-sensors-buttons-images-numbers-selects-and-sensors

Hi Tom,

many thanks for your quik reply.

If it generates an event, then I should be able to see it via the event bus, right? Unfortunately this is not the case.