Thank you for sharing, this is an essential functionality and I am very happy to see it in deviceOS@3.x
I can’t wait to be able to move to the new power management API but my production devices are on the deviceOS@2.x track. I guess this is something I will have to look forward to using sometime in 2022?
Yes, unfortunately, It won’t be implemented in 2.x as LTS has been feature locked.
3.x has been pre-released and thus far behaves very well. It is however the development branch and I am not 100% sure when the next LTS will be released.
Just to clarify - 2.x includes the new Power management API, just not the disable charging feature.