Weird, the diag is completly empty (which is not possible afaik). Not really sure what to do now…
In the Homey App, does it seem like the app is started? Or pauzed or anything?
It seems like the app isn’t starting in right manner, or isn’t startng at all.
I now have checked ±10 different instances where it occurs. And as far as I can see is it every instance.
I have waited now for a longer time before restarting the app and I see that the memory used by the app is changing during the time. So the app seems to be running.

![]()
After that I tried to check some more things, so I pushed configure and I got the following error.
Error:404: Not Found
Even though I click “Oké” I can’t escape the loop. So I need to restart the Homey App the get around the “error”.
I’ve made a new Diagnostic Report.
1a2c0574-65d5-42bc-a4da-31579aeec9ee
When I try to convert a date time to date time without seconds, I notice that the formatted time adds two hours to it. See also the following example. I created an flow that gets the Event Time which is formatted as dd-MM-yyyy, HH:mm:ss. I want to convert it to dd-MM-yyyy HH:mm, but the output is dd-MM-yyyy HH(+2):mm. When I try the Format date card with just a random date (let’s say for example 01-01-2025), it outputs 01-01-2025 01:00. But when I format 05-04-2025 it outputs 04-05-2025 02:00. So it also changed the day and the month around.
My Locale and Timezone settings within BLL are set to Dutch (nl-NL), and also my Homey Timezone is Europe/Amsterdam.
Could this be a bug, or am I just missing something?
Probably the event time is not saved in UTC, but in current NL summertime (CET+1+1).
What you could try: create an extra flow that, when the event time changes, saves the current date/timstamp in a BLL numeric variable using the Date.now() or now function. This saves the current UTC date/time in the variable.
Then, replace the trigger in your current flow with the BLL card that checks for changes in the previously set variable.
Thanks for your help. In the end I decided to use HomeyScript to solve my problem
.
Perhaps you could share your solution for the benefit of all.
Of course! Hereby the solution that I made in HomeyScript
:
// Get the input argument
let input = args[0]; // Expected format: "dd-MM-yyyy, hh:mm:ss"
if (!input) {
throw new Error("No input provided. Expected format: dd-MM-yyyy, hh:mm:ss");
}
try {
// --- Convert input string to 'dd-MM-yyyy, hh:mm' ---
let [datePart, timePart] = input.split(', ');
if (!datePart || !timePart) {
throw new Error("Invalid format. Expected format: dd-MM-yyyy, hh:mm:ss");
}
let [hours, minutes] = timePart.split(':');
let converted = `${datePart}, ${hours}:${minutes}`;
// Save to tag
await setTagValue("Date Time Converted", { type: "string", title: "Converted Date Time" }, converted);
} catch (error) {
console.error("Error processing input:", error.message);
throw error;
}
Hi. Few days ago I noticed that some of my flows using BLL are not running properly. When this is happening also page “configure” under app section is grey and not possible to click on. After restarting app everything works fine.
Diagnostic report
37114da1-c88c-4972-b6d0-4248474611d4
hi @Arie_J_Godschalk, Finally got time to get a new error log ID for you. Ever since I messaged you 6 months ago, the Better Logic app is frequently (appr. every 1 - 2 weeks) giving the same problem. It seems to crash itself somehow and then the flows that are depending on it, won’t run. Without me being aware of it, only after some time I start to notice that the flow isn’t running anymore and I have to reboot your app.
Anyway, it would be HIGHLY appreciated
if you can retrieve what’s going wrong. Here’s the log ID: 4c0a4577-49ab-4590-a234-97054783ec18 and the screenshot that I get when I (test)run the flow.
By the way, I now see that in the previous comments by @Bernard3141592 and @Joep_van_Andel the same issue seems to occur?
Hello @Arie_J_Godschalk the error occurred again. Here’s yet another log ID fb0640ab-03d1-44df-ad50-4d192640dcc3
What is going wrong here, every other day, can you spot the error?
Okay,
@JonE , @Bernard3141592 and @Joep_van_Andel ,
I have just updated the BLL app.
Through the Developers log i found that the app crashes a lott because of the rate limit for sending notifications. And this was not correctly wrapped within a catch (because of async).
Lets hope this was also the issue for you guys. If so tho, thats means a flow is probably setting a variable incorrectly a lott, else you wouldn’t get a rate limit on notifications.
Let me know how it goes please! thanks!
Cool, good to hear @Arie_J_Godschalk ! Will let you know if the app keeps crashing!
hey everyone, can someone please tell me what I am doing wrong here?
I use the .Math.js card, but I can’t get rid of the error.
Here my .Math card.
Zet Doel_Stroom_A naar
number(min(Auto_Fasen ==3?16:20,floor(max(0,Auto_Fasen ==3 ? min(24-Fase1_A,24-Fase2_A,24-Fase3_A) : (24-Fase1_A))),max(Goedkoop_Nu==1?10:6,floor(max(0,Netvermogen_W)/(230*max(1,Auto_Fasen)))))
This error I get in my timeline:
“Error triggering any_variable_changed for variable Doel_Stroom_A: Could not trigger Flow card with id “any_variable_changed”: Invalid value for token variableValueNumber. Expected number but got object”
Here is my flow
Read here:
What are those numbers?
Times?
If so, you need quotes around them.
Not sure if there are more syntax errors, but those numbers with : should have at least quotes around them.
Arie, no 16A (ampere) or 20A
I dont know if it is true but ChatGPT says that questionmarks are not supported in the Better Logic calculation. Chat GPT goes often wrong.
And if it does. Does it matter if there is a extra space between a number and the questionmark?
Just questions, don’t know if the problem already is solved.
It really depends on what you mean, how you wanna use them, but in most cases: yes, BLL supports them.
Can you give an example what you are trying to do?
I was not trying to do anything but i was copying that calculation from Brian into ChatGPT and asked if there was something wrong with the calculation.
Then i asked if this should work in Homey and ChatGPT told that it could be a problem to use questionmarks irf you use it with Homey and Better Logic.
That was it actually.
Thanks.
Ah, I’m sorry, i missed that you are using math.js.
I’m am unsure of math.js allowes x==1?20:16.
I’ll check this later.
The bll express card does allow it,but for floor, max, etc., you would need to write it as Math.floor, Math.max, etc.





