#Detect App information
1 messages · Page 1 of 1 (latest)
Have you tried the Network type sensor, the options include a value of VPN. On Android anyway.
I have. I've had my phone connected to vpn whilst i've been out today, but it just shows wifi or cellular.
Do you use a standard android vpn or something like wireguard, it is possible it's not picked up by what ever api the app is using.
i'm using "openVPN for Android"
i'm using this as it wokrs better than the normal openvpn client with a UDMP
so it looks like openvpn for android creates a persistent notification:
data.new_state.attributes["de.blinkt.openvpn_1346787898_is_ongoing"]
this value gets set true if connected.
although i'm not sure the notifications update fast enough for it to be useful in an automation.
It is worth a try, I normally find new notifications come through quite quickly.
should be instant, once you grant the app the special permission the app cant be closed anymore....in fact you may notice things working better in terms of updates
I think app already has full permissions, how do i check this?
If you can enable the sensor it's granted
sorry, if i can enable which sensor?
last notification sensor https://companion.home-assistant.io/docs/core/sensors#last-notification