Voor mij wel.
// app.js
class MyApp extends Homey.App {
async blink() {
this.log('Blinking...');
}
}
// device.js
class TestDevice extends Homey.Device {
async onInit() {
const app = this.homey.app;
await app.blink();
}
}
// console
[log] 2021-10-23 06:37:37 [MyApp] Blinking...