mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-13 07:08:52 +00:00
Re-add model to device information. #2497
This commit is contained in:
+5
-1
@@ -272,7 +272,11 @@ class Controller {
|
||||
'applicationVersion', 'stackVersion', 'zclVersion', 'hardwareVersion', 'dateCode', 'softwareBuildID',
|
||||
];
|
||||
|
||||
messagePayload.device = {friendlyName: entity.name};
|
||||
messagePayload.device = {
|
||||
friendlyName: entity.name,
|
||||
model: entity.mapped ? entity.mapped.model : 'unknown',
|
||||
};
|
||||
|
||||
attributes.forEach((a) => messagePayload.device[a] = device[a]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user