Closed V4ler1an closed 3 weeks 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.
Not sure, but might be covered by #206.
cc @Snuffy2
Yes, I believe it should be fixed with #206
@V4ler1an please check if this is working now with v0.3.2
I'm current on 0.3.1 and HA isn't offering me a further update. If this is a beta, what's the recommended update install process please?
I'm current on 0.3.1 and HA isn't offering me a further update. If this is a beta, what's the recommended update install process please?
if you want HA to consider pre-release versions (betas) you need to enable the relevant pre-release integration switch: switch.opnsense_integration_for_home_assistant_pre_release
.
All this is described here: https://hacs.xyz/docs/use/entities/switch/
It's not a beta though. HACS will periodically check for updates to installed integrations. To force a check:
Using 0.3.4 (prod release) I was successully able to:
Restart the entire OpenVPN service using the following, this reinitialised and reconnected both my VPN client connections:
Restart each individual OpenVPN client connection using /1 or /2:
Thanks for fixing this.
Excellent. Thanks for the feedback.
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:
Integration ver: 0.2.0 OPNsense ver: 24.7.3_1