Isaksson / node-red-contrib-unifi

MIT License
51 stars 20 forks source link

setPortProfiles keeps overwriting port_overrides #50

Closed kgalilio closed 3 years ago

kgalilio commented 3 years ago

Hi, What is the best way to implement setPortProfiles? I am trying to enable/disable a LAN port on my switch, but every time the setPortProfiles node is called, the port_overrides reverts to default! I am only interested in changing one port, without disturbing any individual port overrides.

Isaksson commented 3 years ago

That's how it works. You have to send all your changes every time you want to change one port. So if you have modified port 1,2 and 3 and want to modify port 4 from the API then you have to send your changes for port 1-3 and also the new changes for port 4.