Most recent activity
I meant we already have the code for the relay, so it shouldn't¹ be too hard to add a button to the App Loader which does the same.
So you could just open the app store in GadgetBridge and press the button to set up a relay.
¹ But nothing is ever easy.
I think it would be very useful.
Another option would be if GagdetBridge could work as IDE relay, that might be easier to add (as first step ;-), because it wouldn't need a console UI inside the app?
Actually, now I wonder if this even needs support from the app, maybe it could just be added to the app store code?
there is also "e.type" but i don't know what is its purpose.
It seems to be undocumented, but exactly what you're looking for:
e.type==0for short press, and
e.type==2for long press.
Edit: Only tested it on my Bangle.js 2, so it might not work on the Bangle.js 1. Also doesn't seem to work in the emulator.
Another solution: I created an app that sends the battery level to Home Assistant, which controls a Shelly plug with the charger.
Looks like it's from the
.substr(1)only finds a handful of matches, and this one has those constants)