Hass.io raspbberry --> how to get bash script running?

HI,

I am using a raspberry 4 with hass.io and want to get bash script running.

The idea is from: https://community.home-assistant.io/t/integration-schellenberg/102832/50?u=cubertt
My Problem is:

I have a command that works via ssh plugin but not via bash:

echo “ss119020000” > /dev/ttyACM1

bash file:

echo “init” > /dev/ttyACM0
sleep 1
echo “ss119020000” > /dev/ttyACM0
sleep 1

I want to start the bash script via an automation or a script within homeassistant.

If i try to start the bash script via ssh i get:

Readonly file systeme 1:  /dev/ttyACM0
'leep invalid number 1`
Readonly file systeme 3:  /dev/ttyACM0

Any help would be appriciated

Hope you already found it.

Inside of your SSH command you are using USB device …ACM0 and inside of the bash file …ACM1

1 Like