Execute command on Host from HomeAssistant Docker Container

Hi, I was looking for something similar and this was the first google result. Yet, please note a nice alternative with pipes is possible and well explained here. This approach doesn’t required SSH from container to host, which is not ideal on security level.