Automation: When press Button on TV Remote control, activate Scene

English:

I want to create an automation that activates a HUE scene when I press a specific button on the remote. Is that possible? I know how to send button commands to the TV but I don’t know how to get the status?

Automation:

  1. when RED button pressed
  2. Activate the Hue scene

Thanks

Deutsch:
ich mochte eine Automation erstellen ,die eine HUE-Szene aktiviert, wenn ich eine bestimmte Taste auf der Fernbedienung drücke. Ist das möglich?

Ich weiß wie ich Button Commands an den Fernsehr sende, jedoch weiß ich nicht, wie ich den Status abrufe?

Automation:

  1. wenn ROT Button gedrückt
  2. Hue Szene aktiven

LG TV: LG webOS Smart TV - Home Assistant

Danke für die Hilfe

You could set up an IR receiver with an ESP to read the button presses.
I don’t have such a TV so I can’t comment on the integration route