tomaae / homeassistant-mikrotik_router

Mikrotik router integration for Home Assistant
Apache License 2.0
301 stars 50 forks source link

[Feature] New sensors for Wireguard VPN (RouterOS 7.x) #260

Open goblinmaks opened 1 year ago

goblinmaks commented 1 year ago

As RouterOS 7.x support Wireguard VPN is good to have sensor for monitor it.

tomaae commented 1 year ago

I dont use is, so it may be difficult. I would need api data from working instance.

goblinmaks commented 1 year ago

It just interface with type WireGuard Screenshot_20230101_195803_Chrome

I can provide any information for you if needed.

goblinmaks commented 1 year ago

20230102_130747

tomaae commented 1 year ago

This wont really help me, I need data from API to know correct field names and states.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

goblinmaks commented 1 year ago

@tomaae how I can get this information ? Could you plaese share some information about Mikrotik api protocol or tools to capture this info.

tomaae commented 1 year ago

Not sure yet. I will need to have a look into how it works and what is exposed in mikrotik. For now it looks like its just /interface/wireguard and /interface/wireguard/peers. You can try to look into those using "print terse". Just be sure not to expose any keys it may display.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

goblinmaks commented 1 year ago

image