Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] POE out status and power #259

Open
ckiliboz opened this issue Dec 1, 2022 · 2 comments
Open

[Feature] POE out status and power #259

ckiliboz opened this issue Dec 1, 2022 · 2 comments
Labels
enhancement New feature or request planned To be implemented in future release

Comments

@ckiliboz
Copy link

ckiliboz commented Dec 1, 2022

Is your feature request related to a problem? Please describe.

Is it possible to show the poe status/power information for each poe capable port? Existing poe_out attribute doesn't show if poe is powered or not.

Describe the solution you'd like

Values can be fetch with below command and 2 new attributes can be added to the existing port entity

[/interface ethernet poe monitor ether1 as-value once]->"poe-out-status"
[/interface ethernet poe monitor ether1 as-value once]->"poe-out-power"

Describe alternatives you've considered

Additional context

@ckiliboz ckiliboz added the enhancement New feature or request label Dec 1, 2022
@tomaae
Copy link
Owner

tomaae commented Dec 2, 2022

Not sure about this yet, adding docs

MikroTik devices with PoE-Out controller (not injector) provides port monitoring option. /interface ethernet poe monitor [find]

Property | Description
poe-out-power () | Displays PD power consumption
poe-out-voltage () | Displays PoE Voltage which is applied to the PD.
poe-out-current () | Displays port current (mA) which is drawn by the PD.
name () | Name of an interface
poe-out-status () | Shows current PoE-Out status on port

  • powered-on - Power is applied to the port, and PoE-Out is operating normally,
  • waiting-for-load - PSE attempts to detect if power can be applied to the port. For powering there should be resistance in the range from 3kΩ to 26.5kΩ;
  • short-circuit - Short-circuit is detected on PoE-Out port, power is switched off, the only detection with low voltage takes place.
  • overload - The PoE-Out current limit is exceeded, power is switched off on PoE-Out port. For port limits see each model specifications.
  • voltage-too-low - PD can not be powered with the voltage provided from PSE.
  • current-too-low - current-too-low means that PD draws too low current  (<10mA) than normal PoE-Out device should, the reason for this can be:
    The delivered voltage at PD is too low for normal powering (for example Vmin =>30V, but provided 24V);
    PD uses a second power source which has a higher voltage than PSE, so all current is taken from the second DC source, not PSE PoE-Out port;
  • off - all detection and power is turned off for this port;

poe-out () | Shows PoE-Out settings

If power-cycle-ping feature is used, /interface ethernet poe monitor [find] will show additional fields:
power-cycle-host-alive: <YES/NO> (Shows if monitored host is reachable)
power-cycle-after: (Shows time, after which the port will be power-cycled)

@tomaae tomaae added the planned To be implemented in future release label Dec 2, 2022
@tastyllama
Copy link

I would love to see this feature also, it would help to setup automations - EG see if something is getting powered, how much power. Alert if a camera or phone goes down (poe-out-power below a threshold...) or not powering correctly or maybe using too much power. Also for calculations where something is battery powered, in many of our cases when battery power is low, turn off certain ports if power is being used. I'm using your integration to turn on/off using a simple script trigger currently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request planned To be implemented in future release
Projects
None yet
Development

No branches or pull requests

3 participants