mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-10-22 14:01:20 +00:00
Log zigbee2mqtt version information to bridge/config (#1267)
* add coordinator_firmware to bridge/config * Add zigbee2mqtt version and commit * Whoops
This commit is contained in:
1 parent
1043053812
commit
a2a90bcdbd
4 files changed
+43
-26
No files matched your search
+5
-1
@@ -87,10 +87,14 @@ class Zigbee {
|
||||
|
||||
logStartupInfo() {
|
||||
logger.info('zigbee-shepherd started');
|
||||
logger.info(`Coordinator firmware version: '${this.shepherd.info().firmware.revision}'`);
|
||||
logger.info(`Coordinator firmware version: '${this.getFirmwareVersion()}'`);
|
||||
logger.debug(`zigbee-shepherd info: ${JSON.stringify(this.shepherd.info())}`);
|
||||
}
|
||||
|
||||
getFirmwareVersion() {
|
||||
return this.shepherd.info().firmware.revision;
|
||||
}
|
||||
|
||||
softReset(callback) {
|
||||
this.shepherd.reset('soft', callback);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user