feat: Support for Power Genius XL

This commit is contained in:
2026-06-21 20:27:53 +02:00
parent b302d4d87b
commit 5d9765be09
8 changed files with 459 additions and 2 deletions
+43
View File
@@ -1473,6 +1473,22 @@ export namespace main {
this.database = source["database"];
}
}
export class PGXLSettings {
enabled: boolean;
host: string;
port: number;
static createFrom(source: any = {}) {
return new PGXLSettings(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.enabled = source["enabled"];
this.host = source["host"];
this.port = source["port"];
}
}
export class POTAUnmatched {
activator: string;
date: string;
@@ -2109,6 +2125,33 @@ export namespace operating {
}
export namespace powergenius {
export class Status {
connected: boolean;
host?: string;
last_error?: string;
state?: string;
fan_mode?: string;
temperature: number;
static createFrom(source: any = {}) {
return new Status(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.connected = source["connected"];
this.host = source["host"];
this.last_error = source["last_error"];
this.state = source["state"];
this.fan_mode = source["fan_mode"];
this.temperature = source["temperature"];
}
}
}
export namespace profile {
export class ProfileDB {