couple large and small basement light
This commit is contained in:
4
dist/HomematicSwitchItem.js
vendored
4
dist/HomematicSwitchItem.js
vendored
@ -10,6 +10,9 @@ class HomematicSwitchItem extends AHomegearItem_1.AHomegearItem {
|
||||
getStateFeedbackTopic() {
|
||||
return this.stateFeedbackTopic;
|
||||
}
|
||||
getState() {
|
||||
return this.state;
|
||||
}
|
||||
constructor(floor, room, item, label, hmId, partId = 1, type = 'bulb') {
|
||||
super(floor, room, item, label, hmId);
|
||||
this.partId = partId;
|
||||
@ -29,6 +32,7 @@ class HomematicSwitchItem extends AHomegearItem_1.AHomegearItem {
|
||||
return Export_1.SwitchExport(this.itemId, this.label, this.stateTopic, this.stateFeedbackTopic, this.type);
|
||||
}
|
||||
processMessage(topic, payload) {
|
||||
this.emit('somethingChanged');
|
||||
switch (topic) {
|
||||
case this.stateTopic:
|
||||
this.state = payload;
|
||||
|
Reference in New Issue
Block a user