From 494f82375f956d4b546cee45304d5b9425b33355 Mon Sep 17 00:00:00 2001 From: Jin Date: Mon, 22 Jan 2024 23:26:47 +0700 Subject: [PATCH] fix: AC temperature not updated --- package.json | 2 +- src/devices/AirConditioner.ts | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index b08d18e..e49196b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "displayName": "Homebridge LG ThinQ", "name": "homebridge-lg-thinq", - "version": "1.6.3", + "version": "1.6.4-ac.1", "description": "A Homebridge plugin for controlling/monitoring LG ThinQ device via LG ThinQ platform.", "license": "Apache-2.0", "publishConfig": { diff --git a/src/devices/AirConditioner.ts b/src/devices/AirConditioner.ts index c01f724..55a9b43 100644 --- a/src/devices/AirConditioner.ts +++ b/src/devices/AirConditioner.ts @@ -137,6 +137,17 @@ export default class AirConditioner extends baseDevice { } this.setupButton(device); + + // send request every minute to update temperature + // https://github.com/nVuln/homebridge-lg-thinq/issues/177 + setInterval(() => { + this.platform.ThinQ?.deviceControl(device.id, { + dataKey: 'airState.mon.timeout', + dataValue: '70', + }, 'Set', 'allEventEnable').then(() => { + // success + }); + }, 60000); } public get config() {