bOS Unifi integration

Avatar
  • updated

Hello,

I would like to be able to enable / disable POE on my Unifi Switch.

I have already tested with the Rest API, but with that I can only read all device data, but none write.

Via SSH it is possible to change the port status directly on the switch with the command "swctrl poe set auto id 3".

Is it possible to send a SSH command with the bOS? Or is there an alternative?

Avatar
Jürgen Jürgenson
Quote from Joé Schorkops

How should I build the POST command?

I dont own any ubiquiti devices - but some info can be found here - looks for Post data info: https://ubntwiki.com/products/software/unifi-controller/api

But heres a pic for mikroTiks post command

Image 4615

Avatar
Joé Schorkops

How should I build the POST command?

Avatar
Jürgen Jürgenson

Not sure if SSH if possible, but Rest API should work. You need to send it with a POST command. So if the reading port values is working with GET you should try if it responds to POST commands.