Create a POE switch port as a device?

Posted on
Fri May 06, 2022 3:33 pm
durosity offline
User avatar
Posts: 4320
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Create a POE switch port as a device?

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)

Computer says no.

Posted on
Fri May 06, 2022 7:51 pm
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Create a POE switch port as a device?

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

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests