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
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.
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:
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/
@Saulius_Saltmeris Please ask them to add status.gpio.input to the documentation.
and any other missing status api values.
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
Hi, may I know how to configure API for UBR lte to get the gpio status