bstuff / haier-ac-remote

70 stars 15 forks source link

Update npm package #40

Open Nixellion opened 2 years ago

Nixellion commented 2 years ago

NPM package needs to be updated to support all changes like unique IDs which allow using more than 1 AC at a time.

Without updating NPM it's going to be hard (if possible at all) to install plugin on docker homebridge version with Homebridge UI.

I'm not sure if this can be done by anyone but the maintainer?

Help, please.

Nixellion commented 2 years ago

A workaround for those who are interested in this integration and how to apply this change to docker based Homebridge install.

You need to find directory where the /homebridge volume or folder is mounted to on your host system. In my case it was /var/lib/docker/volumes/afa9570f8manyrandomnumbers07feabdba7/_data

From there proceed to /node_modules/homebridge-haier-ac/dist (/var/lib/docker/volumes/afa9570f8manyrandomnumbers07feabdba7/_data/node_modules/homebridge-haier-ac/dist in my case)

Edit haier.js file to apply the change described in this pull request: https://github.com/bstuff/haier-ac-remote/pull/30/files

I then restarted the entire docker host just in case. And then I had to unpair HomeBridge from HomeAssistant, reset it from Homebridge UI - Homebridge settings - Reset Homebridge Accessor. And then add it back to HomeAssistant.

It now correctly found both ACs and I can confirm that I can control both of them independently from the UI.

Wohoo! :D

Would still be good to update npm package.

mojrs10 commented 1 year ago

I was doing all steps from post above but I can control only one AC. I have two Haier ACs...

EDIT: AC with firmware R_1.0.00/e_2.3.12 working ok but I can not control unit with firmware R_1.0.00/e_2.5.14.

Nixellion commented 1 year ago

Thanks for the extra info, someone will definitely find it useful. Do you mean the AC firmware or the USB-stick firmware? This clarification might also help someone who stumbles upon this.

mojrs10 commented 1 year ago

AC firmware

mojrs10 commented 1 year ago

I read on one forum that it is a firmware for a usb stick. Now I'm not even sure myself. I found this information about the firmware in the SmartAir2 application.