TypeError: Cannot read properties of undefined (reading 'temperature')

Please see the global variables and function below.
I hope you can find out why this fails.(error in post subject) I can only assume this is happening at line 6 or 8.

I needed:

    global.get("garage.temperature"),
    global.get("garage.humidity"),
    global.get("storage.temperature"),
    global.get("storage.humidity")

Before you can access the global you need to fetch it. If this is in a function node I suggest you read the documentation

yes. I just discovered it the hard way :slight_smile: it work now :slight_smile:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.