Homey Community Forum

Any way to do a "countup" instead of a countdown?

#1

I would, if possible, like to be able to know how long since a particular event. For example - how long ago the last movement on a movement sensor happened.

Any ideas?

#2

You don’t need this for capabilities, to see the last for example motion detected, you can see the time received by just clicking on the capability in the mobile app.

#3

I need to USE the information, not view it manually.

For instance, send it to me the latest time some sensor detected movement if I push an IFTTT-button.

Perhaps I want to have a webpage of my house and show latest movement times on each and every sensor… of something else… can probably think of a lot of ideas if this would be possible.

#4

I suggest setting a variable on movement and then read the time from that.

#5

Can you give an example on how you set time? I have no device that has current time as a tag.

#6

You can easy log to Simple LOG , every logged item gets a timestamp.
https://apps.athom.com/app/nl.nielsdeklerk.log

#7

Sure… but how would I read information from there as control information in a flow? I don’t want to know/read it… I want to be able to use it…

#8


These 2 tags are default tags available in homey, no need for an app.

Then you can use this tag of this logic value anywhere you’d like

1 Like
#9

Sorry, good idea - but it’s a bit difficult to do any logical tests on a varying textual variable - I would want it numerical.

E.g. how would you test if the textual variable was “more than 3.5 hours ago” ?

#10

Then you really need to start thinking about using Homey Script, or fill in an app/feature request for athom/community.

#11

I already sent the request for having date/time as numeric variable types… that probably sorts it if they ever do. This thread was just to poll the audience for any existing solutions I’d missed.

#12

Better Logic can calculate seconds since epoch with $timenow$

Also, this is built-in in Homey but I forgot how…

#13

BTW, @ralfvd also created a countup-app but don’t know how it works on V2

#14

Installed your app about a year ago and I am still using it. Works just fine in 2.x

#15

Just checked your app. Looks like it isn’t working after all.

#16

Now I’m confused :confused: Does that app work or not?

#17

would like to see it too. I now have a timer counting down from two hours so i get a message when my son must stop playing on the ps4. But also would like to know how long he has been playing when for example it is a holiday and it is really rainy. Would be easier if we just could count up.

#18

I thought it was working because the flows were still doing their job. Turned out that the timers were not updated anymore.

#19

Make a request for Ralf @ https://github.com/ralfvd/nl.bevlogenheid.countup/issues