Kellerlicht
This commit is contained in:
7
dist/HomematicSwitchItem.js
vendored
7
dist/HomematicSwitchItem.js
vendored
@ -10,12 +10,13 @@ class HomematicSwitchItem extends AHomegearItem_1.AHomegearItem {
|
||||
getStateFeedbackTopic() {
|
||||
return this.stateFeedbackTopic;
|
||||
}
|
||||
constructor(floor, room, item, label, hmId, type = 'bulb') {
|
||||
constructor(floor, room, item, label, hmId, partId = 1, type = 'bulb') {
|
||||
super(floor, room, item, label, hmId);
|
||||
this.partId = partId;
|
||||
this.stateTopic = `${this.topicFirstPart}/state`;
|
||||
this.stateFeedbackTopic = `${this.topicFirstPart}/state/feedback`;
|
||||
this.deviceFeedbackTopic = `${this.deviceTopicPre}/1/STATE`;
|
||||
this.actionTopic = `${this.actionTopicPre}/1/STATE`;
|
||||
this.deviceFeedbackTopic = `${this.deviceTopicPre}/${this.partId}/STATE`;
|
||||
this.actionTopic = `${this.actionTopicPre}/${this.partId}/STATE`;
|
||||
this.subscribeTopics = [
|
||||
this.stateTopic,
|
||||
this.deviceFeedbackTopic
|
||||
|
Reference in New Issue
Block a user