Im trying to learn HomeyScript. Ive found https://apps-sdk-v2.developer.athom.com/tutorial-Z-Wave.html and Im trying to build on the basic example from there.
.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.