#Node-red - Android OpenVPN

1 messages · Page 1 of 1 (latest)

regal hamlet
#

Morning All,
I'm trying to setup an automation to replace tasker on my phone. (i only use it to automatically connect to a VPN when i leave home, and set the sound level when i arrive or leave work.

I'm struggling to get the openVPN connect client to work. I've boiled it down to the following lines, but i think i might have the calls/classes set wrong. This is a call service node, the domain is notify, the service is my mobile device, and this is the formated json data.

{
    "message": "command_activity",
    "data": {
        "intent_extras": "de.blinkt.openvpn.api.profileName:HomeNetwork(1755)",
        "intent_class_name": "de.blinkt.openvpn.api.ConnectVPN",
        "intent_action": "android.intent.action.MAIN"
    }
}```

The action is called, but the phone doesnt do anything. Home Assistant has full permissions on the phone (i'm 99% sure anyway)
but like i said, I think the issue here is the intents. Any help would be appreciated.

Thanks.
regal hamlet
#

{
"message": "command_activity",
"data": {
"intent_package_name": "de.blinkt.openvpn",
"intent_class_name": "de.blinkt.openvpn.api.ConnectVPN",
"intent_action": "android.intent.action.MAIN",
"intent_extras": {
"de.blinkt.openvpn.api.profileName:HomeNetwork(1755)"
}
}
}

This is where i am now, but this is giving a formatting error.