Ignition - peplink api

hi,
just wondering … is there a way to get the status of ignition connect on my max bro mini hw3 ? could not find anything in the API documentation … would be very helpful :wink:

I think you can only get the config via config.gpio api command.
I don’t think status is available via api or web interface yet.
I’ll ask again about it.

1 Like

would be very helpful to see the actual ignition status:

  • I am running a home assistant server in my van
  • being able then to automate stuff based on whether van is running or not

what do you mean with config ?

As I understand you would need to use Digital Input sensing. It reads the external input and determines if the settings should be ‘High’ (on) or ‘Low’ (off).

You could see this in event log:
Screenshot 2024-05-14 at 16.23.33
Event log:
|May 14 16:22:46|GPIO: I/O is in High state
|May 14 16:20:56|GPIO: I/O is in Low state

API example: status.gpio.input?

High state:
{
“stat”: “ok”,
“response”: {
“order”: [
2
],
“2”: {
“state”: 1,
“type”: “digital_input”,
“name”: “I/O”,
“enable”: true
}
}

Low state:

{
“stat”: “ok”,
“response”: {
“order”: [
2
],
“2”: {
“state”: 0,
“type”: “digital_input”,
“name”: “I/O”,
“enable”: true
}
}

Router API documentation could be found here: https://www.peplink.com/support/miscellaneous-downloads/

6 Likes

@Saulius_Saltmeris Please ask them to add status.gpio.input to the documentation.
and any other missing status api values.

2 Likes

just to verify => you mean I can directly connect the 12V ignition line into the peplink GPIO and then get the according status (on/off) via the API calls you described in your post