ualex73 / monitor_docker

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

Option to in/ex-clude containers for `switchenabled` #113

Closed RoboMagus closed 5 months ago

RoboMagus commented 1 year ago

There is a selection of containers that I'd like to be able to start / stop through HomeAssistant. To avoid the security hassle of potentially disabling critical containers it would be a great addition to allow a list of containers to include (or exclude) from getting a swicht instead of just the boolean option to generate switches for all containers based on switchenabled.

Perhaps this could be done by making the switchenabled parameter accept either a boolean or a dictionary of containers for which the fearure should be enabled?

If you're open to integrate this feature but unable to make time for it I might be able to look into it myself and open up a PR.

hellcry37 commented 1 year ago

up

RoboMagus commented 5 months ago

Closing, as mentioned PR got merged.