Hi again, it seems that amp does not support JSON API or the ssh but only uses the ancient telnet method.
You will have to use the telnet integration.
You should be able to do what you want this way.
Maybe you might want to use buttons instead of switches.
However, If your amp asks for a password with telnet, I don’t know how the telnet integration supports passwords.
I just realized I’m getting this error in the log:
Log details (WARNING)
Logger: homeassistant.helpers.entity
Source: helpers/entity.py:1607
First occurred: 5:12:52 PM (3 occurrences)
Last logged: 5:12:52 PM
* Entity media_player.receiver (<class 'custom_components.media_player_template.media_player.MediaPlayerTemplate'>) is using deprecated supported features values which will be removed in HA Core 2025.1.
Instead it should use <MediaPlayerEntityFeature.PAUSE|SEEK|VOLUME_SET|VOLUME_MUTE|PREVIOUS_TRACK|NEXT_TRACK|TURN_ON|TURN_OFF|VOLUME_STEP|SELECT_SOURCE|STOP|PLAY|SELECT_SOUND_MODE: 89535>,
please create a bug report at https://github.com/Sennevds/media_player.template/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
Apparently there already is an issue posted on the GitHub.
Have you abandoned the project or will you fix it at some point?