mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-09-17 02:04:21 +00:00
15 lines
381 B
JavaScript
15 lines
381 B
JavaScript
export default 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');
|
|
}
|
|
}
|