Howto read rpi gpio state after reboot

at boot time, the flow may start running before the dashboard connects - so the gpio state may get read and sent before the dashboard is listening.