Low battery level detection & notification for all battery sensors

Hello. Please tell me what needs to be changed so that messages come with the name of the sensor. For example, the name of the sensor: the temperature outside, and in the message indicates its battery number in the form: Battery158d000208d258 (3 %)