Manage host's systemd services from HA supervised

Hi i read number of related topics however with different configuration and/or with no effective solution.

my setup:
raspberry pi4 B
Raspbian 10 Buster
Home Assistant supervised running into docker (used this guide)
HACS

my goal:
manage (stop start restart) systemd services belonging to host (Raspbian 10) from within Home Assistant by clicking some entity’s button.

is it possible in any way?
any workaround?

i know that HA is running into Docker which is a sandbox environment, useful for safe reasons but i wonder if is there any technique to get rid of this limitation.

Install ssh-server in debian.

Configure ssh for passwordless login.

Setup commandline switches in ha to run systemctl over ssh.

1 Like

thanks. that’s a solution.
I will configure passwordless (key) access on debian and then ssh script on HA