isEmpty not working on Expression


#1

1) Give a description of the problem
Having problems with creating an expression with isEmpty to look at a DateTime List correctly to see if an item on the list is empty. The issue is on the every 1 minute section of the piston only if the tile doesn’t have an entry on the date/time list.

2) What is the expected behavior?
This expression should be displaying on the footer of the Piston Tile either No Event Yet if there’s no entry on the date/time list or display the Date/time using the provided format.

Expression I’m using is this:
isEmpty(tileTime[tile]) ? ‘No Event Yet’ : {formatDateTime(tileTime[tile], {DateTimeFormula})}

I’ve tried doing this expression a few ways and even reversed around the No Event Yet’ and the {formatDateTime(tileTime[tile], {DateTimeFormula})} sections.

3) What is happening/not happening?
Currently it’s displaying the current date/time whenever there’s no entry in the date/time list. I’ve tried the expression several ways and even in the Evaluation console the date/time lists display correctly.

Evaluation console showing the correct values for the list entry 1 and 3:
image

Date/Time List on variables section showing only 1 entry on number 3:
image

Piston Tiles, the Kitchen Window correctly shows correct time but the other tiles should be showing No Event Yet instead of the date/time:
image

4) Post a Green Snapshot of the pistonimage
Note: I only set to 1 minute for the timer for testing only

5) Attach any logs (From ST IDE and by turning logging level to Full)
10/23/2017, 4:10:11 PM +519ms +0ms ╔Received event [Home].time = 1508789411593 with a delay of -75ms +400ms ║RunTime Analysis CS > 196ms > PS > 101ms > PE > 103ms > CE +415ms ║Runtime (55685 bytes) successfully initialized in 101ms (v0.2.0fa.20171011) (414ms) +416ms ║╔Execution stage started +440ms ║║Calculating (integer) 7 + (integer) 1 >> (integer) 8 +459ms ║║Cancelling statement #208's schedules... +471ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1 +476ms ║║Executed virtual command setVariable (3ms) +498ms ║║Calculating (string) closed == (string) open >> (boolean) false +517ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false +526ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false +530ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false +547ms ║║Calculating (string) closed == (string) open >> (boolean) false +552ms ║║Executed virtual command setTile (1ms) +560ms ║║Cancelling statement #208's schedules... +573ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2 +578ms ║║Executed virtual command setVariable (3ms) +601ms ║║Calculating (string) closed == (string) open >> (boolean) false +621ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false +632ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false +636ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false +656ms ║║Calculating (string) closed == (string) open >> (boolean) false +662ms ║║Executed virtual command setTile (1ms) +674ms ║║Cancelling statement #208's schedules... +690ms ║║Calculating (integer) 2 + (integer) 1 >> (integer) 3 +695ms ║║Executed virtual command setVariable (3ms) +723ms ║║Calculating (string) closed == (string) open >> (boolean) false +743ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false +752ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false +756ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false +773ms ║║Calculating (string) closed == (string) open >> (boolean) false +779ms ║║Executed virtual command setTile (2ms) +788ms ║║Cancelling statement #208's schedules... +802ms ║║Calculating (integer) 3 + (integer) 1 >> (integer) 4 +807ms ║║Executed virtual command setVariable (3ms) +829ms ║║Calculating (string) closed == (string) open >> (boolean) false +849ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false +857ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false +862ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false +878ms ║║Calculating (string) closed == (string) open >> (boolean) false +883ms ║║Executed virtual command setTile (1ms) +892ms ║║Cancelling statement #208's schedules... +909ms ║║Calculating (integer) 4 + (integer) 1 >> (integer) 5 +914ms ║║Executed virtual command setVariable (2ms) +935ms ║║Calculating (string) closed == (string) open >> (boolean) false +956ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false +964ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false +968ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false +984ms ║║Calculating (string) closed == (string) open >> (boolean) false +989ms ║║Executed virtual command setTile (1ms) +998ms ║║Cancelling statement #208's schedules... +1015ms ║║Calculating (integer) 5 + (integer) 1 >> (integer) 6 +1022ms ║║Executed virtual command setVariable (5ms) +1044ms ║║Calculating (string) closed == (string) open >> (boolean) false +1064ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false +1072ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false +1076ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false +1093ms ║║Calculating (string) closed == (string) open >> (boolean) false +1098ms ║║Executed virtual command setTile (1ms) +1107ms ║║Cancelling statement #208's schedules... +1123ms ║║Calculating (integer) 6 + (integer) 1 >> (integer) 7 +1127ms ║║Executed virtual command setVariable (3ms) +1149ms ║║Calculating (string) closed == (string) open >> (boolean) false +1168ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false +1176ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false +1181ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false +1197ms ║║Calculating (string) closed == (string) open >> (boolean) false +1202ms ║║Executed virtual command setTile (1ms) +1206ms ║║Cancelling statement #216's schedules... +1211ms ║║Executed virtual command setVariable (3ms) +1227ms ║║Calculating (integer) 7 + (integer) 1 >> (integer) 8 +1232ms ║║Cancelling statement #219's schedules... +1235ms ║║Executed virtual command clearTile (1ms) +1250ms ║║Calculating (integer) 7 + (integer) 1 >> (integer) 8 +1255ms ║║Cancelling statement #219's schedules... +1258ms ║║Executed virtual command clearTile (0ms) +1274ms ║║Calculating (integer) 7 + (integer) 1 >> (integer) 8 +1278ms ║║Cancelling statement #219's schedules... +1282ms ║║Executed virtual command clearTile (1ms) +1296ms ║║Calculating (integer) 7 + (integer) 1 >> (integer) 8 +1301ms ║║Cancelling statement #219's schedules... +1305ms ║║Executed virtual command clearTile (0ms) +1319ms ║║Calculating (integer) 7 + (integer) 1 >> (integer) 8 +1324ms ║║Cancelling statement #219's schedules... +1327ms ║║Executed virtual command clearTile (0ms) +1342ms ║║Calculating (integer) 7 + (integer) 1 >> (integer) 8 +1346ms ║║Cancelling statement #219's schedules... +1350ms ║║Executed virtual command clearTile (1ms) +1365ms ║║Calculating (integer) 7 + (integer) 1 >> (integer) 8 +1370ms ║║Cancelling statement #219's schedules... +1373ms ║║Executed virtual command clearTile (1ms) +1388ms ║║Calculating (integer) 7 + (integer) 1 >> (integer) 8 +1394ms ║║Cancelling statement #219's schedules... +1399ms ║║Executed virtual command clearTile (1ms) +1414ms ║║Calculating (integer) 7 + (integer) 1 >> (integer) 8 +1419ms ║║Cancelling statement #219's schedules... +1423ms ║║Executed virtual command clearTile (1ms) +1427ms ║╚Execution stage complete. (1010ms) +1428ms ║Setting up scheduled job for Mon, Oct 23 2017 @ 4:11:11 PM EDT (in 58.646s) +1494ms ╚Event processed successfully (1495ms)


#2

Not sure if I’m formatting this correctly but isEmpty is showing false which is the issue:

image

Only list number 3 has values so number 1 and 2 should be true.

image


#3

Anyone have any ideas?


#4

I found an expression that works but only when there’s no events at all: if(int(tileTime[tile]) == 0, ‘No Event Yet’, {formatDateTime(tileTime[tile], {DateTimeFormula})})

Problem though is once there’s an event on one device, it’s putting the timestamps on the rest of the tiles instead of staying with the No Event Yet status.


#5

try this:

if(tileTime[tile] == $args.null, ‘No Event Yet’, {formatDateTime(tileTime[tile], {DateTimeFormula})})


#6

That didn’t work either, showing at 12:00 AM for the timestamp instead of displaying No Event Yet. I think I’m tried 20 other ways as well but haven’t found anything that works on that section of the piston. I even duplicated the piston below and deleted the old one which is why they are all 12:00 AM

image

Logs:

10/26/2017, 10:10:27 PM +632ms
+1ms	╔Received event [Home].time = 1509070228406 with a delay of -774ms
+346ms	║RunTime Analysis CS > 24ms > PS > 265ms > PE > 56ms > CE
+360ms	║Runtime (55470 bytes) successfully initialized in 265ms (v0.2.0fb.20171026) (358ms)
+361ms	║╔Execution stage started
+392ms	║║Calculating (integer) 7 + (integer) 1 >> (integer) 8
+412ms	║║Cancelling statement #208's schedules...
+417ms	║║Calculating (integer) 0 + (integer) 1 >> (integer) 1
+422ms	║║Executed virtual command setVariable (3ms)
+452ms	║║Calculating (string) closed == (string) open >> (boolean) false
+461ms	║║Calculating (datetime) 0 == (dynamic) null >> (boolean) false
+475ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+489ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+494ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+794ms	║║Calculating (string) closed == (string) open >> (boolean) false
+800ms	║║Executed virtual command setTile (1ms)
+811ms	║║Cancelling statement #208's schedules...
+816ms	║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+820ms	║║Executed virtual command setVariable (2ms)
+842ms	║║Calculating (string) closed == (string) open >> (boolean) false
+851ms	║║Calculating (datetime) 0 == (dynamic) null >> (boolean) false
+865ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+874ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+879ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+895ms	║║Calculating (string) closed == (string) open >> (boolean) false
+901ms	║║Executed virtual command setTile (1ms)
+910ms	║║Cancelling statement #208's schedules...
+915ms	║║Calculating (integer) 2 + (integer) 1 >> (integer) 3
+919ms	║║Executed virtual command setVariable (2ms)
+942ms	║║Calculating (string) closed == (string) open >> (boolean) false
+950ms	║║Calculating (datetime) 0 == (dynamic) null >> (boolean) false
+964ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+973ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+977ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+993ms	║║Calculating (string) closed == (string) open >> (boolean) false
+998ms	║║Executed virtual command setTile (1ms)
+1007ms	║║Cancelling statement #208's schedules...
+1012ms	║║Calculating (integer) 3 + (integer) 1 >> (integer) 4
+1017ms	║║Executed virtual command setVariable (2ms)
+1038ms	║║Calculating (string) closed == (string) open >> (boolean) false
+1047ms	║║Calculating (datetime) 0 == (dynamic) null >> (boolean) false
+1061ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+1071ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+1075ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+1092ms	║║Calculating (string) closed == (string) open >> (boolean) false
+1098ms	║║Executed virtual command setTile (2ms)
+1108ms	║║Cancelling statement #208's schedules...
+1114ms	║║Calculating (integer) 4 + (integer) 1 >> (integer) 5
+1119ms	║║Executed virtual command setVariable (2ms)
+1142ms	║║Calculating (string) closed == (string) open >> (boolean) false
+1150ms	║║Calculating (datetime) 0 == (dynamic) null >> (boolean) false
+1165ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+1174ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+1179ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+1195ms	║║Calculating (string) closed == (string) open >> (boolean) false
+1200ms	║║Executed virtual command setTile (1ms)
+1210ms	║║Cancelling statement #208's schedules...
+1214ms	║║Calculating (integer) 5 + (integer) 1 >> (integer) 6
+1218ms	║║Executed virtual command setVariable (2ms)
+1241ms	║║Calculating (string) closed == (string) open >> (boolean) false
+1249ms	║║Calculating (datetime) 0 == (dynamic) null >> (boolean) false
+1262ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+1271ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+1275ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+1291ms	║║Calculating (string) closed == (string) open >> (boolean) false
+1296ms	║║Executed virtual command setTile (1ms)
+1305ms	║║Cancelling statement #208's schedules...
+1310ms	║║Calculating (integer) 6 + (integer) 1 >> (integer) 7
+1314ms	║║Executed virtual command setVariable (2ms)
+1335ms	║║Calculating (string) closed == (string) open >> (boolean) false
+1344ms	║║Calculating (datetime) 0 == (dynamic) null >> (boolean) false
+1357ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+1366ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+1370ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+1386ms	║║Calculating (string) closed == (string) open >> (boolean) false
+1391ms	║║Executed virtual command setTile (1ms)
+1395ms	║║Cancelling statement #216's schedules...
+1400ms	║║Executed virtual command setVariable (2ms)
+1415ms	║║Calculating (integer) 7 + (integer) 1 >> (integer) 8
+1420ms	║║Cancelling statement #219's schedules...
+1424ms	║║Executed virtual command clearTile (1ms)
+1439ms	║║Calculating (integer) 7 + (integer) 1 >> (integer) 8
+1443ms	║║Cancelling statement #219's schedules...
+1447ms	║║Executed virtual command clearTile (1ms)
+1461ms	║║Calculating (integer) 7 + (integer) 1 >> (integer) 8
+1466ms	║║Cancelling statement #219's schedules...
+1470ms	║║Executed virtual command clearTile (0ms)
+1484ms	║║Calculating (integer) 7 + (integer) 1 >> (integer) 8
+1489ms	║║Cancelling statement #219's schedules...
+1493ms	║║Executed virtual command clearTile (0ms)
+1510ms	║║Calculating (integer) 7 + (integer) 1 >> (integer) 8
+1515ms	║║Cancelling statement #219's schedules...
+1519ms	║║Executed virtual command clearTile (0ms)
+1534ms	║║Calculating (integer) 7 + (integer) 1 >> (integer) 8
+1539ms	║║Cancelling statement #219's schedules...
+1543ms	║║Executed virtual command clearTile (0ms)
+1557ms	║║Calculating (integer) 7 + (integer) 1 >> (integer) 8
+1563ms	║║Cancelling statement #219's schedules...
+1566ms	║║Executed virtual command clearTile (0ms)
+1581ms	║║Calculating (integer) 7 + (integer) 1 >> (integer) 8
+1586ms	║║Cancelling statement #219's schedules...
+1590ms	║║Executed virtual command clearTile (1ms)
+1606ms	║║Calculating (integer) 7 + (integer) 1 >> (integer) 8
+1612ms	║║Cancelling statement #219's schedules...
+1616ms	║║Executed virtual command clearTile (0ms)
+1620ms	║╚Execution stage complete. (1258ms)
+1621ms	║Setting up scheduled job for Thu, Oct 26 2017 @ 10:11:28 PM EDT (in 59.154s)
+1638ms	╚Event processed successfully (1638ms)

#7

try this:

define
   datetime[ ] tileTimeEmpty
end define

if(tileTime[tile] == tileTimeEmpty[tile], ‘No Event Yet’, {formatDateTime(tileTime[tile], {DateTimeFormula})})

#8

Started with a brand new piston by doing duplicate piston using that new expression, it worked fine initially until I tested it by only opening the Kitchen window and updated the time stamp of the Kitchen Window for the other Windows on the tiles. I was getting that with a few other ways I tried the expression too although can’t remember which one I used that did that. Thanks for the suggestions so far.

image

10/26/2017, 11:26:44 PM +434ms
+1ms	╔Received event [Home].time = 1509074802272 with a delay of 2161ms
+249ms	║RunTime Analysis CS > 41ms > PS > 114ms > PE > 94ms > CE
+262ms	║Runtime (57556 bytes) successfully initialized in 114ms (v0.2.0fb.20171026) (259ms)
+263ms	║╔Execution stage started
+286ms	║║Calculating (integer) 7 + (integer) 1 >> (integer) 8
+305ms	║║Cancelling statement #208's schedules...
+316ms	║║Calculating (integer) 0 + (integer) 1 >> (integer) 1
+321ms	║║Executed virtual command setVariable (3ms)
+348ms	║║Calculating (string) closed == (string) open >> (boolean) false
+362ms	║║Calculating (datetime) 1509074804794 == (datetime) 0 >> (boolean) false
+375ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+383ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+387ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+407ms	║║Calculating (string) closed == (string) open >> (boolean) false
+414ms	║║Executed virtual command setTile (2ms)
+422ms	║║Cancelling statement #208's schedules...
+436ms	║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+440ms	║║Executed virtual command setVariable (3ms)
+462ms	║║Calculating (string) closed == (string) open >> (boolean) false
+475ms	║║Calculating (datetime) 1509074804904 == (datetime) 0 >> (boolean) false
+489ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+498ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+502ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+519ms	║║Calculating (string) closed == (string) open >> (boolean) false
+525ms	║║Executed virtual command setTile (1ms)
+533ms	║║Cancelling statement #208's schedules...
+547ms	║║Calculating (integer) 2 + (integer) 1 >> (integer) 3
+554ms	║║Executed virtual command setVariable (4ms)
+576ms	║║Calculating (string) closed == (string) open >> (boolean) false
+585ms	║║Calculating (datetime) 1509074779079 == (datetime) 0 >> (boolean) false
+599ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+608ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+613ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+628ms	║║Calculating (string) closed == (string) open >> (boolean) false
+633ms	║║Executed virtual command setTile (1ms)
+641ms	║║Cancelling statement #208's schedules...
+655ms	║║Calculating (integer) 3 + (integer) 1 >> (integer) 4
+661ms	║║Executed virtual command setVariable (5ms)
+683ms	║║Calculating (string) closed == (string) open >> (boolean) false
+697ms	║║Calculating (datetime) 1509074805129 == (datetime) 0 >> (boolean) false
+712ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+722ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+726ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+743ms	║║Calculating (string) closed == (string) open >> (boolean) false
+748ms	║║Executed virtual command setTile (1ms)
+759ms	║║Cancelling statement #208's schedules...
+775ms	║║Calculating (integer) 4 + (integer) 1 >> (integer) 5
+780ms	║║Executed virtual command setVariable (3ms)
+802ms	║║Calculating (string) closed == (string) open >> (boolean) false
+813ms	║║Calculating (datetime) 1509074805245 == (datetime) 0 >> (boolean) false
+827ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+836ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+839ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+854ms	║║Calculating (string) closed == (string) open >> (boolean) false
+859ms	║║Executed virtual command setTile (1ms)
+867ms	║║Cancelling statement #208's schedules...
+883ms	║║Calculating (integer) 5 + (integer) 1 >> (integer) 6
+888ms	║║Executed virtual command setVariable (4ms)
+909ms	║║Calculating (string) closed == (string) open >> (boolean) false
+919ms	║║Calculating (datetime) 1509074805351 == (datetime) 0 >> (boolean) false
+932ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+940ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+944ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+961ms	║║Calculating (string) closed == (string) open >> (boolean) false
+966ms	║║Executed virtual command setTile (1ms)
+974ms	║║Cancelling statement #208's schedules...
+989ms	║║Calculating (integer) 6 + (integer) 1 >> (integer) 7
+993ms	║║Executed virtual command setVariable (2ms)
+1014ms	║║Calculating (string) closed == (string) open >> (boolean) false
+1024ms	║║Calculating (datetime) 1509074805457 == (datetime) 0 >> (boolean) false
+1037ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+1045ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+1049ms	║║Calculating (boolean) false == (boolean) true >> (boolean) false
+1064ms	║║Calculating (string) closed == (string) open >> (boolean) false
+1069ms	║║Executed virtual command setTile (1ms)
+1072ms	║║Cancelling statement #216's schedules...
+1078ms	║║Executed virtual command setVariable (3ms)
+1093ms	║║Calculating (integer) 7 + (integer) 1 >> (integer) 8
+1098ms	║║Cancelling statement #219's schedules...
+1101ms	║║Executed virtual command clearTile (1ms)
+1115ms	║║Calculating (integer) 7 + (integer) 1 >> (integer) 8
+1119ms	║║Cancelling statement #219's schedules...
+1122ms	║║Executed virtual command clearTile (0ms)
+1136ms	║║Calculating (integer) 7 + (integer) 1 >> (integer) 8
+1141ms	║║Cancelling statement #219's schedules...
+1144ms	║║Executed virtual command clearTile (0ms)
+1158ms	║║Calculating (integer) 7 + (integer) 1 >> (integer) 8
+1164ms	║║Cancelling statement #219's schedules...
+1167ms	║║Executed virtual command clearTile (1ms)
+1182ms	║║Calculating (integer) 7 + (integer) 1 >> (integer) 8
+1186ms	║║Cancelling statement #219's schedules...
+1190ms	║║Executed virtual command clearTile (0ms)
+1205ms	║║Calculating (integer) 7 + (integer) 1 >> (integer) 8
+1209ms	║║Cancelling statement #219's schedules...
+1213ms	║║Executed virtual command clearTile (1ms)
+1228ms	║║Calculating (integer) 7 + (integer) 1 >> (integer) 8
+1232ms	║║Cancelling statement #219's schedules...
+1236ms	║║Executed virtual command clearTile (1ms)
+1250ms	║║Calculating (integer) 7 + (integer) 1 >> (integer) 8
+1255ms	║║Cancelling statement #219's schedules...
+1259ms	║║Executed virtual command clearTile (1ms)
+1273ms	║║Calculating (integer) 7 + (integer) 1 >> (integer) 8
+1277ms	║║Cancelling statement #219's schedules...
+1280ms	║║Executed virtual command clearTile (0ms)
+1284ms	║╚Execution stage complete. (1022ms)
+1286ms	║Setting up scheduled job for Thu, Oct 26 2017 @ 11:27:42 PM EDT (in 56.553s)
+1306ms	╚Event processed successfully (1306ms)
10/26/2017, 11:26:18 PM +791ms

#9

not sure why all the tiles are cleared when there is a contact sensor event?


#10

Good Point, I’ll try that out tomorrow night as I have to wake up early tomorrow and let you know if removing that helps at all.


#11

looked at the piston a bit more. this will not work.

the first time it works because when the tileTime[] list does not exist, that is not a single value has been saved to the list, it returns very likely null or some similar value.

however once any value has been saved to the tileTime[] list it will always return the current date & time when a value does not exist in the list for the given list index.

so as soon as even one value is saved to tileTime[] it stops working.


#12

Thanks for the info, I’ll look for a different way then to accomplish what I’m trying to do


#13

I figured out a way around the limitations I was running into by using a boolean list to check against instead of trying to see if the datetime list was empty on a particular list number.

image

It’s now checking the TileActive if the value is true or false.

I’ll look to update my post for the Device tiles shortly since this was the final piece that I wanted to get working so you don’t have to open/close doors for example just to get all of your devices to show.

image

Above I only opened 1 of the windows so far since this tile was running so it’s working great. I’m not planning to keep it at 1 minute for the intervals, I think 10 minutes would be enough.