arthurkrupa / gree-hvac-mqtt-bridge

MQTT Bridge for controlling Gree smart air conditioners, e.g. with Home Assistant or OpenHAB
GNU General Public License v3.0
134 stars 63 forks source link

Adding multiple ACs #11

Closed Nasserish closed 5 years ago

Nasserish commented 6 years ago

Let me start by thanking you for this absolutely great add-on, which was my reason for buying Gree ACs. I have managed to add one of the ACs and it's working great, but I'm trying to figure out the configuration for adding three ACs ?

Your help is much appreciated..

Thanks,

T-REX-XP commented 6 years ago

Hello. You can run three copy of this container with different configuration))

Nasserish commented 6 years ago

Many thanks. I've been able to add the second AC, but I can't reinstall this container anymore. I don't get the option to install. I've tried to rebuild, restart the addon, and restarting HA, but I can't find the option to install greehvac anymore.

Any ideas?

arthurkrupa commented 6 years ago

@Nasserish try to remove the addon AND the repository from Hassio, then restart your host device. Add the repo again and make sure you install v1.0.4.

I've ran into similar issues a couple of days ago, because a NodeJS version was removed from Alpine Linux repositories, so the addon wouldn't build.

If you have SSH access (using the addon) to your Hassio, sometimes restarting Supervisor helps with addon issues (hassio su reload).

arthurkrupa commented 6 years ago

As for the original issue, support for multiple devices would be a great feature. The only problem is, I only have one Gree AC at home, so I wouldn't be able to test it.

I'll get back to it once I have a second device in my network.

Nasserish commented 6 years ago

I've tried uninstalling the addon then reinstall it again, but now I'm not able to build more than one container.

What's weird is when I installed the addon the second time, all of my addon page disappeared until I added your respiratory again.

Any advice? Thanks

Nasserish commented 6 years ago

I've tried restoring a partial snapshot, but no luck..

arthurkrupa commented 6 years ago

I've never tried to run multiple instances of the same addon at once. Is this even supported by Hass.io?

You could try to manually put the code inside the /addons/ directory (as described here) and then duplicate it (e.g. /addons/gree-1/, /addons/gree-2/). This would skip the repository part.

BTW if you have problems with Home Assistant after removing a repository, try to reload Hassio Supervisor (as mentioned here).

Nasserish commented 6 years ago

I added the addon manually and it works great. However the AC current temperature is a replicate of the target temperature. I'm not sure if there's a sensor in gree.

Many thanks

arthurkrupa commented 6 years ago

No problem, I'm glad it worked.

I think the target temperature is the only thing available in the protocol.

dragonflyuk commented 5 years ago

I can confirm that using the methods outlined here I have successfully added 4 units to the same hass.io config. If you are keeping a list of compatible model mine are all Cooper+Hunter models I can dig out the model numbers if they help anyone.

arthurkrupa commented 5 years ago

Multiple devices can now be added using the Hassio addon (fe31cf8025b2f1a0c6772eaa908a9feb49880dad). Please update to v1.2.0.