homeassistant-ssh
homeassistant-ssh copied to clipboard
no sensor value for 'docker info'
I never get a sensor info if I try to request the following as commands.
- docker info -f '{{.ContainersStopped}}'
- docker info -f '{{.ContainersRunning}}'
- docker info -f '{{.ContainersPaused}}'
- docker info -f '{{.Containers}}'
I tried the commands via ssh with the user on the machine directly and it worked.
I added the follwing in the config of the ssh integration:
- command: docker info -f '{{.ContainersRunning}}'
scan_interval: 60
sensors:
- type: number name: active container key: active container