travisghansen / hass-opnsense

OPNsense integration with Home Assistant
204 stars 27 forks source link

Openvpn service restart only restarts one client connection #171

Open V4ler1an opened 1 week ago

V4ler1an commented 1 week ago

I'd like to use Home Assistant to restart both my Openvpn client connections when needed. I run them together in a failover gateway group.

I notice this integration provides an Openvpn service status switch. But when I either toggle it off manually, or use the opnsense.restart_service action, it only reconnects one of the clients. Always the same one. How might I get it to work on both client connections?

Here's the yaml I tried: image

Integration ver: 0.2.0 OPNsense ver: 24.7.3_1

V4ler1an commented 6 days ago

Found out how to do this directly using the OPNsense REST API (Start, stop and restart each individual OpenVPN client connection). But it would be nice if we could do this through your integration.