domoticz automation scripting help

Job ID: 31141184

Budget: $10 – $30 USD

I need help with scripting for
https://www.domoticz.com/

I neeed help with implementing function as described here https://www.domoticz.com/forum/viewtopic.php?f=59&t=28176

I want to use this script for my garden irrigation system.
If i press image of a switch (when it is on), off option by pressing on image doesn't work.
Also I want to implement countdown time (it must be displayed how much time is left)
Related categories: PHP Software Architecture Lua