Use -a switch to get state set in another process.
OPTIONS -a, --as-is leave the line direction unchanged, not forced to input
https://manpages.debian.org/experimental/gpiod/gpioget.1.en.html