monitor_docker
monitor_docker copied to clipboard
Group each container as Device
The integration imports just entities which makes it really hard to find the entities you want. HomeAssistant supports grouping as a device.
It would be great if the sensor.py and __ init __ .py are updated to support to see each container as one device and set the container name as device name.
This can be done by doing something like this:
self._attr_device_info = {
"identifiers": {(DOMAIN, self._container_id)},
"name": self._container_name,
"manufacturer": "Docker",
"model": "Container",
}
it seems these three issues are loosely related - one already has a pending PR:
- https://github.com/ualex73/monitor_docker/issues/172 (PR here)
- https://github.com/ualex73/monitor_docker/issues/190
- https://github.com/ualex73/monitor_docker/issues/200