Homey Community Forum

The script returns "undefined"

New Homey script is finished as
Screenshot001

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