Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gree Lomo eco - status works but no control #8

Open
cytrus77 opened this issue May 26, 2020 · 9 comments
Open

Gree Lomo eco - status works but no control #8

cytrus77 opened this issue May 26, 2020 · 9 comments

Comments

@cytrus77
Copy link

Hi,
I'm using Gree Lomo eco air conditioner.
I'm getting in log:
2020-05-26 13:51:08.483 [DEBUG] [nding.greeair.handler.GreeAirHandler] - GreeAircon for greeair:greeairthing:1ec44e7c is disposing
2020-05-26 13:51:08.564 [DEBUG] [nding.greeair.handler.GreeAirHandler] - GreeAirconHandler for greeair:greeairthing:1ec44e7c is initializing
2020-05-26 13:51:08.566 [DEBUG] [nding.greeair.handler.GreeAirHandler] - GreeAirconHandler config for greeair:greeairthing:1ec44e7c is GreeAirconConfig{ipAddress=192.168.38.125}
2020-05-26 13:51:08.568 [TRACE] [nding.greeair.handler.GreeAirHandler] - Greeair Binding Sending scan packet to /192.168.38.255
2020-05-26 13:51:08.600 [TRACE] [nding.greeair.handler.GreeAirHandler] - Greeair Binding Response received from address /192.168.38.125
2020-05-26 13:51:08.601 [TRACE] [nding.greeair.handler.GreeAirHandler] - Greeair Binding Response : {"t":"dev","cid":"f4911ec44e7c","bc":"000000000000000000000000000000","brand":"gree","catalog":"gree","mac":"f4911ec44e7c","mid":"10001","model":"gree","name":"1ec44e7c","series":"gree","vender":"1","ver":"V1.2.1","lock":0}
2020-05-26 13:51:13.572 [WARN ] [core.thing.internal.ThingManagerImpl] - Initializing handler for thing 'greeair:greeairthing:1ec44e7c' takes more than 5000ms.
2020-05-26 13:51:13.607 [DEBUG] [nding.greeair.handler.GreeAirHandler] - GreeAircon found 1 Gree Devices during scanning
2020-05-26 13:51:13.622 [INFO ] [nding.greeair.handler.GreeAirHandler] - Gree AirConditioner Device greeair:greeairthing:1ec44e7c from was Succesfully bound
2020-05-26 13:51:13.623 [DEBUG] [nding.greeair.handler.GreeAirHandler] - Greeair executing automatic update of values
2020-05-26 13:51:13.623 [DEBUG] [nding.greeair.handler.GreeAirHandler] - Start Greeair automatic refresh with 2 second intervals
2020-05-26 13:51:13.624 [DEBUG] [nding.greeair.handler.GreeAirHandler] - Fetching status values from device.
2020-05-26 13:51:13.625 [TRACE] [nding.greeair.handler.GreeAirHandler] - Sending Status request packet to device
2020-05-26 13:51:13.647 [TRACE] [nding.greeair.handler.GreeAirHandler] - Status request packet received from device
2020-05-26 13:51:13.648 [TRACE] [nding.greeair.handler.GreeAirHandler] - Response from device: {"t":"dat","mac":"f4911ec44e7c","r":200,"cols":["Pow","Mod","SetTem","WdSpd","Air","Blo","Health","SwhSlp","Lig","SwingLfRig","SwUpDn","Quiet","Tur","StHt","TemUn","HeatCoolType","TemRec","SvSt","NoiseSet"],"dat":[0,1,23,3,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0]}

I'm getting: "bc":"000000000000000000000000000000"
is this can be a problem for binding to control AC ?

@pbogut
Copy link

pbogut commented May 26, 2020

Module is not working with newer OpenHAB version. Main issue is thing/thing-types.xml, I managed to get it work by adding proper thing type definition. Someone did pull request with that 2 years ago, so I think this project is dead. What version of the Openhab you have? If you not fancy compiling yourself I think I can send you working jar file.

@cytrus77
Copy link
Author

I'm not familiar with this binding compilation, so if You can generate new jar for me I will really appreciate.
Do You now where to find some guidline how to compile binding ? maybe I will also try it on my own.

@pbogut
Copy link

pbogut commented May 26, 2020

Some instruction is here: https://www.openhab.org/docs/developer/bindings/ but it took me a while to figure it out.

This one should work: http://storage.pbogut.me/org.openhab.binding.greeair-2.5.2-SNAPSHOT.jar it should go to something like /usr/share/openhab2/addons.

@cytrus77
Copy link
Author

@pbogut thanks for that, but no progress.
It looks like bindings gives zero reaction for item change.

2020-05-26 18:41:19.970 [DEBUG] [nding.greeair.handler.GreeAirHandler] - GreeAirconHandler for greeair:greeairthing:1ec44e7c is initializing
2020-05-26 18:41:19.972 [DEBUG] [nding.greeair.handler.GreeAirHandler] - GreeAirconHandler config for greeair:greeairthing:1ec44e7c is GreeAirconConfig{ipAddress=192.168.38.125}
2020-05-26 18:41:19.973 [TRACE] [.internal.discovery.GreeDeviceFinder] - Greeair Binding Sending scan packet to /192.168.38.255
2020-05-26 18:41:20.022 [WARN ] [eeair.internal.encryption.CryptoUtil] - Decrypted message: {"t":"dev","cid":"f4911ec44e7c","bc":"000000000000000000000000000000","brand":"gree","catalog":"gree","mac":"f4911ec44e7c","mid":"10001","model":"gree","name":"1ec44e7c","series":"gree","vender":"1","ver":"V1.2.1","lock":0}
2020-05-26 18:41:20.024 [WARN ] [eeair.internal.encryption.CryptoUtil] - Decrypted message: {"t":"dev","cid":"f4911ec44e7c","bc":"000000000000000000000000000000","brand":"gree","catalog":"gree","mac":"f4911ec44e7c","mid":"10001","model":"gree","name":"1ec44e7c","series":"gree","vender":"1","ver":"V1.2.1","lock":0}
2020-05-26 18:41:20.025 [TRACE] [.internal.discovery.GreeDeviceFinder] - Greeair Binding Response received from address /192.168.38.125
2020-05-26 18:41:20.026 [TRACE] [.internal.discovery.GreeDeviceFinder] - Greeair Binding Response : {"t":"dev","cid":"f4911ec44e7c","bc":"000000000000000000000000000000","brand":"gree","catalog":"gree","mac":"f4911ec44e7c","mid":"10001","model":"gree","name":"1ec44e7c","series":"gree","vender":"1","ver":"V1.2.1","lock":0}
2020-05-26 18:41:25.032 [DEBUG] [nding.greeair.handler.GreeAirHandler] - GreeAircon found 1 Gree Devices during scanning
2020-05-26 18:41:25.035 [WARN ] [eeair.internal.encryption.CryptoUtil] - Encrypt message: {"mac":"f4911ec44e7c","t":"bind","uid":0}
2020-05-26 18:41:25.053 [WARN ] [eeair.internal.encryption.CryptoUtil] - Decrypted message: {"t":"bindok","mac":"f4911ec44e7c","key":"XXXXXXXXXXXX","r":200}
2020-05-26 18:41:25.055 [WARN ] [reeair.internal.discovery.GreeDevice] - Key received: XXXXXXXXXXXXXX
2020-05-26 18:41:25.056 [INFO ] [nding.greeair.handler.GreeAirHandler] - Gree AirConditioner Device greeair:greeairthing:1ec44e7c from was Succesfully bound
2020-05-26 18:41:25.058 [DEBUG] [nding.greeair.handler.GreeAirHandler] - Start Greeair automatic refresh with 30 second intervals
2020-05-26 18:41:25.058 [DEBUG] [nding.greeair.handler.GreeAirHandler] - Greeair executing automatic update of values
2020-05-26 18:41:25.060 [DEBUG] [nding.greeair.handler.GreeAirHandler] - Fetching status values from device.

Looks like AC was bound as expected but when I change any settings from item list there is no action triggered. No single log about any request from user.

I'm using items list and sitemap from README example.

My openhab version: openHAB 2.5.5 Release Build

Any idea what else I can try ?
Really appreciate Your help. Thanks

@pbogut
Copy link

pbogut commented May 26, 2020

I would have to install 2.5.5 and check, now I don't have open hab but I'm 99% sure that jar worked (could be different one though, can't check now). I've did a fresh compile, and then did git pull on openhab-addons and compiled once again. It produce two different files, you can try:
http://storage.pbogut.me/1/org.openhab.binding.greeair-2.5.2-SNAPSHOT.jar
http://storage.pbogut.me/2/org.openhab.binding.greeair-2.5.2-SNAPSHOT.jar

If still doesn't work I may test myself during weekend. Have no open hab now as my RPI sdcard died.

@pbogut
Copy link

pbogut commented Aug 22, 2020

@cytrus77 I was checking it some time ago and it was not working at all anymore (I'm sure it used to though...). I decided to rewrite it (as I had some issues with it even when it worked, and this repo seams to be dead). If you still interested here it is https://github.com/pbogut/openhab-ewpesmart-binding/releases/tag/v0.0.1

@pezoli
Copy link

pezoli commented Aug 23, 2020

@pbogut Hi Pawel, thank you for your great efforts, i just saw your comment. There is another fork of the greeair binding, now called gree binding. It is available with OH 2.5.7 from official repo also, @markus7017 made it working again with OH 2.5+. You may want to sync with him, to avoid double work. As far as i see, the only real difference is that your binding can read the built-in sensor of the aircon unit. Does this function work, did you test it?

@pezoli
Copy link

pezoli commented Aug 23, 2020

OpenHAB 2 Gree Binding

@markus7017
Copy link

Guys, there is a completely refactored binding: GREE
This is part of OH 2.5.7
check the community thread

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants