@bakuur because hal-device bme don't report battery.charge_level.current when phone is in charging mode you can put one IF in your script Warn: this is not an working code IF not_charging THEN your script ELSE my_proposal my_proposal assumption: battery level rise linear with voltage read battery.voltage.current and make some simple math when this number is close to 4200 this mean battery full we ( all of us ) must find 0 level voltage . my n900 report 3585 right now and battery low maybe is not very accurate this but this is better than nothing better information you can find in bq27200 battery gauge chip but need read on i2c bus second proposal because you run an script your script can alter led currents. is safer than edit mce.ini and the script need one pattern only and can be the default pattern so no mce.ini edit needed. some inspiration here actual script is is miles ahead