LED widget in the default state

Raspberry private server
device 1 Arduino Mega + eth shield
device 2 wemos d1

The device 2 changes the status of some LED widgets on the mobile phone. Of dafault these LEDs are low. If I turn off the power on the device 2 and the leds are high at that moment, the cell remains high even if the device 2 is switched off. I have not found any way to get the LED widgets back to their default state when device 2 is disconnected. I hope I explained myself

The device running the app (your cell phone) displays the information shown on the server - in this case your local (private server).
The server remembers the last state of the LED that it was updated with by your ‘Device 2”.

If you have different Auth codes on Device 1 and Device 2 then the offline status displayed in your app will show if Device 2 is offline. If it is then you know that the status of the LED is no longer being updated.

Pete.