Send Email with Battery Percent


#1

1) Give a description of the problem
Newby here, I would like to add the actual battery percentage when I send my email for low batteries. Thanks so much for your help!

2) What is the expected behaviour?
Email will contain battery percentage

3) What is happening/not happening?
No idea how to add the percentage

**4) Post a Green Snapshot of the piston!

5) Attach logs after turning logging level to Full
(PASTE YOUR LOGS HERE THEN HIGHLIGHT ALL OF THE LOGS AND CLICK ON THE </> ICON TO FORMAT THEM CORRECTLY)


#2

I think this would work for you. It does a push notification, just put message in email. Instead motion sensor 2 put $currentEventDevice


#3

See if you can modify this to email you the variable in the body.


#4

I tried this, unfortunately it doesn’t seem to want to handle more than 1 sensor at a time. So it just sends me the first one.


#5

I am getting the device name, but nothing for battery percent. I tried battLevels as the variable, correct?


#6

What does the piston look like?


#7

Oops, here.


#8

Try it in this format… you might want to adjust the time for testing.


#9

Yep, this did it, thanks so much!!!