tomaae / homeassistant-mikrotik_router

Mikrotik router integration for Home Assistant
Apache License 2.0
302 stars 51 forks source link

[Feature] Monitoring of SFP module - temperature, voltage, etc. #349

Closed shaarkys closed 7 months ago

shaarkys commented 7 months ago

Since SFP module is shown already, would it be possible to include some additional data, like those below ? obrazek

Additional context

SFP module gets quite hot without additional cooling, would be great to have some monitoring over it, naturally like other values for some kind of troubleshooting.

Note : I'm able to parse those data via /interface ethernet monitor [find where name="NAME"]

Result :

>                  status: link-ok
>           auto-negotiation: done
>                       rate: 1Gbps
>                full-duplex: yes
>            tx-flow-control: no
>            rx-flow-control: no
>                  supported: 10M-baseT-half,10M-baseT-full,100M-baseT-half,100M-baseT-full
>                advertising: 
>   link-partner-advertising: 
>         sfp-module-present: yes
>                sfp-rx-loss: no
>                   sfp-type: SFP/SFP+/SFP28/SFP56
>         sfp-connector-type: SC
>         sfp-link-length-sm: 20km
>            sfp-vendor-name: HALNy
>     sfp-vendor-part-number: HL-GSFP
>        sfp-vendor-revision: V1.0
>          sfp-vendor-serial: SERIAL
>     sfp-manufacturing-date: 20150525
>             sfp-wavelength: 1310nm
>            sfp-temperature: 38C
>         sfp-supply-voltage: 3.299V
>        sfp-tx-bias-current: 6mA
>               sfp-tx-power: -0.081dBm
>               sfp-rx-power: -12.358dBm
>            eeprom-checksum: good
shaarkys commented 7 months ago

Ah, I see it's available in the attributes, sorry ! ;-)