Page 1 of 1
Python Plugin: Ubiquiti UniFi Switch
Posted: Tuesday 07 April 2020 19:04
by Frixzon
UniFi-Switch-PoE-Control-plugin-for-Domoticz
Here is a plugin that I made to control the states of the POE ports on my Unifi switch. The plugin is only tested for Ubiquiti Unifi US-8-60W POE. It creates four switches to control each POE port on your UniFi switch. Possible commands are On / Off. Make sure to turn on SSH in your switch.
Plugin:
https://github.com/Frixzon/UniFi-Switch ... r-Domoticz
Ubiquiti homepage:
https://www.ui.com/unifi-switching/unifi-switch-8/
Hopefully someone more than me will find the plugin helpful.
Re: Python Plugin: Ubiquiti UniFi Switch
Posted: Wednesday 08 April 2020 16:07
by snellejellep
great idea! i will mark this one on my todo list
Re: Python Plugin: Ubiquiti UniFi Switch
Posted: Wednesday 08 April 2020 16:48
by sincze
Whoehoe nice job.
Let's fire up the spare domoticz for this!!
Re: Python Plugin: Ubiquiti UniFi Switch
Posted: Thursday 09 April 2020 19:19
by Frixzon
Glad you find this interesting guys!
Let me know if you face any issues and I will try to fix them.
Re: Python Plugin: Ubiquiti UniFi Switch
Posted: Friday 10 April 2020 13:15
by snellejellep
i have one question, may it be possible to have a switch that tells the controller to block and unblock a user/client from using the internet? that would be useful for automating internet access to the kids without taking down the wifi network
Re: Python Plugin: Ubiquiti UniFi Switch
Posted: Sunday 27 December 2020 12:30
by Jojik1
Hello, can you help me a little?
SHH over Putty is working.
But in Domoticz a problem with Python? How to remove?
2020-12-27 12:31:01.677 Error: Unifi hardware (24) thread seems to have ended unexpectedly
2020-12-27 12:31:06.488 Status: (Unifi) Stop directive received.
2020-12-27 12:31:06.488 Status: (Unifi) Stopping threads.
2020-12-27 12:31:06.488 Status: (Unifi) Stopped.
2020-12-27 12:31:10.211 Status: (Unifi) Started.
2020-12-27 12:31:11.071 Error: (ubiquiti) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/UniFi-Switch-PoE-Control-plugin-for-Domoticz/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.7/dist-packages'.
2020-12-27 12:31:11.072 Error: (Unifi) Module Import failed, exception: 'ModuleNotFoundError'
2020-12-27 12:31:11.072 Error: (Unifi) Module Import failed: ' Name: pexpect'
2020-12-27 12:31:11.072 Error: (Unifi) Error Line details not available.
2020-12-27 12:32:11.698 Error: Unifi hardware (24) thread seems to have ended unexpectedly
2020-12-27 12:32:25.701 Error: Unifi hardware (24) thread seems to have ended unexpectedly