grzegorz914 / homebridge-melcloud-control

Homebridge plugin for Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation, publish as dynamic external platform accessory.
MIT License
49 stars 2 forks source link

Plugin error - updateCharacteristic #55

Closed dassieteeth closed 10 months ago

dassieteeth commented 10 months ago

Hi - I get the following error when I run this plugin on Hoobs.

26/08/2023, 14:46:52Melcloud Control BridgeWARNINGunhandled rejection: TypeError: Cannot read properties of undefined (reading 'updateCharacteristic')

It identifies all my devices correctly (per the logs), but this error comes up every few minutes and the devices are not being transferred to my HomeKit bridge (ie. they are not appearing in Apple HomeKit).

Any advice?

Thanks Andrew

grzegorz914 commented 10 months ago

The accessory need to be added to the Home app,, https://github.com/grzegorz914/homebridge-melcloud-control/wiki#adding-to-homekit will not appear automatically. The log have nothing to do with the accessory, to fix it I need from you the debug log, go to plugin settings, Advanced Settings section and enable debug mode, save, restart and get the whole log with the error.

dassieteeth commented 10 months ago

Thanks so much for the quick response!! I have enabled the debug mode and attached the log.

Regards Andrew

log.txt

grzegorz914 commented 10 months ago

Thanks, can you make the log little longer, because I don't se the error in debug

dassieteeth commented 10 months ago

Hi - updated the log file...worth noting that it takes a while for the error to appear (after rebooting the plugin)...

log-3.txt

grzegorz914 commented 10 months ago

please try 0.13.5-beta.0 and let me know

grzegorz914 commented 10 months ago

probably fixed, try 0.13.5-beta.2 and let me know

dassieteeth commented 10 months ago

awesome - will give it a try tonight!! Thanks so much

grzegorz914 commented 10 months ago

Any info?

dassieteeth commented 10 months ago

Hi - I installed that latest version you suggested - I still see the error message, but was able to add the devices to HomeKit (and they are working).  Quick question: I installed mosquitto MQTT on my Hoobs - is a MQTT server necessary?  It feels like it may be causing some performance issues on my Hoobs platform.  ThanksAndrew On 28 Aug 2023, at 07:10, Grzegorz @.***> wrote: Any info?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

grzegorz914 commented 10 months ago

It will be very helpful if you post the log with the latest installed version. The plugin contain only MQTT Client which Connect to MQTT Broker, so you need to have installed MQTT Broker like mosquito in your environment.

dassieteeth commented 10 months ago

Hi - here is a log file for the last day...debug is turned off on this one. I'll upload another with debug turned on shortly. log-4.txt

dassieteeth commented 10 months ago

Debug turned on for this one... log-5.txt

I'll upload another one when the error message reappears (whilst debug has been turned on)