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.
Python Plugin: Ubiquiti UniFi Switch
Moderator: leecollings
-
- Posts: 14
- Joined: Saturday 13 August 2016 10:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Python Plugin: Ubiquiti UniFi Switch
Last edited by Frixzon on Thursday 09 April 2020 22:16, edited 1 time in total.
-
- Posts: 241
- Joined: Tuesday 16 May 2017 13:05
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: The Neterlands
- Contact:
Re: Python Plugin: Ubiquiti UniFi Switch
great idea! i will mark this one on my todo list
raspberry pi | xiaomi vacuum | yeelight | philips hue | zwave | ubiquiti unifi | harmony | sonoff | zigbee2mqtt | https://www.youtube.com/channel/UC2Zidl ... m1OLuNldfQ
- sincze
- Posts: 1300
- Joined: Monday 02 June 2014 22:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Location: Netherlands / Breda Area
- Contact:
Re: Python Plugin: Ubiquiti UniFi Switch
Whoehoe nice job.
Let's fire up the spare domoticz for this!!
Let's fire up the spare domoticz for this!!
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
-
- Posts: 14
- Joined: Saturday 13 August 2016 10:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Ubiquiti UniFi Switch
Glad you find this interesting guys! Let me know if you face any issues and I will try to fix them.
-
- Posts: 241
- Joined: Tuesday 16 May 2017 13:05
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: The Neterlands
- Contact:
Re: Python Plugin: Ubiquiti UniFi Switch
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
raspberry pi | xiaomi vacuum | yeelight | philips hue | zwave | ubiquiti unifi | harmony | sonoff | zigbee2mqtt | https://www.youtube.com/channel/UC2Zidl ... m1OLuNldfQ
Re: Python Plugin: Ubiquiti UniFi Switch
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
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
Who is online
Users browsing this forum: No registered users and 1 guest