fjs21 / homebridge-kumo

Control your Kumo cloud devices using Homebridge.
https://www.npmjs.com/package/homebridge-kumo
Apache License 2.0
35 stars 8 forks source link

Getting this error in the log every few seconds #40

Closed hansw1204 closed 2 years ago

hansw1204 commented 2 years ago

[10/29/2021, 10:47:29 AM] [homebridge-kumo] Heater/Cooler: Unable to find target temp [10/29/2021, 10:47:29 AM] [homebridge-kumo] { roomTemp: 21, mode: 'off', spCool: 27.5, spHeat: 22, vaneDir: 'auto', fanSpeed: 'auto', tempSource: 'sensor0', activeThermistor: 'sensor0', filterDirty: false, hotAdjust: false, defrost: false, standby: false, runTest: 0

fjs21 commented 2 years ago

Hi, I've just published a new version which should patch this issue. Can you try v1.8.6?

esetnik commented 2 years ago

Having the same issue in v1.8.6:

[11/3/2021, 5:46:01 PM] [homebridge-kumo] Heater/Cooler: Unable to find target temp

fjs21 commented 2 years ago

Found the bug. Will fix shortly.

fjs21 commented 2 years ago

Try v1.8.9

esetnik commented 2 years ago

I am having the same issue in v1.8.9

fjs21 commented 2 years ago

I've been patching other bugs and we're at v1.8.15. The relevant log information is generated at startup and looks like:

Initializing "%s" of unitType "%s" as generic (unspecified) unit.

In your cases, it should be followed by

%s: Found heat and cool settings will use ductless accessory

Let me know.

esetnik commented 2 years ago

v1.8.15 removes this error but seems to have broken the directAccess ability to connect:

04.11.21 11:08:38 (-0400)  main  [11/4/2021, 3:08:38 PM] [homebridge-kumo] queryDevice_Direct error: Time out on local IP connection..
04.11.21 11:08:38 (-0400)  main  [11/4/2021, 3:08:38 PM] [homebridge-kumo] Failed to connect to device IP (xxxxxxxx)
04.11.21 11:08:38 (-0400)  main  [11/4/2021, 3:08:38 PM] [homebridge-kumo] Disabling directAccess to Kumo devices
hansw1204 commented 2 years ago

Interesting, I am on 1.8.15 as well but still get this: [11/4/2021, 11:58:16 AM] [homebridge-kumo] Heater/Cooler: Unable to find target temp However, I am using Direct Connect and that doesn't seem to have a problem. I also can modify the target temperature in the Home app.

fjs21 commented 2 years ago

Interesting, I am on 1.8.15 as well but still get this:

[11/4/2021, 11:58:16 AM] [homebridge-kumo] Heater/Cooler: Unable to find target temp

However, I am using Direct Connect and that doesn't seem to have a problem. I also can modify the target temperature in the Home app.

Can you post your log so I can diagnose? Everything following a restart. Feel free to remove any parts you are uncomfortable sharing.

hansw1204 commented 2 years ago

Here it is HB_Log.txt

fjs21 commented 2 years ago

Looks like you have five units - all reporting as a ductless unitType. So they should be supported.

Can you go into Homebridge UI and delete all of the cached accessories associated with Kumo? Then restart.

hansw1204 commented 2 years ago

Now it's all of them showing 32 ... Also, the Office AC now shows 32 instead of the correct 70...

I did remove cached accessories but the error remains. Also, the August Lock got kicked out but that’s another topic

Thanks for your help

From: Fraser Sim @.> Reply-To: fjs21/homebridge-kumo @.> Date: Friday, November 5, 2021 at 09:41 To: fjs21/homebridge-kumo @.> Cc: Hans Winkler @.>, Author @.***> Subject: Re: [fjs21/homebridge-kumo] Getting this error in the log every few seconds (Issue #40)

Looks like you have five units - all reporting as a ductless unitType. So they should be supported.

Can you go into Homebridge UI and delete or the cached accessories associated with Kumo? Then restart.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

esetnik commented 2 years ago

Sorry i'm still having this issue on v1.8.16


Initializing HAP-NodeJS v0.9.6...
 main  [11/5/2021, 6:19:19 PM] [homebridge-kumo] Launched child bridge with PID 63
 main  [11/5/2021, 6:19:20 PM] [Wemo] â Setup complete. This plugin has been made with ⥠by bwp91 from the UK!
 main  [11/5/2021, 6:19:21 PM] Registering platform 'homebridge-kumo.Kumo'
 main  [11/5/2021, 6:19:21 PM] [homebridge-kumo] Loaded homebridge-kumo v1.8.16 child bridge successfully
 main  [11/5/2021, 6:19:21 PM] Loaded 1 cached accessories from cachedAccessories.06962778C6D6.
 main  [11/5/2021, 6:19:21 PM] [homebridge-kumo] Loading accessory from cache: Living Room
 main  Preparing Advertiser for 'homebridge-kumo E17A' using ciao backend!
 main  Starting to advertise 'homebridge-kumo E17A' using ciao backend!
 main  [11/5/2021, 6:19:21 PM] Homebridge v1.3.5 (homebridge-kumo) is running on port 50811.
 main  [11/5/2021, 6:19:22 PM] [homebridge-kumo] Kumo API: Successfully connected to the Kumo API.
 main  [11/5/2021, 6:19:22 PM] [homebridge-kumo] Found device. Serial: 1634P0089180101F. Label: Living Room
 main  [11/5/2021, 6:19:22 PM] [homebridge-kumo] Number of devices found: 1
 main  [11/5/2021, 6:19:22 PM] [homebridge-kumo] Completed login.
 main  [11/5/2021, 6:19:22 PM] [homebridge-kumo] Restoring existing accessory from cache: Living Room
 main  [11/5/2021, 6:19:22 PM] [homebridge-kumo] directAccess successful.
 main  [11/5/2021, 6:19:22 PM] [homebridge-kumo] Initializing "Living Room" as ductless unit.
 main  [11/5/2021, 6:19:23 PM] [homebridge-kumo] Heater/Cooler: Unable to find target temp
 main  [11/5/2021, 6:19:23 PM] [homebridge-kumo] {
 main    roomTemp: 18,
 main    mode: 'heat',
 main    spCool: 20.5,
 main    spHeat: 15.5,
 main    vaneDir: 'auto',
 main    fanSpeed: 'auto',
 main    tempSource: 'sensor0',
 main    activeThermistor: 'sensor0',
 main    filterDirty: false,
 main    hotAdjust: false,
 main    defrost: false,
 main    standby: false,
 main    runTest: 0
 main  }
 main  [11/5/2021, 6:19:23 PM] [homebridge-kumo] Heater/Cooler: Unable to find target temp
 main  [11/5/2021, 6:19:23 PM] [homebridge-kumo] {
 main    roomTemp: 18,
 main    mode: 'heat',
 main    spCool: 20.5,
 main    spHeat: 15.5,
 main    vaneDir: 'auto',
 main    fanSpeed: 'auto',
 main    tempSource: 'sensor0',
 main    activeThermistor: 'sensor0',
 main    filterDirty: false,
 main    hotAdjust: false,
 main    defrost: false,
 main    standby: false,
 main    runTest: 0
 main  }
 main  [11/5/2021, 6:19:23 PM] [homebridge-kumo] Heater/Cooler: Unable to find target temp
 main  [11/5/2021, 6:19:23 PM] [homebridge-kumo] {
 main    roomTemp: 18,
 main    mode: 'heat',
 main    spCool: 20.5,
 main    spHeat: 15.5,
 main    vaneDir: 'auto',
 main    fanSpeed: 'auto',
 main    tempSource: 'sensor0',
 main    activeThermistor: 'sensor0',
 main    filterDirty: false,
 main    hotAdjust: false,
 main    defrost: false,
 main    standby: false,
 main    runTest: 0
 main  }
 main  [11/5/2021, 6:19:23 PM] [homebridge-kumo] Heater/Cooler: Unable to find target temp
 main  [11/5/2021, 6:19:23 PM] [homebridge-kumo] {
 main    roomTemp: 18,
 main    mode: 'heat',
 main    spCool: 20.5,
 main    spHeat: 15.5,
 main    vaneDir: 'auto',
 main    fanSpeed: 'auto',
 main    tempSource: 'sensor0',
 main    activeThermistor: 'sensor0',
 main    filterDirty: false,
 main    hotAdjust: false,
 main    defrost: false,
 main    standby: false,
 main    runTest: 0
 main  }
 main  [11/5/2021, 6:19:23 PM] [homebridge-kumo] Heater/Cooler: Unable to find target temp
 main  [11/5/2021, 6:19:23 PM] [homebridge-kumo] {
 main    roomTemp: 18,
 main    mode: 'heat',
 main    spCool: 20.5,
 main    spHeat: 15.5,
 main    vaneDir: 'auto',
 main    fanSpeed: 'auto',
 main    tempSource: 'sensor0',
 main    activeThermistor: 'sensor0',
 main    filterDirty: false,
 main    hotAdjust: false,
 main    defrost: false,
 main    standby: false,
 main    runTest: 0
 main  }
 main  [11/5/2021, 6:19:23 PM] [homebridge-kumo] Heater/Cooler: Unable to find target temp
 main  [11/5/2021, 6:19:23 PM] [homebridge-kumo] {
 main    roomTemp: 18,
 main    mode: 'heat',
 main    spCool: 20.5,
 main    spHeat: 15.5,
 main    vaneDir: 'auto',
 main    fanSpeed: 'auto',
 main    tempSource: 'sensor0',
 main    activeThermistor: 'sensor0',
 main    filterDirty: false,
 main    hotAdjust: false,
 main    defrost: false,
 main    standby: false,
 main    runTest: 0
 main  }
 main  [11/5/2021, 6:19:23 PM] [homebridge-kumo] Heater/Cooler: Unable to find target temp
 main  [11/5/2021, 6:19:23 PM] [homebridge-kumo] {
 main    roomTemp: 18,
 main    mode: 'heat',
 main    spCool: 20.5,
 main    spHeat: 15.5,
 main    vaneDir: 'auto',
 main    fanSpeed: 'auto',
 main    tempSource: 'sensor0',
 main    activeThermistor: 'sensor0',
 main    filterDirty: false,
 main    hotAdjust: false,
Warning: Suppressed 68 message(s) due to slow reading
 main  [11/5/2021, 6:20:59 PM] [homebridge-kumo] Heater/Cooler: Unable to find target temp
 main  [11/5/2021, 6:20:59 PM] [homebridge-kumo] {
 main    roomTemp: 18,
 main    mode: 'heat',
 main    spCool: 20.5,
 main    spHeat: 15.5,
 main    vaneDir: 'auto',
 main    fanSpeed: 'auto',
 main    tempSource: 'sensor0',
 main    activeThermistor: 'sensor0',
 main    filterDirty: false,
 main    hotAdjust: false,
 main    defrost: false,
 main    standby: false,
 main    runTest: 0
 main  }
 main  [11/5/2021, 6:20:59 PM] [homebridge-kumo] Heater/Cooler: Unable to find target temp
 main  [11/5/2021, 6:20:59 PM] [homebridge-kumo] {
 main    roomTemp: 18,
 main    mode: 'heat',
 main    spCool: 20.5,
 main    spHeat: 15.5,
 main    vaneDir: 'auto',
 main    fanSpeed: 'auto',
 main    tempSource: 'sensor0',
 main    activeThermistor: 'sensor0',
 main    filterDirty: false,
 main    hotAdjust: false,
 main    defrost: false,
 main    standby: false,
 main    runTest: 0
 main  }
 main  [11/5/2021, 6:20:59 PM] [homebridge-kumo] Heater/Cooler: Unable to find target temp
 main  [11/5/2021, 6:20:59 PM] [homebridge-kumo] {
 main    roomTemp: 18,
 main    mode: 'heat',
 main    spCool: 20.5,
 main    spHeat: 15.5,
 main    vaneDir: 'auto',
 main    fanSpeed: 'auto',
 main    tempSource: 'sensor0',
 main    activeThermistor: 'sensor0',
 main    filterDirty: false,
 main    hotAdjust: false,
 main    defrost: false,
 main    standby: false,
 main    runTest: 0
 main  }
 main  [11/5/2021, 6:20:59 PM] [homebridge-kumo] Heater/Cooler: Unable to find target temp
 main  [11/5/2021, 6:20:59 PM] [homebridge-kumo] {
 main    roomTemp: 18,
 main    mode: 'heat',
 main    spCool: 20.5,
 main    spHeat: 15.5,
 main    vaneDir: 'auto',
 main    fanSpeed: 'auto',
 main    tempSource: 'sensor0',
 main    activeThermistor: 'sensor0',
 main    filterDirty: false,
 main    hotAdjust: false,
 main    defrost: false,
 main    standby: false,
 main    runTest: 0
 main  }
 main  [11/5/2021, 6:20:59 PM] [homebridge-kumo] Heater/Cooler: Unable to find target temp
 main  [11/5/2021, 6:20:59 PM] [homebridge-kumo] {
 main    roomTemp: 18,
 main    mode: 'heat',
 main    spCool: 20.5,
 main    spHeat: 15.5,
 main    vaneDir: 'auto',
 main    fanSpeed: 'auto',
 main    tempSource: 'sensor0',
 main    activeThermistor: 'sensor0',
 main    filterDirty: false,
 main    hotAdjust: false,
 main    defrost: false,
 main    standby: false,
 main    runTest: 0
 main  }
 main  [11/5/2021, 6:20:59 PM] [homebridge-kumo] Heater/Cooler: Unable to find target temp
 main  [11/5/2021, 6:20:59 PM] [homebridge-kumo] {
 main    roomTemp: 18,
 main    mode: 'heat',
 main    spCool: 20.5,
 main    spHeat: 15.5,
 main    vaneDir: 'auto',
 main    fanSpeed: 'auto',
 main    tempSource: 'sensor0',
 main    activeThermistor: 'sensor0',
 main    filterDirty: false,
 main    hotAdjust: false,
 main    defrost: false,
 main    standby: false,
 main    runTest: 0
 main  }
 main  [11/5/2021, 6:20:59 PM] [homebridge-kumo] Heater/Cooler: Unable to find target temp
 main  [11/5/2021, 6:20:59 PM] [homebridge-kumo] {
 main    roomTemp: 18,
 main    mode: 'heat',
 main    spCool: 20.5,
 main    spHeat: 15.5,
 main    vaneDir: 'auto',
 main    fanSpeed: 'auto',
 main    tempSource: 'sensor0',
 main    activeThermistor: 'sensor0',
 main    filterDirty: false,
 main    hotAdjust: false,
``
esetnik commented 2 years ago

It looks like https://github.com/fjs21/homebridge-kumo/blob/b5cb33d8bdeea049ea80974ec75d50acc1e389b7/src/ductless.ts#L405 should be camelCased

Edit: looks like this one is also messed up.

https://github.com/fjs21/homebridge-kumo/blob/master/src/ductless_simple.ts#L301

fjs21 commented 2 years ago

@esetnik Thanks! I merged the pull request and published a new version on npm with your fix. Good find!

esetnik commented 2 years ago

@fjs21 should I submit a PR for this one as well? https://github.com/fjs21/homebridge-kumo/blob/master/src/ductless_simple.ts#L301

fjs21 commented 2 years ago

Actually. I need to double check. Not everything makes sense with Kumo json responses.

esetnik commented 2 years ago

I upgraded to v1.8.17 and I am no longer getting the console error, also my temp is now reading correctly. Thanks for your hard work on this plugin!

hansw1204 commented 2 years ago

Yes, 1.8.17 fixed everything for me. Thanksyou so much