If this turns out not being a howto question, but rather a bug report, please guide me right here!
Image showing my code after test:
Image showing my trouble getting the recieving card to read the output of the code:
Note: The tag-name “klok12h” is kind of “glued” in this menu and reflects an earlier experiment of mine. The value (9) also made sense back then. I have restarted my Homey Pro but
#klok12h pops up anyway!
Try running the flow once, then see if the “Result” tag (which contains the result of the script) appears.
It has run many times, I use it to collect Excel data for my hourly power consumption (Swedish Excel doesn’t understand decimal points, only commas).
Am I looking for it in the right place (under HomeyScript)?
Ah, no, it should be under “This Flow”:
1 Like
Wow, thank you very much!!! (Now I can’t wait to the 14:00 run!)
The 14:00 run: (YAY!)
Just FYI: Working on a Format Number card in Better Logic Library right now for this kind of formatting (was still on the todo list).
Hoping to finish it today.
Here, it’s in test now:
I have just added a new flowcard, once it turns out to work as expected, it will also become available as a BLL expression method.
Format [[number]] as decimal/currency/percent/unit card.
This card has dynamic fields.
You first pick if you want to format it as a decimal, currency, percentage or unit.
Then other options becaume available in the 2 option-dropdown-arguments:
Here an example of Currency, Dollar, with fullname, in Dutch:
[image]
By default, the locale configured in the BLL app…
For you, this would be an easy card to use for this example: