Since then I always shut down my machine using the GUI and I have Tmux configured with different colors for SSH sessions.
Since then I always shut down my machine using the GUI and I have Tmux configured with different colors for SSH sessions.
After that I looked up how to enable wake-on-lan and open up a port to be able to do that remotely.
That said, if your device is based on some kind of Espressif ESP32 module, you might be able to find the right four pins on the circuit board and find or cobble together a configuration to talk to the I/O ports. Hardware required is a (usually USB) RS232 interface at 3.3 volts, some medium-thin cables, screwdriver, soldering iron, probably multimeter to check things. The firmware flashing and WiFi setup are fairly independent of the I/O port configuration, so you can flash something that can bring up the WiFi connection and web interface and experiment from there.
Also, it's possible to circumvent it when you have scripts that need to reboot the machine without interaction by issuing `reboot </dev/null` in the script.