fjs21 / homebridge-kumo

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

Support for devices with a 'null' unitType #35

Closed monteroman closed 2 years ago

monteroman commented 3 years ago

Hi there. Whenever I make a call to use the plugin, I'm getting these alerts in the log.

[8/16/2021, 4:15:04 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Cooling Threshold Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [8/16/2021, 4:15:04 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Rotation Speed': characteristic was supplied illegal value: number -20 exceeded minimum of 0. See https://git.io/JtMGR for more info. [8/16/2021, 4:15:04 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [8/16/2021, 4:15:04 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Cooling Threshold Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [8/16/2021, 4:15:04 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Rotation Speed': characteristic was supplied illegal value: number -20 exceeded minimum of 0. See https://git.io/JtMGR for more info. [8/16/2021, 4:15:04 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Current Heating Cooling State': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [8/16/2021, 4:15:04 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Cooling Threshold Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [8/16/2021, 4:15:04 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Rotation Speed': characteristic was supplied illegal value: number -20 exceeded minimum of 0. See https://git.io/JtMGR for more info. [8/16/2021, 4:15:04 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Rotation Speed': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [8/16/2021, 4:15:04 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Cooling Threshold Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [8/16/2021, 4:15:04 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Rotation Speed': characteristic was supplied illegal value: number -20 exceeded minimum of 0. See https://git.io/JtMGR for more info. [8/16/2021, 4:15:04 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Active': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [8/16/2021, 4:15:04 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Cooling Threshold Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [8/16/2021, 4:15:04 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Rotation Speed': characteristic was supplied illegal value: number -20 exceeded minimum of 0. See https://git.io/JtMGR for more info. [8/16/2021, 4:15:04 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Target Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [8/16/2021, 4:15:04 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Cooling Threshold Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [8/16/2021, 4:15:04 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Rotation Speed': characteristic was supplied illegal value: number -20 exceeded minimum of 0. See https://git.io/JtMGR for more info. [8/16/2021, 4:15:04 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Swing Mode': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [8/16/2021, 4:15:04 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Cooling Threshold Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [8/16/2021, 4:15:04 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Rotation Speed': characteristic was supplied illegal value: number -20 exceeded minimum of 0. See https://git.io/JtMGR for more info. [8/16/2021, 4:15:04 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Target Heating Cooling State': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [8/16/2021, 4:15:14 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Active': Characteristic not in required or optional characteristic section for service Switch. Adding anyway.. See https://git.io/JtMGR for more info. [8/16/2021, 4:15:14 PM] [homebridge-kumo] Thermostat: set TargetState from 0 to 2. [8/16/2021, 4:15:15 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Target Heating Cooling State': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [8/16/2021, 4:15:15 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Target Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [8/16/2021, 4:15:15 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Rotation Speed': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [8/16/2021, 4:15:15 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Current Heating Cooling State': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [8/16/2021, 4:15:15 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [8/16/2021, 4:15:15 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Active': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [8/16/2021, 4:15:15 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Swing Mode': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [8/16/2021, 4:15:16 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [8/16/2021, 4:15:16 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Target Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [8/16/2021, 4:15:16 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Rotation Speed': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [8/16/2021, 4:15:16 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Target Heating Cooling State': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [8/16/2021, 4:15:16 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Current Heating Cooling State': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [8/16/2021, 4:15:16 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Active': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [8/16/2021, 4:15:17 PM] [homebridge-kumo] This plugin generated a warning from the characteristic 'Swing Mode': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info.

Node.js Version: v14.17.5 HomeBridge Version: 1.3.4 Plugin Version: 1.6.0

Thanks!

monteroman commented 2 years ago

1.8.10

Sent from my iPhone

On Nov 3, 2021, at 3:36 PM, Fraser Sim @.***> wrote:

 Which version are you running at the moment?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

fjs21 commented 2 years ago

@monteroman can you give v1.8.15 a whirl?

monteroman commented 2 years ago

I won’t have a chance until later today. I’m not at home for several hours. But will let you know.

Sent from my iPhone

On Nov 4, 2021, at 9:24 AM, Fraser Sim @.***> wrote:

 @monteroman can you give v1.8.15 a whirl?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

monteroman commented 2 years ago

Hey there. It still looks like it’s registering the Guest Room as unknown, but it’s exactly the same Kumo adapter and the same as Bedroom and Office’s inverters.

11/5/2021, 9:54:18 AM] [homebridge-kumo] Launched child bridge with PID 8323 [11/5/2021, 9:54:23 AM] Registering platform 'homebridge-kumo.Kumo' [11/5/2021, 9:54:23 AM] [homebridge-kumo] Loaded homebridge-kumo v1.8.16 child bridge successfully [11/5/2021, 9:54:23 AM] Loaded 5 cached accessories from cachedAccessories.0E48671FB24F. [11/5/2021, 9:54:23 AM] [homebridge-kumo] Loading accessory from cache: Bedroom [11/5/2021, 9:54:23 AM] [homebridge-kumo] Loading accessory from cache: Guest Room [11/5/2021, 9:54:23 AM] [homebridge-kumo] Loading accessory from cache: Basement [11/5/2021, 9:54:23 AM] [homebridge-kumo] Loading accessory from cache: Office [11/5/2021, 9:54:23 AM] [homebridge-kumo] Loading accessory from cache: Living Room Preparing Advertiser for 'homebridge-kumo 1DE0' using bonjour-hap backend! Starting to advertise 'homebridge-kumo 1DE0' using bonjour-hap backend! [11/5/2021, 9:54:23 AM] Homebridge v1.3.5 (homebridge-kumo) is running on port 45555. [11/5/2021, 9:54:24 AM] [homebridge-kumo] Kumo API: Successfully connected to the Kumo API. [11/5/2021, 9:54:24 AM] [homebridge-kumo] Found device. Serial: 1934P0086180050F. Label: Bedroom [11/5/2021, 9:54:24 AM] [homebridge-kumo] Found device. Serial: 1934P0086180100F. Label: Guest Room [11/5/2021, 9:54:24 AM] [homebridge-kumo] Found device. Serial: 1934P0086180095F. Label: Basement [11/5/2021, 9:54:24 AM] [homebridge-kumo] Found device. Serial: 1934P0086180066F. Label: Office [11/5/2021, 9:54:24 AM] [homebridge-kumo] Found device. Serial: 1634P0087180057F. Label: Living Room [11/5/2021, 9:54:24 AM] [homebridge-kumo] Number of devices found: 5 [11/5/2021, 9:54:24 AM] [homebridge-kumo] Completed login. [11/5/2021, 9:54:24 AM] [homebridge-kumo] Restoring existing accessory from cache: Bedroom [11/5/2021, 9:54:24 AM] [homebridge-kumo] Using Kumo Cloud API for device control [11/5/2021, 9:54:25 AM] [homebridge-kumo] Initializing "Bedroom" as ductless unit. [11/5/2021, 9:54:25 AM] [homebridge-kumo] Restoring existing accessory from cache: Guest Room [11/5/2021, 9:54:25 AM] [homebridge-kumo] Using Kumo Cloud API for device control [11/5/2021, 9:54:26 AM] [homebridge-kumo] Initializing "Guest Room" of unitType "null" as generic (unspecified) unit. [11/5/2021, 9:54:26 AM] [homebridge-kumo] Guest Room: Found heat and cool settings will use ductless accessory [11/5/2021, 9:54:26 AM] [homebridge-kumo] Restoring existing accessory from cache: Basement [11/5/2021, 9:54:26 AM] [homebridge-kumo] Using Kumo Cloud API for device control [11/5/2021, 9:54:27 AM] [homebridge-kumo] Initializing "Basement" as ductless unit. [11/5/2021, 9:54:27 AM] [homebridge-kumo] Restoring existing accessory from cache: Office [11/5/2021, 9:54:27 AM] [homebridge-kumo] Using Kumo Cloud API for device control [11/5/2021, 9:54:27 AM] [homebridge-kumo] Initializing "Office" as ductless unit. [11/5/2021, 9:54:27 AM] [homebridge-kumo] Restoring existing accessory from cache: Living Room [11/5/2021, 9:54:27 AM] [homebridge-kumo] Using Kumo Cloud API for device control [11/5/2021, 9:54:28 AM] [homebridge-kumo] Initializing "Living Room" as ductless unit.

When it’s done going through initializing, I’m getting a ton of these: [11/5/2021, 9:55:14 AM] [homebridge-kumo] Kumo API: queryDevice error: Time out on Kumo cloud connection.. [11/5/2021, 9:55:14 AM] [homebridge-kumo] queryDevice failed. [11/5/2021, 9:55:14 AM] [homebridge-kumo] Kumo API: queryDevice error: Time out on Kumo cloud connection.. [11/5/2021, 9:55:14 AM] [homebridge-kumo] queryDevice failed. [11/5/2021, 9:55:14 AM] [homebridge-kumo] Kumo API: queryDevice error: Time out on Kumo cloud connection.. [11/5/2021, 9:55:14 AM] [homebridge-kumo] queryDevice failed. [11/5/2021, 9:55:14 AM] [homebridge-kumo] Kumo API: queryDevice error: Time out on Kumo cloud connection.. [11/5/2021, 9:55:14 AM] [homebridge-kumo] queryDevice failed. [11/5/2021, 9:55:14 AM] [homebridge-kumo] Kumo API: queryDevice error: Time out on Kumo cloud connection.. [11/5/2021, 9:55:14 AM] [homebridge-kumo] queryDevice failed. [11/5/2021, 9:55:14 AM] [homebridge-kumo] Kumo API: queryDevice error: Time out on Kumo cloud connection.. [11/5/2021, 9:55:14 AM] [homebridge-kumo] queryDevice failed. [11/5/2021, 9:55:14 AM] [homebridge-kumo] Kumo API: queryDevice error: Time out on Kumo cloud connection.. [11/5/2021, 9:55:14 AM] [homebridge-kumo] queryDevice failed.

I changed the Office temp down a degree and got: 11/5/2021, 9:56:43 AM] [homebridge-kumo] Heater/Cooler: set HeatingThresholdTemperature to 20.5.

It looks like that’s happy.

This is running the .18 version.

fjs21 commented 2 years ago

This is great. It is behaving as expected. I don't know why the GuestRoom is responding with a different unitType but it is using the same ductless accessory so should appear identical in the Home App.

The time out errors probably reflects a response was not received from Kumo cloud in time. I reduced the time out so that you would avoid the errors in HomeBridge stating that Kumo would slow down the system. So this is good. It essentially reflects that you might have a slow(ish) connection/response to the Kumo cloud. It is set at 5 secs now and was 10 secs before (when you were getting the Homebridge errors).

Alternatively, you can try directAccess by checking the box in the config. I suggest you set static IPs for the Kumo devices if you go that route.

monteroman commented 2 years ago

The odd thing is, it shows up as 2 devices with temperature controls and the top one is wrong. The bottom one is correct.

Di you think if I remove it from the cached devices, it might correct itself?

On Nov 5, 2021, at 12:24 PM, Fraser Sim @.***> wrote:

This is great. It is behaving as expected. I don't know why the GuestRoom is responding with a different unitType but it is using the same ductless accessory so should appear identical in the Home App.

The time out errors probably reflects a response was not received from Kumo cloud in time. I reduced the time out so that you would avoid the errors in HomeBridge stating that Kumo would slow down the system. So this is good. It essentially reflects that you might have a slow(ish) connection/response to the Kumo cloud. It is set at 5 secs now and was 10 secs before (when you were getting the Homebridge errors).

Alternatively, you can try directAccess by checking the box in the config. I suggest you set static IPs for the Kumo devices if you go that route.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/fjs21/homebridge-kumo/issues/35#issuecomment-962034633, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJS2IW4IBJBS66LKS2USKTUKQHLTANCNFSM5CIN2KYQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

fjs21 commented 2 years ago

Yes. My thought is that the thermostat service is a hold over from a previous version. The heater/cooler is the correct one. So if you delete ALL Kumo cached accessories it will rediscover and then recreate. At which point you should only have one per device.

monteroman commented 2 years ago

oddly enough, it’s still throwing the same error after removing it from the cache, but it’s now showing correctly in the Home app.

[11/5/2021, 2:27:53 PM] Registering platform 'homebridge-kumo.Kumo' [11/5/2021, 2:27:54 PM] [homebridge-kumo] Loaded homebridge-kumo v1.8.16 child bridge successfully [11/5/2021, 2:27:54 PM] Loaded 5 cached accessories from cachedAccessories.0E48671FB24F. [11/5/2021, 2:27:54 PM] [homebridge-kumo] Loading accessory from cache: Bedroom [11/5/2021, 2:27:54 PM] [homebridge-kumo] Loading accessory from cache: Basement [11/5/2021, 2:27:54 PM] [homebridge-kumo] Loading accessory from cache: Office [11/5/2021, 2:27:54 PM] [homebridge-kumo] Loading accessory from cache: Living Room [11/5/2021, 2:27:54 PM] [homebridge-kumo] Loading accessory from cache: Guest Room Preparing Advertiser for 'homebridge-kumo 1DE0' using bonjour-hap backend! Starting to advertise 'homebridge-kumo 1DE0' using bonjour-hap backend! [11/5/2021, 2:27:54 PM] Homebridge v1.3.5 (homebridge-kumo) is running on port 45555. [11/5/2021, 2:27:55 PM] [homebridge-kumo] Kumo API: Successfully connected to the Kumo API. [11/5/2021, 2:27:55 PM] [homebridge-kumo] Found device. Serial: 1934P0086180050F. Label: Bedroom [11/5/2021, 2:27:55 PM] [homebridge-kumo] Found device. Serial: 1934P0086180100F. Label: Guest Room [11/5/2021, 2:27:55 PM] [homebridge-kumo] Found device. Serial: 1934P0086180095F. Label: Basement [11/5/2021, 2:27:55 PM] [homebridge-kumo] Found device. Serial: 1934P0086180066F. Label: Office [11/5/2021, 2:27:55 PM] [homebridge-kumo] Found device. Serial: 1634P0087180057F. Label: Living Room [11/5/2021, 2:27:55 PM] [homebridge-kumo] Number of devices found: 5 [11/5/2021, 2:27:55 PM] [homebridge-kumo] Completed login. [11/5/2021, 2:27:55 PM] [homebridge-kumo] Restoring existing accessory from cache: Bedroom [11/5/2021, 2:27:55 PM] [homebridge-kumo] Using Kumo Cloud API for device control [11/5/2021, 2:27:56 PM] [homebridge-kumo] Initializing "Bedroom" as ductless unit. [11/5/2021, 2:27:56 PM] [homebridge-kumo] Restoring existing accessory from cache: Guest Room [11/5/2021, 2:27:56 PM] [homebridge-kumo] Using Kumo Cloud API for device control [11/5/2021, 2:27:57 PM] [homebridge-kumo] Initializing "Guest Room" of unitType "null" as generic (unspecified) unit. [11/5/2021, 2:27:57 PM] [homebridge-kumo] Guest Room: Found heat and cool settings will use ductless accessory [11/5/2021, 2:27:57 PM] [homebridge-kumo] Restoring existing accessory from cache: Basement [11/5/2021, 2:27:57 PM] [homebridge-kumo] Using Kumo Cloud API for device control [11/5/2021, 2:27:58 PM] [homebridge-kumo] Initializing "Basement" as ductless unit. [11/5/2021, 2:27:58 PM] [homebridge-kumo] Restoring existing accessory from cache: Office [11/5/2021, 2:27:58 PM] [homebridge-kumo] Using Kumo Cloud API for device control [11/5/2021, 2:27:58 PM] [homebridge-kumo] Initializing "Office" as ductless unit. [11/5/2021, 2:27:58 PM] [homebridge-kumo] Restoring existing accessory from cache: Living Room [11/5/2021, 2:27:58 PM] [homebridge-kumo] Using Kumo Cloud API for device control [11/5/2021, 2:27:59 PM] [homebridge-kumo] Initializing "Living Room" as ductless unit. [11/5/2021, 2:28:05 PM] [homebridge-kumo] Kumo API: queryDevice error: Time out on Kumo cloud connection.. [11/5/2021, 2:28:05 PM] [homebridge-kumo] queryDevice failed.

It still throws the queryDevice failed errors ( a bunch of them).

I looked at the device itself and it’s showing it’s a Model MSZ-GL06NA Service Ref is MSZ-GL06NA-U1

On Nov 5, 2021, at 1:24 PM, Fraser Sim @.***> wrote:

Yes. My thought is that the thermostat service is a hold over from a previous version. The heater/cooler is the correct one. So if you delete ALL Kumo cached accessories it will rediscover and then recreate. At which point you should only have one per device.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/fjs21/homebridge-kumo/issues/35#issuecomment-962078941, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJS2ISNLAAVVRAZN4P6ZD3UKQOPTANCNFSM5CIN2KYQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

fjs21 commented 2 years ago

I tried increasing the time out in the most recent version. Let me know.