Homey Community Forum

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