I am working on my RollerTrol blinds, and I have regular Nexa plug-in modules for power to the 12V power supplies to them. So if the power supply is off I need to turn it on and then wait 5 seconds (the blinds for some reason need a bit of time to "charge up" the power before they react reliably to commands) and then fire the command. But I don't want those 12V PSUs running all the time, both so I don't have something that is using power unnecessary and for fire safety reasons, so I start a timer that counts down from five minutes to 0 and then turns off the power supplies (so far I'm only using a regular trigger event:
Code: Select all
eg.plugins.EventGhost.TriggerEvent(u'Main.Gardinstr\xf8m av', 300.0)
But I don't think this can be reset, right? So how would I do to reset? Because sometimes I want to open/close one or two of the blinds again, and sometimes I want toopen them all again, and so on. So I have a variable set when the power is turned on, and that saves me the 5 seconds wait before sending the blinds command. But if power is turned off by the timer while the blinds are on the way up or down, that's annoying.

So how do I reset the timer and give myself 5 more minutes if I send another command within those 5 minutes?