@martin I found the script in the macro itself on the internet. unfortunately my script knowledge is not enough there.
The battery macro refers to the Bluetooth input devices of the 2nd generation.
After but please times in this (complete contribution):