elad-bar / ha-edgeos

Integration with EdgeOS (Ubiquiti)
133 stars 24 forks source link

Suggestions on more sensors #50

Open johnnny1337 opened 3 years ago

johnnny1337 commented 3 years ago

Some suggestions for more sensors if it is possible to add.

"show dns dynamic status" "show vpn remote-access" "show system memory"

elad-bar commented 3 years ago

Those are ssh commands which are not used by the integration, if the data is available over the rest / websocket api i can add it

johnnny1337 commented 3 years ago

I am not good in using either of those but I managed to test the rest api and my suggestions seems not available.

Thank you anyway!

argoeng commented 2 years ago

I don't know if "firmware update available" is present in the API but it can be useful. Thank you.

alvinchen1 commented 2 years ago

Hi! I have a openvpn VPN tunnel (vtun0) that I want to be able to disable and reenable when it's acting up. How about a switch to turn it on/off?

https://ubntwiki.com/products/software/edgeos/api there appears to be a CLI which you mention above.

The CLI for getting an interface would be

show interfaces

The presence of disabled would indicate the interface is off.
And disabling one would require both the type and the number e.g.

To Turn Off set interfaces openvpn vtun0 disable

To Turn On set interfaces openvpn vtun0 enable

Of course, this would likely for for any interface as long as you had both the type and the identifier.

elad-bar commented 1 year ago

all interface types (but loopback) will be supported from v2.0.13, memory is support, what do you expect to see with dynamic dns and remote access?