- Use HACS, in
HACS > Integrations > Explore & Add Repositories
search for "NPM Switches". - Restart Home Assistant.
or in the HA UI go to "Configuration" -> "Integrations" click "+" and search for "NPM Switches".
- Use the tool of choice to open the directory (folder) for your HA configuration (where you find
configuration.yaml
). - If you do not have a
custom_components
directory (folder) there, you need to create it. - Download this repository's files.
- Move or Copy the entire
npm_switches/
directory (folder) in your HAcustom_components
directory (folder). End result should look likecustom_components/npm_switches/
. - Restart Home Assistant.
or in the HA UI go to "Configuration" -> "Integrations" click "+" and search for "NPM Switches".
'NPM Switches' offers integration with a local Nginx Proxy Manager server/instance. It will login into and retrieve a token from the NPM server every 24 hours. This token is used to query the state of each proxy host every 60 seconds. It is also used to enable or disable a proxy host via local api call to the NPM server.
This integration provides the following entities:
- Switches - One switch for every proxy host that is configured
- Optional Switches: Redirection Hosts, Streams, 404 Hosts
- Sensors:
- Number of enabled and disabled proxy hosts (and, if enabled during configuration, redirection, stream, and 404 hosts)
- Buttons:
- Renew certificate buttons
Features to be developed:
- Truly unique Unique IDs
- Reconfiguration of an entry should the NPM url or login info change
- Better error messages on failed configuration
If you want to contribute to this please read the Contribution guidelines
Component built with integration_blueprint.