mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-06-22 05:01:48 +00:00
17 lines
397 B
JavaScript
17 lines
397 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;
|