Hello
Thank you for contacting,
Based on my understanding, you're issue here is getting the status of the I/O using scripts.
Based on my testing, what I do to filter out the status of I/O while custom scripting is
either
iostate1="$(ubus call ioman.gpio.din1 status | grep "value" | cut -c 12)"
if [ "$iostate1" == "1" ]; then
this one basically counts the status reply ie: the 12th character of the "ubus call ioman.gpio.din1 status" would give you the I/O status
or
DI_STATE=$(ubus call ioman.gpio.din2 status| grep value)
if [ "$DI_STATE" == ""value": "1"," ]; then
DELAY=$((DELAY + 1))
this one just compares the output
Thanks
Shahl