Help with Toggle Timer

Is there a code so that when I toggle something into view rather than press it again to return to original state it just times out after 5 seconds?

Thank you

@mikeoday :slight_smile:

Do I need to create a merge of these two codes somehow >>

$#VAR_2#==1?100:0$

$(#DWE#%10)<5?100:0$

Yes you can do it with #VAR_1_T# and a +1 #VAR_1# as a button.
The code for opacity should work as $(#DNOW#-#VAR_1_T#)<5000?100:0$
Let me know if this work as intended…

2 Likes

ok, will do :thumbsup:

Edited!!! #VAR_1_T# is just a fixed timestamp, you have to compare it with #DNOW# to get a time lapse…

1 Like

Remember most of the watches go DIM before 5 seconds :grin:

Good point and yes it worked on my test. Will have a play on the actual now. Thank you :slight_smile:

1 Like

@carlosfilippa

Spot on, So i can now toggle between a permanent Heart Rate or Steps progress outer ring but on initial press centre displays number of steps for 2.8s before returning to time.

2 Likes

Well done! Congrats!

Sorry, I just saw your question.

I’m glad you got an answer.

:slight_smile:

All good mate. Thank you