Clear instructions on Virtual Switches for STHM?


#1

1) Give a description of the problem
I just migrated to the new ST app, and I am trying to get my pistons updated to work with the new limitations. I found a few posts that say you can set up virtual switches, turn those on using webCoRE pistons, then have an Automation in the new ST App change the STHM setting. I have done that, but the STHM is not changing.

Is there some sort of limitation that keeps a virtual switch from triggering STHM changes?

Can someone please share a sample setup (piston and in-app details) that works?

2) What is the expected behaviour?
I want webCoRE pistons to control my STHM, through whatever workaround is needed.

3) What is happening/not happening?
The piston is firing, the switch is being turned on (and then off again), but the STHM setting is not changing. The Automation in the new ST app is set up to change the security mode if the switch is turned on, so I just have the piston turn the switch off after it turns it on to reset it.

4) Post a Green Snapshot of the piston!

5) Attach logs after turning logging level to Full
8/22/2020, 9:24:51 AM +274ms
+1ms ╔Received event [Home].mode = Night with a delay of 106ms
+143ms ║RunTime Analysis CS > 17ms > PS > 61ms > PE > 65ms > CE
+145ms ║Runtime (40046 bytes) successfully initialized in 61ms (v0.3.110.20191009) (143ms)
+146ms ║╔Execution stage started
+153ms ║║Comparison (string) :8160bd0bf9fae83981a4967e1765003e: changes_to (string) :8160bd0bf9fae83981a4967e1765003e: = true (0ms)
+154ms ║║Cancelling condition #15’s schedules…
+155ms ║║Condition #15 evaluated true (5ms)
+156ms ║║Cancelling condition #14’s schedules…
+157ms ║║Condition group #14 evaluated true (state changed) (7ms)
+159ms ║║Cancelling statement #1’s schedules…
+173ms ║║Skipped execution of physical command [Dining room back].off([]) because it would make no change to the device. (5ms)
+174ms ║║Executed [Dining room back].off (7ms)
+182ms ║║Skipped execution of physical command [Dining room front].off([]) because it would make no change to the device. (5ms)
+183ms ║║Executed [Dining room front].off (7ms)
+222ms ║║Executed physical command [Dining Room Main Lights].off() (36ms)
+223ms ║║Executed [Dining Room Main Lights].off (37ms)
+231ms ║║Skipped execution of physical command [Downstairs Bathroom Main Lights].off([]) because it would make no change to the device. (6ms)
+232ms ║║Executed [Downstairs Bathroom Main Lights].off (7ms)
+240ms ║║Skipped execution of physical command [Downstairs Bathroom Vanity Lights].off([]) because it would make no change to the device. (5ms)
+241ms ║║Executed [Downstairs Bathroom Vanity Lights].off (7ms)
+248ms ║║Skipped execution of physical command [Downstairs Hallway Back Lights].off([]) because it would make no change to the device. (4ms)
+249ms ║║Executed [Downstairs Hallway Back Lights].off (6ms)
+276ms ║║Executed physical command [Downstairs Hallway Front Lights].off() (24ms)
+277ms ║║Executed [Downstairs Hallway Front Lights].off (26ms)
+309ms ║║Executed physical command [Front Foyer Main Lights].off() (24ms)
+310ms ║║Executed [Front Foyer Main Lights].off (25ms)
+317ms ║║Skipped execution of physical command [Garage Main Lights].off([]) because it would make no change to the device. (4ms)
+318ms ║║Executed [Garage Main Lights].off (6ms)
+346ms ║║Executed physical command [Kitchen Main Lights].off() (25ms)
+347ms ║║Executed [Kitchen Main Lights].off (27ms)
+453ms ║║Executed physical command [Living Room Floor Lamp].off() (102ms)
+454ms ║║Executed [Living Room Floor Lamp].off (103ms)
+496ms ║║Executed physical command [Living Room Tripod Lamp].off() (39ms)
+497ms ║║Executed [Living Room Tripod Lamp].off (40ms)
+506ms ║║Skipped execution of physical command [Office Accent Light].off([]) because it would make no change to the device. (5ms)
+507ms ║║Executed [Office Accent Light].off (7ms)
+514ms ║║Skipped execution of physical command [Office Main Lights].off([]) because it would make no change to the device. (4ms)
+515ms ║║Executed [Office Main Lights].off (6ms)
+522ms ║║Skipped execution of physical command [Sarah’s Office Main Lights].off([]) because it would make no change to the device. (4ms)
+523ms ║║Executed [Sarah’s Office Main Lights].off (6ms)
+532ms ║║Skipped execution of physical command [TV Bias Light].off([]) because it would make no change to the device. (5ms)
+533ms ║║Executed [TV Bias Light].off (7ms)
+541ms ║║Skipped execution of physical command [Upstairs Hallway Main Lights].off([]) because it would make no change to the device. (5ms)
+542ms ║║Executed [Upstairs Hallway Main Lights].off (7ms)
+544ms ║║Cancelling statement #9’s schedules…
+552ms ║║Skipped execution of physical command [Kitchen Sink Light].on([]) because it would make no change to the device. (4ms)
+553ms ║║Executed [Kitchen Sink Light].on (6ms)
+555ms ║║Cancelling statement #11’s schedules…
+564ms ║║Skipped execution of physical command [Back Door].lock([]) because it would make no change to the device. (5ms)
+565ms ║║Executed [Back Door].lock (6ms)
+573ms ║║Skipped execution of physical command [Front Door].lock([]) because it would make no change to the device. (5ms)
+574ms ║║Executed [Front Door].lock (7ms)
+584ms ║║Skipped execution of physical command [Workshop Door].lock([]) because it would make no change to the device. (6ms)
+585ms ║║Executed [Workshop Door].lock (8ms)
+588ms ║║Cancelling statement #16’s schedules…
+671ms ║║Executed physical command [null].on() (80ms)
+672ms ║║Executed [SHM Switch - Arm Stay].on (82ms)
+706ms ║║Executed physical command [null].off() (31ms)
+706ms ║║Executed [SHM Switch - Arm Stay].off (33ms)
+709ms ║║Cancelling statement #5’s schedules…
+714ms ║║Calculating (string) piston executed at + (string) Sat, Aug 22 2020 @ 9:24:51 AM PDT >> (string) piston executed at Sat, Aug 22 2020 @ 9:24:51 AM PDT
+716ms ║║Executed virtual command setState (0ms)
+733ms ║║Executed virtual command sendPushNotification (13ms)
+735ms ║╚Execution stage complete. (589ms)
+736ms ╚Event processed successfully (736ms)


Smart Home Monitor status on WS200+ Switch LED
#2

Create your virtual switch via the SmartThings IDE devices page. Choose type ‘Simulated Switch’.

In the new ST app, create two automations using the built in ST automations app:

Now your virtual switch will toggle STHM. Instead of using webCoRE to toggle SHM, tell it to turn your virtual switch on/off instead.


Using AlarmState in Lightcontrol
Lights off when Home Monitor Armed Away
#3

Perfect, thanks!