Skip to content

Commit

Permalink
fix: AC temperature not updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Jin committed Jan 22, 2024
1 parent 359f9e6 commit 494f823
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
11 changes: 11 additions & 0 deletions src/devices/AirConditioner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 494f823

Please sign in to comment.