Hello, my Homey Pro will be delivered soon (I hope but for now i’m using my Bridge. Ik was wondering if the ‘calculate’ feature in flows has functions (e.g. trim(), len(), substr(), sqrt(), … and if yes, where I can find a description. Is there an online manual?
On a related note, is there a way to copy Bridge flows to the Pro, or do I have to recreate them when I’ll migrate?
Most of these functions work
Examples
https://community.homey.app/search?context=topic&context_id=80448&q=Math&skip_context=true
No, unfortunately there’s nothing you can migrate
Thank you Peter! Meanwhile I’d found your same reply elsewhere in the Community Forum With examples trim(), len(), substr() I meant (also) string operations, but there doesn’t seem to be a way to run a string operation on Text variables, which is a pity.
YW! Yeah I tried to ignore the string part
Basic string operations are possible, but use it like this:
But you might take a look at the Better Logic Library app, it has also Lodash available.
You can write your own functions as well with it
Ah, but I expect my Pro in a few weeks and for now am only a poor ‘Bridge’ user Unfortunately I cannot load the BLL app in the cloud, and also… I don’t see a ‘Calculate’ option for Text variables in the cloud version (only for numericals).
Ik moet nog een paar weken geduld hebben