mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2024-11-17 10:58:31 -07:00
12 lines
232 B
JavaScript
12 lines
232 B
JavaScript
class Example {
|
|
constructor(zigbee, mqtt, state, publishEntityState, eventBus) {
|
|
this.mqtt = mqtt;
|
|
}
|
|
|
|
onMQTTConnected() {
|
|
this.mqtt.publish('example/extension', 'test')
|
|
}
|
|
}
|
|
|
|
module.exports = Example;
|