I want to achieve the following:
- Create command_line sensor which connects to another docker container (running on the same host homeassistant container is running (HASS OS)) and gets some information
How can I do this? I used this guide to remotely access other SSH servers.
This time everything happens on the same host.
Can homeassistant containers SSH and root SSH be configured so homeassistant container can password-less login to root SSH (host SSH)? From a security point of view not the best way to go I guess.
command: "docker exec addon_a0d7b954_influxdb du -shm /data/influxdb/data/homeassistant | cut -f1"
→ This fails as it is run from HA in homeassistant container - where even no docker command exists. This command works on the root SSH very well.
Workflow I´m thinking about would look like:
HA container → SSH to host → login to another docker container → get information → done
(background: Unreliable InfluxDB size sensor - #34 by e-raser)