youridijk / homebridge-kaku-ics2000

HomeKit support for Klik Aan Klik Uit ICS-2000
Apache License 2.0
21 stars 6 forks source link

Error discovering devices #23

Closed ndgmedia closed 1 year ago

ndgmedia commented 1 year ago

Hi! First of all I would like to thank you for developing this plugin. However I'm not able to get it working.

My parents bought some KAKU power plugs and I want to set them up in Homekit for them.

After filling in the needed details to connect with the ICS the log shows the following:

[ICS-2000] Error discovering devices: TypeError: this.deviceBlacklist.includes is not a function [2/7/2023, 11:59:06 AM] [ICS-2000] Error fetching device statuses: Error: Unknown error while fetching device statuses, json:

My assumption is that the power plugs are not known the the plugin and so it can't find / use the power plugs. Could you please look into this?

Thanks!

youridijk commented 1 year ago

Could you provide the full config for this plugin and the version of the package you installed? From your logs it seems to be an issue with the device blacklist

ndgmedia commented 1 year ago

Thanks for the quick reply. Hereby the settings + version:

Version: homebridge-kaku-ics2000 v1.2.1

{ "name": "ICS-2000", "email": "***@gmail.com", "password": "*********", "localBackupAddress": "192.168.1.18", "hideReloadSwitch": true, "platform": "KAKU-ICS2000" } ] }

youridijk commented 1 year ago

Try adding blacklist key with empty array as value to the config. See README for more info

ndgmedia commented 1 year ago

My current config file looks like this but I still have the same error.

        {
            "platform": "KAKU-ICS2000",
            "name": "ICS-2000",
            "email": "***@gmail.com",
            "password": "******",
            "deviceBlacklist": [],
            "localBackupAddress": "192.168.1.18"
        }
EdgarKooren commented 1 year ago

Having this issue ass well and try the above fix and did not work for me. This issue persist for me after downgrading from the V3.0-beta version to V1.2.1

DnWillis commented 1 year ago

Also having this issue. Downgraded to V1.1.1. That worked for me.

youridijk commented 1 year ago

I just published v1.2.3 to fix this issues. Didn't test everything well and changed too much on the lib.

EdgarKooren commented 1 year ago

Hi just tested the new release and getting a new error. The devices itself works again so that issue is resolved.

[2/7/2023, 7:20:01 PM] [ICS-2000] Error getting brightness for Staande Lamp: TypeError: Cannot read properties of undefined (reading '1')
[2/7/2023, 7:20:01 PM] [homebridge-kaku-ics2000] This plugin threw an error from the characteristic 'On': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading '0'). See https://homebridge.io/w/JtMGR for more info.
[2/7/2023, 7:20:01 PM] [homebridge-kaku-ics2000] This plugin threw an error from the characteristic 'On': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading '0'). See https://homebridge.io/w/JtMGR for more info.
[2/7/2023, 7:20:01 PM] [homebridge-kaku-ics2000] This plugin threw an error from the characteristic 'On': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading '0'). See https://homebridge.io/w/JtMGR for more info.
[2/7/2023, 7:20:01 PM] [homebridge-kaku-ics2000] This plugin threw an error from the characteristic 'On': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading '0'). See https://homebridge.io/w/JtMGR for more info.
[2/7/2023, 7:20:01 PM] [homebridge-kaku-ics2000] This plugin threw an error from the characteristic 'On': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading '0'). See https://homebridge.io/w/JtMGR for more info.
[2/7/2023, 7:20:01 PM] [homebridge-kaku-ics2000] This plugin threw an error from the characteristic 'On': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading '0'). See https://homebridge.io/w/JtMGR for more info.
[2/7/2023, 7:20:01 PM] [homebridge-kaku-ics2000] This plugin threw an error from the characteristic 'On': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading '0'). See https://homebridge.io/w/JtMGR for more info.
[2/7/2023, 7:20:01 PM] [homebridge-kaku-ics2000] This plugin threw an error from the characteristic 'On': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading '0'). See https://homebridge.io/w/JtMGR for more info.
[2/7/2023, 7:20:01 PM] [homebridge-kaku-ics2000] This plugin threw an error from the characteristic 'On': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading '0'). See https://homebridge.io/w/JtMGR for more info.
[2/7/2023, 7:20:01 PM] [homebridge-kaku-ics2000] This plugin threw an error from the characteristic 'On': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading '0'). See https://homebridge.io/w/JtMGR for more info.
[2/7/2023, 7:20:01 PM] [homebridge-kaku-ics2000] This plugin threw an error from the characteristic 'On': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading '0'). See https://homebridge.io/w/JtMGR for more info.
youridijk commented 1 year ago

Everything worked before yesterday? Or did you install it today first

ndgmedia commented 1 year ago

Resolved for me, thanks!

youridijk commented 1 year ago

Closing because resolved / no activity