diff --git a/packages/core/hap.mjs b/packages/core/hap.mjs index d82ed662..a0107d87 100644 --- a/packages/core/hap.mjs +++ b/packages/core/hap.mjs @@ -86,11 +86,9 @@ export class Hap { } showWhole() { - return `${this.whole == undefined ? '~' : this.whole.show()}: ${this.value}`; - } - - showWhole() { - return `${this.whole == undefined ? '~' : this.whole.show()}: ${this.value}`; + return `${this.whole == undefined ? '~' : this.whole.show()}: ${ + typeof this.value === 'object' ? JSON.stringify(this.value) : this.value + }`; } combineContext(b) {