sman591 / homebridge-lg-thinq-ac

Homebridge plugin for LG ThinQ-enabled portable air conditioner
Apache License 2.0
53 stars 16 forks source link

Temperature on HomeKit and A/C unit does not match #9

Open sman591 opened 4 years ago

sman591 commented 4 years ago

Reading @jvmo's comment https://github.com/sman591/homebridge-lg-thinq-ac/issues/7#issuecomment-631211646, it sounds like temperature communication might not be working correctly:

80 on the tile = AC set to 65 AC set to 65 = tile shows 80 but then change to 65

sman591 commented 4 years ago

@jvmo Could you turn on Homebridge's debug mode and then share the log line containing device response?

To turn on debug mode: start Homebridge with homebridge -D or go to the /settings Homebridge settings page in the UI to turn it on and restart

jvmo commented 4 years ago

update version 0.3.5

[5/20/2020, 00:05:36] [LgThinqAirConditioner] Renewing monitoring 99cf8d3e-bf48-1056-ac56-60ab14bb7da6 [5/20/2020, 00:05:47] [LgThinqAirConditioner] Getting device status 99cf8d3e-bf48-1056-ac56-60ab14bb7da6 [5/20/2020, 00:05:49] [LgThinqAirConditioner] device response { resultCode: '0000', result: { appType: 'NUTS', modelCountryCode: 'WW', countryCode: 'US', modelName: 'WIN_056905_WW', deviceType: 401, deviceCode: 'AI01', alias: 'Living room AC', deviceId: '99cf8d3e-bf48-1056-ac56-60ab14bb7da6', fwVer: '', imageFileName: 'ac_home_window_airconditioner_img.png', ssid: 'papitarica', softapId: '', softapPass: '', macAddress: '60:ab:14:bb:7d:a6', networkType: '02', timezoneCode: 'America/New_York', timezoneCodeAlias: 'USA/New_York', utcOffset: -5, utcOffsetDisplay: '-05:00', dstOffset: -4, dstOffsetDisplay: '-04:00', curOffset: -4, curOffsetDisplay: '-04:00', sdsGuide: '{"deviceCode":"AI01"}', newRegYn: 'N', remoteControlType: '', userNo: 'US2005020014880', tftYn: 'N', deviceState: 'E', snapshot: { 'airState.windStrength': 6, static: [Object], 'airState.tempState.current': 17, 'airState.reservation.sleepTime': 0, 'airState.filterMngStates.maxTime': 250, 'airState.reservation.targetTimeToStart': 0, 'airState.operation': 0, 'airState.opMode': 0, 'airState.quality.sensorMon': 0, 'airState.filterMngStates.useTime': 236, meta: [Object], 'airState.energy.accumulatedTime': 0, online: true, timestamp: 1589947455930, 'airState.energy.accumulated': 0, 'airState.reservation.targetTimeToStop': 0, 'airState.tempState.target': 23.5, 'airState.diagCode': 0, 'airState.energy.onCurrent': 50, 'airState.wDir.leftRight': 0 }, online: true, platformType: 'thinq2', area: 334505, regDt: 20200502175942, blackboxYn: 'Y', modelProtocol: 'STANDARD', receipeVersion: 0, activeSaving: 'OFF', smartCareV2: 'OFF', order: 0, drServiceYn: 'N', regDtUtc: '20200502215942', groupableYn: 'Y', controllableYn: 'Y', combinedProductYn: 'N', masterYn: 'Y', tclcount: 0 } } [5/20/2020, 00:05:49] [LgThinqAirConditioner] device response.result.snapshot { 'airState.windStrength': 6, static: { deviceType: '401', countryCode: 'US' }, 'airState.tempState.current': 17, 'airState.reservation.sleepTime': 0, 'airState.filterMngStates.maxTime': 250, 'airState.reservation.targetTimeToStart': 0, 'airState.operation': 0, 'airState.opMode': 0, 'airState.quality.sensorMon': 0, 'airState.filterMngStates.useTime': 236, meta: { allDeviceInfoUpdate: false, messageId: 'fWc5fcnlR9eY_z1mQADUNg' }, 'airState.energy.accumulatedTime': 0, online: true, timestamp: 1589947455930, 'airState.energy.accumulated': 0, 'airState.reservation.targetTimeToStop': 0, 'airState.tempState.target': 23.5, 'airState.diagCode': 0, 'airState.energy.onCurrent': 50, 'airState.wDir.leftRight': 0 } [5/20/2020, 00:05:49] [LgThinqAirConditioner] Pushed updates to HomeKit { power: 'off', currentTemperature: 17, targetTemperature: 23.5, mode: 'cool', fan: 'high' } [5/20/2020, 00:06:17] [LgThinqAirConditioner] Getting device status 99cf8d3e-bf48-1056-ac56-60ab14bb7da6 [5/20/2020, 00:06:19] [LgThinqAirConditioner] device response { resultCode: '0000', result: { appType: 'NUTS', modelCountryCode: 'WW', countryCode: 'US', modelName: 'WIN_056905_WW', deviceType: 401, deviceCode: 'AI01', alias: 'Living room AC', deviceId: '99cf8d3e-bf48-1056-ac56-60ab14bb7da6', fwVer: '', imageFileName: 'ac_home_window_airconditioner_img.png', ssid: 'papitarica', softapId: '', softapPass: '', macAddress: '60:ab:14:bb:7d:a6', networkType: '02', timezoneCode: 'America/New_York', timezoneCodeAlias: 'USA/New_York', utcOffset: -5, utcOffsetDisplay: '-05:00', dstOffset: -4, dstOffsetDisplay: '-04:00', curOffset: -4, curOffsetDisplay: '-04:00', sdsGuide: '{"deviceCode":"AI01"}', newRegYn: 'N', remoteControlType: '', userNo: 'US2005020014880', tftYn: 'N', deviceState: 'E', snapshot: { 'airState.windStrength': 6, static: [Object], 'airState.tempState.current': 17, 'airState.reservation.sleepTime': 0, 'airState.filterMngStates.maxTime': 250, 'airState.reservation.targetTimeToStart': 0, 'airState.operation': 0, 'airState.opMode': 0, 'airState.quality.sensorMon': 0, 'airState.filterMngStates.useTime': 236, meta: [Object], 'airState.energy.accumulatedTime': 0, online: true, timestamp: 1589947455930, 'airState.energy.accumulated': 0, 'airState.reservation.targetTimeToStop': 0, 'airState.tempState.target': 23.5, 'airState.diagCode': 0, 'airState.energy.onCurrent': 50, 'airState.wDir.leftRight': 0 }, online: true, platformType: 'thinq2', area: 334505, regDt: 20200502175942, blackboxYn: 'Y', modelProtocol: 'STANDARD', receipeVersion: 0, activeSaving: 'OFF', smartCareV2: 'OFF', order: 0, drServiceYn: 'N', regDtUtc: '20200502215942', groupableYn: 'Y', controllableYn: 'Y', combinedProductYn: 'N', masterYn: 'Y', tclcount: 0 } } [5/20/2020, 00:06:19] [LgThinqAirConditioner] device response.result.snapshot { 'airState.windStrength': 6, static: { deviceType: '401', countryCode: 'US' }, 'airState.tempState.current': 17, 'airState.reservation.sleepTime': 0, 'airState.filterMngStates.maxTime': 250, 'airState.reservation.targetTimeToStart': 0, 'airState.operation': 0, 'airState.opMode': 0, 'airState.quality.sensorMon': 0, 'airState.filterMngStates.useTime': 236, meta: { allDeviceInfoUpdate: false, messageId: 'fWc5fcnlR9eY_z1mQADUNg' }, 'airState.energy.accumulatedTime': 0, online: true, timestamp: 1589947455930, 'airState.energy.accumulated': 0, 'airState.reservation.targetTimeToStop': 0, 'airState.tempState.target': 23.5, 'airState.diagCode': 0, 'airState.energy.onCurrent': 50, 'airState.wDir.leftRight': 0 } [5/20/2020, 00:06:19] [LgThinqAirConditioner] Pushed updates to HomeKit { power: 'off', currentTemperature: 17, targetTemperature: 23.5, mode: 'cool', fan: 'high' } [5/20/2020, 00:06:36] [LgThinqAirConditioner] Renewing monitoring 99cf8d3e-bf48-1056-ac56-60ab14bb7da6 [5/20/2020, 00:06:47] [LgThinqAirConditioner] Getting device status 99cf8d3e-bf48-1056-ac56-60ab14bb7da6 [5/20/2020, 00:06:50] [LgThinqAirConditioner] device response { resultCode: '0000', result: { appType: 'NUTS', modelCountryCode: 'WW', countryCode: 'US', modelName: 'WIN_056905_WW', deviceType: 401, deviceCode: 'AI01', alias: 'Living room AC', deviceId: '99cf8d3e-bf48-1056-ac56-60ab14bb7da6', fwVer: '', imageFileName: 'ac_home_window_airconditioner_img.png', ssid: 'papitarica', softapId: '', softapPass: '', macAddress: '60:ab:14:bb:7d:a6', networkType: '02', timezoneCode: 'America/New_York', timezoneCodeAlias: 'USA/New_York', utcOffset: -5, utcOffsetDisplay: '-05:00', dstOffset: -4, dstOffsetDisplay: '-04:00', curOffset: -4, curOffsetDisplay: '-04:00', sdsGuide: '{"deviceCode":"AI01"}', newRegYn: 'N', remoteControlType: '', userNo: 'US2005020014880', tftYn: 'N', deviceState: 'E', snapshot: { 'airState.windStrength': 6, static: [Object], 'airState.tempState.current': 17, 'airState.reservation.sleepTime': 0, 'airState.filterMngStates.maxTime': 250, 'airState.reservation.targetTimeToStart': 0, 'airState.operation': 0, 'airState.opMode': 0, 'airState.quality.sensorMon': 0, 'airState.filterMngStates.useTime': 236, meta: [Object], 'airState.energy.accumulatedTime': 0, online: true, timestamp: 1589947603063, 'airState.energy.accumulated': 0, 'airState.reservation.targetTimeToStop': 0, 'airState.tempState.target': 23.5, 'airState.diagCode': 0, 'airState.energy.onCurrent': 50, 'airState.wDir.leftRight': 0 }, online: true, platformType: 'thinq2', area: 334505, regDt: 20200502175942, blackboxYn: 'Y', modelProtocol: 'STANDARD', receipeVersion: 0, activeSaving: 'OFF', smartCareV2: 'OFF', order: 0, drServiceYn: 'N', regDtUtc: '20200502215942', groupableYn: 'Y', controllableYn: 'Y', combinedProductYn: 'N', masterYn: 'Y', tclcount: 0 } } [5/20/2020, 00:06:50] [LgThinqAirConditioner] device response.result.snapshot { 'airState.windStrength': 6, static: { deviceType: '401', countryCode: 'US' }, 'airState.tempState.current': 17, 'airState.reservation.sleepTime': 0, 'airState.filterMngStates.maxTime': 250, 'airState.reservation.targetTimeToStart': 0, 'airState.operation': 0, 'airState.opMode': 0, 'airState.quality.sensorMon': 0, 'airState.filterMngStates.useTime': 236, meta: { allDeviceInfoUpdate: false, messageId: '1rkte-DZS_CMZKyFNbar4w' }, 'airState.energy.accumulatedTime': 0, online: true, timestamp: 1589947603063, 'airState.energy.accumulated': 0, 'airState.reservation.targetTimeToStop': 0, 'airState.tempState.target': 23.5, 'airState.diagCode': 0, 'airState.energy.onCurrent': 50, 'airState.wDir.leftRight': 0 } [5/20/2020, 00:06:50] [LgThinqAirConditioner] Pushed updates to HomeKit { power: 'off', currentTemperature: 17, targetTemperature: 23.5, mode: 'cool', fan: 'high' } [5/20/2020, 00:07:08] [Config] Terminal session ended. [5/20/2020, 00:07:17] [LgThinqAirConditioner] Getting device status 99cf8d3e-bf48-1056-ac56-60ab14bb7da6 [5/20/2020, 00:07:19] [LgThinqAirConditioner] device response { resultCode: '0000', result: { appType: 'NUTS', modelCountryCode: 'WW', countryCode: 'US', modelName: 'WIN_056905_WW', deviceType: 401, deviceCode: 'AI01', alias: 'Living room AC', deviceId: '99cf8d3e-bf48-1056-ac56-60ab14bb7da6', fwVer: '', imageFileName: 'ac_home_window_airconditioner_img.png', ssid: 'papitarica', softapId: '', softapPass: '', macAddress: '60:ab:14:bb:7d:a6', networkType: '02', timezoneCode: 'America/New_York', timezoneCodeAlias: 'USA/New_York', utcOffset: -5, utcOffsetDisplay: '-05:00', dstOffset: -4, dstOffsetDisplay: '-04:00', curOffset: -4, curOffsetDisplay: '-04:00', sdsGuide: '{"deviceCode":"AI01"}', newRegYn: 'N', remoteControlType: '', userNo: 'US2005020014880', tftYn: 'N', deviceState: 'E', snapshot: { 'airState.windStrength': 6, static: [Object], 'airState.tempState.current': 17, 'airState.reservation.sleepTime': 0, 'airState.filterMngStates.maxTime': 250, 'airState.reservation.targetTimeToStart': 0, 'airState.operation': 0, 'airState.opMode': 0, 'airState.quality.sensorMon': 0, 'airState.filterMngStates.useTime': 236, meta: [Object], 'airState.energy.accumulatedTime': 0, online: true, timestamp: 1589947603063, 'airState.energy.accumulated': 0, 'airState.reservation.targetTimeToStop': 0, 'airState.tempState.target': 23.5, 'airState.diagCode': 0, 'airState.energy.onCurrent': 50, 'airState.wDir.leftRight': 0 }, online: true, platformType: 'thinq2', area: 334505, regDt: 20200502175942, blackboxYn: 'Y', modelProtocol: 'STANDARD', receipeVersion: 0, activeSaving: 'OFF', smartCareV2: 'OFF', order: 0, drServiceYn: 'N', regDtUtc: '20200502215942', groupableYn: 'Y', controllableYn: 'Y', combinedProductYn: 'N', masterYn: 'Y', tclcount: 0 } } [5/20/2020, 00:07:19] [LgThinqAirConditioner] device response.result.snapshot { 'airState.windStrength': 6, static: { deviceType: '401', countryCode: 'US' }, 'airState.tempState.current': 17, 'airState.reservation.sleepTime': 0, 'airState.filterMngStates.maxTime': 250, 'airState.reservation.targetTimeToStart': 0, 'airState.operation': 0, 'airState.opMode': 0, 'airState.quality.sensorMon': 0, 'airState.filterMngStates.useTime': 236, meta: { allDeviceInfoUpdate: false, messageId: '1rkte-DZS_CMZKyFNbar4w' }, 'airState.energy.accumulatedTime': 0, online: true, timestamp: 1589947603063, 'airState.energy.accumulated': 0, 'airState.reservation.targetTimeToStop': 0, 'airState.tempState.target': 23.5, 'airState.diagCode': 0, 'airState.energy.onCurrent': 50, 'airState.wDir.leftRight': 0 } [5/20/2020, 00:07:19] [LgThinqAirConditioner] Pushed updates to HomeKit { power: 'off', currentTemperature: 17, targetTemperature: 23.5, mode: 'cool', fan: 'high' } [5/20/2020, 00:07:36] [LgThinqAirConditioner] Renewing monitoring 99cf8d3e-bf48-1056-ac56-60ab14bb7da6 [5/20/2020, 00:07:47] [LgThinqAirConditioner] Getting device status 99cf8d3e-bf48-1056-ac56-60ab14bb7da6 [5/20/2020, 00:07:49] [LgThinqAirConditioner] device response { resultCode: '0000', result: { appType: 'NUTS', modelCountryCode: 'WW', countryCode: 'US', modelName: 'WIN_056905_WW', deviceType: 401, deviceCode: 'AI01', alias: 'Living room AC', deviceId: '99cf8d3e-bf48-1056-ac56-60ab14bb7da6', fwVer: '', imageFileName: 'ac_home_window_airconditioner_img.png', ssid: 'papitarica', softapId: '', softapPass: '', macAddress: '60:ab:14:bb:7d:a6', networkType: '02', timezoneCode: 'America/New_York', timezoneCodeAlias: 'USA/New_York', utcOffset: -5, utcOffsetDisplay: '-05:00', dstOffset: -4, dstOffsetDisplay: '-04:00', curOffset: -4, curOffsetDisplay: '-04:00', sdsGuide: '{"deviceCode":"AI01"}', newRegYn: 'N', remoteControlType: '', userNo: 'US2005020014880', tftYn: 'N', deviceState: 'E', snapshot: { 'airState.windStrength': 6, static: [Object], 'airState.tempState.current': 17, 'airState.reservation.sleepTime': 0, 'airState.filterMngStates.maxTime': 250, 'airState.reservation.targetTimeToStart': 0, 'airState.operation': 0, 'airState.opMode': 0, 'airState.quality.sensorMon': 0, 'airState.filterMngStates.useTime': 236, meta: [Object], 'airState.energy.accumulatedTime': 0, online: true, timestamp: 1589947603063, 'airState.energy.accumulated': 0, 'airState.reservation.targetTimeToStop': 0, 'airState.tempState.target': 23.5, 'airState.diagCode': 0, 'airState.energy.onCurrent': 50, 'airState.wDir.leftRight': 0 }, online: true, platformType: 'thinq2', area: 334505, regDt: 20200502175942, blackboxYn: 'Y', modelProtocol: 'STANDARD', receipeVersion: 0, activeSaving: 'OFF', smartCareV2: 'OFF', order: 0, drServiceYn: 'N', regDtUtc: '20200502215942', groupableYn: 'Y', controllableYn: 'Y', combinedProductYn: 'N', masterYn: 'Y', tclcount: 0 } } [5/20/2020, 00:07:49] [LgThinqAirConditioner] device response.result.snapshot { 'airState.windStrength': 6, static: { deviceType: '401', countryCode: 'US' }, 'airState.tempState.current': 17, 'airState.reservation.sleepTime': 0, 'airState.filterMngStates.maxTime': 250, 'airState.reservation.targetTimeToStart': 0, 'airState.operation': 0, 'airState.opMode': 0, 'airState.quality.sensorMon': 0, 'airState.filterMngStates.useTime': 236, meta: { allDeviceInfoUpdate: false, messageId: '1rkte-DZS_CMZKyFNbar4w' }, 'airState.energy.accumulatedTime': 0, online: true, timestamp: 1589947603063, 'airState.energy.accumulated': 0, 'airState.reservation.targetTimeToStop': 0, 'airState.tempState.target': 23.5, 'airState.diagCode': 0, 'airState.energy.onCurrent': 50, 'airState.wDir.leftRight': 0 } [5/20/2020, 00:07:49] [LgThinqAirConditioner] Pushed updates to HomeKit { power: 'off', currentTemperature: 17, targetTemperature: 23.5, mode: 'cool', fan: 'high' }

jvmo commented 4 years ago

changing temperature (update version 0.3.5)

[5/20/2020, 00:11:49] [LgThinqAirConditioner] Pushed updates to HomeKit { power: 'on', currentTemperature: 20.5, targetTemperature: 17.5, mode: 'cool', fan: 'high' } [5/20/2020, 00:11:49] [LgThinqAirConditioner] Triggered SET Active: 0 [5/20/2020, 00:12:18] [LgThinqAirConditioner] Getting device status 99cf8d3e-bf48-1056-ac56-60ab14bb7da6 [5/20/2020, 00:12:18] [LgThinqAirConditioner] device response { resultCode: '0000', result: { appType: 'NUTS', modelCountryCode: 'WW', countryCode: 'US', modelName: 'WIN_056905_WW', deviceType: 401, deviceCode: 'AI01', alias: 'Living room AC', deviceId: '99cf8d3e-bf48-1056-ac56-60ab14bb7da6', fwVer: '', imageFileName: 'ac_home_window_airconditioner_img.png', ssid: 'papitarica', softapId: '', softapPass: '', macAddress: '60:ab:14:bb:7d:a6', networkType: '02', timezoneCode: 'America/New_York', timezoneCodeAlias: 'USA/New_York', utcOffset: -5, utcOffsetDisplay: '-05:00', dstOffset: -4, dstOffsetDisplay: '-04:00', curOffset: -4, curOffsetDisplay: '-04:00', sdsGuide: '{"deviceCode":"AI01"}', newRegYn: 'N', remoteControlType: '', userNo: 'US2005020014880', tftYn: 'N', deviceState: 'E', snapshot: { 'airState.windStrength': 6, static: [Object], 'airState.tempState.current': 21, 'airState.reservation.sleepTime': 0, 'airState.filterMngStates.maxTime': 250, 'airState.reservation.targetTimeToStart': 0, 'airState.operation': 0, 'airState.opMode': 0, 'airState.quality.sensorMon': 0, 'airState.filterMngStates.useTime': 236, meta: [Object], 'airState.energy.accumulatedTime': 300, online: true, timestamp: 1589947933076, 'airState.energy.accumulated': 0, 'airState.reservation.targetTimeToStop': 0, 'airState.tempState.target': 17.5, 'airState.diagCode': 0, 'airState.energy.onCurrent': 50, 'airState.wDir.leftRight': 0 }, online: true, platformType: 'thinq2', area: 334505, regDt: 20200502175942, blackboxYn: 'Y', modelProtocol: 'STANDARD', receipeVersion: 0, activeSaving: 'OFF', smartCareV2: 'OFF', order: 0, drServiceYn: 'N', regDtUtc: '20200502215942', groupableYn: 'Y', controllableYn: 'Y', combinedProductYn: 'N', masterYn: 'Y', tclcount: 0 } } [5/20/2020, 00:12:18] [LgThinqAirConditioner] device response.result.snapshot { 'airState.windStrength': 6, static: { deviceType: '401', countryCode: 'US' }, 'airState.tempState.current': 21, 'airState.reservation.sleepTime': 0, 'airState.filterMngStates.maxTime': 250, 'airState.reservation.targetTimeToStart': 0, 'airState.operation': 0, 'airState.opMode': 0, 'airState.quality.sensorMon': 0, 'airState.filterMngStates.useTime': 236, meta: { allDeviceInfoUpdate: false, messageId: 'MFNCNkX8TZmoyLnPQu2czg' }, 'airState.energy.accumulatedTime': 300, online: true, timestamp: 1589947933076, 'airState.energy.accumulated': 0, 'airState.reservation.targetTimeToStop': 0, 'airState.tempState.target': 17.5, 'airState.diagCode': 0, 'airState.energy.onCurrent': 50, 'airState.wDir.leftRight': 0 } [5/20/2020, 00:12:18] [LgThinqAirConditioner] Pushed updates to HomeKit { power: 'off', currentTemperature: 21, targetTemperature: 17.5, mode: 'cool', fan: 'high' } [5/20/2020, 00:12:36] [LgThinqAirConditioner] Renewing monitoring 99cf8d3e-bf48-1056-ac56-60ab14bb7da6 [5/20/2020, 00:12:48] [LgThinqAirConditioner] Getting device status 99cf8d3e-bf48-1056-ac56-60ab14bb7da6 [5/20/2020, 00:12:48] [LgThinqAirConditioner] device response { resultCode: '0000', result: { appType: 'NUTS', modelCountryCode: 'WW', countryCode: 'US', modelName: 'WIN_056905_WW', deviceType: 401, deviceCode: 'AI01', alias: 'Living room AC', deviceId: '99cf8d3e-bf48-1056-ac56-60ab14bb7da6', fwVer: '', imageFileName: 'ac_home_window_airconditioner_img.png', ssid: 'papitarica', softapId: '', softapPass: '', macAddress: '60:ab:14:bb:7d:a6', networkType: '02', timezoneCode: 'America/New_York', timezoneCodeAlias: 'USA/New_York', utcOffset: -5, utcOffsetDisplay: '-05:00', dstOffset: -4, dstOffsetDisplay: '-04:00', curOffset: -4, curOffsetDisplay: '-04:00', sdsGuide: '{"deviceCode":"AI01"}', newRegYn: 'N', remoteControlType: '', userNo: 'US2005020014880', tftYn: 'N', deviceState: 'E', snapshot: { 'airState.windStrength': 6, static: [Object], 'airState.tempState.current': 20.5, 'airState.reservation.sleepTime': 0, 'airState.filterMngStates.maxTime': 250, 'airState.reservation.targetTimeToStart': 0, 'airState.operation': 0, 'airState.opMode': 0, 'airState.quality.sensorMon': 0, 'airState.filterMngStates.useTime': 236, meta: [Object], 'airState.energy.accumulatedTime': 300, online: true, timestamp: 1589947956884, 'airState.energy.accumulated': 0, 'airState.reservation.targetTimeToStop': 0, 'airState.tempState.target': 17.5, 'airState.diagCode': 0, 'airState.energy.onCurrent': 50, 'airState.wDir.leftRight': 0 }, online: true, platformType: 'thinq2', area: 334505, regDt: 20200502175942, blackboxYn: 'Y', modelProtocol: 'STANDARD', receipeVersion: 0, activeSaving: 'OFF', smartCareV2: 'OFF', order: 0, drServiceYn: 'N', regDtUtc: '20200502215942', groupableYn: 'Y', controllableYn: 'Y', combinedProductYn: 'N', masterYn: 'Y', tclcount: 0 } } [5/20/2020, 00:12:48] [LgThinqAirConditioner] device response.result.snapshot { 'airState.windStrength': 6, static: { deviceType: '401', countryCode: 'US' }, 'airState.tempState.current': 20.5, 'airState.reservation.sleepTime': 0, 'airState.filterMngStates.maxTime': 250, 'airState.reservation.targetTimeToStart': 0, 'airState.operation': 0, 'airState.opMode': 0, 'airState.quality.sensorMon': 0, 'airState.filterMngStates.useTime': 236, meta: { allDeviceInfoUpdate: false, messageId: 'OGwb3CsGTUmkgejSudUuwQ' }, 'airState.energy.accumulatedTime': 300, online: true, timestamp: 1589947956884, 'airState.energy.accumulated': 0, 'airState.reservation.targetTimeToStop': 0, 'airState.tempState.target': 17.5, 'airState.diagCode': 0, 'airState.energy.onCurrent': 50, 'airState.wDir.leftRight': 0 } [5/20/2020, 00:12:48] [LgThinqAirConditioner] Pushed updates to HomeKit { power: 'off', currentTemperature: 20.5, targetTemperature: 17.5, mode: 'cool', fan: 'high' }

sman591 commented 4 years ago

Hmm the logs look appropriate- are you still seeing a large mismatch between temperatures on Homekit and the unit itself?

jvmo commented 4 years ago

Matching values 74,75,76,78,79,80,82,

Not Matching 60,61,62,64,65 I need to use from 90 to 88 to make work

Maybe I need to take out heat option on my configuration

On May 20, 2020, at 12:18 AM, Stuart Olivera notifications@github.com wrote:

 Hmm the logs look appropriate- are you still seeing a large mismatch between temperatures on Homekit and the unit itself?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

sman591 commented 4 years ago

Oh, what mode are you trying to use? Heat or cool?

sman591 commented 4 years ago

I think the heat temperature is broken, I need to implement it

jvmo commented 4 years ago

cool only auto and fan

sman591 commented 4 years ago

What model air conditioner do you have?

jvmo commented 4 years ago

also like jakemauer LG LW1019IVSM window AC

jvmo commented 4 years ago

Thanks again for your dedication I really appreciate it

I will continue tomorrow

And don’t forget you deserve a coffee

On May 20, 2020, at 12:34 AM, Stuart Olivera notifications@github.com wrote:

 What model air conditioner do you have?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

kb1ibt commented 4 years ago

This could be an issue with rounding (I need to look at the debug logs more), but I am also seeing differences in what is on the display versus what is in HomeKit. Specifically, I know that 67F in HomeKit is showing up as 66F on the AC.

sman591 commented 4 years ago

Difference of +/- 1 degree are expected right now; there’s a discrepancy between how Homekit and LG handle rounding. However the issue @jvmo mentions sounds like a potentially larger issue, I’m not sure what though

jeffmaki commented 4 years ago

Related to #17 too, the LG Thinq API actually uses a lookup table to map between F and C (and requires C to control the device, just like HomeKit, regardless of whether C or F is displayed to the user), not just the multiply by (5/9) or (9/5) +/- 32 math you'd expect to go between the two systems.

The mapping table is part of the "modelInfo" API call, which looks to be related to the "get Dashboard" function in this plugin. I pasted the table returned by my AC into the diff below.

I have attached a POC patch against master that almost fixes this--@sman591, maybe you can chime in on this one. Having a problem getting the initial load of the data from Thinq to reflect the proper temperature. I think the old values are perhaps being cached? If you change the temperature at all, it matches the unit. Just not initially... also need to make this triggered on whether the unit is in the US, as I expect units that display C to the user perhaps don't have this "off by one" issue?

POC.txt