@kl3m3n
Here are the test results you requested. Everything looks normal to me and there does not appear to be any reason for the CB control to snap back to 100% but it always does.
1.) Reset Nano, and serial prints:
Bluetooth device active, waiting for connections...
2.) Start GUI on phone and serial prints:
Connected!
3.) Click large center connect button of GUI on phone and serial prints:
Parsing . . .
GUI-O app is requesting INITIALIZATION!
and phone displays the Light Off image
4.) Click TAP ME! and serial prints:
Parsing . . .
GUI-O app is requesting LIGHT ON!
Just set CB to 100%
and phone displays Light On image and CB control at 100%.
5.) Tap near the center of CB control and when release the serial prints:
Parsing . . .
GUI-O app requesting Brightness change!
GUI-O app is requesting LIGHT BRIGHTNESS: 45
and the phone displays the CB control at 45% as long as I hold it but when I
release it the LED reduces brightness like it should but the CB control snaps back to 100%.
6.) Trying a 2nd time, tap lower on CB control and when release the serial prints:
Parsing . . .
GUI-O app requesting Brightness change!
GUI-O app is requesting LIGHT BRIGHTNESS: 16
and the phone displays the CB control at 16% as long as I hold it but
when I release it the LED reduces brightness but the CB control snaps back to 100%.
7.) Trying a 3rd time, tap low on CB control and when release the serial prints:
Parsing . . .
GUI-O app requesting Brightness change!
GUI-O app is requesting LIGHT BRIGHTNESS: 5
and the phone displays the CB control at 5% as long as I hold it but
when I release it the LED reduces brightness but the CB control snaps back to 100%.
8.) Exit the GUI on the phone and serial prints:
Disconnected!
9.) Using PC Explorer open in_messages.log file to get:
[2023-09-20T09:13:57.992] @init
[2023-09-20T09:13:57.996] @cls
[2023-09-20T09:13:58.023] @guis BGC:#FFFFFF
[2023-09-20T09:13:58.180] |LB UID:title X:50 Y:15 TXT:"Simple light switch" FFA:"font8" FSZ:3.5
[2023-09-20T09:13:58.239] |LB UID:tap_me X:50 Y:70 TXT:"TAP ME!" FFA:"font8" FSZ:3 FFA:"font5"
[2023-09-20T09:13:58.295] |CB UID:brightness X:50 Y:50 W:90 BTH:5 HAH:8 HAW:8 VIS:0 STA:135 ENA:45 FGC:#000000 SFGC:#FFFF00 BGC:#CBCBCB
[2023-09-20T09:13:58.340] |IM UID:light_off X:50 Y:50 IP:"https://i.imgur.com/3VbsS0Z.png" VIS:1
[2023-09-20T09:13:58.395] |IM UID:light_on X:50 Y:50 IP:"https://i.imgur.com/gNdck9A.png" VIS:0
[2023-09-20T09:14:05.913] @light_off 1
[2023-09-20T09:14:05.913] @light_off VIS:0
[2023-09-20T09:14:05.943] @light_on VIS:1
[2023-09-20T09:14:06.004] @brightness VIS:1 VAL:100
[2023-09-20T09:14:12.333] @brightness 45.8
[2023-09-20T09:14:15.932] @brightness 16.7
[2023-09-20T09:14:19.772] @brightness 5.4
To me the Log shows everything is working correctly but the CB control on the phone always jumps back to 100%.
I have 14 sec video of above but it won't let me upload it (too big).
Hope this helps
Vince