Closed zpukr closed 7 years ago
I haven't looked at the code but what exactly is this for? Is it a countdown timer after it has been triggered to turn off after 1 minute?
You can set any time for countdown timer. For example. If you set timer to 60, relay instantly ON, and automatically OFF after 60 minutes. This is useful if you want to turn on the device for a period of time, there is no need to keep track of time for you, sonoff do everything by self
Yes but considering I have designed this firmware specifically for use with HomeAssistant, why would you create a timer in the Sonoff when you can easily do it in HomeAssistant? I don't understand.
I added a minute timer in your code, maybe it will be interesting for you