Help with SMS/Notifications not sending correctly


#1

I have the Piston below. It sends out SMS messages just fine. However, in the variable currentEventDevice it sends out the name of my hub not the name of the device.

Does anyone have any idea what I’m doing wrong? Thanks!


#2

I believe, The problem is the currentEventdevice is your hub, because that is what last triggered an event. If you would use an on events statement, then the current event device would be tied to that event you are tracking.

However with all that being said, try this piston. It should do what you are trying to do. You will get a text message for each device that has a low battery defined by your threshold you had set up (40%).


#3

That worked great! Thank you very much!