I don’t think it’s anything to do with those two values being undefined.
I added a line to the rule to log what comes back as deviceresults and this is what it gets:
2019-05-02 21:40:05.384 [INFO ] [smarthome.model.script.deviceresults] - % Total % Received % Xferd Average Speed Time Time
Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:–
–:–:-- 0{“name”:“My
Group”,“groupId”:“5a6a3fbfc211836b17f98f26-5a6a3fbfc211836b17f98f27”,“devices”:[{“deviceId”:“5a6a3fbfc211836b17f98f26-1-3157328472+0”,“name”:“LinkPlus”,“productCode”:“L2”,“featureSets”:[{“featureSetId”:“5a6a3fbfc211836b17f98f26-5a6a3fbfc211836b17f98f2d”,“name”:“LinkPlus”,“features”:[{“featureId”:“5a6a3fbfc211836b17f98f26-1-3157328472+0”,“type”:“currentTime”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-2-3157328472+0”,“type”:“buttonPress”,“writable”:false},{“featureId”:“5a6a3fbfc211836b17f98f26-3-3157328472+0”,“type”:“time”,“writable”:false},{“featureId”:“5a6a3fbfc211836b17f98f26-4-3157328472+0”,“type”:“date”,“writable”:false},{“featureId”:“5a6a3fbfc211836b17f98f26-5-3157328472+0”,“type”:“monthArray”,“writable”:false},{“featureId”:“5a6a3fbfc211836b17f98f26-6-3157328472+0”,“type”:“weekdayArray”,“writable”:false},{“featureId”:“5a6a3fbfc211836b17f98f26-7-3157328472+0”,“type”:“timeZone”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-8-3157328472+0”,“type”:“locationLongitude”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-9-3157328472+0”,“type”:“locationLatitude”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-10-3157328472+0”,“type”:“duskTime”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-11-3157328472+0”,“type”:“dawnTime”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-12-3157328472+0”,“type”:“rgbColor”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-112-3157328472+0”,“type”:“day”,“writable”:false},{“featureId”:“5a6a3fbfc211836b17f98f26-113-3157328472+0”,“type”:“month”,“writable”:false},{“featureId”:“5a6a3fbfc211836b17f98f26-114-3157328472+0”,“type”:“year”,“writable”:false},{“featureId”:“5a6a3fbfc211836b17f98f26-119-3157328472+0”,“type”:“weekday”,“writable”:false}]}],“product”:“L2”,“device”:“LinkPlus”,“desc”:“Central
Hub”,“type”:“lwrfTwoWay_v2”,“cat”:“Hub”,“gen”:2},{“deviceId”:“5a6a3fbfc211836b17f98f26-4-3157328472+0”,“name”:“Test”,“productCode”:“L42”,“featureSets”:[{“featureSetId”:“5a6a3fbfc211836b17f98f26-5a6f8129f97b651e2d50edff”,“name”:“Internet”,“features”:[{“featureId”:“5a6a3fbfc211836b17f98f26-32-3157328472+0”,“type”:“switch”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-33-3157328472+0”,“type”:“outletInUse”,“writable”:false},{“featureId”:“5a6a3fbfc211836b17f98f26-34-3157328472+0”,“type”:“protection”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-35-3157328472+0”,“type”:“power”,“writable”:false},{“featureId”:“5a6a3fbfc211836b17f98f26-36-3157328472+0”,“type”:“energy”,“writable”:false},{“featureId”:“5a6a3fbfc211836b17f98f26-25-3157328472+0”,“type”:“identify”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-26-3157328472+0”,“type”:“reset”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-27-3157328472+0”,“type”:“upgrade”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-28-3157328472+0”,“type”:“diagnostics”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-29-3157328472+0”,“type”:“periodOfBroadcast”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-30-3157328472+0”,“type”:“rgbColor”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-31-3157328472+0”,“type”:“voltage”,“writable”:false}]},{“featureSetId”:“5a6a3fbfc211836b17f98f26-5a6f8129f97b651e2d50ee00”,“name”:“TV
Socket”,“features”:[{“featureId”:“5a6a3fbfc211836b17f98f26-37-3157328472+0”,“type”:“switch”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-38-3157328472+0”,“type”:“outletInUse”,“writable”:false},{“featureId”:“5a6a3fbfc211836b17f98f26-39-3157328472+0”,“type”:“protection”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-40-3157328472+0”,“type”:“power”,“writable”:false},{“featureId”:“5a6a3fbfc211836b17f98f26-41-3157328472+0”,“type”:“energy”,“writable”:false}]}],“product”:“L42”,“device”:“socket”,“desc”:“Smart
Socket”,“type”:“lwrfTwoWay_v2”,“cat”:“Power”,“gen”:2},{“deviceId”:“5a6a3fbfc211836b17f98f26-11-3157328472+0”,“name”:“Test3”,“productCode”:“LW320”,“featureSets”:[{“featureSetId”:“5a6a3fbfc211836b17f98f26-5a8c9651b6fce426e5615ee4”,“name”:“Green
Lamp”,“features”:[{“featureId”:“5a6a3fbfc211836b17f98f26-44-3157328472+0”,“type”:“switch”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-45-3157328472+0”,“type”:“protection”,“writable”:true}]}],“product”:“LW320”,“device”:“socket”,“desc”:“Plug-In
Socket”,“type”:“lwrfOneWay_v1”,“cat”:“Power”,“gen”:1},{“deviceId”:“5a6a3fbfc211836b17f98f26-14-3157328472+0”,“name”:“Out3”,“productCode”:“LW320”,“featureSets”:[{“featureSetId”:“5a6a3fbfc211836b17f98f26-5a8c99a8b6fce426e56237b9”,“name”:“Lava
Lamp”,“features”:[{“featureId”:“5a6a3fbfc211836b17f98f26-46-3157328472+0”,“type”:“switch”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-47-3157328472+0”,“type”:“protection”,“writable”:true}]}],“product”:“LW320”,“device”:“socket”,“desc”:“Plug-In
Socket”,“type”:“lwrfOneWay_v1”,“cat”:“Power”,“gen”:1},{“deviceId”:“5a6a3fbfc211836b17f98f26-23-3157328472+0”,“name”:“New001”,“productCode”:“LW320”,“featureSets”:[{“featureSetId”:“5a6a3fbfc211836b17f98f26-5ab405b39439d716e327c3ec”,“name”:“Outside
Lights”,“features”:[{“featureId”:“5a6a3fbfc211836b17f98f26-42-3157328472+0”,“type”:“switch”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-43-3157328472+0”,“type”:“protection”,“writable”:true}]}],“product”:“LW320”,“device”:“socket”,“desc”:“Plug-In
Socket”,“type”:“lwrfOneWay_v1”,“cat”:“Power”,“gen”:1},{“deviceId”:“5a6a3fbfc211836b17f98f26-24-3157328472+0”,“name”:“Twigs”,“productCode”:“LW320”,“featureSets”:[{“featureSetId”:“5a6a3fbfc211836b17f98f26-5ab407069439d716e32816eb”,“name”:“Twigs”,“features”:[{“featureId”:“5a6a3fbfc211836b17f98f26-48-3157328472+0”,“type”:“switch”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-49-3157328472+0”,“type”:“protection”,“writable”:true}]}],“product”:“LW320”,“device”:“socket”,“desc”:“Plug-In
Socket”,“type”:“lwrfOneWay_v1”,“cat”:“Power”,“gen”:1},{“deviceId”:“5a6a3fbfc211836b17f98f26-25-3157328472+0”,“name”:“Window
Lights”,“productCode”:“LW320”,“featureSets”:[{“featureSetId”:“5a6a3fbfc211836b17f98f26-5ab407849439d716e32836e5”,“name”:“Window
Lights”,“features”:[{“featureId”:“5a6a3fbfc211836b17f98f26-50-3157328472+0”,“type”:“switch”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-51-3157328472+0”,“type”:“protection”,“writable”:true}]}],“product”:“LW320”,“device”:“socket”,“desc”:“Plug-In
Socket”,“type”:“lwrfOneWay_v1”,“cat”:“Power”,“gen”:1},{“deviceId”:“5a6a3fbfc211836b17f98f26-26-3157328472+0”,“name”:“Hall
Lights”,“productCode”:“L22”,“featureSets”:[{“featureSetId”:“5a6a3fbfc211836b17f98f26-5b2ea8c13f97f36a63dac7aa”,“name”:“Hall
Lights”,“features”:[{“featureId”:“5a6a3fbfc211836b17f98f26-58-3157328472+0”,“type”:“switch”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-59-3157328472+0”,“type”:“dimLevel”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-60-3157328472+0”,“type”:“dimSetup”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-61-3157328472+0”,“type”:“protection”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-62-3157328472+0”,“type”:“power”,“writable”:false},{“featureId”:“5a6a3fbfc211836b17f98f26-63-3157328472+0”,“type”:“energy”,“writable”:false},{“featureId”:“5a6a3fbfc211836b17f98f26-52-3157328472+0”,“type”:“identify”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-53-3157328472+0”,“type”:“reset”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-54-3157328472+0”,“type”:“upgrade”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-55-3157328472+0”,“type”:“diagnostics”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-56-3157328472+0”,“type”:“periodOfBroadcast”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-57-3157328472+0”,“type”:“rgbColor”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-124-3157328472+0”,“type”:“bulbSetup”,“writable”:true}]},{“featureSetId”:“5a6a3fbfc211836b17f98f26-5b2ea8c13f97f36a63dac7ab”,“name”:“Landing
Lights 2”,“features”:[{“featureId”:“5a6a3fbfc211836b17f98f26-64-3157328472+0”,“type”:“switch”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-65-3157328472+0”,“type”:“dimLevel”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-66-3157328472+0”,“type”:“dimSetup”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-67-3157328472+0”,“type”:“protection”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-68-3157328472+0”,“type”:“power”,“writable”:false},{“featureId”:“5a6a3fbfc211836b17f98f26-69-3157328472+0”,“type”:“energy”,“writable”:false},{“featureId”:“5a6a3fbfc211836b17f98f26-125-3157328472+0”,“type”:“bulbSetup”,“writable”:true}]}],“product”:“L22”,“device”:“dimmer”,“desc”:“Smart
Dimmer”,“type”:“lwrfTwoWay_v2”,“cat”:“Lighting”,“gen”:2},{“deviceId”:“5a6a3fbfc211836b17f98f26-27-3157328472+0”,“name”:“Upstairs”,“productCode”:“L22”,“featureSets”:[{“featureSetId”:“5a6a3fbfc211836b17f98f26-5b2eaa333f97f36a63db2506”,“name”:“Landing
Lights 1”,“features”:[{“featureId”:“5a6a3fbfc211836b17f98f26-76-3157328472+0”,“type”:“switch”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-77-3157328472+0”,“type”:“dimLevel”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-78-3157328472+0”,“type”:“dimSetup”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-79-3157328472+0”,“type”:“protection”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-80-3157328472+0”,“type”:“power”,“writable”:false},{“featureId”:“5a6a3fbfc211836b17f98f26-81-3157328472+0”,“type”:“energy”,“writable”:false},{“featureId”:“5a6a3fbfc211836b17f98f26-70-3157328472+0”,“type”:“identify”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-71-3157328472+0”,“type”:“reset”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-72-3157328472+0”,“type”:“upgrade”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-73-3157328472+0”,“type”:“diagnostics”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-74-3157328472+0”,“type”:“periodOfBroadcast”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-75-3157328472+0”,“type”:“rgbColor”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-122-3157328472+0”,“type”:“bulbSetup”,“writable”:true}]},{“featureSetId”:“5a6a3fbfc211836b17f98f26-5b2eaa333f97f36a63db2507”,“name”:“Bathroom
Lights”,“features”:[{“featureId”:“5a6a3fbfc211836b17f98f26-82-3157328472+0”,“type”:“switch”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-83-3157328472+0”,“type”:“dimLevel”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-84-3157328472+0”,“type”:“dimSetup”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-85-3157328472+0”,“type”:“protection”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-86-3157328472+0”,“type”:“power”,“writable”:false},{“featureId”:“5a6a3fbfc211836b17f98f26-87-3157328472+0”,“type”:“energy”,“writable”:false},{“featureId”:“5a6a3fbfc211836b17f98f26-123-3157328472+0”,“type”:“bulbSetup”,“writable”:true}]}],“product”:“L22”,“device”:“dimmer”,“desc”:“Smart
Dimmer”,“type”:“lwrfTwoWay_v2”,“cat”:“Lighting”,“gen”:2},{“deviceId”:“5a6a3fbfc211836b17f98f26-28-3157328472+0”,“name”:“Bedroom
Light”,“productCode”:“L21”,“featureSets”:[{“featureSetId”:“5a6a3fbfc211836b17f98f26-5b59e7cd6955591b24a9d698”,“name”:“Bedroom
Light”,“features”:[{“featureId”:“5a6a3fbfc211836b17f98f26-88-3157328472+0”,“type”:“identify”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-89-3157328472+0”,“type”:“reset”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-90-3157328472+0”,“type”:“upgrade”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-91-3157328472+0”,“type”:“diagnostics”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-92-3157328472+0”,“type”:“periodOfBroadcast”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-93-3157328472+0”,“type”:“rgbColor”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-94-3157328472+0”,“type”:“switch”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-95-3157328472+0”,“type”:“dimLevel”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-96-3157328472+0”,“type”:“dimSetup”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-97-3157328472+0”,“type”:“protection”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-98-3157328472+0”,“type”:“power”,“writable”:false},{“featureId”:“5a6a3fbfc211836b17f98f26-99-3157328472+0”,“type”:“energy”,“writable”:false},{“featureId”:“5a6a3fbfc211836b17f98f26-121-3157328472+0”,“type”:“bulbSetup”,“writable”:true}]}],“product”:“L21”,“device”:“dimmer”,“desc”:“Smart
Dimmer”,“type”:“lwrfTwoWay_v2”,“cat”:“Lighting”,“gen”:2},{“deviceId”:“5a6a3fbfc211836b17f98f26-29-3157328472+0”,“name”:“Morning
Room Light”,“productCode”:“L21”,“featureSets”:[{“featureSetId”:“5a6a3fbfc211836b17f98f26-5b5af1ec6955591b24e7a207”,“name”:“Morning
Room Light”,“features”:[{“featureId”:“5a6a3fbfc211836b17f98f26-100-3157328472+0”,“type”:“identify”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-101-3157328472+0”,“type”:“reset”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-102-3157328472+0”,“type”:“upgrade”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-103-3157328472+0”,“type”:“diagnostics”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-104-3157328472+0”,“type”:“periodOfBroadcast”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-105-3157328472+0”,“type”:“rgbColor”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-106-3157328472+0”,“type”:“switch”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-107-3157328472+0”,“type”:“dimLevel”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-108-3157328472+0”,“type”:“dimSetup”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-109-3157328472+0”,“type”:“protection”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-110-3157328472+0”,“type”:“power”,“writable”:false},{“featureId”:“5a6a3fbfc211836b17f98f26-111-3157328472+0”,“type”:“energy”,“writable”:false},{“featureId”:“5a6a3fbfc211836b17f98f26-120-3157328472+0”,“type”:“bulbSetup”,“writable”:true}]}],“product”:“L21”,“device”:“dimmer”,“desc”:“Smart
Dimmer”,“type”:“lwrfTwoWay_v2”,“cat”:“Lighting”,“gen”:2},{“deviceId”:“5a6a3fbfc211836b17f98f26-30-3157328472+0”,“name”:“Christmas
Lights”,“productCode”:“LW320”,“featureSets”:[{“featureSetId”:“5a6a3fbfc211836b17f98f26-5c044a037d7db22a0a43152b”,“name”:“Reading
Lamp”,“features”:[{“featureId”:“5a6a3fbfc211836b17f98f26-115-3157328472+0”,“type”:“switch”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-116-3157328472+0”,“type”:“protection”,“writable”:true}]}],“product”:“LW320”,“device”:“socket”,“desc”:“Plug-In
Socket”,“type”:“lwrfOneWay_v1”,“cat”:“Power”,“gen”:1},{“deviceId”:“5a6a3fbfc211836b17f98f26-31-3157328472+0”,“name”:“Outdoor
Lights”,“productCode”:“LW320”,“featureSets”:[{“featureSetId”:“5a6a3fbfc211836b17f98f26-5c044c037d7db22a0a442beb”,“name”:“Gracies
Star”,“features”:[{“featureId”:“5a6a3fbfc211836b17f98f26-117-3157328472+0”,“type”:“switch”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-118-3157328472+0”,“type”:“protection”,“writable”:true}]}],“product”:“LW320”,“device”:“socket”,“desc”:“Plug-In
Socket”,“type”:“lwrfOneWay_v1”,“cat”:“Power”,“gen”:1},{“deviceId”:“5a6a3fbfc211836b17f98f26-32-3157328472+0”,“name”:“Greenhouse
Light”,“productCode”:“LW380”,“featureSets”:[{“featureSetId”:“5a6a3fbfc211836b17f98f26-5caa2c2a2d87a76677a91bea”,“name”:“Greenhouse
Light”,“features”:[{“featureId”:“5a6a3fbfc211836b17f98f26-126-3157328472+0”,“type”:“switch”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-127-3157328472+0”,“type”:“protection”,“writable”:true}]}],“product”:“LW380”,“device”:“socket”,“desc”:“Plug-In
Socket”,“type”:“lwrfOneWay_v1”,“cat”:“Power”,“gen”:1},{“deviceId”:“5a6a3fbfc211836b17f98f26-33-3157328472+0”,“name”:“Pump”,“productCode”:“LW380”,“featureSets”:[{“featureSetId”:“5a6a3fbfc211836b17f98f26-5caa2cb22d87a76677a91bf3”,“name”:“Pump”,“features”:[{“featureId”:“5a6a3fbfc211836b17f98f26-128-3157328472+0”,“type”:“switch”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-129-3157328472+0”,“type”:“protection”,“writable”:true}]}],“product”:“LW380”,“device”:“socket”,“desc”:“Plug-In
Socket”,“type”:“lwrfOneWay_v1”,“cat”:“Power”,“gen”:1},{“deviceId”:“5a6a3fbfc211836b17f98f26-34-3157328472+0”,“name”:“Garden
Lights”,“productCode”:“LW380”,“featureSets”:[{“featureSetId”:“5a6a3fbfc211836b17f98f26-5caa2d8f2d87a76677a91c13”,“name”:“Garden
Lights”,“features”:[{“featureId”:“5a6a3fbfc211836b17f98f26-130-3157328472+0”,“type”:“switch”,“writable”:true},{“featureId”:“5a6a3fbfc211836b17f98f26-131-3157328472+0”,“type”:“protection”,“writable”:true}]}],“product”:“LW380”,“device”:“socket”,“desc”:"Plug-In
Sock
100 16435 100 16435 0 0 40971 0 --:–:-- --:–:-- --:–:-- 41087
et",“type”:“lwrfOneWay_v1”,“cat”:“Power”,“gen”:1}]}