Images
Images can be used in various places throughout Homey, such as album art for speakers, camera devices and in Flows.
Creating an image
Using an URL
const Homey = require('homey');
class App extends Homey.App {
async onInit() {
const myImage = await this.homey.images.createImage();
// the URL must start with https://
myImage.setUrl("https://www.example.com/image.png");
}
}
module.exports = App;Using a Stream
Using a Path
Updating the image
Retrieving an image
Last updated
Was this helpful?