CHANGE: multiple entites
This commit is contained in:
@@ -12,7 +12,15 @@ export class MqttSwitch extends MQTTEntity {
|
||||
'pl_on',
|
||||
'pl_off',
|
||||
]);
|
||||
dev_cla: DeviceClass = new DeviceClass(['switch', 'outlet']);
|
||||
get dev_cla(): DeviceClass {
|
||||
return this._dev_cla;
|
||||
}
|
||||
|
||||
set dev_cla(data: number) {
|
||||
this._dev_cla.value = data;
|
||||
}
|
||||
|
||||
_dev_cla: DeviceClass = new DeviceClass(['switch', 'outlet']);
|
||||
cmd_t: string = 'command/topic';
|
||||
pl_on: string = '1';
|
||||
pl_off: string = '0';
|
||||
|
||||
Reference in New Issue
Block a user