Two questions:
On the same SBC that HA is running on I have an application that uses openvpn.
Ideal for connecting to a site when sourced from the SBC, but not for an external device , like a phone running HA companion to connect to HA on the SBC.
is it possible to use the status of a person, when away , or if a boolean switch is set to mark the person away, to run a script within HA to run a command like systemctl stop openvpn.
I’m not running HA in a VM, container or virtual environment, so /bin/systemctl would be recognised by the OS, and conversely start openvpn when “home”
second question, on the companion settings there is a feature to use an internal url, but its greyed out, is that internal to the local network or device ? if it local network, how can you add the url ??
You could use a shell command to do this:
Thanks, that does look like that would fit the bill,
I’ll play with a script for shutting down openvpn, and restarting it, the latter could be fun to avoid multiple instances occurring, and then call it from the shell command.