grzegorz914 / homebridge-melcloud-control

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

Account MyAccount, login error, Error: unable to verify the first certificate, reconnect in 65s #46

Closed ams158 closed 1 year ago

ams158 commented 1 year ago

Today, suddenly the MELcloud plugin stopped working. When checking my Homebridge logs, I see this message:

[5/10/2023, 7:28:15 PM] [homebridge-melcloud-control] Account MyAccount, login error, Error: unable to verify the first certificate, reconnect in 65s.

The service works through MELcloud app, any idea why suddenly started to fail? I've been using it for months.

Thanks, BR Abel

Reliktdragons commented 1 year ago

with me also the same error in the log

Lechucico commented 1 year ago

Same error here

easyproger commented 1 year ago

Fix: npm install --save node_extra_ca_certs_mozilla_bundle

and in melcloud.js add

in header: const fs = require('fs'); const https = require('https');

in constructor: https.globalAgent.options.ca = fs.readFileSync('node_modules/node_extra_ca_certs_mozilla_bundle/ca_bundle/ca_intermediate_root_bundle.pem');

info from: https://github.com/arvind-agarwal/node_extra_ca_certs_mozilla_bundle

for me is not worked bcs melcloud not see node_extra_ca_certs_mozilla_bundle I don't know why ( yes I put it on melcloud node_modules folder ), fix for this put ca_bundle in root folder ( like / ) and set in code like fs.readFileSync('/ca_bundle/ca_intermediate_root_bundle.pem'); after this all worked like a charm

my example after edit melcloud.js

Screenshot 2023-05-10 at 21 18 48
abuapfbua commented 1 year ago

s through MELcloud The website https://app.melcloud.com/Mitsubishi.Wifi.Client/Login/ClientLogin is no longer available.

AllSeeingGoatWizard commented 1 year ago

Same issue here.

mlamieri commented 1 year ago

Same issue here

bddq commented 1 year ago

Same issue here.

MorreMor commented 1 year ago

Same issue here, please update plugin

abuapfbua commented 1 year ago

thanks @grzegorz914, it works perfectly.