One problem often seen when writing custom code with RUI3 is that the loop() is used together with api.system.sleep.all(). This is IMHO not the best solution to achieve lowest power consumption and ...