A Domoticz plugin that creates four switches to control each POE port on your UniFi Switch US-8. Possible commands are On / Off.
- Make sure to turn on SSH in your switch: https://community.ui.com/questions/SSH-to-unifi-switches/2d179c83-fe11-4770-8c53-2f59bc4f5a5e
- Rrequests libary for Python 3: https://pypi.org/project/requests/
- pxssh libary for Python 3: https://pypi.org/project/pexpect/
- Clone repository into your Domoticz plugins folder
cd domoticz/plugins git clone https://github.com/Frixzon/UniFi-Switch-PoE-Control-plugin-for-Domoticz.git
- Restart domoticz
sudo service domoticz.sh restart
- Make sure that "Accept new Hardware Devices" is enabled in Domoticz settings
- Go to "Hardware" page
- Enter the Name
- Select Type:
UniFi Switch - POE Control
- Click
Add
- Go to plugin folder and pull new version
cd domoticz/plugins/UniFi-Switch-PoE-Control-plugin-for-Domoticz git pull
- Restart domoticz
sudo service domoticz.sh restart
The following devices are created:
Type | Name | Description |
---|---|---|
Switch | Ubnt Switch - PoE # | Can turn On or Off the POE on the specific port number |