timerset remaining time

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
heggink
Normal user
Posts: 3
Joined: 10 May 2017, 22:39

timerset remaining time

#1 Post by heggink » 10 May 2017, 22:43

If I set a timer with timerset, is there a way to display where it's at on an oled/LCD display?
I want to replace my sauna control circuit with an ESP module with DHT22 module and OLED display (displaying tem, humid and remaining time before the sauna shuts down). Domoticz does not provide a countdown timer so trying to see if I can do it this way.
Cheers,
H

paxi
Normal user
Posts: 121
Joined: 02 Feb 2017, 00:48
Location: Germany

Re: timerset remaining time

#2 Post by paxi » 14 May 2017, 15:07

I use these rules in conjunction with a dummy device (state#sleep) as sleep-timer for a lamp:

Code: Select all

on sleeptimer do
    TaskValueSet 2,2,(%eventvalue%+[state#sleep]) 
    event,switchon 
    TimerSet 2,60
endon 
on Rules#Timer=2 do
    TaskValueSet 2,2,([state#sleep]-1)
    if [state#sleep]>0
        TimerSet 2,60
    else
        event,switchoff
    endif 
endon 
    

Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests