How to set initial values to Item

I’m preparing script to my watering system. In this system user should set e.g when watering should start and how long watering should last.

I’ve created two items

String WtrStartTime “Watering time [%s]” (Wtr)
Number WtrDurationFront “Duration of watering [%d min]” (Wtr)

How can I set initial values for this Items (first run) ?

Use a rule triggered by “System started”.

1 Like

Actually, during startup I will check if the item value is null and set set it , if it is different than null just leave the value unchanged.