Open kpp39 opened 3 years ago
You could do that with a Home Assistant automation.
As @richard-scott said the easiest way to do this would be in an integration as I believe the countdown feature is handled away from the plug :)
Sorry, my English is bad( I think, there are two possible ways how it made in Tapo App: 1) cloud implementation - after expiration of timer app/cloud sends "off" command to plug 2) plug implementation - app/cloud sends something like "set timer..." to plug and this timer handled in plug
If there are no way to send something like "set timer..." to plug - ok, there are only HA automation only.
If there exist something like "set timer..." - i'll prefer this instead of straight "plug on" in some situations. For example - let there be some sensor(temp, humidity, etc.) and some to power on (heater, humidifier) and something gone wrong 1) sensor triggered "plug on" 2) sensor shuts down(battery fail - it's possible to overcome this via automation) or HA hangs up(watchdog ?) 3) plug continue to be in "on" state and there become overheat or anything else. If there instead of "plug on" possible to use something like "plug on for an hour" - this will be way more fail safe. Plug will turn off by itself.
In Tapo App there is a feature that you can set up a timer like "turn off after 5 minutes". Is it possible to add such function in this integration ?