The "problem" is that I really would like the logic to be for each device:
if (offline_time > 24h) then notify.
I guess the answer is not to duplicate the function node for each element and program the logic into it like I did?
if there another node I should use that can do the:
if (msg.payload === "offline" and its_bee_offline_for > 24h) then ....