Dariusz Kowalczyk
Dariusz Kowalczyk
I have a similar issue. I can turn the light on, but my Shelly 1 device won't turn off."
./bw login email request to https://servername/api/accounts/prelogin failed, reason: self signed certificate /bw -v 1.14.0
For me, the same problem occurs. Platform: Raspbery Pi Zero W OS: Raspbian GNU/Linux 11 (bullseye) Python: Python 3.9.2 (default, Mar 12 2021, 04:06:34) Pillow: 9.0.0 sudo pip3 uninstall pillow...
The battery is not connected. When it is, it discharges very quickly, after several days. However, I will also take measurements when it is powered by the battery.
The current measurement in the off state when powered by the battery gives a result of 12mA.
Please use the mA range on the multimeter.

This program running in python 3 causes memory leakage. https://github.com/darton/RPiMS/blob/master/test/luma_oled-test.py To find out that the program causes memory leaks, I just watched its memory resources in the Top program. Memory...
Everything seems to indicate that SPI on Python 3 with sh1106 device is responsible for memory leaks. SPI + Python3 + st7735 working OK.
You were right. Upgrading Python to version 3.7.3 has solved the problem.