Ask questionsSleep timer / Inching / Auto turn-off functionality on button press (watering plants)

<!-- Thanks for suggesting an idea for this project. READ THIS FIRST:

Please take a few minutes to complete the requested information below. Our ability to provide assistance is greatly hampered without it. The details requested potentially affect which options to pursue. The small amount of time you spend completing the template will also help the volunteers providing the assistance to you to reduce the time required to help you.

DO NOT DELETE ANY TEXT from this template! Otherwise the issue will be auto-closed. -->

Have you looked for this feature in other issues and in the docs?

Is your feature request related to a problem? Please describe.
I migrated my Sonoff S20 lately to Tasmota and miss an important functionality: My problem is, that I use the S20 plug to water plants outdoor: With the EWELink firmware there was an "inching" functionality available which allowed me to define a custom time span after which the plug reliably would turn off automatically.

My Wifi connection outdoor is only sporadic available if at all. On demand-programming a new cycle via web interface turned out to be rather cumbersome (UI UX) or not possible (broken Wifi Link).

Therefore restoring my former functionality of just pressing the button to start on demand a new watering cycle which gets automatically turned off i.e. after 10 minutes would be a big win. Yet I drained my water barrels empty more than once…

Describe the solution you'd like
I want to be able to configure a custom time period after which the plug should turned off itself reliably.

This means i.e. after a turning on the plug by a short button press (default behavior) it will automatically turn off after my custom configured time (i.e. 10 mins). This auto-turn-off period could also apply to schedule-triggered turn-ons.

Describe alternatives you've considered
1. Manually programming a new time table entry: Doesn't work due to crappy Wifi connection. 2. Manually turning of: I forget it EVERY time! 3. Looking at the button config options: Didn't see any way to copy my desired behavior

Additional context

(Please, remember to close the issue when the problem has been addressed)


Answer questions bentolor

Hi @schrej-zz : Thanks for your quick reply. Hmmm… how did I miss that?

Nevertheless: Easy does not match at least for me: I'm a little lost on how to get things working. I would access the web console and there paste something like the following command ?!??:

Rule1  ON Power#state=1 DO RuleTimer1 4 ENDON ON Rules#Timer=1 DO Power 0 ENDON

But this is not working. Also tried Power1 instead of Power.


Related questions

Support for Wi-Fi Dimmer? hot 2
Can&#39;t update firmware to esphome or tasmota binaries pre 20 Dec 2019 ( - Tasmota hot 2
Adding support for PZEM004T energy monitor for 3 phase - request - Tasmota hot 1
rules enabled caused compiler failure hot 1
Ph sensor 4502C readout hot 1
MG90s Servo Control with Dimmer command - Tasmota hot 1
DC meter from Peacefair with RS485 - Tasmota hot 1
Local access security issue due to HTTP CORS header hot 1
sserialreceived hex string will not be recogniced hot 1
Losing device after upgrade from to hot 1
switching by main power frequency recognition hot 1
Github User Rank List