NUT Integration UPSCMD in command line switch

I would like to create a command line switch to be able to control the beeper of my UPS. An example command would be the following:

upscmd -u USER-p PASSWORD eaton5e beeper.disable

switch: 
- platform: command_line
  switches:
    eaton5e_beeper: 
      command_on: 'upscmd -u USER-p PASSWORD eaton5e beeper.enable'
      command_off: 'upscmd -u USER-p PASSWORD eaton5e beeper.disable'

It works fluently, when I execute it in the console of the NUT addon docker container, but in a command line switch I get Unknown Command error.
Is there any simple way to create such a command line switch without sshpass, etc.?
Maybe an Execute Command service for NUT Integration?

For those, who are looking for a solution:

And some explanation:

2 Likes

Solution is now broken due to the update removing the hassio.addon_stdin service - another poster found clarity on the status of the service: Replacement for this service : hassio.addon_stdin - #3 by pergola.fabio

Have you found a new work around since the updates?