CHANGE: implemented DeviceClass

This commit is contained in:
2024-06-27 21:08:34 +01:00
parent 30ba44f114
commit 09db27c646
4 changed files with 49 additions and 20 deletions

View File

@@ -1,9 +1,9 @@
import { MQTTEntity } from "./mqtt_base";
import { MQTTEntity } from './mqtt_base';
export class MqttLight extends MQTTEntity {
cmd_t: string = "command/topic";
bri_cmd_t: string = "brightness/command/topic";
pl_on: string = "1";
pl_off: string = "0";
val_tpl: string = "";
}
cmd_t: string = 'command/topic';
bri_cmd_t: string = 'brightness/command/topic';
pl_on: string = '1';
pl_off: string = '0';
val_tpl: string = '';
}