BOOLEAN, DOOR_BOOLEAN, WINDOW_BOOLEAN, LIGHT_BOOLEAN

This commit is contained in:
Patrick Haßel 2025-03-04 12:08:33 +01:00
parent 85a749f199
commit 49ce44eff9
2 changed files with 13 additions and 0 deletions

View File

@ -28,6 +28,14 @@ export class Unit {
static readonly ILLUMINANCE_LUX = new Unit('ILLUMINANCE_LUX', 'lux'); static readonly ILLUMINANCE_LUX = new Unit('ILLUMINANCE_LUX', 'lux');
static readonly BOOLEAN = new Unit('BOOLEAN', '');
static readonly DOOR_BOOLEAN = new Unit('DOOR_BOOLEAN', '');
static readonly WINDOW_BOOLEAN = new Unit('WINDOW_BOOLEAN', '');
static readonly LIGHT_BOOLEAN = new Unit('LIGHT_BOOLEAN', '');
private constructor( private constructor(
readonly name: string, readonly name: string,
readonly unit: string, readonly unit: string,

View File

@ -45,6 +45,11 @@ public enum Unit {
IRRADIATION_KWH_M2("kWh/m²", 1000, IRRADIATION_WH_M2), IRRADIATION_KWH_M2("kWh/m²", 1000, IRRADIATION_WH_M2),
PRECIPITATION_MM("mm"), PRECIPITATION_MM("mm"),
BOOLEAN(""),
DOOR_BOOLEAN("", 1, BOOLEAN),
WINDOW_BOOLEAN("", 1, BOOLEAN),
LIGHT_BOOLEAN("", 1, BOOLEAN),
; ;
public final String unit; public final String unit;