Thanks, that is a nice trick I didn’t know about. This is the result of the first run after a reboot of OH, the rule runs after the trigger:
2020-07-24 20:23:04.728 [ome.event.ItemCommandEvent] - Item ‘Rule_Trigger’ received command ON
2020-07-24 20:23:04.742 [vent.ItemStateChangedEvent] - Rule_Trigger changed from NULL to ON
==> /var/log/openhab2/openhab.log <==
2020-07-24 20:23:05.375 [INFO ] [.eclipse.smarthome.model.script.test] - w 28.0
==> /var/log/openhab2/events.log <==
2020-07-24 20:23:05.410 [ome.event.ItemCommandEvent] - Item ‘WaterkraanAchter_Valve_commands_DurationWatering’ received command 30
2020-07-24 20:23:05.429 [ome.event.ItemCommandEvent] - Item ‘WaterkraanAchter_Valve_commands_OpenValveWithDuration’ received command ON
2020-07-24 20:23:05.432 [nt.ItemStatePredictedEvent] - WaterkraanAchter_Valve_commands_DurationWatering predicted to become 30
2020-07-24 20:23:05.450 [nt.ItemStatePredictedEvent] - WaterkraanAchter_Valve_commands_OpenValveWithDuration predicted to become ON
2020-07-24 20:23:05.464 [vent.ItemStateChangedEvent] - WaterkraanAchter_Valve_commands_DurationWatering changed from 60.0 min to 30.0 min
2020-07-24 20:23:05.472 [vent.ItemStateChangedEvent] - WaterkraanAchter_Valve_commands_OpenValveWithDuration changed from NULL to ON
And this is the result when I fire it the second time:
2020-07-24 20:26:34.362 [ome.event.ItemCommandEvent] - Item ‘Rule_Trigger’ received command ON
2020-07-24 20:26:35.361 [vent.ItemStateChangedEvent] - LocalRaspberry_Sensors_CPUTemperature changed from 38.1 to 38.6
2020-07-24 20:26:37.400 [vent.ItemStateChangedEvent] - LocalRaspberry_Sensors_CPUTemperature changed from 38.6 to 38.1
All logging further on doesn’t concern the watering rule.
So it seems that it can read the value the first time but after that is seems impossible till a reboot.