introduce interfaces for state/feedback topics
This commit is contained in:
6
dist/HomematicSwitchItem.js
vendored
6
dist/HomematicSwitchItem.js
vendored
@ -4,6 +4,12 @@ const MqttDispatcher_1 = require("./MqttDispatcher");
|
||||
const AHomematicItem_1 = require("./AHomematicItem");
|
||||
const Export_1 = require("./Export");
|
||||
class HomematicSwitchItem extends AHomematicItem_1.AHomematicItem {
|
||||
getStateTopic() {
|
||||
return this.stateTopic;
|
||||
}
|
||||
getStateFeedbackTopic() {
|
||||
return this.stateFeedbackTopic;
|
||||
}
|
||||
constructor(floor, room, item, label, hmId, type = 'bulb') {
|
||||
super(floor, room, item, label, hmId);
|
||||
this.stateTopic = `${this.topicFirstPart}/state`;
|
||||
|
Reference in New Issue
Block a user