relaybox status handling
This commit is contained in:
3
dist/RelayBox.js
vendored
3
dist/RelayBox.js
vendored
@ -19,6 +19,9 @@ class RelayBoxThing extends AItem_1.AItem {
|
||||
logger.info(`RT: ${topic}, ${payload}`);
|
||||
if (topic == this.deviceStatusTopic) {
|
||||
logger.info(`RT: status received`);
|
||||
let status = JSON.parse(payload);
|
||||
let statusParsed = JSON.stringify(status);
|
||||
logger.info(`RT: status parsed: ${statusParsed}`);
|
||||
}
|
||||
else {
|
||||
let thingRelatedPart = topic.substring(this.stateTopicPre.length + 1);
|
||||
|
Reference in New Issue
Block a user