Is there a way to set Pimatic variables to an initial value at startup?
In my case I use some ruling to manage PIR detection to be send to my email adres during a daily period of time at night.
To avoid having send multiple emails on one event (but PIR being triggered every 15 seconds) I introduced a variable $PIR-werkkamer-movement to be set active"(“yes”) and being reset after 5 minutes when no activity is detected by the PIR for 5 minutes (rule 2 below).
Now I discovered when this variable is set to “yes” and Pimatic restarts, this variable still holds the value “yes” and won’t reset to “no”, messing up my mechanisme in not resetting the variable $PIR-werkkamer-movement at all.
In Pimatic browser environment I would need to edit the variable to be working again.
What I would like is to set the variable to value “no” at startup of Pimatic.
set-pir-werkkamer-active When PIR mini werkkamer is present and $PIR-werkkamer-movement = "no" then set $PIR-werkkamer-movement = "yes" set-pir-werkkamer-active When $PIR-werkkamer-movement = "yes" for 5 minutes then set $PIR-werkkamer-movement = "no" PIR werkkamer nacht When its after 02:00 and its before 06:00 and $PIR-werkkamer-movement = "yes" then send mail to:"email@example.com" subject:"PIR werkkamer!" text:"Beweging gedecteerd door PIR werkkamer!"