Setting switch status to ON for X amount of time

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
blazej222
Posts: 5
Joined: Thursday 21 March 2019 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Contact:

Setting switch status to ON for X amount of time

Post by blazej222 »

Hi everyone!
I need to configure domoticz in a way that would allow me to choose for how many minutes I want to power the switch ON everytime I click on it.
The amount of minutes is an integer, from 5 to 15. So when I click on a switch I want to have multiple options - like 5,6,7,8,9,10,11,12,13,14,15 or a field where I could input the amount of minutes.
Since the device is being switched on in that way:
Image
it is important that the amount of minutes should be also stored in some variable passed to Blockly/other Events Handling methods.
I would like to select amount of time every time I activate 'Permission to pwrON'.
I would be very grateful for any ideas how to solve the problem.
kimot
Posts: 105
Joined: Saturday 25 November 2017 17:18
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8153
Location: Czech Rep.
Contact:

Re: Setting switch status to ON for X amount of time

Post by kimot »

Create selector switch and through DzVents handle witch level was pressed and set timer and variable.
RPi2 Domoticz v 4.10717
10 x Sonoff Basic - ESPeasy
1 x Wemos D1 - ESPeasy
1 x Shelly Plus Plug S
1 x Sonoff S26 - ESPeasy
1 x Shelly 1
1 x MySensors HC-SR04
1 x MySenosrs wifi gateway
1 x RFLink
4x Cam IPC-T240H
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest