KmanOz / Sonoff-HomeAssistant

Firmware for ESP8266 based itead Sonoff switches for use with HomeAssistant
MIT License
351 stars 86 forks source link

Countdown Timer #4

Closed zpukr closed 7 years ago

zpukr commented 7 years ago

I added a minute timer in your code, maybe it will be interesting for you

KmanOz commented 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?

zpukr commented 7 years ago

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

KmanOz commented 7 years ago

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.