Just can't seem to get notifications


#1

I’m new and learning. I wrote a test piston to see if I could get notifications on my phone. I just can’t seem to get it to work. Strangely, the SMS portion worked once and then never again. Pls tell me what I’m doing wrong.

My piston is a IF-Then looking for my physical device “light” to be off and then send a notification and wait, then send an SMS to my phone nuber.


#2

Post a snapshot of your piston by clicking on the green camera.
Logs would be useful to.


#3


#4

I would try changing ‘Light Is Off’ to ‘Light Changes To Off’ as you need a trigger to make it work. See how that goes.


#5

Tried both these mods with no success. But thanks for suggestion.


#6

What do the logs say?


#7

I’m not sure I understand this completely but the logs were empty. So I pressed TEST and got logs. However, since I don’t know how to get dynamic logging, I changed the trigger to lights=Off. Then pressed TEST. This evaluated the condition of light off as false (yet the light was off). I turned the light on and reran the test getting the same evaluation, i.e. it didn’t appear the program is not detecting my light turning off and on.

Answer: ST (SmartThings)/WC (webcore) didn’t detect state of the “light” since I was turning it off and on from outside ST.


#8

To get the logs we want to see, you should start the piston, set the logging to FULL and then Turn the light off.

We want to use the light “changing” to off as the trigger to start the piston. So the light will need to have been ON at some point and then you need to turn it off.

But if you just want to test logging, you could just use a Timer instead.

Every 1 minute
DO
Send your Test Push
Do your delay
Send your test SMS

Just pause the piston when you’re done testing.


#9

Mike see my Answer above. If I light status (i.e. off/on) within smartthings it works. If I change the light using the power outlet app, it doesn’t. I think I get it. Thanks