Send a shell command via SSH from HA to a Raspberri Pi

HassOS runs HA in a container.