Script editor wont let me insert code / actions


#1

Hi, I made the mistake of deleting my CoRE piston before creating my WebCoRE piston. I had played around and had no issues so I deleted it thinking it was working.

I was creating a simple script… check if motion, check time, turn on light either full brightness or partial brightness. The script executes this part no worries.

Then, also check if it went inactive and turn the light off… this has two slightly different checks as I want the light to be on longer/shorter depending on time of day. I am not seeking help with my code (if it is wrong, let me know and I will fix).

My issue is that I keep having challenges with the editor. I have two THEN statements that are empty, no matter what I do (paste code, move code, click new code) it never accepts my actions.

I have saved, gone back to edit, etc… countless times. I can’t finish my segment of code because it wont let me do anything… wondering what i am doing wrong.


#2

Open ST IDE live logging in a different tab. Then go in and try to edit your code again. Save. Then go check the logs for errors.


#3

Any errors in the browser’s console?


#4

Hi All,

Thanks for the quick responses, firstly, output from ST live logging (doesn’t seem to be anything useful):

What I did:

  • Opened ST Live Logs (cleared them)
  • Hit EDIT on the same file as above
  • Tried to paste code into the Then segment, tried to manually add an action - both failed as per the above
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:25 AM: debug createChildDeviceEvent('F01FAF26C682/4', [name:color, value:#FFFFFF, descriptionText:Color has changed, displayed:true])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:25 AM: debug createChildDeviceEvent('F01FAF26C682/4', [name:hue, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:25 AM: debug createChildDeviceEvent('F01FAF26C682/4', [name:level, value:1, descriptionText:Level has changed to 1%])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:25 AM: debug createChildDeviceEvent('F01FAF26C682/4', [name:saturation, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:25 AM: debug createChildDeviceEvent('F01FAF26C682/5', [name:hue, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:25 AM: debug createChildDeviceEvent('F01FAF26C682/4', [name:switch, value:off])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:25 AM: debug createChildDeviceEvent('F01FAF26C682/5', [name:color, value:#FFFFFF, descriptionText:Color has changed, displayed:true])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:25 AM: debug createChildDeviceEvent('F01FAF26C682/5', [name:level, value:100, descriptionText:Level has changed to 100%])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:25 AM: debug createChildDeviceEvent('F01FAF26C682/5', [name:switch, value:on])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:25 AM: debug createChildDeviceEvent('F01FAF26C682/6', [name:color, value:#FFFFFF, descriptionText:Color has changed, displayed:true])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:25 AM: debug createChildDeviceEvent('F01FAF26C682/5', [name:saturation, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:25 AM: debug createChildDeviceEvent('F01FAF26C682/6', [name:saturation, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:25 AM: debug createChildDeviceEvent('F01FAF26C682/6', [name:hue, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:25 AM: debug createChildDeviceEvent('F01FAF26C682/6', [name:level, value:1, descriptionText:Level has changed to 1%])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:25 AM: debug createChildDeviceEvent('F01FAF26C682/7', [name:hue, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:25 AM: debug createChildDeviceEvent('F01FAF26C682/6', [name:switch, value:off])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:24 AM: debug createChildDeviceEvent('F01FAF26C682/10', [name:color, value:#FFFFFF, descriptionText:Color has changed, displayed:true])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:25 AM: debug createChildDeviceEvent('F01FAF26C682/7', [name:color, value:#FFFFFF, descriptionText:Color has changed, displayed:true])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:24 AM: debug createChildDeviceEvent('F01FAF26C682/10', [name:saturation, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:25 AM: debug createChildDeviceEvent('F01FAF26C682/7', [name:saturation, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:24 AM: debug createChildDeviceEvent('F01FAF26C682/7', [name:level, value:1, descriptionText:Level has changed to 1%])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:24 AM: debug createChildDeviceEvent('F01FAF26C682/7', [name:switch, value:off])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:24 AM: debug createChildDeviceEvent('F01FAF26C682/10', [name:level, value:1, descriptionText:Level has changed to 1%])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:24 AM: debug createChildDeviceEvent('F01FAF26C682/10', [name:hue, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:24 AM: debug createChildDeviceEvent('F01FAF26C682/2', [name:saturation, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:24 AM: debug createChildDeviceEvent('F01FAF26C682/10', [name:switch, value:off])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:24 AM: debug createChildDeviceEvent('F01FAF26C682/2', [name:hue, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:24 AM: debug createChildDeviceEvent('F01FAF26C682/3', [name:color, value:#FFFFFF, descriptionText:Color has changed, displayed:true])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:24 AM: debug createChildDeviceEvent('F01FAF26C682/3', [name:saturation, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:24 AM: debug createChildDeviceEvent('F01FAF26C682/2', [name:switch, value:off])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:24 AM: debug createChildDeviceEvent('F01FAF26C682/3', [name:hue, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:24 AM: debug createChildDeviceEvent('F01FAF26C682/3', [name:level, value:1, descriptionText:Level has changed to 1%])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:24 AM: info allHueDevices: [cody, Hub, Dining, Hallway, Bathroom, Night, Lounge]
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:24 AM: debug createChildDeviceEvent('F01FAF26C682/4', [name:saturation, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:24 AM: debug createChildDeviceEvent('F01FAF26C682/4', [name:level, value:1, descriptionText:Level has changed to 1%])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:24 AM: debug createChildDeviceEvent('F01FAF26C682/4', [name:hue, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:24 AM: debug createChildDeviceEvent('F01FAF26C682/7', [name:saturation, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:24 AM: debug createChildDeviceEvent('F01FAF26C682/5', [name:level, value:100, descriptionText:Level has changed to 100%])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:24 AM: debug createChildDeviceEvent('F01FAF26C682/5', [name:switch, value:on])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:24 AM: debug createChildDeviceEvent('F01FAF26C682/6', [name:level, value:1, descriptionText:Level has changed to 1%])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:24 AM: debug createChildDeviceEvent('F01FAF26C682/7', [name:switch, value:off])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:24 AM: debug createChildDeviceEvent('F01FAF26C682/2', [name:color, value:#FFFFFF, descriptionText:Color has changed, displayed:true])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:24 AM: debug createChildDeviceEvent('F01FAF26C682/10', [name:hue, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:24 AM: debug createChildDeviceEvent('F01FAF26C682/10', [name:switch, value:off])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:24 AM: debug createChildDeviceEvent('F01FAF26C682/3', [name:color, value:#FFFFFF, descriptionText:Color has changed, displayed:true])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:24 AM: debug createChildDeviceEvent('F01FAF26C682/3', [name:saturation, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:24 AM: debug createChildDeviceEvent('F01FAF26C682/3', [name:switch, value:off])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:24 AM: info allHueDevices: [cody, Hub, Dining, Hallway, Bathroom, Night, Lounge]
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:24 AM: debug parse() description=index:17, mac:F01FAF26C682, ip:C0A80164, port:0050, headers:SFRUUC8xLjEgMjAwIE9LDQpEYXRlOiBTYXQsIDI2IEF1ZyAyMDE3IDIxOjIyOjExIEdNVA0KQ29udGVudC1UeXBlOiBhcHBsaWNhdGlvbi9qc29uDQpUcmFuc2Zlci1FbmNvZGluZzogY2h1bmtlZA0KU2VydmVyOiBKZXR0eSg5LjMuei1TTkFQU0hPVCk=, body:eyIyIjp7InN0YXRlIjp7Im9uIjpmYWxzZSwiYnJpIjowLCJodWUiOjAsInNhdCI6MCwiZWZmZWN0Ijoibm9uZSIsImN0IjowLCJhbGVydCI6Im5vbmUiLCJyZWFjaGFibGUiOnRydWV9LCJ0eXBlIjoiRGltbWFibGUgbGlnaHQiLCJuYW1lIjoiTG91bmd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dHVyZXJuYW1lIjoiUGhpbGlwcyIsInVuaXF1ZWlkIjoiMDA6MTc6ODg6NUU6RDM6MDUtMDUiLCJzd3ZlcnNpb24iOiI2NjAxMjA0MCJ9LCI2Ijp7InN0YXRlIjp7Im9uIjpmYWxzZSwiYnJpIjowLCJodWUiOjAsInNhdCI6MCwiZWZmZWN0Ijoibm9uZSIsImN0IjowLCJhbGVydCI6Im5vbmUiLCJyZWFjaGFibGUiOnRydWV9LCJ0eXBlIjoiRGltbWFibGUgbGlnaHQiLCJuYW1lIjoiSHViIiwibW9kZWxpZCI6IkxXQjAwNCIsIm1hbnVmYWN0dXJlcm5hbWUiOiJQaGlsaXBzIiwidW5pcXVlaWQiOiIwMDoxNzo4ODo1RTpEMzowNi0wNiIsInN3dmVyc2lvbiI6IjY2MDEyMDQwIn0sIjciOnsic3RhdGUiOnsib24iOmZhbHNlLCJicmkiOjAsImh1ZSI6MCwic2F0IjowLCJlZmZlY3QiOiJub25lIiwiY3QiO...[TRUNCATED]
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:14 AM: debug createChildDeviceEvent('F01FAF26C682/6', [name:color, value:#FFFFFF, descriptionText:Color has changed, displayed:true])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:14 AM: debug createChildDeviceEvent('F01FAF26C682/6', [name:saturation, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/7', [name:saturation, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/7', [name:hue, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/2', [name:saturation, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/7', [name:level, value:1, descriptionText:Level has changed to 1%])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/2', [name:switch, value:off])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/10', [name:hue, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/10', [name:switch, value:off])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/2', [name:level, value:1, descriptionText:Level has changed to 1%])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/2', [name:hue, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/3', [name:color, value:#FFFFFF, descriptionText:Color has changed, displayed:true])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/3', [name:hue, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/3', [name:saturation, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/3', [name:level, value:1, descriptionText:Level has changed to 1%])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: info allHueDevices: [cody, Hub, Dining, Hallway, Bathroom, Night, Lounge]
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/3', [name:switch, value:off])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug parse() description=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xpZ2h0IiwibmFtZSI6IkhhbGx3YXkiLCJtb2RlbGlkIjoiTFdCMDA0IiwibWFudWZhY3R1cmVybmFtZSI6IlBoaWxpcHMiLCJ1bmlxdWVpZCI6IjAwOjE3Ojg4OjVFOkQzOjA0LTA0Iiwic3d2ZXJzaW9uIjoiNjYwMTIwNDAifSwiNSI6eyJzdGF0ZSI6eyJvbiI6dHJ1ZSwiYnJpIjoyNTQsImh1ZSI6MCwic2F0IjowLCJlZmZlY3QiOiJub25lIiwiY3QiOjAsImFsZXJ0Ijoibm9uZSIsInJlYWNoYWJsZSI6dHJ1ZX0sInR5cGUiOiJEaW1tYWJsZSBsaWdodCIsIm5hbWUiOiJCYXRocm9vbSIsIm1vZGVsaWQiOiJMV0IwMDQiLCJtYW51ZmFjdHVyZXJuYW1lIjoiUGhpbGlwcyIsInVuaXF1ZWlkIjoiMDA6MTc6ODg6NUU6RDM6MDUtMDUiLCJzd3ZlcnNpb24iOiI2NjAxMjA0MCJ9LCI2Ijp7InN0YXRlIjp7Im9uIjpmYWxzZSwiYnJpIjowLCJodWUiOjAsInNhdCI6MCwiZWZmZWN0Ijoibm9uZSIsImN0IjowLCJhbGVydCI6Im5vbmUiLCJyZWFjaGFibGUiOnRydWV9LCJ0eXBlIjoiRGltbWFibGUgbGlnaHQiLCJuYW1lIjoiSHViIiwibW9kZWxpZCI6IkxXQjAwNCIsIm1hbnVmYWN0dXJlcm5hbWUiOiJQaGlsaXBzIiwidW5pcXVlaWQiOiIwMDoxNzo4ODo1RTpEMzowNi0wNiIsInN3dmVyc2lvbiI6IjY2MDEyMDQwIn0sIjciOnsic3RhdGUiOnsib24iOmZhbHNlLCJicmkiOjAsImh1ZSI6MCwic2F0IjowLCJlZmZlY3QiOiJub25lIiwiY3QiO...[TRUNCATED]
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/4', [name:hue, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/4', [name:level, value:1, descriptionText:Level has changed to 1%])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/5', [name:color, value:#FFFFFF, descriptionText:Color has changed, displayed:true])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/4', [name:color, value:#FFFFFF, descriptionText:Color has changed, displayed:true])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/5', [name:switch, value:on])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/4', [name:switch, value:off])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/6', [name:switch, value:off])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/6', [name:color, value:#FFFFFF, descriptionText:Color has changed, displayed:true])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/7', [name:hue, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/7', [name:saturation, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/7', [name:level, value:1, descriptionText:Level has changed to 1%])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/10', [name:level, value:1, descriptionText:Level has changed to 1%])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/10', [name:color, value:#FFFFFF, descriptionText:Color has changed, displayed:true])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/10', [name:saturation, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/10', [name:switch, value:off])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/2', [name:color, value:#FFFFFF, descriptionText:Color has changed, displayed:true])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/2', [name:hue, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/2', [name:saturation, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/2', [name:switch, value:off])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/2', [name:level, value:1, descriptionText:Level has changed to 1%])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/3', [name:color, value:#FFFFFF, descriptionText:Color has changed, displayed:true])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/3', [name:saturation, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/3', [name:hue, value:0, descriptionText:Color has changed, displayed:false])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/3', [name:level, value:1, descriptionText:Level has changed to 1%])
cde4b0e5-b4e6-4431-8f36-c07a093e91fe  7:22:13 AM: debug createChildDeviceEvent('F01FAF26C682/3', [name:switch, value:off])

#5

@ady624, good news! the console has an error.

To assist the debug:

  • Opened Chrome Console (cleared it, left it on default debugging levels)
  • Hit EDIT on the same file as above
  • Tried to “Add Action” in the Then segment of the code

Every time I click the “Add Task” button I get the error listed below

TypeError: Cannot read property 's' of undefined
    at b.$scope.updateStatement (webCoRE.min.js:7265)
    at fn (eval at compile (webCoRE.min.js:245), <anonymous>:4:176)
    at e (webCoRE.min.js:289)
    at b.$eval (webCoRE.min.js:153)
    at b.$apply (webCoRE.min.js:153)
    at HTMLButtonElement.<anonymous> (webCoRE.min.js:289)
    at HTMLButtonElement.dispatch (webCoRE.min.js:3)
    at HTMLButtonElement.q.handle (webCoRE.min.js:3)
(anonymous) @ webCoRE.min.js:127
(anonymous) @ webCoRE.min.js:99
$apply @ webCoRE.min.js:153
(anonymous) @ webCoRE.min.js:289
dispatch @ webCoRE.min.js:3
q.handle @ webCoRE.min.js:3

Last piece of informatioin, when I click “Paste this Statement”, I get no errors and nothing happens at all.

I can paste or add actions into other areas of the code without issue.

I also tried “Dragging and Dropping” the code into the Then segment, the code appears to “shift” then disappears completely from the code editor screen.

Chrome console provides the following error message:

TypeError: Cannot read property 'splice' of undefined
    at webCoRE.min.js:511
    at b.$eval (webCoRE.min.js:153)
    at b.$apply (webCoRE.min.js:153)
    at HTMLUnknownElement.<anonymous> (webCoRE.min.js:511)
    at HTMLUnknownElement.dispatch (webCoRE.min.js:3)
    at HTMLUnknownElement.q.handle (webCoRE.min.js:3)
(anonymous) @ webCoRE.min.js:127
(anonymous) @ webCoRE.min.js:99
$apply @ webCoRE.min.js:153
(anonymous) @ webCoRE.min.js:511
dispatch @ webCoRE.min.js:3
q.handle @ webCoRE.min.js:3 

Hope that helps with the debugging, please let me know what other information you’d like.


#6

Could you please try with dev.webcore.co and see where the error is?


#7

Hi, I used the dev.webcove.co (created a new browser login), followed the same steps as above to edit and create a new action in the non-working code.

Google Console gives me the same error when I click “Add a Task” (see below):

TypeError: Cannot read property 'splice' of undefined
    at webCoRE.min.js:511
    at b.$eval (webCoRE.min.js:153)
    at b.$apply (webCoRE.min.js:153)
    at HTMLUnknownElement.<anonymous> (webCoRE.min.js:511)
    at HTMLUnknownElement.dispatch (webCoRE.min.js:3)
    at HTMLUnknownElement.q.handle (webCoRE.min.js:3)
(anonymous) @ webCoRE.min.js:127
(anonymous) @ webCoRE.min.js:99
$apply @ webCoRE.min.js:153
(anonymous) @ webCoRE.min.js:511
dispatch @ webCoRE.min.js:3
q.handle @ webCoRE.min.js:3 

#8

I tried to “add a task” using devices: Location, I get my other error.

TypeError: Cannot read property 's' of undefined
    at b.$scope.updateStatement (piston.module.js:1161)
    at fn (eval at compile (components.min.js:245), <anonymous>:4:176)
    at e (components.min.js:289)
    at b.$eval (components.min.js:153)
    at b.$apply (components.min.js:153)
    at HTMLButtonElement.<anonymous> (components.min.js:289)
    at HTMLButtonElement.dispatch (components.min.js:3)
    at HTMLButtonElement.q.handle (components.min.js:3)
(anonymous) @ components.min.js:127
(anonymous) @ components.min.js:99
$apply @ components.min.js:153
(anonymous) @ components.min.js:289
dispatch @ components.min.js:3
q.handle @ components.min.js:3 

Note: Clicking “Paste this statement” still does nothing.
Note: I did a test, I duplicated the code… deleted the two segments causing me issues… wrote the Then statements… then added the same code above and it works… but in this version I can’t get past the errors above.


#9

That is better now - I will get that fixed (can’t tonight though). Thank you


#10

No worries - just glad I could help find the bug, the new WebCoRE is amazing upgrade over CoRE