PC speaker

Hello!

Should be very easy, but I’m stuck.
Linux host system (Debian), and HA on Docker.

Trying to make “beep” sounds from my PC speaker. On host system its simple, “echo -e ‘\a’” or “printf ‘\a’” makes a beep.

But not under HA. When logging into HA console can run “printf ‘\a’” command, but without any “beep”. “echo -e ‘\a’” - the same. With no errors :-).

Create

shell_command:
  beep1: echo -e '\a'
  beep2: echo -e '\007'
  beep3: printf '\a'
  beep4: printf '\007'

and connect to automation - commands work fine (runs without errors/warnings), but… no beep.

Is there a magic trick to make PC speaker useful with HA? I don’t want to use BT speakers, external PC speakers, media players - just make short “beep” :slight_smile:

Regards!

That shell command is executed in Home Assistants own container and there is no speaker attached.

It will not work.

Thanks!

Any way to use PC speaker?

1 Like