jens-maus / node-unifi

NodeJS class for querying/controlling a UniFi-Controller (UDM-Pro, UDM-SE, UDM, UDR, UDW, CloudKey Gen1/Gen2) from Ubiquiti (www.ui.com)
MIT License
140 stars 50 forks source link

setDeviceSettingsBase restarts UniFi Flex #207

Open breaknanger opened 1 year ago

breaknanger commented 1 year ago

I have a launchd script that runs every two hours to turn POE on and off. This script runs on my UniFi USW-Pro-24-PoE without it power cycling the entire switch; however, running the same script on the USW-Flex causes it to restart the entire switch. Is this unavoidable, or is there a different command I could use when interacting with the USW-Flex via API? I am using the script provided in this library.

https://github.com/jens-maus/node-unifi/blob/master/examples/poe-switch-onoff.js

jens-maus commented 1 year ago

Just have a look in your UniFi Network environment app or the smartphone app. If there the same happens when you switch on/off a certain PoE port then there is nothing node-unifi can do differently. Or if you cannot switch on/off individual PoE settings in these official unifi apps, then switching individual PoE ports on/off of the USW-Flex is simply not supported.

breaknanger commented 1 year ago

I’ll test this tomorrow and let you know the results.

jens-maus commented 1 year ago

Please refrain from Answering via email because all your mail reply text including your private information is now visible on github! GitHub notification mails should not be answered in your mail client but you should always use the web interface or github app instead..

breaknanger commented 1 year ago

Thanks for the heads up, fixed it