Custom_component for ha-dockermon.
A custom platform which allows you to interact with ha-dockermon.
To get started put /custom_components/hadockermon/switch.py
here:
<config directory>/custom_components/hadockermon/switch.py
Example configuration.yaml:
switch:
platform: hadockermon
host: 192.168.1.50
port: 8126
containers:
- 'NGINX'
- 'ha-dockermon'
Configuration variables:
key | description |
---|---|
platform (Required) | The platform name. |
host (Required) | The IP address of your Docker host running ha-dockermon. |
port (Optional) | The port that the service is exposed on. |
containers (Optional) | A list of containers you want to control, by default it shows all. |
To start using this make sure you have ha-dockermon running.
Due to how custom_components
are loaded, it is normal to see a ModuleNotFoundError
error on first boot after adding this, to resolve it, restart Home-Assistant.