first Hue light
This commit is contained in:
17
src/AHomegearItem.ts
Normal file
17
src/AHomegearItem.ts
Normal file
@ -0,0 +1,17 @@
|
||||
import { AItem } from './AItem'
|
||||
|
||||
|
||||
export abstract class AHomegearItem extends AItem {
|
||||
protected deviceTopicPre: string;
|
||||
protected actionTopicPre: string;
|
||||
protected homegearTopicPre: string;
|
||||
protected hmId: number;
|
||||
constructor(floor: string, room: string, item: string, label: string, hmId: number) {
|
||||
super(floor, room, item, label);
|
||||
this.hmId = hmId;
|
||||
this.homegearTopicPre = 'homegear/instance1';
|
||||
this.actionTopicPre = `${this.homegearTopicPre}/set/${this.hmId}`;
|
||||
this.deviceTopicPre = `${this.homegearTopicPre}/plain/${this.hmId}`;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user