Spoken battery levels - variable help

notification
variables

#1

I’m not sure how to do this, but trying to have spoken notifications for when battery levels drop below 30% and not sure if there are existing variables that can be used. I found one named “$currentEventDevice” and wondering what that’s for and if there’s a corresponding one for battery level.

“[$currentEventDevice] battery level is [$currentEventDevice:battery]”

I know how this could be done by specifiying each individual device, but trying to be more efficient. Additionally I’m not sure whether to be using a value, expression, arugment, etc.


#2

How many devices are you monitoring?


#3

For this part of the piston with battery level notifications there’s nine devices so far. If it’s possible to use generic system variables then I’d like to use the same format for other areas, but still very new to using variables and not completely sure how.


#4

This is a piston example someone was asking about before. A rough one but it can be modified to suit your needs. As it is, the battery level it’s looking at is 100 for testing (change it to whatever level you need). The output is only being logged in the console for verification but can be modified to be spoken. Import it and select your devices, and probably add the others in, as I only have 6 on this one for testing. Watch your log for the output.

Oh and I have the timer running every minute since for testing.