Page 1 of 1

Create a POE switch port as a device?

PostPosted: Fri May 06, 2022 3:33 pm
by durosity
Is it possible to create an device in indigo that'd represent the PoE on a particular port being On or Off (and be able to turn it on or off) - I specifically want this as it'd be great to be able to publish a few ports to HomeKit to be able to turn on/off the devices they attach to without having to mess about with the unifi app (eg have a trigger to automatically turn off internal Unify Protect cameras when I'm at home)

Create a POE switch port as a device?

PostPosted: Fri May 06, 2022 7:51 pm
by kw123
There are states for each port in a switch device.

The state names are port_xx

The Poe state values can be
#cxx Poex …
#cxy Poe1 …
#cyz Poe0 ….

1 = on ,0= off , x not active

#cxx is the number of clients connected through this port.

So you could trigger on dev/ sate changes and check if eg poe1 is in the string

Karl

Ps each switch has 2 indigo devices
A regular Ip client( UniFi)
And a switch device. You can find them in the UniFi system device folder.


Sent from my iPhone using Tapatalk