Not receiving SMS Messages


#1

1) Give a description of the problem
Not receiving SMS messages in a newly created piston.

2) What is the expected behavior?
I should receive an SMS message when my dehumidifier is turned off, then another one when it is turned on.

3) What is happening/not happening?
The piston successfully turns on the dehumidifier back on after being off, but I do not receive an SMS notification.

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

5) Attach any logs (From ST IDE and by turning logging level to Full)

_(+1ms	╔Starting piston... (v0.3.104.20180323)_
_+270ms	║╔Subscribing to devices..._
_+293ms	║║Subscribing to BM Dehumidifier.switch..._
_+340ms	║╚Finished subscribing (80ms)_
_+370ms	║Comparison (string) :544a9b992c238a89c379073fefaa7fe1: is_not (string) :d9ffb4c971fcdbf37488d71ae133699a: = true (4ms)_
_+390ms	║Cancelling condition #10's schedules..._
_+399ms	║Comparison (decimal) 41.79 is_greater_than (integer) 0 = true (3ms)_
_+400ms	║Cancelling condition #7's schedules..._
_+417ms	╚Piston successfully started (416ms)_
_5/16/2018, 6:06:05 PM +356ms_
_+2ms	╔Received event [BM Dehumidifier].switch = on with a delay of 619ms_
_+89ms	║RunTime Analysis CS > 15ms > PS > 54ms > PE > 20ms > CE_
_+91ms	║Runtime (39182 bytes) successfully initialized in 54ms (v0.3.104.20180323) (89ms)_
_+92ms	║╔Execution stage started_
_+100ms	║║Comparison (string) :544a9b992c238a89c379073fefaa7fe1: is_not (string) :d9ffb4c971fcdbf37488d71ae133699a: = true (2ms)_
_+101ms	║║Condition #1 evaluated true (5ms)_
_+102ms	║║Condition group #null evaluated true (state did not change) (6ms)_
_+107ms	║║Comparison (enum) on changes_to (string) off = false (0ms)_
_+109ms	║║Cancelling condition #6's schedules..._
_+110ms	║║Condition #6 evaluated false (5ms)_
_+111ms	║║Cancelling condition #2's schedules..._
_+111ms	║║Condition group #2 evaluated false (state changed) (7ms)_
_+117ms	║║Comparison (enum) on changes_to (string) on = true (1ms)_
_+118ms	║║Cancelling condition #10's schedules..._
_+119ms	║║Condition #10 evaluated true (5ms)_
_+127ms	║║Comparison (decimal) 42.84 is_greater_than (integer) 0 = true (1ms)_
_+129ms	║║Condition #11 evaluated true (8ms)_
_+129ms	║║Cancelling condition #7's schedules..._
_+130ms	║║Condition group #7 evaluated true (state changed) (16ms)_
_+132ms	║║Cancelling statement #8's schedules..._
_+150ms	║║Executed virtual command [BM Dehumidifier].sendSMSNotification (12ms)_
_+153ms	║╚Execution stage complete. (61ms)_
_+154ms	╚Event processed successfully (154ms)_
_5/16/2018, 6:05:58 PM +299ms_
_+2ms	╔Received event [BM Dehumidifier].switch = off with a delay of 619ms_
_+88ms	║RunTime Analysis CS > 16ms > PS > 52ms > PE > 19ms > CE_
_+90ms	║Runtime (39184 bytes) successfully initialized in 52ms (v0.3.104.20180323) (88ms)_
_+91ms	║╔Execution stage started_
_+98ms	║║Comparison (string) :544a9b992c238a89c379073fefaa7fe1: is_not (string) :d9ffb4c971fcdbf37488d71ae133699a: = true (2ms)_
_+99ms	║║Condition #1 evaluated true (5ms)_
_+100ms	║║Condition group #null evaluated true (state did not change) (6ms)_
_+105ms	║║Comparison (enum) off changes_to (string) off = true (1ms)_
_+106ms	║║Cancelling condition #6's schedules..._
_+107ms	║║Condition #6 evaluated true (5ms)_
_+108ms	║║Cancelling condition #2's schedules..._
_+109ms	║║Condition group #2 evaluated true (state changed) (6ms)_
_+111ms	║║Cancelling statement #3's schedules..._
_+129ms	║║Executed physical command [BM Dehumidifier].on() (15ms)_
_+130ms	║║Executed [BM Dehumidifier].on (17ms)_
_+155ms	║║Executed virtual command [BM Dehumidifier].sendSMSNotification (20ms)_
_+161ms	║║Comparison (enum) off changes_to (string) on = false (0ms)_
_+163ms	║║Condition #10 evaluated false (4ms)_
_+163ms	║║Condition group #7 evaluated false (state did not change) (5ms)_
_+165ms	║╚Execution stage complete. (75ms)_
_+166ms	╚Event processed successfully (166ms)_

#2

Is your location in the U.S. or other country? If you are in the U.S., did you enter 10 digits with no other characters?


#3

Yeah, I am in the US and entered as 1-XXX-XXXX.

edited Sorry, typed that wrong. The number is correctly entered in the piston with area code… 1-XXX-XXX-XXXX. That was my goof when responding to the question.


#4

I just enter my 10 digit phone number without the country code and without the dashes


#5

Try putting a + in front of the 1.
The number needs to be in E164 format for it to work for me in the UK.
e.g. +44 7777 123 456.


#6

In the U.S., it is not necessary to add the country code (+1) :slight_smile:


#7

Are you missing the area code?


#9

Oh sorry, that was a typo. Yeah, I have the area code in… 1-XXX-XXX-XXXX. I’ll try adding the + and see if it goes through.


#10

I figured as much but just thought I’d ask.

I’d try it liek @jkp suggested. Just the 10 digits with no dashes or a plus up front.


#11

So it the first text randomly started working. Although, I always do not get the second text. Wonder if something is up with SmartThings. I’ll keep testing it out.

+0ms	╔Received event [Home].time = 1526853624410 with a delay of -1067ms
+96ms	║RunTime Analysis CS > 17ms > PS > 55ms > PE > 25ms > CE
+99ms	║Runtime (39303 bytes) successfully initialized in 55ms (v0.3.104.20180323) (98ms)
+100ms	║╔Execution stage started
+123ms	║║Comparison (enum) on is (string) on = true (2ms)
+125ms	║║Condition #10 evaluated true (8ms)
+133ms	║║Comparison (decimal) 43.895 is_greater_than (integer) 0 = true (1ms)
+134ms	║║Cancelling condition #11's schedules...
+135ms	║║Condition #11 evaluated true (10ms)
+136ms	║║Cancelling condition #7's schedules...
+137ms	║║Condition group #7 evaluated true (state changed) (21ms)
+139ms	║║Cancelling statement #8's schedules...
+157ms	║║Executed virtual command [BM Dehumidifier].sendSMSNotification (10ms)
+159ms	║╚Execution stage complete. (59ms)
+161ms	╚Event processed successfully (161ms)
5/20/2018, 6:00:14 PM +510ms
+1ms	╔Received event [BM Dehumidifier].switch = on with a delay of 699ms
+105ms	║RunTime Analysis CS > 21ms > PS > 53ms > PE > 31ms > CE
+107ms	║Runtime (39304 bytes) successfully initialized in 53ms (v0.3.104.20180323) (105ms)
+108ms	║╔Execution stage started
+118ms	║║Comparison (string) :544a9b992c238a89c379073fefaa7fe1: is_not (string) :d9ffb4c971fcdbf37488d71ae133699a: = true (2ms)
+119ms	║║Condition #1 evaluated true (6ms)
+120ms	║║Condition group #null evaluated true (state did not change) (7ms)
+127ms	║║Comparison (enum) on changes_to (string) off = false (1ms)
+128ms	║║Cancelling condition #6's schedules...
+129ms	║║Condition #6 evaluated false (6ms)
+130ms	║║Cancelling condition #2's schedules...
+131ms	║║Condition group #2 evaluated false (state changed) (9ms)
+139ms	║║Comparison (enum) on is (string) on = true (1ms)
+140ms	║║Condition #10 evaluated true (6ms)
+150ms	║║Comparison (decimal) 0.0 is_greater_than (integer) 0 = false (2ms)
+152ms	║║Cancelling condition #11's schedules...
+153ms	║║Condition #11 evaluated false (12ms)
+154ms	║║Cancelling condition #7's schedules...
+155ms	║║Condition group #7 evaluated false (state changed) (20ms)
+158ms	║╚Execution stage complete. (50ms)
+159ms	╚Event processed successfully (159ms)
5/20/2018, 6:00:14 PM +240ms
+1ms	╔Received event [BM Dehumidifier].switch = off with a delay of 730ms
+90ms	║RunTime Analysis CS > 16ms > PS > 52ms > PE > 23ms > CE
+92ms	║Runtime (39308 bytes) successfully initialized in 52ms (v0.3.104.20180323) (90ms)
+93ms	║╔Execution stage started
+103ms	║║Comparison (string) :544a9b992c238a89c379073fefaa7fe1: is_not (string) :d9ffb4c971fcdbf37488d71ae133699a: = true (2ms)
+105ms	║║Condition #1 evaluated true (6ms)
+106ms	║║Condition group #null evaluated true (state did not change) (7ms)
+112ms	║║Comparison (enum) off changes_to (string) off = true (1ms)
+114ms	║║Cancelling condition #6's schedules...
+115ms	║║Condition #6 evaluated true (6ms)
+116ms	║║Cancelling condition #2's schedules...
+117ms	║║Condition group #2 evaluated true (state changed) (8ms)
+119ms	║║Cancelling statement #3's schedules...
+138ms	║║Executed physical command [BM Dehumidifier].on() (14ms)
+138ms	║║Executed [BM Dehumidifier].on (16ms)
+164ms	║║Executed virtual command [BM Dehumidifier].sendSMSNotification (19ms)
+168ms	║║Executed virtual command [BM Dehumidifier].wait (0ms)
+169ms	║║Requesting a wake up for Sun, May 20 2018 @ 6:00:24 PM EDT (in 10.0s)
+175ms	║╚Execution stage complete. (82ms)
+177ms	║Setting up scheduled job for Sun, May 20 2018 @ 6:00:24 PM EDT (in 9.994s)
+268ms	╚Event processed successfully (269ms)