The script returns "undefined"

New Homey script is finished as

Any idea?

You’re declaring some variables and a function, but you don’t actually call that function, so the script doesn’t do a whole lot. It also doesn’t return anything (although I’m not sure that’s actually required).

OK, thanx, it works already

Hi Marlan

Can you share your final script as an exemple for me?
Thank you