mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-02 18:11:36 +00:00
15 lines
391 B
JavaScript
15 lines
391 B
JavaScript
export default class Example2 {
|
|
constructor(_zigbee, mqtt, _state, _publishEntityState, _eventBus) {
|
|
this.mqtt = mqtt;
|
|
this.mqtt.publish("example2/extension", "call2 from constructor");
|
|
}
|
|
|
|
start() {
|
|
this.mqtt.publish("example2/extension", "call2 from start");
|
|
}
|
|
|
|
stop() {
|
|
this.mqtt.publish("example/extension", "call2 from stop");
|
|
}
|
|
}
|