ualex73 / monitor_docker

Monitor Docker containers from Home Assistant
Apache License 2.0
267 stars 34 forks source link

Feature Request: Allow combining conditions for containers into single entity, without having to enable everything (e.g. allinone) #90

Closed raetha closed 2 years ago

raetha commented 2 years ago

The current configuration for monitor_conditions appears that if you do "allinone" to get the single entity for each container, also forces all other monitors on, including the host ones for container counts, CPU, memory, etc.

It may be a rare use case, but I'm primarily interested in just a subset of values for each container (health, image, state, status). It would be ideal if there was a configuration setting that would allow those to be combined into a single entity, without having to enable everything.

Maybe something like "single_container_sensor".

Thanks for considering.

raetha commented 2 years ago

Closing issue, did one last test after reading the code including allinone along with just specific monitors and it worked as desired. Only real note is that it might be worth adding something to the documentation that implies allinone can be combined with limited conditions rather than everything.