OH1: Get the name of the item which called the rule?

Hi Max
I was also put off installing OH2 with that screen but following the tutorial for upgrading from OH1, once I took the step, it was quite straightforward and easy.
I am glad I did

2 Likes

Probably an excessive sleep. If the only problem is persistence, a sleep of 500 msecs will almost certainly be more than enough. Often 100 msecs is plenty. But I’m glad adding the sleep is working.

Well, I thought 15 seconds is a long time, but the calculation rules (though simple) take 10-12 seconds to complete, hence, setting the timer to 15 seconds after the previous one exoired covered it.

this is what it was before 15 seconds:

2018-03-25 15:29:55.742 [INFO ] [nhab.model.script.Irrigation.0] - System Start: Irrigation .
2018-03-25 15:30:03.509 [INFO ] [hab.model.script.Irrigation1.0] - System Start: Irrigation initialise state: done.
2018-03-25 15:30:11.372 [INFO ] [hab.model.script.Irrigation1.1] - Irrigation group 1 started...
2018-03-25 15:30:17.580 [INFO ] [hab.model.script.Irrigation1.1] - ... turning Irrigation1_1 ON
2018-03-25 15:30:19.429 [INFO ] [hab.model.script.Irrigation1.2] - ... station1 VolumeSession ... -> set to 0
2018-03-25 15:30:28.848 [INFO ] [hab.model.script.Irrigation1.6] - ... VolumePrevious............ -> 3
2018-03-25 15:31:39.796 [INFO ] [model.script.Irrigation1.timer] - ... turning Irrigation1_1 OFF
2018-03-25 15:31:44.075 [INFO ] [odel.script.Irrigation1_1.off1] - ... current meter reading .... -> 3
2018-03-25 15:31:46.358 [INFO ] [odel.script.Irrigation1_1.off2] - ... valveVolume (calc) ....... -> 0
2018-03-25 15:31:49.977 [INFO ] [odel.script.Irrigation1_1.off3] - ... added valve vol to session -> 0
2018-03-25 15:31:51.799 [INFO ] [odel.script.Irrigation1_1.off4] - ... valve flow rate .......... -> 231
                 12
2018-03-25 15:32:15.248 [INFO ] [model.script.Irrigation1.timer] - ... turning Irrigation1_2 ON
2018-03-25 15:32:17.239 [INFO ] [hab.model.script.Irrigation1.6] - ... VolumePrevious............ -> 3
2018-03-25 15:33:17.284 [INFO ] [model.script.Irrigation1.timer] - ... turning Irrigation1_2 OFF
2018-03-25 15:33:18.924 [INFO ] [odel.script.Irrigation1_2.off1] - ... current meter reading .... -> 3
2018-03-25 15:33:21.419 [INFO ] [odel.script.Irrigation1_2.off2] - ... valveVolume (calc) ....... -> 0
2018-03-25 15:33:25.490 [INFO ] [odel.script.Irrigation1_2.off3] - ... added valve vol to session -> 0
2018-03-25 15:33:27.040 [INFO ] [odel.script.Irrigation1_2.off4] - ... valve flow rate .......... -> 231
                 10
2018-03-25 15:33:47.443 [INFO ] [model.script.Irrigation1.timer] - ... turning Irrigation1_3 ON
2018-03-25 15:33:47.655 [INFO ] [hab.model.script.Irrigation1.6] - ... VolumePrevious............ -> 3
2018-03-25 15:34:47.715 [INFO ] [model.script.Irrigation1.timer] - ... turning Irrigation1_3 OFF
2018-03-25 15:34:51.474 [INFO ] [odel.script.Irrigation1_3.off1] - ... current meter reading .... -> 0
2018-03-25 15:34:53.821 [INFO ] [odel.script.Irrigation1_3.off2] - ... valveVolume (calc) ....... -> -3
2018-03-25 15:34:57.869 [INFO ] [odel.script.Irrigation1_3.off3] - ... added valve vol to session -> -3
2018-03-25 15:34:59.779 [INFO ] [odel.script.Irrigation1_3.off4] - ... valve flow rate .......... -> 231
                 12
2018-03-25 15:35:17.907 [INFO ] [model.script.Irrigation1.timer] - ... turning Irrigation1_4 ON
2018-03-25 15:35:18.069 [INFO ] [hab.model.script.Irrigation1.6] - ... VolumePrevious............ -> 3
2018-03-25 15:36:18.114 [INFO ] [model.script.Irrigation1.timer] - ... turning Irrigation1_4 OFF
2018-03-25 15:36:21.419 [INFO ] [odel.script.Irrigation1_4.off1] - ... current meter reading .... -> 0
2018-03-25 15:36:24.085 [INFO ] [odel.script.Irrigation1_4.off2] - ... valveVolume (calc) ....... -> -3
2018-03-25 15:36:27.881 [INFO ] [odel.script.Irrigation1_4.off3] - ... added valve vol to session -> -6
2018-03-25 15:36:29.319 [INFO ] [odel.script.Irrigation1_4.off4] - ... valve flow rate .......... -> 231
                 11
2018-03-25 15:36:32.651 [INFO ] [odel.script.Irrigation1_4.off5] - ... VolumeSession (added) .... -> -6
2018-03-25 15:36:33.771 [INFO ] [odel.script.Irrigation1_4.off6] - ... SessionVolume ............ -> -6
2018-03-25 15:36:48.721 [INFO ] [enhab.model.script.Irrigation1] - Irrigation group 1 finished.
2018-03-25 15:36:52.782 [INFO ] [enhab.model.script.Irrigation1] - Irrigation group 1 -> reset Now Switch

this is what is was after…

2018-03-25 15:48:37.196 [INFO ] [nhab.model.script.Irrigation.0] - System Start: Irrigation .
2018-03-25 15:48:44.986 [INFO ] [hab.model.script.Irrigation1.0] - System Start: Irrigation initialise state: done.
2018-03-25 15:49:12.001 [INFO ] [hab.model.script.Irrigation1.1] - Irrigation group 1 started...
2018-03-25 15:49:17.771 [INFO ] [hab.model.script.Irrigation1.1] - ... turning Irrigation1_1 ON
2018-03-25 15:49:19.736 [INFO ] [hab.model.script.Irrigation1.2] - ... station1 VolumeSession ... -> set to 0
2018-03-25 15:49:28.203 [INFO ] [hab.model.script.Irrigation1.6] - ... VolumePrevious............ -> 3
2018-03-25 15:50:38.408 [INFO ] [model.script.Irrigation1.timer] - ... turning Irrigation1_1 OFF
2018-03-25 15:50:43.582 [INFO ] [odel.script.Irrigation1_1.off1] - ... current meter reading .... -> 3
2018-03-25 15:50:46.167 [INFO ] [odel.script.Irrigation1_1.off2] - ... valveVolume (calc) ....... -> 0
2018-03-25 15:50:49.979 [INFO ] [odel.script.Irrigation1_1.off3] - ... added valve vol to session -> 0
2018-03-25 15:50:51.835 [INFO ] [odel.script.Irrigation1_1.off4] - ... valve flow rate .......... -> 231
2018-03-25 15:50:59.603 [INFO ] [model.script.Irrigation1.timer] - ... turning Irrigation1_2 ON
2018-03-25 15:51:02.072 [INFO ] [hab.model.script.Irrigation1.6] - ... VolumePrevious............ -> 3
2018-03-25 15:52:02.110 [INFO ] [model.script.Irrigation1.timer] - ... turning Irrigation1_2 OFF
2018-03-25 15:52:03.988 [INFO ] [odel.script.Irrigation1_2.off1] - ... current meter reading .... -> 3
2018-03-25 15:52:06.234 [INFO ] [odel.script.Irrigation1_2.off2] - ... valveVolume (calc) ....... -> 0
2018-03-25 15:52:09.745 [INFO ] [odel.script.Irrigation1_2.off3] - ... added valve vol to session -> 0
2018-03-25 15:52:11.666 [INFO ] [odel.script.Irrigation1_2.off4] - ... valve flow rate .......... -> 231
2018-03-25 15:52:17.255 [INFO ] [model.script.Irrigation1.timer] - ... turning Irrigation1_3 ON
2018-03-25 15:52:17.402 [INFO ] [hab.model.script.Irrigation1.6] - ... VolumePrevious............ -> 3
2018-03-25 15:53:17.446 [INFO ] [model.script.Irrigation1.timer] - ... turning Irrigation1_3 OFF
2018-03-25 15:53:19.734 [INFO ] [odel.script.Irrigation1_3.off1] - ... current meter reading .... -> 3
2018-03-25 15:53:22.318 [INFO ] [odel.script.Irrigation1_3.off2] - ... valveVolume (calc) ....... -> 0
2018-03-25 15:53:26.148 [INFO ] [odel.script.Irrigation1_3.off3] - ... added valve vol to session -> 0
2018-03-25 15:53:27.607 [INFO ] [odel.script.Irrigation1_3.off4] - ... valve flow rate .......... -> 231
2018-03-25 15:53:32.595 [INFO ] [model.script.Irrigation1.timer] - ... turning Irrigation1_4 ON
2018-03-25 15:53:32.759 [INFO ] [hab.model.script.Irrigation1.6] - ... VolumePrevious............ -> 3
2018-03-25 15:54:32.810 [INFO ] [model.script.Irrigation1.timer] - ... turning Irrigation1_4 OFF
2018-03-25 15:54:34.847 [INFO ] [odel.script.Irrigation1_4.off1] - ... current meter reading .... -> 3
2018-03-25 15:54:37.309 [INFO ] [odel.script.Irrigation1_4.off2] - ... valveVolume (calc) ....... -> 0
2018-03-25 15:54:41.477 [INFO ] [odel.script.Irrigation1_4.off3] - ... added valve vol to session -> 0
2018-03-25 15:54:42.969 [INFO ] [odel.script.Irrigation1_4.off4] - ... valve flow rate .......... -> 231
2018-03-25 15:54:46.391 [INFO ] [odel.script.Irrigation1_4.off5] - ... VolumeSession (added) .... -> 0
2018-03-25 15:54:47.267 [INFO ] [odel.script.Irrigation1_4.off6] - ... SessionVolume ............ -> 0
2018-03-25 15:54:48.422 [INFO ] [enhab.model.script.Irrigation1] - Irrigation group 1 finished.
2018-03-25 15:54:52.856 [INFO ] [enhab.model.script.Irrigation1] - Irrigation group 1 -> reset Now Switch

No need to figure it out… it works – all that matters right now. :smiley: