Help getting started with HomeyScript, specifying node id

Im trying to learn HomeyScript. Ive found and Im trying to build on the basic example from there.

  "Value": true
  .catch( this.error )
  .then( this.log )

How do I specify node id in this example?

The documentation you’re referring to is the SDK documentation, which is limited to apps (so if you want to use any SDK methods, you need to write a full app).

Homeyscript uses the WebAPI, and specifically, the HomeyAPI (which is available from Homeyscript through the Homey global variable). You can’t write device drivers in Homeyscript.

Thanks! Very clarifying. My bad.