This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Flows
Checking if door is open for x seconds in single flow.
Lampenz
Member
Hi,
I am having the following difficulties. I'm looking for something simple. I've got a Xiaomi door/window contact, and this is a simple on / of device. At least, for normal usage
Closed Opened Closed
___________|---------------|___________
1 2
1: Open trigger (available in flows)
2 : Closed trigger
What i want to know, is weather it is possible in a flow, to check if the door/window is open for lets say 30s, and what i'm more interested in is doing so in a single flow. what i'm looking for probably looks like a timer.tick (.net) or TON timer (PLC). Also, is it possible to check weather a device has changed status for certain period of time using standard logic?
Any idea in how to accomplish something like this?
I am having the following difficulties. I'm looking for something simple. I've got a Xiaomi door/window contact, and this is a simple on / of device. At least, for normal usage
Closed Opened Closed
___________|---------------|___________
1 2
1: Open trigger (available in flows)
2 : Closed trigger
What i want to know, is weather it is possible in a flow, to check if the door/window is open for lets say 30s, and what i'm more interested in is doing so in a single flow. what i'm looking for probably looks like a timer.tick (.net) or TON timer (PLC). Also, is it possible to check weather a device has changed status for certain period of time using standard logic?
Any idea in how to accomplish something like this?
Tagged:
Comments
A similar discussion here https://forum.athom.com/discussion/4215/how-to-calculate-a-duration
The developer of the CountDown app made a CountUp version right away - can be found here:
https://github.com/ralfvd/nl.bevlogenheid.countup
As said, i will try this when i get home, and get back to tell you guys te result.