Hi,
You can fix variable with sending data. In the firmware, you must add this function for place value in this V_VARx
So, place this function into your setup firmware.
Where in this case
MyMessage var1valve(CHILD_ID_SPRINKLER, V_VAR1);
MyMessage var2valve(CHILD_ID_SPRINKLER, V_VAR2);
This loop repeat for each relay (i) and you can set any value at the end (1) for one minutes and (5) for five minutes.
That's all.
void goInitiateValveTime() {
for (byte i = 0; i <= NUMBER_OF_VALVES; i++)
{
send(var1valve.setSensor(i).set(1));
wait(50);
send(var2valve.setSensor(i).set(5));
}
wait(50);
lastValve = -1;
}
Refresh Home Assistant just after run one time your script and value appear in your persistence file.
Regars,