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.
Repeat faster than every second
Lurendrejer
Member
Hi.
Are the any way to repeat something faster than every second? The time card only holds values down to one second, also when using variables.
Is there an app for that?
Are the any way to repeat something faster than every second? The time card only holds values down to one second, also when using variables.
Is there an app for that?
Comments
@KoenMartens I might misunderstand. Can I repeat a flow by delaying an action? I don't have a flow with multiple actions with a relay, I have one flow that repeats based on time(every 1 second) until the flow is disabled again.
When I release the switch, it sends a release notification. Which disables the looping flow.
If you know beforehand at what value you want to stop, you can do something like this (example following):
Current value: 0
Wanted end-value: 15
Step-size: 1 every 0.1 second
Make flow A like:
For every second, do: [10x flow B at delay 0.1, 0.2, 0.3, etc]
Make flow B like:
if current value < wanted end-value, dim lights and set current value to +1
Flow A:
If button is pressed, set var_pressed to TRUE
Flow B:
If button is released, set var_pressed to FALSE
Flow C:
Repeating every second, activate flow D with delay 0.0, 0.1, 0.2 seconds (etc).
Flow D : (repeated every 0.1 second)
If flow is activated, AND var_pressed is TRUE, then do something with the lights.
As I said, since flows C and D are constantly active, this will have a non-stop load on Homey. However, in principle, this should work, since flow A and B react instantly on getting the signal from the button.