Skip to content

Commit

Permalink
feat: automapping for light and humidity based on format
Browse files Browse the repository at this point in the history
  • Loading branch information
rudyberends committed Nov 30, 2024
1 parent bc9787f commit 4a95866
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/loxone/items/InfoOnlyAnalog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ export class InfoOnlyAnalog extends LoxoneAccessory {

const formatTypeMap = new Map<string, new (platform: any, accessory: any) => any>([
['%.1f°', TemperatureSensor],
['%.0fLx', LightSensor],
['%.0f%%', HumiditySensor],
]);

// Check for service type based on format first
Expand Down

0 comments on commit 4a95866

Please sign in to comment.