Ah, I missed that detail obviously! 


I think I never understood the functionality of this card, and forgot about itâs existence (sorry for that).
And when using the expression card for whatever reason, itâll just needs backticks for this to work.
True, but tbh, single quotes or double quotes should work to afaik.
Anyway, using the expression card for this is kind of a waist for performance. The string is already combined/finished by the default homey way of inputting text with tokens, and running the javascript engine to just return it as string/text is not needed.
I do like that backticks work like this though 
1 Like
Hi all, Iâm stuck and hope some people much cleverer than me can help.
I have a FIFO buffer for logging to Google Sheets. Sheets is quite finnicky about rate limiting so I built a rate limiter which feeds my log lines slowly to Google Sheets. This works well although itâs overly complex and Iâm trying to simplify. This is where I get stuck. I have a function in BLL:
function(s) {
let a = s.split(â|â);
return {gesplitst:a};
}
I then have a card
which takes the input from variable bll.arr.ratelimit.queue:
[âKoelkast|02-dec-2025 23:40:07|721.31|35||||||â,âWeer|03-dec-2025 00:00:00|Bewolkt|100|1010|4.8|6.6|88|â ZZO 2|9â,âVerbruik|03-dec-2025 00:00:00|335|31574.116|5806.75|0|0|3||â,âBadkamer|03-dec-2025 00:00:00|45.4|22.5||||||â,âKeuken|03-dec-2025 00:00:00|58|20|2|159||||â,âNatte ruimte|03-dec-2025 00:00:00|45.3|22.5||||||â,âZolderkamer|03-dec-2025 00:00:00|53.9|21.1||||||â,âWerkkamer|03-dec-2025 00:00:00|47.4|21.4|47.4|21.4||||â,âEnergieprijs|03-dec-2025 00:00:05|03-dec-2025|2025-12|0,1|0,34|0,2631|0|0|â,âHoofdslaapkamer|03-dec-2025 00:00:00|49|20.7||||||â,âHal|03-dec-2025 00:00:00|50.7|21||||||â,âTuin|03-dec-2025 00:00:00|24|11|36|0|60|0||â,âWoonkamer|03-dec-2025 00:00:00|17|18.8|6.6|9|0.0050000000001091|||â,âKoelkast|03-dec-2025 00:00:28|721.32|33||||||â]
and peels off one item such as
[âKoelkast|02-dec-2025 23:40:07|721.31|35||||||â] and then feeds the result
{âgesplitstâ:[âKoelkast|02-dec-2025 23:40:07|721.31|35||||||]} to JSON Handler:
This is then ready to be logged to different columns in Google Sheets.
So this all works great, but I want to get rid of the BLL function since itâs hard to maintain, troubleshoot etc. So Iâve been experimenting with HomeyScript cards (but they donât do objects or JSON as tag, only text/boolean/number, so that wonât work with JSON Handler) and BLL cards Execute BLL Expression (as tag) and Execute text (as tag), but whatever I try, I get identical-looking output but JSON Handler keeps saying
Missing token value: action::87796ea1-afd6-45f9-8c29-f71f07a1d6c6::text
How can I get JSON Handler to play nice?