Control volume with Samsung or Amiko (or any other) remote control

Use case: you have a Samsung TV which ouputs audio via its Toslink connector on the back to a Linkplay chipset based network audio amp (eg. Arylic A50+). You normally use either the TV’s own remote, or your set top box remote (in this exampe AMIKO Viper 4K V30) to control the setup and with the TV audio output set to OPTICAL, you want to control audio volume straight on the amp.

The amp, the TV and the STB can be connected to Home Assistant independently of this using their own integrations. Some binary sensors are provided to make possible further automations within Home Assistant (like switch the amp to corrent input when turning on TV, etc)

ESPHome configuration example for this:

Thanks for the sharing. It’s great to see various projects.