Hello Fellow Users,
i am totally new to automation and Raspberry Pi in general but i found pimatic was really useful for what i wanted because it can easily execute Shell commands.
Now i got myself a WebRelay Module by KMTRONIC. The NIce aspect of this is, that it has its own little webserver where you can switch the relays inside the module by calling a simple web url wich i did using curl.
curl -u admin:admin http://192.168.1.200/FF0200 > /dev/null && sleep 1 && curl -u admin:admin http://192.168.1.200/FF0101 > /dev/null
(The first part turns Relay 2 off just to make sure i dont crash the motor of my shutter
The second part sleeps for one second to give the command time to switch and finally i turn Relay 1 on to drive the shutter upwards - btw this works just as described fine)
Now the Problem is: The Control Dummy shutter has no reset of its state that i can trigger.
I mean when press it it should execute by rule what i wrote above but when i release i would like to have a second rule trigger this, again switching off just relay 1.
Can someone of all you help me getting this sorted out?
what i want is clearly the following:
Button executes Rule while its pressed. If released it excutes something different and if its nothing then it does nothing.
Another question is, wether i can pack the commands into a var wich i can call then like
execute “$vark1up” ?
I would really be happy about anything to assist my idea.
Thanks in advance