@Aaron @slagle this is an offshoot of the problem folks are reporting here:
So with @elekktronix help I isolated the data being returned by ST and for some reason ST is returning “null” for the labels for some routines. Running this code:
location.helloHome?.getPhrases()
returns:
[[id:77d14c8d-072b-4b6f-a74b-d40895899799, label:Set Mode Home, hasSecureActions:false, action:/api/smartapps/installations/77d14c8d-072b-4b6f-a74b-d40895899799/action/execute], [id:0ce15648-afa4-4e68-a63c-6ba9263be934, label:Set Mode Morning, hasSecureActions:false, action:/api/smartapps/installations/0ce15648-afa4-4e68-a63c-6ba9263be934/action/execute], [id:01b6fa49-5e0c-4aed-aa3d-c3856f0fe4ed, label:Good Morning!, hasSecureActions:false, action:/api/smartapps/installations/01b6fa49-5e0c-4aed-aa3d-c3856f0fe4ed/action/execute], [id:f839ddab-184f-4ffd-b772-74cd3b8b1256, label:Goodbye!, hasSecureActions:false, action:/api/smartapps/installations/f839ddab-184f-4ffd-b772-74cd3b8b1256/action/execute], [id:734a1810-f146-4d61-9b7b-254a066fe263, label:Everyone Gone, hasSecureActions:false, action:/api/smartapps/installations/734a1810-f146-4d61-9b7b-254a066fe263/action/execute], [id:af4e610c-7a37-4b8b-9aeb-f08318d15220, label:null, hasSecureActions:false, action:/api/smartapps/installations/af4e610c-7a37-4b8b-9aeb-f08318d15220/action/execute], [id:27cba721-07cd-496c-87e0-755c2630abd6, label:Good Night!, hasSecureActions:false, action:/api/smartapps/installations/27cba721-07cd-496c-87e0-755c2630abd6/action/execute], [id:3c90aba9-f525-439a-bd98-51d4acc093f1, label:I’m Home!, hasSecureActions:true, action:/api/smartapps/installations/3c90aba9-f525-439a-bd98-51d4acc093f1/action/execute], [id:0c37bb61-3bdd-4599-b6c1-6fad2e890ecb, label:Set Mode Away, hasSecureActions:false, action:/api/smartapps/installations/0c37bb61-3bdd-4599-b6c1-6fad2e890ecb/action/execute], [id:bfea7124-ddff-4d77-91fa-175e958c990d, label:Night Time Lights Off, hasSecureActions:true, action:/api/smartapps/installations/bfea7124-ddff-4d77-91fa-175e958c990d/action/execute]]
Did you notice:
[id:af4e610c-7a37-4b8b-9aeb-f08318d15220, label:null, hasSecureActions:false, action:/api/smartapps/installations/af4e610c-7a37-4b8b-9aeb-f08318d15220/action/execute]
Why is ST returning ‘null’ for a routine label? This is ghost routine. Folks have been reporting this since last week.
This brings me to a second issue, on the above if I use:
location.helloHome?.getPhrases()*.label?.sort()
The platform throws an error. Why? The spread operator is supposed to take care of null instances so why isn’t groovy in ST handling this? I tested this code on another groovy platform and it works fine there.
Request your attention to this as it’s impacting more folks each day.