-
Notifications
You must be signed in to change notification settings - Fork 4
Installation
This guide will walk you through the network prerequisites, switch-side security configurations, and Home Assistant installation steps required to successfully deploy SNMP Switch Manager.
To allow Home Assistant to communicate with your switch, you must enable and configure SNMP (Simple Network Management Protocol) in your switch’s administration panel.
SNMP Switch Manager supports both standard community-based connections and modern secure authentication:
-
SNMP v2c (Community-Based):
- Uses a simple text credential called a Community String.
- Highly compatible and simple to set up.
- Note: community strings are transmitted in cleartext over the local network.
-
SNMP v3 (User-Based Security - Recommended):
- Uses a secure Username/Password configuration with hashing and encryption.
- Supported Security Levels:
-
noAuthNoPriv: Username authentication, no password, no encryption. -
authNoPriv: Username authentication with hashing (HMAC-SHA or HMAC-MD5), no encryption. -
authPriv: Username authentication with hashing AND encryption (CBC-DES).
-
Configure the access permissions of your SNMP community or v3 user according to the features you want to use:
-
Read-Only Access (
ro/ read):- Allows Home Assistant to monitor port states, link speeds, VLAN PVIDs, MAC counts, PoE consumption, CPU/Memory utilization, and temperatures.
-
Read-Write Access (
rw/ write):-
Required for active controls. Allows Home Assistant switch entities to administratively enable/disable ports, toggle per-port PoE power output, and modify port alias descriptions (
ifAlias) permanently on the switch.
-
Required for active controls. Allows Home Assistant switch entities to administratively enable/disable ports, toggle per-port PoE power output, and modify port alias descriptions (
Tip
Network Security Best Practice
If you are using SNMP v2c (cleartext community strings) or wish to secure your network further, restrict your switch’s SNMP access ACL to permit connections only from the static IP address of your Home Assistant host.
Installing via the Home Assistant Community Store (HACS) is the easiest method and provides automatic update notifications:
- In the Home Assistant UI, navigate to HACS → Integrations.
- Click the three dots in the top-right corner and select Custom Repositories.
- Under Repository, enter:
https://github.com/OtisPresley/snmp-switch-manager - Under Category, select Integration, then click Add.
- Find SNMP Switch Manager in the HACS catalog and click Download in the bottom right.
- Restart Home Assistant to load the custom component files.
If you do not use HACS, you can install the files directly into your configuration folder:
- Download the latest release
.zipfile from the GitHub Releases page. - Extract the archive and copy the folder named
custom_components/snmp_switch_managerinto your Home Assistant/config/custom_components/directory. - Ensure your directory structure matches:
config/ └── custom_components/ └── snmp_switch_manager/ ├── __init__.py ├── const.py ├── manifest.json └── ... (other files) - Restart Home Assistant.
Once the integration is installed and Home Assistant is restarted, configure the initial connection to your switch:
- In Home Assistant, go to Settings → Devices & Services.
- Click + Add Integration in the bottom right corner.
- Search for SNMP Switch Manager and select it.
- Complete the initial connection form:
- Host/IP: Enter the reachable IP address or hostname of your switch.
-
Port: Enter the SNMP UDP port (default is
161). -
SNMP Version: Choose between
v2corv3.
- Provide the credentials corresponding to your chosen version:
-
SNMP v2c: Input your community string (e.g.
publicfor read-only or a custom string for write). - SNMP v3: Provide your Username, Security Level, Auth Protocol/Password, and Priv Protocol/Password.
-
SNMP v2c: Input your community string (e.g.
Now that your switch is connected and the initial setup is complete, you should fine-tune your device settings—such as choosing between Attributes or Sensors mode, setting up bandwidth tracking, and configuring custom renaming rules:
-
🖧 GitHub Repository
https://github.com/OtisPresley/snmp-switch-manager -
🐞 Report an Issue
https://github.com/OtisPresley/snmp-switch-manager/issues -
📦 Releases & Changelog
https://github.com/OtisPresley/snmp-switch-manager/releases -
📘 User Documentation (Wiki)
https://github.com/OtisPresley/snmp-switch-manager/wiki
SNMP Switch Manager is a Home Assistant integration for monitoring managed network switches using SNMP.