mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-09-01 16:48:31 +00:00
17 lines
393 B
JavaScript
17 lines
393 B
JavaScript
class Example {
|
|
constructor(zigbee, mqtt, state, publishEntityState, eventBus) {
|
|
this.mqtt = mqtt;
|
|
this.mqtt.publish('example/extension', 'call from constructor');
|
|
}
|
|
|
|
start() {
|
|
this.mqtt.publish('example/extension', 'call from start');
|
|
}
|
|
|
|
stop() {
|
|
this.mqtt.publish('example/extension', 'call from stop');
|
|
}
|
|
}
|
|
|
|
module.exports = Example;
|