Delay in a scene?

Good evening,

I would like, in a scene triggered at a specific time:

  • read the soil moisture state: to do…
  • turn on a controlled solenoid valve: OK,
  • wait for a given time: Not working,
  • turn off the previously turned-on solenoid valve: OK,
  • read the moisture state again: to do…
  • notify of the end of watering and of the read state: to do…

Since the basic timing/delay aspect is not working, I didn’t pursue further: could someone help me with timing/waiting in a scene?

Thanks in advance,
Jean

Regarding waiting for a duration, doesn’t the WAIT block work for you?

Also, what’s the problem with reading the soil moisture? I imagine you have a sensor for that — you just need to retrieve its latest value:

Hello @guim31,

Thanks

Hello,

How did you create your scene?

For the pause to work, it needs to be in an action block after turning on your solenoid valve. Then a new action block after the pause to turn it off.

If you put all the actions in the same block, all the actions are executed at the same time.

Hello @PhilippeMA,

That’s exactly what’s in place: a power-on block, a timer block (which doesn’t seem to work), a power-off block.

Hi, can you test:

  • a message
  • a pause
  • a message
    you’ll see if the delay block works

And if you can take a screenshot of your scene, that’d be great :+1:

Thanks @Hizo for that very simple idea: the timer works… However, it’s with the stop command after the timer that the problem arises?! I’ll go look for it then :slight_smile:

Thanks and sorry for this unnecessary noise in the end :stuck_out_tongue:

It’s never useless :+1:
Which protocol does your solenoid valve use?

@guim31 : The solenoid valves are controlled by a « homemade » setup based on Raspberry Pi Zero W (RPi 0W)/python/MQTT …

Ok, might as well tell you that I won’t be able to help you then :sweat_smile:

And can’t the Python script produce specific logs to verify whether Gladys’s delay is working?