Skip to content

Commit

Permalink
use device hostname as model
Browse files Browse the repository at this point in the history
mdaskalov committed Dec 20, 2024
1 parent 10ff368 commit f494047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tasmotaAccessory.ts
Original file line number Diff line number Diff line change
@@ -220,7 +220,7 @@ export class TasmotaAccessory {
private async configureAccessoryInformation() {
try {
const manufacturer = await this.getProperty('Manufacturer', 'MODULE0', 'Module.0') || 'Tasmota';
const model = await this.getProperty('Model', 'DeviceName') || 'Unknown';
const model = await this.getProperty('Model', 'Hostname') || 'Unknown';
const serialNumber = await this.getProperty('SerialNumber', 'STATUS 5', 'StatusNET.Mac', 'STATUS5') || 'Unknown';
let firmwareRevision = await this.getProperty('FirmwareRevision', 'STATUS 2', 'StatusFWR.Version', 'STATUS2') || 'Unknown';
firmwareRevision = firmwareRevision.split('(')[0];

0 comments on commit f494047

Please sign in to comment.