0

bOS Unifi integration

Joé Schorkops 11 months ago in bOS Configurator / Devices updated by Jürgen Jürgenson 11 months ago 3

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?

+1

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.

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