Action cards (only for advanced flows) Image Display: Fetch and display images from a URL as tokens with the âtemporary-imageâ action card by providing the âimageUrlâ parameter. Calculate: Evaluate mathematical expressions with the âcalculate-floatâ and âcalculate-intâ action cards. Days: Calculate number of days between 2 dates Random Numbers: Generate random numbers using âgenerate-random-numberâ with defined ranges. Leap Year: Check for leap years with the âcheck-leap-yearâ action card by providing the âyearâ parameter. BMI Calculation: Calculate BMI with the âcalculate-bmiâ action card using âweightâ and âheightâ parameters. Mathematical Operations: Perform calculations with operators (+, -, *, /) using the âcalculateâ action card with ânumber1â, ânumber2â, and âtextâ (operator) parameters. Temporary Values: Store and retrieve temporary values (numbers, strings, URLs, and images) using âtemporary-numberâ, âtemporary-stringâ, âtemporary-urlâ, and âtemporary-imageâ action cards.
Condition cards Number Greater Than: Check if one number is greater than another with the ânumber_greater_thanâ condition card. Provide ânumberâ and ânumber2â parameters. Number Less Than: Determine if one number is less than another using the ânumber_less_thanâ condition card. Specify ânumberâ and ânumber2â parameters. Text Has Value: Verify if a text contains a specific value with the âtext_has_valueâ condition card. Use âtextâ and âwaardeâ parameters. Text Has Exactly: Check if a text is exactly equal to a specified value using the âtext_has_exactlyâ condition card. Provide âtextâ and âwaardeâ parameters. Boolean Is Exactly: Determine if a boolean value is exactly equal to âtrueâ with the âboolean_is_exactlyâ condition card. Provide the âbooleanâ parameter.
Install Custom Logic app from the Homey app store and start creating advanced flows!
Iâm using the âCustom Logicâ app on Homey to calculate the difference in days between two dates. The function works well, but I have a problem with the input date formats. I receive dates in two different formats: dd/mm/yyyy (e.g., 01/09/2024) and yyyy/mm/dd (e.g., 2024/09/01).
Is there a way in âCustom Logicâ to automatically convert these dates to a single format (preferably yyyy/mm/dd) before calculating the difference in days? If not, is there a workaround or a script that could help achieve this?
I have been trying to get some calculations done in the advance flows using a number of apps and the standard logic flow.
however homey doesnt recognize any of the mathematical experssions, items like +, -. *, / work fine but nothing a bit more specific like EXP(X) or LN(X).
in this case i get either 43 (so nothing as it is the anwser to everything) or in for example a custom logic app the error message that âexp(2) is not a mathemetical expressionâ, more simple formules adding, or extracting work without any problems.
same result for both variants again in different apps and the standard available logic flows.
as per reference also inserted another formula which goes through just ok;
I normally use the Better Logic Library app with its flow cards to perform calculations. Using the âcalculate as tagâ card, the following expression works: