Hello community,
I am facing a problem with Homematic/ Raspberrymatic that is difficult for me to solve.
The task is as follows:
There are several valves from which I have extracted the valve opening and added them via script.
The result is the system variable “Ventilöffnung_All”.
I would now like to create a program that contains the following logic:
If “Valveopening_All” >= 250, then
Start Time Counter (1800 seconds).
If the value of “Ventilöffnung_All” < 250 within this time, the Time Counter is reset and as soon as “Ventilöffnung_All” >= 250 again, it starts again from the beginning.
If the value of “Valve_opening_all” is still >= 250 after 1800 seconds, then device XYZ should be triggered to on.
I’ve already tried a few things and I can’t get any of the solutions to work properly because I can’t get a proper time counter to work…
Maybe you can help me or maybe you know a template code which I can change.
in Home Assistant this would be absolutely no problem for me, but I want/need to programme this in the Raspberrymatic environment, that’s where the problem lies