relaybox status handling
This commit is contained in:
@ -27,6 +27,9 @@ export class RelayBoxThing extends AItem {
|
||||
logger.info(`RT: ${topic}, ${payload}`)
|
||||
if (topic == this.deviceStatusTopic) {
|
||||
logger.info(`RT: status received`)
|
||||
let status : any = JSON.parse(payload)
|
||||
let statusParsed: string = JSON.stringify(status)
|
||||
logger.info(`RT: status parsed: ${statusParsed}`)
|
||||
} else {
|
||||
let thingRelatedPart = topic.substring(this.stateTopicPre.length+1)
|
||||
let itemIdx = parseInt(thingRelatedPart)
|
||||
|
Reference in New Issue
Block a user