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.
Comments
What's the most efficient way to achieve this?
Waiting till @Emile fixed it in the firmware. I saw he assigned the bug to himself.
Right now , I have implemented this myself with a flow that increases a number every 15 seconds, and as soon as the variable is e.g. 60 , I turn off the light.
It would save some flows if this was built into the BetterLogic app itself, or in a separate countdown timer app, if that is more logical.
As I am planning on using motion sensors to switch on / off lights and set brightness off lights I also want to make use of some sort of solution you're after.
There is a way of working around this that would work very nice I think.
Create a flow that every second (or X seconds) flips a boolean value (to create a specific flow trigger)
On motion you set a variable LastMotionTimeSensorX
Then you create a flow that triggers on the change of the boolean, checks with the math.js library if there is X seconds between the current time and LastMotionTimeSensorX AND LastMotionTimeSensorX != 0(1 card). If it is true, you can reset the LastMotionTimeSensorX to 0.
I'll give it a go to try to come up with a separate countdown app, I agree Better Logic might not be the best place for tis kind of functionality. And that's the beauty of Homey and its app store ;-)
Example:
You have a flow that saves the temperature messured by your sensor to a variable everytime the temperature changes.
And you would like to have a voice command that you can ask homey what will result in speaking what value this variable has. As far as I checked this, there is no option to get the value of a variable in a flow unless its the Trigger-Card in the "when..." colum.
Request:
Please add a "...and..." card which has a dragable variable sign. e.g.: "Variable [] is set" [Value] [Variable].
@Peao Your feature is currently not possible. And cards can not have droptokens.
I also would like it, but the homey does not allow it for now.
If variable changes, and variable is less than x, trigger flow x
Is this possible?
Background info:
I want to check my freezer temp variable, if it's not below a certain temperature, I want to trigger a recurring flow until it returns to a normal temperature...
What will your trigger be? An change on temp or a trigger every x seconds?
Variable > -18
Then do X....
And if you want to trigger aslong this is true, replace do X with set bool DoX = true
Then make an second flow
Every X seconds
AND DoX==true
Then do more special stuff....
But this is so simple, you probably had an other idea?
What would it take, to be able to do something like this:
If [I say something: "What is the temperature"] and [TempValue > 0] then [Say: The temperature is $TempValue]
or even
If [I say something: "What is the temperature"] then [Say: The temperature is $TempValue]
? any chance of something like this happening, or does this require a significant change in the Flow editor first?
And it looks like I also can't copy the contents of one variable into another one... so I also can't do:
If [I say something: "What is the temperature"] then [SET $TempValue2 = $TempValue]
If [$TempValue2 is set] then say [The temperature is $TempValue2]