# Monitor Dishwasher

#1

1) Give a description of the problem
Having problems coming up with logic to monitor the dishwasher and let me know once the rinse cycle is done. My rinse cycle takes about 9 minutes. I need to figure out how to design an if statement to identify when the dishwahser started drawing power greater than 5 watts and then stopped drawing power (less than 5 watts) 9-10 minutes later. The purpose of this is to send an alert that the rinse cycle is done and the dishwasher may be started. Any combination of items i come with seems to also match if I actally start a wash cycle.

2) What is the expected behaviour?
If the dishwasher draws power for 9 minutes, and then stops drawing power for 3 minutes, send a push notification that the rinse cycle is done.
3) What is happening/not happening?
i cant get the piston to differentiate between rinse and wash.

**4) Post a Green Snapshot of the piston!

#2

Made a modification that I thought would help, but it still didnt work.

#3

some logs

1/3/2021, 9:10:18 PM +771ms
+1ms âReceived event [Dishwasher].power = 0.826 with a delay of 74ms
+84ms âRunTime Analysis CS > 20ms > PS > 6ms > PE > 58ms > CE
+87ms âRuntime (47912 bytes) successfully initialized in 6ms (v0.3.110.20191009) (85ms)
+88ms ââExecution stage started
+98ms ââComparison (decimal) 0.826 stays_less_than (integer) 5 = true (2ms)
+100ms ââAdding a timed trigger schedule for condition 59
+102ms ââCondition #59 evaluated false (8ms)
+103ms ââCancelling condition #56âs schedulesâŚ
+104ms ââCondition group #56 evaluated false (state changed) (12ms)
+111ms ââComparison (decimal) 0.826 stays_greater_than (integer) 5 = false (1ms)
+113ms ââCancelling any timed trigger schedules for condition 2
+114ms ââCancelling statement #2âs schedulesâŚ
+115ms ââCondition #2 evaluated false (8ms)
+116ms ââCondition group #1 evaluated false (state did not change) (10ms)
+122ms ââComparison (decimal) 0.826 stays_less_than (integer) 2 = true (1ms)
+124ms ââCondition #15 evaluated false (6ms)
+125ms ââCondition group #14 evaluated false (state did not change) (7ms)
+135ms ââCondition #27 evaluated false (6ms)
+136ms ââCondition group #26 evaluated false (state did not change) (8ms)
+139ms ââExecution stage complete. (51ms)
+140ms âSetting up scheduled job for Sun, Jan 3 2021 @ 9:10:48 PM EST (in 29.961s), with 2 more jobs pending
+149ms âEvent processed successfully (149ms)
1/3/2021, 9:09:54 PM +68ms
+0ms âReceived event [Kalinoski Home].time = 1609726195870 with a delay of -1803ms
+95ms âRunTime Analysis CS > 32ms > PS > 7ms > PE > 57ms > CE
+98ms âRuntime (47927 bytes) successfully initialized in 7ms (v0.3.110.20191009) (97ms)
+99ms ââExecution stage started
+106ms ââCancelling condition #56âs schedulesâŚ
+125ms ââExecution stage complete. (26ms)
+127ms âSetting up scheduled job for Sun, Jan 3 2021 @ 9:11:26 PM EST (in 92.468s), with 1 more job pending
+134ms âEvent processed successfully (134ms)
1/3/2021, 9:09:48 PM +772ms
+1ms âReceived event [Dishwasher].power = 0.851 with a delay of 64ms
+81ms âRunTime Analysis CS > 14ms > PS > 7ms > PE > 60ms > CE
+84ms âRuntime (47913 bytes) successfully initialized in 7ms (v0.3.110.20191009) (82ms)
+85ms ââExecution stage started
+96ms ââComparison (decimal) 0.851 stays_less_than (integer) 5 = true (2ms)
+99ms ââCondition #59 evaluated false (7ms)
+100ms ââCondition group #56 evaluated false (state did not change) (10ms)
+107ms ââComparison (decimal) 0.851 stays_greater_than (integer) 5 = false (2ms)
+109ms ââCancelling any timed trigger schedules for condition 2
+110ms ââCancelling statement #2âs schedulesâŚ
+111ms ââCondition #2 evaluated false (9ms)
+112ms ââCondition group #1 evaluated false (state did not change) (10ms)
+119ms ââComparison (decimal) 0.851 stays_less_than (integer) 2 = true (2ms)
+121ms ââCondition #15 evaluated false (7ms)
+122ms ââCondition group #14 evaluated false (state did not change) (8ms)
+133ms ââCondition #27 evaluated false (7ms)
+134ms ââCondition group #26 evaluated false (state did not change) (8ms)
+137ms ââExecution stage complete. (52ms)
+139ms âSetting up scheduled job for Sun, Jan 3 2021 @ 9:09:55 PM EST (in 6.96s), with 2 more jobs pending
+152ms âEvent processed successfully (152ms)
1/3/2021, 9:09:25 PM +768ms
+1ms âReceived event [Dishwasher].power = 1.049 with a delay of 69ms
+85ms âRunTime Analysis CS > 20ms > PS > 6ms > PE > 58ms > CE
+87ms âRuntime (47913 bytes) successfully initialized in 6ms (v0.3.110.20191009) (85ms)
+88ms ââExecution stage started
+99ms ââComparison (decimal) 1.049 stays_less_than (integer) 5 = true (2ms)
+101ms ââAdding a timed trigger schedule for condition 59
+103ms ââCondition #59 evaluated false (9ms)
+104ms ââCondition group #56 evaluated false (state did not change) (12ms)
+111ms ââComparison (decimal) 1.049 stays_greater_than (integer) 5 = false (2ms)
+113ms ââCancelling any timed trigger schedules for condition 2
+114ms ââCancelling statement #2âs schedulesâŚ
+115ms ââCondition #2 evaluated false (7ms)
+116ms ââCondition group #1 evaluated false (state did not change) (9ms)
+122ms ââComparison (decimal) 1.049 stays_less_than (integer) 2 = true (1ms)
+124ms ââAdding a timed trigger schedule for condition 15
+127ms ââCondition #15 evaluated false (8ms)
+127ms ââCondition group #14 evaluated false (state did not change) (9ms)
+137ms ââCondition #27 evaluated false (7ms)
+138ms ââCondition group #26 evaluated false (state did not change) (8ms)
+141ms ââExecution stage complete. (53ms)
+143ms âSetting up scheduled job for Sun, Jan 3 2021 @ 9:09:55 PM EST (in 29.96s), with 2 more jobs pending
+153ms âEvent processed successfully (153ms)
1/3/2021, 9:09:18 PM +760ms
+0ms âReceived event [Dishwasher].power = 6.273 with a delay of 59ms
+81ms âRunTime Analysis CS > 13ms > PS > 6ms > PE > 62ms > CE
+83ms âRuntime (47913 bytes) successfully initialized in 6ms (v0.3.110.20191009) (82ms)
+84ms ââExecution stage started
+95ms ââComparison (decimal) 6.273 stays_less_than (integer) 5 = false (1ms)
+97ms ââCancelling any timed trigger schedules for condition 59
+98ms ââCancelling statement #59âs schedulesâŚ
+98ms ââCondition #59 evaluated false (8ms)
+99ms ââCondition group #56 evaluated false (state did not change) (11ms)
+106ms ââComparison (decimal) 6.273 stays_greater_than (integer) 5 = true (2ms)
+108ms ââAdding a timed trigger schedule for condition 2
+110ms ââCondition #2 evaluated false (8ms)
+111ms ââCondition group #1 evaluated false (state did not change) (9ms)
+118ms ââComparison (decimal) 6.273 stays_less_than (integer) 2 = false (1ms)
+120ms ââCancelling any timed trigger schedules for condition 15
+120ms ââCancelling statement #15âs schedulesâŚ
+121ms ââCondition #15 evaluated false (8ms)
+122ms ââCondition group #14 evaluated false (state did not change) (9ms)
+131ms ââCondition #27 evaluated false (7ms)
+132ms ââCondition group #26 evaluated false (state did not change) (8ms)
+135ms ââExecution stage complete. (50ms)
+136ms âSetting up scheduled job for Sun, Jan 3 2021 @ 9:11:26 PM EST (in 127.767s), with 1 more job pending
+145ms âEvent processed successfully (145ms)
1/3/2021, 9:09:14 PM +763ms
+1ms âReceived event [Dishwasher].power = 4.643 with a delay of 63ms
+79ms âRunTime Analysis CS > 17ms > PS > 7ms > PE > 55ms > CE
+82ms âRuntime (47914 bytes) successfully initialized in 7ms (v0.3.110.20191009) (80ms)
+83ms ââExecution stage started
+93ms ââComparison (decimal) 4.643 stays_less_than (integer) 5 = true (1ms)
+96ms ââAdding a timed trigger schedule for condition 59
+98ms ââCondition #59 evaluated false (9ms)
+99ms ââCondition group #56 evaluated false (state did not change) (12ms)
+106ms ââComparison (decimal) 4.643 stays_greater_than (integer) 5 = false (1ms)
+108ms ââCancelling any timed trigger schedules for condition 2
+109ms ââCancelling statement #2âs schedulesâŚ
+110ms ââCondition #2 evaluated false (8ms)
+111ms ââCondition group #1 evaluated false (state did not change) (10ms)
+118ms ââComparison (decimal) 4.643 stays_less_than (integer) 2 = false (2ms)
+120ms ââCancelling any timed trigger schedules for condition 15
+121ms ââCancelling statement #15âs schedulesâŚ
+122ms ââCondition #15 evaluated false (8ms)
+123ms ââCondition group #14 evaluated false (state did not change) (10ms)
+133ms ââCondition #27 evaluated false (8ms)
+134ms ââCondition group #26 evaluated false (state did not change) (9ms)
+137ms ââExecution stage complete. (54ms)
+139ms âSetting up scheduled job for Sun, Jan 3 2021 @ 9:09:44 PM EST (in 29.958s), with 1 more job pending
+148ms âEvent processed successfully (148ms)
1/3/2021, 9:09:07 PM +774ms
+1ms âReceived event [Dishwasher].power = 12.889 with a delay of 75ms
+80ms âRunTime Analysis CS > 16ms > PS > 7ms > PE > 57ms > CE
+83ms âRuntime (47914 bytes) successfully initialized in 7ms (v0.3.110.20191009) (81ms)
+84ms ââExecution stage started
+94ms ââComparison (decimal) 12.889 stays_less_than (integer) 5 = false (1ms)
+96ms ââCancelling any timed trigger schedules for condition 59
+97ms ââCancelling statement #59âs schedulesâŚ
+98ms ââCondition #59 evaluated false (8ms)
+99ms ââCondition group #56 evaluated false (state did not change) (11ms)
+106ms ââComparison (decimal) 12.889 stays_greater_than (integer) 5 = true (2ms)
+108ms ââCondition #2 evaluated false (6ms)
+109ms ââCondition group #1 evaluated false (state did not change) (8ms)
+115ms ââComparison (decimal) 12.889 stays_less_than (integer) 2 = false (1ms)
+117ms ââCancelling any timed trigger schedules for condition 15
+118ms ââCancelling statement #15âs schedulesâŚ
+119ms ââCondition #15 evaluated false (8ms)
+120ms ââCondition group #14 evaluated false (state did not change) (9ms)
+130ms ââCondition #27 evaluated false (8ms)
+131ms ââCondition group #26 evaluated false (state did not change) (9ms)
+134ms ââExecution stage complete. (49ms)
+135ms âSetting up scheduled job for Sun, Jan 3 2021 @ 9:11:26 PM EST (in 138.753s), with 1 more job pending
+145ms âEvent processed successfully (145ms)
1/3/2021, 9:09:06 PM +802ms
+1ms âReceived event [Dishwasher].power = 9.525 with a delay of 102ms
+84ms âRunTime Analysis CS > 22ms > PS > 6ms > PE > 56ms > CE
+87ms âRuntime (47915 bytes) successfully initialized in 6ms (v0.3.110.20191009) (85ms)
+88ms ââExecution stage started
+98ms ââComparison (decimal) 9.525 stays_less_than (integer) 5 = false (1ms)
+100ms ââCancelling any timed trigger schedules for condition 59
+101ms ââCancelling statement #59âs schedulesâŚ
+102ms ââCondition #59 evaluated false (8ms)
+103ms ââCondition group #56 evaluated false (state did not change) (11ms)
+110ms ââComparison (decimal) 9.525 stays_greater_than (integer) 5 = true (2ms)
+112ms ââCondition #2 evaluated false (6ms)
+113ms ââCondition group #1 evaluated false (state did not change) (8ms)
+119ms ââComparison (decimal) 9.525 stays_less_than (integer) 2 = false (1ms)
+121ms ââCancelling any timed trigger schedules for condition 15
+122ms ââCancelling statement #15âs schedulesâŚ
+123ms ââCondition #15 evaluated false (8ms)
+124ms ââCondition group #14 evaluated false (state did not change) (9ms)
+133ms ââCondition #27 evaluated false (7ms)
+134ms ââCondition group #26 evaluated false (state did not change) (8ms)
+137ms ââExecution stage complete. (49ms)
+139ms âSetting up scheduled job for Sun, Jan 3 2021 @ 9:11:26 PM EST (in 139.722s), with 1 more job pending
+150ms âEvent processed successfully (149ms)
1/3/2021, 9:09:04 PM +782ms
+1ms âReceived event [Dishwasher].power = 21.411 with a delay of 81ms
+81ms âRunTime Analysis CS > 20ms > PS > 6ms > PE > 54ms > CE
+84ms âRuntime (47914 bytes) successfully initialized in 6ms (v0.3.110.20191009) (81ms)
+84ms ââExecution stage started
+94ms ââComparison (decimal) 21.411 stays_less_than (integer) 5 = false (1ms)
+96ms ââCancelling any timed trigger schedules for condition 59
+97ms ââCancelling statement #59âs schedulesâŚ
+98ms ââCondition #59 evaluated false (8ms)
+99ms ââCondition group #56 evaluated false (state did not change) (11ms)
+105ms ââComparison (decimal) 21.411 stays_greater_than (integer) 5 = true (1ms)
+107ms ââAdding a timed trigger schedule for condition 2
+109ms ââCondition #2 evaluated false (8ms)
+110ms ââCondition group #1 evaluated false (state did not change) (9ms)
+117ms ââComparison (decimal) 21.411 stays_less_than (integer) 2 = false (1ms)
+118ms ââCancelling any timed trigger schedules for condition 15
+119ms ââCancelling statement #15âs schedulesâŚ
+120ms ââCondition #15 evaluated false (8ms)
+121ms ââCondition group #14 evaluated false (state did not change) (9ms)
+131ms ââCondition #27 evaluated false (7ms)
+132ms ââCondition group #26 evaluated false (state did not change) (8ms)
+134ms ââExecution stage complete. (50ms)
+136ms âSetting up scheduled job for Sun, Jan 3 2021 @ 9:11:26 PM EST (in 141.745s), with 1 more job pending
+147ms âEvent processed successfully (147ms)
1/3/2021, 9:09:03 PM +765ms
+1ms âReceived event [Dishwasher].power = 1.882 with a delay of 62ms
+78ms âRunTime Analysis CS > 13ms > PS > 6ms > PE > 59ms > CE
+81ms âRuntime (47912 bytes) successfully initialized in 6ms (v0.3.110.20191009) (79ms)
+82ms ââExecution stage started
+92ms ââComparison (decimal) 1.882 stays_less_than (integer) 5 = true (2ms)
+94ms ââAdding a timed trigger schedule for condition 59
+96ms ââCondition #59 evaluated false (8ms)
+97ms ââCondition group #56 evaluated false (state did not change) (11ms)
+104ms ââComparison (decimal) 1.882 stays_greater_than (integer) 5 = false (1ms)
+106ms ââCancelling any timed trigger schedules for condition 2
+106ms ââCancelling statement #2âs schedulesâŚ
+107ms ââCondition #2 evaluated false (8ms)
+108ms ââCondition group #1 evaluated false (state did not change) (9ms)
+114ms ââComparison (decimal) 1.882 stays_less_than (integer) 2 = true (1ms)
+116ms ââAdding a timed trigger schedule for condition 15
+118ms ââCondition #15 evaluated false (7ms)
+119ms ââCondition group #14 evaluated false (state did not change) (9ms)
+128ms ââCondition #27 evaluated false (7ms)
+129ms ââCondition group #26 evaluated false (state did not change) (8ms)
+132ms ââExecution stage complete. (49ms)
+133ms âSetting up scheduled job for Sun, Jan 3 2021 @ 9:09:33 PM EST (in 29.962s), with 2 more jobs pending
+144ms âEvent processed successfully (144ms)
1/3/2021, 9:08:55 PM +815ms
+1ms âReceived event [Dishwasher].power = 5.07 with a delay of 71ms
+74ms âRunTime Analysis CS > 15ms > PS > 6ms > PE > 54ms > CE
+77ms âRuntime (47913 bytes) successfully initialized in 6ms (v0.3.110.20191009) (76ms)
+78ms ââExecution stage started
+88ms ââComparison (decimal) 5.07 stays_less_than (integer) 5 = false (1ms)
+90ms ââCancelling any timed trigger schedules for condition 59
+91ms ââCancelling statement #59âs schedulesâŚ
+92ms ââCondition #59 evaluated false (7ms)
+93ms ââCondition group #56 evaluated false (state did not change) (10ms)
+99ms ââComparison (decimal) 5.07 stays_greater_than (integer) 5 = true (2ms)
+101ms ââCondition #2 evaluated false (6ms)
+102ms ââCondition group #1 evaluated false (state did not change) (7ms)
+108ms ââComparison (decimal) 5.07 stays_less_than (integer) 2 = false (1ms)
+110ms ââCancelling any timed trigger schedules for condition 15
+111ms ââCancelling statement #15âs schedulesâŚ
+112ms ââCondition #15 evaluated false (7ms)
+113ms ââCondition group #14 evaluated false (state did not change) (8ms)
+121ms ââCondition #27 evaluated false (6ms)
+122ms ââCondition group #26 evaluated false (state did not change) (7ms)
+125ms ââExecution stage complete. (47ms)
+127ms âSetting up scheduled job for Sun, Jan 3 2021 @ 9:11:26 PM EST (in 150.721s), with 1 more job pending
+137ms âEvent processed successfully (137ms)
1/3/2021, 9:08:48 PM +768ms
+1ms âReceived event [Dishwasher].power = 11.463 with a delay of 65ms
+75ms âRunTime Analysis CS > 18ms > PS > 5ms > PE > 52ms > CE
+78ms âRuntime (47915 bytes) successfully initialized in 5ms (v0.3.110.20191009) (76ms)
+79ms ââExecution stage started
+89ms ââComparison (decimal) 11.463 stays_less_than (integer) 5 = false (1ms)
+91ms ââCancelling any timed trigger schedules for condition 59
+92ms ââCancelling statement #59âs schedulesâŚ
+93ms ââCondition #59 evaluated false (8ms)
+94ms ââCondition group #56 evaluated false (state did not change) (11ms)
+100ms ââComparison (decimal) 11.463 stays_greater_than (integer) 5 = true (1ms)
+103ms ââCondition #2 evaluated false (6ms)
+103ms ââCondition group #1 evaluated false (state did not change) (7ms)
+110ms ââComparison (decimal) 11.463 stays_less_than (integer) 2 = false (2ms)
+112ms ââCancelling any timed trigger schedules for condition 15
+112ms ââCancelling statement #15âs schedulesâŚ
+113ms ââCondition #15 evaluated false (7ms)
+114ms ââCondition group #14 evaluated false (state did not change) (9ms)
+124ms ââCondition #27 evaluated false (7ms)
+125ms ââCondition group #26 evaluated false (state did not change) (9ms)
+128ms ââExecution stage complete. (49ms)
+130ms âSetting up scheduled job for Sun, Jan 3 2021 @ 9:11:26 PM EST (in 157.765s), with 1 more job pending
+140ms âEvent processed successfully (140ms)
1/3/2021, 9:08:46 PM +798ms
+1ms âReceived event [Dishwasher].power = 12.278 with a delay of 64ms
+77ms âRunTime Analysis CS > 16ms > PS > 6ms > PE > 54ms > CE
+79ms âRuntime (47915 bytes) successfully initialized in 6ms (v0.3.110.20191009) (77ms)
+80ms ââExecution stage started
+90ms ââComparison (decimal) 12.278 stays_less_than (integer) 5 = false (1ms)
+92ms ââCancelling any timed trigger schedules for condition 59
+92ms ââCancelling statement #59âs schedulesâŚ
+93ms ââCondition #59 evaluated false (7ms)
+94ms ââCondition group #56 evaluated false (state did not change) (10ms)
+100ms ââComparison (decimal) 12.278 stays_greater_than (integer) 5 = true (1ms)
+102ms ââCondition #2 evaluated false (6ms)
+103ms ââCondition group #1 evaluated false (state did not change) (7ms)
+109ms ââComparison (decimal) 12.278 stays_less_than (integer) 2 = false (1ms)
+111ms ââCancelling any timed trigger schedules for condition 15
+112ms ââCancelling statement #15âs schedulesâŚ
+113ms ââCondition #15 evaluated false (7ms)
+113ms ââCondition group #14 evaluated false (state did not change) (8ms)
+122ms ââCondition #27 evaluated false (6ms)
+123ms ââCondition group #26 evaluated false (state did not change) (8ms)
+125ms ââExecution stage complete. (45ms)
+127ms âSetting up scheduled job for Sun, Jan 3 2021 @ 9:11:26 PM EST (in 159.738s), with 1 more job pending
+137ms âEvent processed successfully (136ms)
1/3/2021, 9:08:44 PM +816ms
+1ms âReceived event [Dishwasher].power = 14.975 with a delay of 113ms
+80ms âRunTime Analysis CS > 19ms > PS > 7ms > PE > 54ms > CE
+83ms âRuntime (47916 bytes) successfully initialized in 7ms (v0.3.110.20191009) (80ms)
+84ms ââExecution stage started
+94ms ââComparison (decimal) 14.975 stays_less_than (integer) 5 = false (2ms)
+96ms ââCancelling any timed trigger schedules for condition 59
+97ms ââCancelling statement #59âs schedulesâŚ
+98ms ââCondition #59 evaluated false (7ms)
+99ms ââCondition group #56 evaluated false (state did not change) (11ms)
+105ms ââComparison (decimal) 14.975 stays_greater_than (integer) 5 = true (1ms)
+108ms ââCondition #2 evaluated false (6ms)
+108ms ââCondition group #1 evaluated false (state did not change) (7ms)
+115ms ââComparison (decimal) 14.975 stays_less_than (integer) 2 = false (2ms)
+117ms ââCancelling any timed trigger schedules for condition 15
+118ms ââCancelling statement #15âs schedulesâŚ
+118ms ââCondition #15 evaluated false (7ms)
+119ms ââCondition group #14 evaluated false (state did not change) (8ms)
+128ms ââCondition #27 evaluated false (6ms)
+129ms ââCondition group #26 evaluated false (state did not change) (8ms)
+132ms ââExecution stage complete. (49ms)
+134ms âSetting up scheduled job for Sun, Jan 3 2021 @ 9:11:26 PM EST (in 161.713s), with 1 more job pending
+144ms âEvent processed successfully (143ms)
1/3/2021, 9:08:43 PM +763ms
+1ms âReceived event [Dishwasher].power = 11.884 with a delay of 59ms
+70ms âRunTime Analysis CS > 13ms > PS > 6ms > PE > 50ms > CE
+72ms âRuntime (47915 bytes) successfully initialized in 6ms (v0.3.110.20191009) (70ms)
+73ms ââExecution stage started
+83ms ââComparison (decimal) 11.884 stays_less_than (integer) 5 = false (1ms)
+85ms ââCancelling any timed trigger schedules for condition 59
+86ms ââCancelling statement #59âs schedulesâŚ
+87ms ââCondition #59 evaluated false (8ms)
+88ms ââCondition group #56 evaluated false (state did not change) (11ms)
+94ms ââComparison (decimal) 11.884 stays_greater_than (integer) 5 = true (1ms)
+97ms ââCondition #2 evaluated false (6ms)
+98ms ââCondition group #1 evaluated false (state did not change) (7ms)
+104ms ââComparison (decimal) 11.884 stays_less_than (integer) 2 = false (1ms)
+106ms ââCancelling any timed trigger schedules for condition 15
+107ms ââCancelling statement #15âs schedulesâŚ
+108ms ââCondition #15 evaluated false (7ms)
+109ms ââCondition group #14 evaluated false (state did not change) (8ms)
+118ms ââCondition #27 evaluated false (7ms)
+119ms ââCondition group #26 evaluated false (state did not change) (8ms)
+121ms ââExecution stage complete. (48ms)
+123ms âSetting up scheduled job for Sun, Jan 3 2021 @ 9:11:26 PM EST (in 162.777s), with 1 more job pending
+132ms âEvent processed successfully (132ms)
1/3/2021, 9:08:30 PM +779ms
+1ms âReceived event [Dishwasher].power = 38.668 with a delay of 78ms
+81ms âRunTime Analysis CS > 17ms > PS > 7ms > PE > 57ms > CE
+84ms âRuntime (47915 bytes) successfully initialized in 7ms (v0.3.110.20191009) (82ms)
+85ms ââExecution stage started
+96ms ââComparison (decimal) 38.668 stays_less_than (integer) 5 = false (2ms)
+98ms ââCancelling any timed trigger schedules for condition 59
+99ms ââCancelling statement #59âs schedulesâŚ
+100ms ââCondition #59 evaluated false (8ms)
+101ms ââCondition group #56 evaluated false (state did not change) (12ms)
+108ms ââComparison (decimal) 38.668 stays_greater_than (integer) 5 = true (2ms)
+110ms ââCondition #2 evaluated false (6ms)
+111ms ââCondition group #1 evaluated false (state did not change) (8ms)
+118ms ââComparison (decimal) 38.668 stays_less_than (integer) 2 = false (2ms)
+120ms ââCancelling any timed trigger schedules for condition 15
+121ms ââCancelling statement #15âs schedulesâŚ
+122ms ââCondition #15 evaluated false (7ms)
+123ms ââCondition group #14 evaluated false (state did not change) (10ms)
+133ms ââCondition #27 evaluated false (8ms)
+135ms ââCondition group #26 evaluated false (state did not change) (9ms)
+137ms ââExecution stage complete. (52ms)
+139ms âSetting up scheduled job for Sun, Jan 3 2021 @ 9:11:26 PM EST (in 175.744s), with 1 more job pending
+149ms âEvent processed successfully (149ms)
1/3/2021, 9:08:28 PM +781ms
+1ms âReceived event [Dishwasher].power = 35.146 with a delay of 65ms
+179ms âRunTime Analysis CS > 18ms > PS > 6ms > PE > 155ms > CE
+182ms âRuntime (47917 bytes) successfully initialized in 6ms (v0.3.110.20191009) (181ms)
+183ms ââExecution stage started
+194ms ââComparison (decimal) 35.146 stays_less_than (integer) 5 = false (2ms)
+196ms ââCancelling any timed trigger schedules for condition 59
+197ms ââCancelling statement #59âs schedulesâŚ
+198ms ââCondition #59 evaluated false (8ms)
+199ms ââCondition group #56 evaluated false (state did not change) (12ms)
+206ms ââComparison (decimal) 35.146 stays_greater_than (integer) 5 = true (1ms)
+208ms ââCondition #2 evaluated false (7ms)
+209ms ââCondition group #1 evaluated false (state did not change) (8ms)
+216ms ââComparison (decimal) 35.146 stays_less_than (integer) 2 = false (2ms)
+218ms ââCancelling any timed trigger schedules for condition 15
+219ms ââCancelling statement #15âs schedulesâŚ
+220ms ââCondition #15 evaluated false (9ms)
+221ms ââCondition group #14 evaluated false (state did not change) (10ms)
+231ms ââCondition #27 evaluated false (8ms)
+232ms ââCondition group #26 evaluated false (state did not change) (9ms)
+235ms ââExecution stage complete. (52ms)
+237ms âSetting up scheduled job for Sun, Jan 3 2021 @ 9:11:26 PM EST (in 177.645s), with 1 more job pending
+247ms âEvent processed successfully (247ms)
1/3/2021, 9:08:27 PM +761ms
+1ms âReceived event [Dishwasher].power = 22.528 with a delay of 60ms
+75ms âRunTime Analysis CS > 15ms > PS > 6ms > PE > 55ms > CE
+78ms âRuntime (47914 bytes) successfully initialized in 6ms (v0.3.110.20191009) (76ms)
+79ms ââExecution stage started
+89ms ââComparison (decimal) 22.528 stays_less_than (integer) 5 = false (1ms)
+91ms ââCancelling any timed trigger schedules for condition 59
+92ms ââCancelling statement #59âs schedulesâŚ
+93ms ââCondition #59 evaluated false (7ms)
+94ms ââCondition group #56 evaluated false (state did not change) (10ms)
+100ms ââComparison (decimal) 22.528 stays_greater_than (integer) 5 = true (2ms)
+102ms ââCondition #2 evaluated false (6ms)
+103ms ââCondition group #1 evaluated false (state did not change) (6ms)
+109ms ââComparison (decimal) 22.528 stays_less_than (integer) 2 = false (2ms)
+111ms ââCancelling any timed trigger schedules for condition 15
+111ms ââCancelling statement #15âs schedulesâŚ
+112ms ââCondition #15 evaluated false (7ms)
+113ms ââCondition group #14 evaluated false (state did not change) (8ms)
+123ms ââCondition #27 evaluated false (7ms)
+124ms ââCondition group #26 evaluated false (state did not change) (8ms)
+126ms ââExecution stage complete. (48ms)
+128ms âSetting up scheduled job for Sun, Jan 3 2021 @ 9:11:26 PM EST (in 178.774s), with 1 more job pending
+138ms âEvent processed successfully (138ms)
1/3/2021, 9:08:24 PM +771ms
+1ms âReceived event [Dishwasher].power = 20.24 with a delay of 63ms
+76ms âRunTime Analysis CS > 15ms > PS > 6ms > PE > 55ms > CE
+79ms âRuntime (47913 bytes) successfully initialized in 6ms (v0.3.110.20191009) (77ms)
+80ms ââExecution stage started
+91ms ââComparison (decimal) 20.24 stays_less_than (integer) 5 = false (2ms)
+93ms ââCancelling any timed trigger schedules for condition 59
+94ms ââCancelling statement #59âs schedulesâŚ
+95ms ââCondition #59 evaluated false (9ms)
+96ms ââCondition group #56 evaluated false (state did not change) (12ms)
+103ms ââComparison (decimal) 20.24 stays_greater_than (integer) 5 = true (1ms)
+106ms ââAdding a timed trigger schedule for condition 2
+108ms ââCondition #2 evaluated false (9ms)
+109ms ââCondition group #1 evaluated false (state did not change) (11ms)
+116ms ââComparison (decimal) 20.24 stays_less_than (integer) 2 = false (1ms)
+119ms ââCancelling any timed trigger schedules for condition 15
+120ms ââCancelling statement #15âs schedulesâŚ
+121ms ââCondition #15 evaluated false (8ms)
+122ms ââCondition group #14 evaluated false (state did not change) (9ms)
+132ms ââCondition #27 evaluated false (8ms)
+133ms ââCondition group #26 evaluated false (state did not change) (9ms)
+136ms ââExecution stage complete. (57ms)
+138ms âSetting up scheduled job for Sun, Jan 3 2021 @ 9:11:26 PM EST (in 181.754s), with 1 more job pending
+148ms âEvent processed successfully (148ms)
1/3/2021, 9:08:18 PM +770ms
+1ms âReceived event [Dishwasher].power = 1.821 with a delay of 68ms
+76ms âRunTime Analysis CS > 19ms > PS > 6ms > PE > 51ms > CE
+79ms âRuntime (47912 bytes) successfully initialized in 6ms (v0.3.110.20191009) (77ms)
+80ms ââExecution stage started
+90ms ââComparison (decimal) 1.821 stays_less_than (integer) 5 = true (1ms)
+92ms ââAdding a timed trigger schedule for condition 59
+94ms ââCondition #59 evaluated false (8ms)
+95ms ââCancelling condition #56âs schedulesâŚ
+96ms ââCondition group #56 evaluated false (state changed) (12ms)
+102ms ââComparison (decimal) 1.821 stays_greater_than (integer) 5 = false (1ms)
+104ms ââCancelling any timed trigger schedules for condition 2
+105ms ââCancelling statement #2âs schedulesâŚ
+106ms ââCondition #2 evaluated false (8ms)
+107ms ââCondition group #1 evaluated false (state did not change) (9ms)
+113ms ââComparison (decimal) 1.821 stays_less_than (integer) 2 = true (1ms)
+115ms ââCondition #15 evaluated false (6ms)
+116ms ââCondition group #14 evaluated false (state did not change) (7ms)
+125ms ââCondition #27 evaluated false (7ms)
+126ms ââCondition group #26 evaluated false (state did not change) (8ms)
+129ms ââExecution stage complete. (49ms)
+131ms âSetting up scheduled job for Sun, Jan 3 2021 @ 9:08:48 PM EST (in 29.963s), with 2 more jobs pending
+141ms âEvent processed successfully (141ms)
1/3/2021, 9:08:17 PM +78ms
+0ms âReceived event [Kalinoski Home].time = 1609726098873 with a delay of -1796ms
+81ms âRunTime Analysis CS > 22ms > PS > 6ms > PE > 54ms > CE
+84ms âRuntime (47928 bytes) successfully initialized in 6ms (v0.3.110.20191009) (83ms)
+85ms ââExecution stage started
+93ms ââCancelling condition #58âs schedulesâŚ
+94ms ââCancelling condition #56âs schedulesâŚ
+112ms ââExecution stage complete. (27ms)
+113ms âSetting up scheduled job for Sun, Jan 3 2021 @ 9:11:26 PM EST (in 189.471s), with 1 more job pending
+120ms âEvent processed successfully (120ms)
1/3/2021, 9:07:50 PM +776ms
+2ms âReceived event [Dishwasher].power = 1.828 with a delay of 73ms
+78ms âRunTime Analysis CS > 20ms > PS > 6ms > PE > 51ms > CE
+80ms âRuntime (47914 bytes) successfully initialized in 6ms (v0.3.110.20191009) (78ms)
+81ms ââExecution stage started
+92ms ââComparison (decimal) 1.828 stays_less_than (integer) 5 = true (1ms)
+94ms ââCondition #59 evaluated false (6ms)
+95ms ââCondition group #56 evaluated false (state did not change) (9ms)
+101ms ââComparison (decimal) 1.828 stays_greater_than (integer) 5 = false (2ms)
+103ms ââCancelling any timed trigger schedules for condition 2
+104ms ââCancelling statement #2âs schedulesâŚ
+104ms ââCondition #2 evaluated false (7ms)
+105ms ââCondition group #1 evaluated false (state did not change) (8ms)
+112ms ââComparison (decimal) 1.828 stays_less_than (integer) 2 = true (2ms)
+114ms ââAdding a timed trigger schedule for condition 15
+116ms ââCondition #15 evaluated false (8ms)
+117ms ââCondition group #14 evaluated false (state did not change) (10ms)
+126ms ââCondition #27 evaluated false (7ms)
+127ms ââCondition group #26 evaluated false (state did not change) (8ms)
+130ms ââExecution stage complete. (49ms)
+132ms âSetting up scheduled job for Sun, Jan 3 2021 @ 9:08:18 PM EST (in 27.966s), with 2 more jobs pending
+142ms âEvent processed successfully (142ms)
1/3/2021, 9:07:48 PM +776ms
+1ms âReceived event [Dishwasher].power = 4.004 with a delay of 71ms
+80ms âRunTime Analysis CS > 16ms > PS > 6ms > PE > 58ms > CE
+83ms âRuntime (47914 bytes) successfully initialized in 6ms (v0.3.110.20191009) (81ms)
+84ms ââExecution stage started
+94ms ââComparison (decimal) 4.004 stays_less_than (integer) 5 = true (1ms)
+96ms ââAdding a timed trigger schedule for condition 59
+99ms ââCondition #59 evaluated false (9ms)
+100ms ââCondition group #56 evaluated false (state did not change) (13ms)
+107ms ââComparison (decimal) 4.004 stays_greater_than (integer) 5 = false (2ms)
+109ms ââCancelling any timed trigger schedules for condition 2
+110ms ââCancelling statement #2âs schedulesâŚ
+110ms ââCondition #2 evaluated false (8ms)
+111ms ââCondition group #1 evaluated false (state did not change) (9ms)
+118ms ââComparison (decimal) 4.004 stays_less_than (integer) 2 = false (1ms)
+120ms ââCancelling any timed trigger schedules for condition 15
+121ms ââCancelling statement #15âs schedulesâŚ
+122ms ââCondition #15 evaluated false (7ms)
+123ms ââCondition group #14 evaluated false (state did not change) (8ms)
+132ms ââCondition #27 evaluated false (7ms)
+133ms ââCondition group #26 evaluated false (state did not change) (8ms)

#4

Do you have a graphana chart of the entire cycle? Do you know how many watts each cycle uses, and roughly how long they last?

#5

Iâd recommend logging usage for the whole cycle (as suggested by ian_boje) every dishwasher and maybe cycle can be different. I logged power to a google spreadsheet, you probably need a logarithmic scale as you are interested in changes between a few watts and 3000+ watts.

My dishwasher has a period mid cycle when it draws âoffâ levels of power. Iâve attached my piston below, which works well for my particular machine.

#6

Here is a log of the rinse cycle.

Date/Time Device Event Name Event Value Description Date Hour
01/04/2021 15:08:48 Dishwasher power 0.857 0.857 W 01/04/2021 15 Standby
01/04/2021 15:09:18 Dishwasher power 0.837 0.837 W 01/04/2021 15 Standby
01/04/2021 15:09:48 Dishwasher power 0.868 0.868 W 01/04/2021 15 Standby
01/04/2021 15:10:12 Dishwasher power 6.729 6.729 W 01/04/2021 15 Rinse
01/04/2021 15:10:14 Dishwasher power 10.446 10.446 W 01/04/2021 15 Rinse
01/04/2021 15:10:15 Dishwasher power 23.132 23.132 W 01/04/2021 15 Rinse
01/04/2021 15:10:17 Dishwasher power 20.561 20.561 W 01/04/2021 15 Rinse
01/04/2021 15:10:18 Dishwasher power 20.4 20.4 W 01/04/2021 15 Rinse
01/04/2021 15:10:20 Dishwasher power 17.044 17.044 W 01/04/2021 15 Rinse
01/04/2021 15:10:27 Dishwasher power 12.455 12.455 W 01/04/2021 15 Rinse
01/04/2021 15:10:34 Dishwasher power 5.595 5.595 W 01/04/2021 15 Rinse
01/04/2021 15:10:38 Dishwasher power 11.723 11.723 W 01/04/2021 15 Rinse
01/04/2021 15:10:41 Dishwasher power 4.092 4.092 W 01/04/2021 15 Rinse
01/04/2021 15:10:43 Dishwasher power 2.044 2.044 W 01/04/2021 15 Rinse
01/04/2021 15:10:44 Dishwasher power 5.694 5.694 W 01/04/2021 15 Rinse
01/04/2021 15:10:45 Dishwasher power 20.726 20.726 W 01/04/2021 15 Rinse
01/04/2021 15:10:46 Dishwasher power 6.558 6.558 W 01/04/2021 15 Rinse
01/04/2021 15:10:47 Dishwasher power 11.884 11.884 W 01/04/2021 15 Rinse
01/04/2021 15:10:49 Dishwasher power 12.455 12.455 W 01/04/2021 15 Rinse
01/04/2021 15:10:49 Dishwasher power 5.822 5.822 W 01/04/2021 15 Rinse
01/04/2021 15:11:01 Dishwasher power 8.384 8.384 W 01/04/2021 15 Rinse
01/04/2021 15:11:16 Dishwasher power 6.381 6.381 W 01/04/2021 15 Rinse
01/04/2021 15:11:18 Dishwasher power 6.412 6.412 W 01/04/2021 15 Rinse
01/04/2021 15:11:48 Dishwasher power 10.885 10.885 W 01/04/2021 15 Rinse
01/04/2021 15:11:51 Dishwasher power 5.488 5.488 W 01/04/2021 15 Rinse
01/04/2021 15:11:53 Dishwasher power 3.296 3.296 W 01/04/2021 15 Rinse
01/04/2021 15:11:56 Dishwasher power 20.561 20.561 W 01/04/2021 15 Rinse
01/04/2021 15:11:57 Dishwasher power 13.286 13.286 W 01/04/2021 15 Rinse
01/04/2021 15:12:00 Dishwasher power 11.024 11.024 W 01/04/2021 15 Rinse
01/04/2021 15:12:03 Dishwasher power 7.298 7.298 W 01/04/2021 15 Rinse
01/04/2021 15:12:05 Dishwasher power 9.888 9.888 W 01/04/2021 15 Rinse
01/04/2021 15:12:09 Dishwasher power 6.592 6.592 W 01/04/2021 15 Rinse
01/04/2021 15:12:10 Dishwasher power 9.027 9.027 W 01/04/2021 15 Rinse
01/04/2021 15:12:13 Dishwasher power 16.714 16.714 W 01/04/2021 15 Rinse
01/04/2021 15:12:14 Dishwasher power 13.286 13.286 W 01/04/2021 15 Rinse
01/04/2021 15:12:15 Dishwasher power 18.505 18.505 W 01/04/2021 15 Rinse
01/04/2021 15:12:16 Dishwasher power 12.396 12.396 W 01/04/2021 15 Rinse
01/04/2021 15:12:17 Dishwasher power 15.992 15.992 W 01/04/2021 15 Rinse
01/04/2021 15:12:18 Dishwasher power 15.15 15.15 W 01/04/2021 15 Rinse
01/04/2021 15:12:22 Dishwasher power 12.762 12.762 W 01/04/2021 15 Rinse
01/04/2021 15:12:22 Dishwasher power 18.245 18.245 W 01/04/2021 15 Rinse
01/04/2021 15:12:23 Dishwasher power 16.823 16.823 W 01/04/2021 15 Rinse
01/04/2021 15:12:24 Dishwasher power 10.041 10.041 W 01/04/2021 15 Rinse
01/04/2021 15:12:25 Dishwasher power 5.386 5.386 W 01/04/2021 15 Rinse
01/04/2021 15:12:40 Dishwasher power 7.423 7.423 W 01/04/2021 15 Rinse
01/04/2021 15:12:48 Dishwasher power 7.444 7.444 W 01/04/2021 15 Rinse
01/04/2021 15:13:18 Dishwasher power 5.408 5.408 W 01/04/2021 15 Rinse
01/04/2021 15:13:21 Dishwasher power 11.83 11.83 W 01/04/2021 15 Rinse
01/04/2021 15:13:26 Dishwasher power 3.377 3.377 W 01/04/2021 15 Rinse
01/04/2021 15:13:28 Dishwasher power 20.24 20.24 W 01/04/2021 15 Rinse
01/04/2021 15:13:29 Dishwasher power 17.505 17.505 W 01/04/2021 15 Rinse
01/04/2021 15:13:30 Dishwasher power 11.566 11.566 W 01/04/2021 15 Rinse
01/04/2021 15:13:32 Dishwasher power 16.607 16.607 W 01/04/2021 15 Rinse
01/04/2021 15:13:33 Dishwasher power 13.564 13.564 W 01/04/2021 15 Rinse
01/04/2021 15:13:45 Dishwasher power 22.726 22.726 W 01/04/2021 15 Rinse
01/04/2021 15:13:46 Dishwasher power 38.439 38.439 W 01/04/2021 15 Rinse
01/04/2021 15:13:47 Dishwasher power 47.931 47.931 W 01/04/2021 15 Rinse
01/04/2021 15:13:48 Dishwasher power 47.699 47.699 W 01/04/2021 15 Rinse
01/04/2021 15:13:58 Dishwasher power 52.516 52.516 W 01/04/2021 15 Rinse
01/04/2021 15:14:18 Dishwasher power 52.873 52.873 W 01/04/2021 15 Rinse
01/04/2021 15:14:31 Dishwasher power 58.592 58.592 W 01/04/2021 15 Rinse
01/04/2021 15:14:49 Dishwasher power 58.306 58.306 W 01/04/2021 15 Rinse
01/04/2021 15:15:48 Dishwasher power 58.192 58.192 W 01/04/2021 15 Rinse
01/04/2021 15:16:18 Dishwasher power 58.363 58.363 W 01/04/2021 15 Rinse
01/04/2021 15:16:30 Dishwasher power 19.191 19.191 W 01/04/2021 15 Rinse
01/04/2021 15:16:31 Dishwasher power 21.236 21.236 W 01/04/2021 15 Rinse
01/04/2021 15:16:33 Dishwasher power 25.153 25.153 W 01/04/2021 15 Rinse
01/04/2021 15:16:35 Dishwasher power 38.823 38.823 W 01/04/2021 15 Rinse
01/04/2021 15:16:36 Dishwasher power 68.716 68.716 W 01/04/2021 15 Rinse
01/04/2021 15:16:48 Dishwasher power 70.98 70.98 W 01/04/2021 15 Rinse
01/04/2021 15:17:18 Dishwasher power 70.912 70.912 W 01/04/2021 15 Rinse
01/04/2021 15:17:48 Dishwasher power 70.98 70.98 W 01/04/2021 15 Rinse
01/04/2021 15:18:18 Dishwasher power 71.05 71.05 W 01/04/2021 15 Rinse
01/04/2021 15:18:34 Dishwasher power 43.868 43.868 W 01/04/2021 15 Rinse
01/04/2021 15:18:35 Dishwasher power 22.726 22.726 W 01/04/2021 15 Rinse
01/04/2021 15:18:39 Dishwasher power 27.271 27.271 W 01/04/2021 15 Rinse
01/04/2021 15:18:40 Dishwasher power 24.441 24.441 W 01/04/2021 15 Rinse
01/04/2021 15:18:42 Dishwasher power 43.138 43.138 W 01/04/2021 15 Rinse
01/04/2021 15:18:43 Dishwasher power 60.019 60.019 W 01/04/2021 15 Rinse
01/04/2021 15:18:48 Dishwasher power 60.076 60.076 W 01/04/2021 15 Rinse
01/04/2021 15:19:18 Dishwasher power 58.824 58.824 W 01/04/2021 15 Rinse
01/04/2021 15:19:48 Dishwasher power 58.766 58.766 W 01/04/2021 15 Rinse
01/04/2021 15:20:18 Dishwasher power 58.708 58.708 W 01/04/2021 15 Rinse
01/04/2021 15:20:26 Dishwasher power 10.041 10.041 W 01/04/2021 15 Rinse
01/04/2021 15:20:27 Dishwasher power 5.341 5.341 W 01/04/2021 15 Rinse
01/04/2021 15:20:37 Dishwasher power 1.882 1.882 W 01/04/2021 15 Rinse
01/04/2021 15:20:48 Dishwasher power 1.851 1.851 W 01/04/2021 15 Rinse
01/04/2021 15:21:13 Dishwasher power 17.157 17.157 W 01/04/2021 15 Rinse
01/04/2021 15:21:13 Dishwasher power 20.083 20.083 W 01/04/2021 15 Rinse
01/04/2021 15:21:14 Dishwasher power 10.661 10.661 W 01/04/2021 15 Rinse
01/04/2021 15:21:15 Dishwasher power 22.528 22.528 W 01/04/2021 15 Rinse
01/04/2021 15:21:16 Dishwasher power 35.386 35.386 W 01/04/2021 15 Rinse
01/04/2021 15:21:18 Dishwasher power 38.862 38.862 W 01/04/2021 15 Rinse
01/04/2021 15:21:30 Dishwasher power 18.638 18.638 W 01/04/2021 15 Rinse
01/04/2021 15:21:31 Dishwasher power 15.33 15.33 W 01/04/2021 15 Rinse
01/04/2021 15:21:32 Dishwasher power 13.084 13.084 W 01/04/2021 15 Rinse
01/04/2021 15:21:39 Dishwasher power 7.898 7.898 W 01/04/2021 15 Rinse
01/04/2021 15:21:40 Dishwasher power 12.337 12.337 W 01/04/2021 15 Rinse
01/04/2021 15:21:42 Dishwasher power 4.668 4.668 W 01/04/2021 15 Rinse
01/04/2021 15:21:48 Dishwasher power 6.677 6.677 W 01/04/2021 15 Rinse
01/04/2021 15:21:51 Dishwasher power 8.933 8.933 W 01/04/2021 15 Rinse
01/04/2021 15:21:52 Dishwasher power 21.236 21.236 W 01/04/2021 15 Rinse
01/04/2021 15:21:54 Dishwasher power 11.83 11.83 W 01/04/2021 15 Rinse
01/04/2021 15:22:03 Dishwasher power 6.609 6.609 W 01/04/2021 15 Rinse
01/04/2021 15:22:10 Dishwasher power 2.048 2.048 W 01/04/2021 15 Rinse
01/04/2021 15:22:48 Dishwasher power 0.827 0.827 W 01/04/2021 15 Standby
01/04/2021 15:23:18 Dishwasher power 0.831 0.831 W 01/04/2021 15 Standby
01/04/2021 15:23:48 Dishwasher power 0.84 0.84 W 01/04/2021 15 Standby

#7

Paul,

1. What is the purpose of midcount? what does it do for you?

2. @dishwashernotify is a global variable? What are you doing with that when it is set to true?

3. What is switch 2? What are you turning on when the dishwasher, outlet 1, starts running?

4. If your dishwasher runs less than 6 minutes, you are increasing the mid-count from 0 to 1? What does this do for you?

5. What is Dishwasher power cut?

I really appreciate any clarification you can provide.

#8

On my machine I connected a dry contact sensor (some door sensors have terminals for wires) to the LED that shines on the floor whilst a cycle is running (with a dumb relay in the middle). When the cycle finishes, the LED turns off and I get an instant notification.

May I ask why you are running a rinse only cycle separately, before the main wash cycle (which includes a rinse). Seems like a waste of water to me lol.

#9

We run rinse typically after breakfast or lunch, that way that dishes are sitting all day waiting to be washed at night. I think @Paul1964 is onto something. Iâm interested in learning more about his piston.

#10

Hi,

There are a few things in my piston which do other tasks, which confuses it slightly.

The midcount is used as a full cycle has a point mid cycle where the power drops to standby levels for around 6 mins. So this is used to track progress through the cycle and only notify at the end. Otherwise, youâd get a cycle complete message half way through.

@dishwashernotify is used by another piston, which sends the finished message when you go into the kitchen to remind you to empty the dishwasher.

switch2 is a virtual switch, its only purpose is to show on the ST app that the dishwasher is running a cycle.

The dishwasher powercut logic is used as a reset for the piston. Very occasionally the piston will fail to report completion, leaving the virtual switch on and the mid variable set incorrectly. This just lets me easily reset everything.

#11

I havenât ploughed through either the piston or the log. I was going to caution you to treat the âwasâ comparison with suspicion as a number of users have experienced odd results from it since ST messed around with event history a few weeks back. You seem to have removed it though.

I will also point out that `stays` conditions have some interesting behaviour that can get in your way. If the comparison in the `stays` is true the piston will set a timer for the specified duration. If the comparison remains true, when the piston wakes up it will start a new piston instance that will continue as if `stays` had returned true. However that is a background behaviour, as it were. In the meantime the piston will immediately return false in the current instance and continue on its way. So donât expect a `stays` to cause the piston to wait and see what happens before continuing the piston.

#12

Got it working. Thanks for your help everyone!

The first if statement sets the run state to ârinseâ if power rises above 5w, and thanks the ids for starting the dishwasher.

The second if statement looks for a drop in power within 20 minutes and announces that the rinse cycle is done, and sets the run state to âdoneâ

The third if statement sets the run state to ârunâ if the dishwasher has been running for more than 25 minutes

the fourth if statement announces that the dishwasher is done once an hour has passed since the dishwasher finished. This gives the dishes some time to cool.

The fifth if statement will fire every 10 minutes so long as the dishwasher empty variable is still false. It will announce that the dishwasher still needs to be emptied.

Once the kids put the dishes away, the last if statement will fire when they press a nearby switch up 4 times. This changes the dishwasher empty variable to true, thereby killing the every 10 minute announcement.

Hope this helps some people. Iâd be glad to answer any questions people might have.