user variable as a timer (count down)

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
voyo
Posts: 24
Joined: Monday 17 February 2020 19:16
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Poland
Contact:

user variable as a timer (count down)

Post by voyo »

Hi,
I have a suggestion, what if we can have a possibility to create user variable of counter type, which can count down a set time.
Example usage -
create such variable, name it like 'presence_in_room', set it to default 3minutes, then allow system to count down every second.
When it count to 0 - system consider as there is no presence in that room. But there are other devices , which can reset the timer, or add + few minutes. (PIR, input from camera detecting movement, light switch , anything).

Or... maybe there is other way to achieve this functionality ??
(I tried to achieve something similar using events, but problem is that it can decrease value only in 1minute intervals, which seems is too low)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest