Can't Copy from WebCore to SmartThings "code"


#1

1) Give a description of the problem
I’ve written a simple piston in WebCore, and tested it. I can’t seem to copy the code from WebCore into the “code” field in SmartApps using the “copy piston to clipboard”.

2) What is the expected behaviour?
I expect that the code I’ve generated should be pasted.

3) What is happening/not happening?
Nothing

4) Post a Green Snapshot of the pistonimage

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)
7/19/2019, 10:06:18 PM +863ms
+0ms ╔Received event [Home].test = 1563591978862 with a delay of 1ms
+56ms ║RunTime Analysis CS > 14ms > PS > 30ms > PE > 11ms > CE
+58ms ║Runtime (38981 bytes) successfully initialized in 30ms (v0.3.10e.20190628) (57ms)
+59ms ║╔Execution stage started
+67ms ║║Comparison (string) Away is (string) Home = false (1ms)
+69ms ║║Cancelling condition #2’s schedules…
+70ms ║║Condition #2 evaluated false (7ms)
+71ms ║║Cancelling condition #1’s schedules…
+72ms ║║Condition group #1 evaluated false (state changed) (9ms)
+78ms ║║Comparison (string) Away is (string) Away = true (1ms)
+80ms ║║Cancelling condition #4’s schedules…
+81ms ║║Condition #4 evaluated true (7ms)
+82ms ║║Cancelling condition #3’s schedules…
+83ms ║║Condition group #3 evaluated true (state changed) (9ms)
+86ms ║║Cancelling statement #5’s schedules…
+96ms ║║Executed physical command [VD - Away].on() (7ms)
+98ms ║║Executed [VD - Away].on (9ms)
+100ms ║║Cancelling statement #7’s schedules…
+111ms ║║Executed physical command [VD - Home].off() (8ms)
+112ms ║║Executed [VD - Home].off (10ms)
+115ms ║║Cancelling statement #9’s schedules…
+121ms ║║Skipped execution of physical command [VD - Night].off([]) because it would make no change to the device. (3ms)
+122ms ║║Executed [VD - Night].off (5ms)
+129ms ║║Comparison (string) Away is (string) Night = false (1ms)
+131ms ║║Cancelling condition #12’s schedules…
+132ms ║║Condition #12 evaluated false (7ms)
+133ms ║║Cancelling condition #11’s schedules…
+134ms ║║Condition group #11 evaluated false (state changed) (9ms)
+139ms ║╚Execution stage complete. (80ms)
+140ms ╚Event processed successfully (140ms)
7/19/2019, 10:06:01 PM +273ms
+0ms ╔Received event [Home].test = 1563591961272 with a delay of 1ms
+95ms ║RunTime Analysis CS > 26ms > PS > 49ms > PE > 19ms > CE
+98ms ║Runtime (38981 bytes) successfully initialized in 49ms (v0.3.10e.20190628) (94ms)
+99ms ║╔Execution stage started
+108ms ║║Comparison (string) Home is (string) Home = true (1ms)
+110ms ║║Condition #2 evaluated true (6ms)
+112ms ║║Condition group #1 evaluated true (state did not change) (7ms)
+114ms ║║Cancelling statement #19’s schedules…
+125ms ║║Skipped execution of physical command [VD - Home].on([]) because it would make no change to the device. (3ms)
+126ms ║║Executed [VD - Home].on (6ms)
+129ms ║║Cancelling statement #21’s schedules…
+136ms ║║Skipped execution of physical command [VD - Away].off([]) because it would make no change to the device. (2ms)
+137ms ║║Executed [VD - Away].off (5ms)
+140ms ║║Cancelling statement #23’s schedules…
+148ms ║║Skipped execution of physical command [VD - Night].off([]) because it would make no change to the device. (3ms)
+149ms ║║Executed [VD - Night].off (6ms)
+154ms ║╚Execution stage complete. (55ms)
+156ms ╚Event processed successfully (155ms)

REMOVE BELOW AFTER READING


#2

Why are you trying to copy it there? The Pistons run independently of that. Once you set up a piston, it’s good to go.


#3

I was following the instructions from the wiki. I thought I needed to do this so that I can publish it to my phone for use.


#4

Those instructions are only for installing the webcore smartapp. That particular line you highlighted was only for the piston code which is one of 4 codes users are prompted to install.

When it comes to creating pistons, you create and save and you should be set to go. You don’t paste anything into IDE after that (from your piston to a smartapp in IDE).


#5

jkp, thanks very much for the “eye opener”. I clearly made this harder on myself than I needed to. I didn’t think it could be this easy…I owe you an adult beverage. :+1:


#6

big…thx for the feedback…finally connected the correct dots. It’s much easier than I had thought.:+1: