mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2024-11-16 18:39:09 -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;
|