New Gree Air Conditioner Binding

openhab2
binding
airconditioning
Tags: #<Tag:0x00007fd30bc08128> #<Tag:0x00007fd30bc0fef0> #<Tag:0x00007fd30bc0fdb0>

(Hector) #21

Found a Issue

the “Refresh time interval” is no working I set it to 2 seconds

I change the karaf to TRACE and I see this log every 1 second or 2 but don’t get the current value


2018-01-31 20:39:45.640 [DEBUG] [nding.greeair.handler.GreeAirHandler] - Greeair executing automatic update of values
2018-01-31 20:39:46.671 [DEBUG] [nding.greeair.handler.GreeAirHandler] - Greeair executing automatic update of values


(John Cunha) #22

Hi Hector,

Just to understand better…
Yesterday it was updating ok with refresh=1 second?
And now it is not updating with refresh=2 seconds?

Thanks,
John


(Hector) #23

I was only controlling it via openhab and update the iPhone app too, but yesterday I turn it on via WifiSmart app and from the IR control but don’t update the openhab


(John Cunha) #24

Hi Hector,
Let’s see if we can see what the problem is…

I’ve built a new version of the binding that logs (Trace Logs) the responses from the device to each Status interrogation.

The latest version can be found HERE
(Note the latest version is : 2.2.0.201802011757)

The openhab.log file will now output the responses for each status query. In my case that is every second.

Here is my output when I turn the device on (using my WifiSmart app on my iphone) we see that the binding has noticed the status change :

2018-02-01 19:05:48.238 [DEBUG] [nding.greeair.handler.GreeAirHandler] - Greeair executing automatic update of values
2018-02-01 19:05:48.274 [DEBUG] [nding.greeair.handler.GreeAirHandler] - Fetching status values from device.
2018-02-01 19:05:48.296 [TRACE] [nding.greeair.handler.GreeAirHandler] - Sending Status request packet to device
2018-02-01 19:05:48.318 [TRACE] [nding.greeair.handler.GreeAirHandler] - Status request packet received from device
2018-02-01 19:05:48.353 [TRACE] [nding.greeair.handler.GreeAirHandler] - Response from device: {“t”:“dat”,“mac”:“f4911e04c3b3”,“r”:200,“cols”:[“Pow”,“Mod”,“SetTem”,“WdSpd”,“Air”,“Blo”,“Health”,“SwhSlp”,“Lig”,“SwingLfRig”,“SwUpDn”,“Quiet”,“Tur”,“StHt”,“TemUn”,“HeatCoolType”,“TemRec”,“SvSt”,“NoiseSet”],“dat”:[0,4,25,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0]}
2018-02-01 19:05:49.402 [DEBUG] [nding.greeair.handler.GreeAirHandler] - Greeair executing automatic update of values
2018-02-01 19:05:49.404 [DEBUG] [nding.greeair.handler.GreeAirHandler] - Fetching status values from device.
2018-02-01 19:05:49.421 [TRACE] [nding.greeair.handler.GreeAirHandler] - Sending Status request packet to device
2018-02-01 19:05:49.441 [TRACE] [nding.greeair.handler.GreeAirHandler] - Status request packet received from device
2018-02-01 19:05:49.456 [TRACE] [nding.greeair.handler.GreeAirHandler] - Response from device: {“t”:“dat”,“mac”:“f4911e04c3b3”,“r”:200,“cols”:[“Pow”,“Mod”,“SetTem”,“WdSpd”,“Air”,“Blo”,“Health”,“SwhSlp”,“Lig”,“SwingLfRig”,“SwUpDn”,“Quiet”,“Tur”,“StHt”,“TemUn”,“HeatCoolType”,“TemRec”,“SvSt”,“NoiseSet”],“dat”:[1,4,25,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0]}
2018-02-01 19:05:49.466 [TRACE] [nding.greeair.handler.GreeAirHandler] - Pow value has changed!
2018-02-01 19:05:49.486 [TRACE] [nding.greeair.handler.GreeAirHandler] - Updating channel state for ChannelID powerchannel :

Notice how the ‘Pow’ (Power) value has changed from 0 to 1.
The binding receives these responses and compares them with the previously received response and updates the Item Channels accordingly. In other words, if the change is received, then the Item in Openhab should be automaticaaly updated.

Here is a summary of those values and what they mean:
“Pow”: Power (0 or 1)
“Mod”: Mode: Auto: 0, Cool: 1, Dry: 2, Fan: 3, Heat: 4
"SetTem": Requested Temperature
"WdSpd": Fan Speed : Low:1, Medium Low:2, Medium :3, Medium High :4, High :5
"Air": Air Mode Enabled
"Blo": Dry
"Health": Health
"SwhSlp": Sleep
"Lig": Light On
"SwingLfRig": Swing Left Right
"SwUpDn": Swing Up Down: // Ceiling:0, Upwards : 10, Downwards : 11, Full range : 1
"Quiet": Quiet mode
"Tur": Turbo
"TemUn": Temperature unit, 0 for Celsius, 1 for Fahrenheit
"HeatCoolType"
“TemRec”:
“SvSt”: Power Saving

Now I would ask you to do the same…

  • Install the latest version of the binding (see the link above).
  • Make sure the log level is set to Trace
  • Check that the Openhab.log file shows responses from the Air Conditioner.
  • Check that the responses show changes to the status of the device using the WifiSmart app or the IR remote controller.
  • Check that you see the text like the following to show that the binding has recognized that the value has changed and the channl state is being updated. :
    2018-02-01 19:05:49.466 [TRACE] [nding.greeair.handler.GreeAirHandler] - Pow value has changed!
    _2018-02-01 19:05:49.486 [TRACE] [nding.greeair.handler.GreeAirHandler] - Updating channel state for ChannelID powerchannel

Hopefully this should help determine if the binding is receivig responses from the device and if it is recognizing the changes and updating the channels.

Thanks,
John


(Hector) #25

Hello below are request data

2018-02-01 18:06:10.384 [DEBUG] [nding.greeair.handler.GreeAirHandler] - Greeair executing automatic update of values
2018-02-01 18:06:10.389 [DEBUG] [nding.greeair.handler.GreeAirHandler] - Fetching status values from device.
2018-02-01 18:06:10.396 [TRACE] [nding.greeair.handler.GreeAirHandler] - Sending Status request packet to device
2018-02-01 18:06:10.413 [TRACE] [nding.greeair.handler.GreeAirHandler] - Status request packet received from device
2018-02-01 18:06:10.419 [TRACE] [nding.greeair.handler.GreeAirHandler] - Response from device: {“t”:“dat”,“mac”:“f4911e09cb0c”,“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,19,0,0,0,0,0,1,0,0,0,0,0,1,1,1,0,0]}

2018-02-01 18:06:20.426 [DEBUG] [nding.greeair.handler.GreeAirHandler] - Greeair executing automatic update of values
2018-02-01 18:06:20.430 [DEBUG] [nding.greeair.handler.GreeAirHandler] - Fetching status values from device.
2018-02-01 18:06:20.436 [TRACE] [nding.greeair.handler.GreeAirHandler] - Sending Status request packet to device
2018-02-01 18:06:20.458 [TRACE] [nding.greeair.handler.GreeAirHandler] - Status request packet received from device
2018-02-01 18:06:20.463 [TRACE] [nding.greeair.handler.GreeAirHandler] - Response from device: {“t”:“dat”,“mac”:“f4911e09cb0c”,“r”:200,“cols”:[“Pow”,“Mod”,“SetTem”,“WdSpd”,“Air”,“Blo”,“Health”,“SwhSlp”,“Lig”,“SwingLfRig”,“SwUpDn”,“Quiet”,“Tur”,“StHt”,“TemUn”,“HeatCoolType”,“TemRec”,“SvSt”,“NoiseSet”],“dat”:[1,1,19,0,0,0,0,0,1,0,0,0,0,0,1,1,1,0,0]}
2018-02-01 18:06:20.469 [TRACE] [nding.greeair.handler.GreeAirHandler] - Pow value has changed!
2018-02-01 18:06:20.472 [TRACE] [nding.greeair.handler.GreeAirHandler] - Updating channel state for ChannelID powerchannel :

---------------- This Log was using a custom sitemap that I create using your samples this don’t Update when I press the power switch this happen

==> /var/log/openhab2/events.log <==
2018-02-01 18:20:55.893 [ome.event.ItemCommandEvent] - Item ‘AirconPower’ received command ON
2018-02-01 18:20:55.905 [vent.ItemStateChangedEvent] - AirconPower changed from OFF to ON
==> /var/log/openhab2/openhab.log <==

this is the item file
Switch AirconPower { channel=“greeair:greeairthing:b2d08bb1:powerchannel” }


(John Cunha) #26

Hi Hector,

Good news is that the problem is not in the Binding :slight_smile:
(Since the item is being updated in the Events.log file, then the binding is working correctly)

Can you check the name of the Power Item in PaperUI?

  • Open PaperUI
  • On the left, click ‘Configuration’ then select ‘Things’
  • In the main window, click on the Thing that is your Air Conditioner.
  • (You should now see all the channels for the Thing)
  • Click on the blue circle on the left of the “Power” channel
  • (Now you should be able to see the Items linked to that Channel)
    (In my case, the item was auto generated by PaperUI and looks like : “Power (GreeAirConditioner_Power)”)
    Do you have more than one linked item? You should only have one.
    There may be more than one item linked to the channel (One generated by Openhab and the one from your .item file).
  • Delete any extra items linked to the ‘powerchannel’ channel.
  • Now go back to your sitemap file and make sure the line item matches the item you saw in PaperUI :
    Switch item=GreeAirConditioner_Power label=“Power” icon=switch
    (Make sure the item in the sitemap file matches the item you saw in PaperUI)

Let me know what are your results…


(Hector) #27

Hello Sorry for the delay im having a another problem Kernel Panic: VFS : Unable to mount root fs on unknown-block, let me fix this first and I will let you know


(Kuba Wolanin) #28

@JCunha did you consider submitting your binding in a pull request, so it becomes an official openHAB2 Addon?

You could also place it in the Eclipse IoT Marketplace so it’s installable right away.

Cheers!


(John Cunha) #29

Hi Kuba,

I’ve considered it but atill havent heard of anyone actually using my binding.

I was hoping to get some feedback first.

J.


(Hector) #30

Hello John

Finally my SD Card arrive I just finish setting up the server:

The last version is responding well. But for some reason right now the Air is ON ( via IR Remote) and on openhab it says that is OFF. Also there a way on the configuration where I put the IP to select between Celsius and Fahrenheit ( Like option)

some Information below:


2018-04-05 23:56:07.565 [DEBUG] [nding.greeair.handler.GreeAirHandler] - Greeair executing automatic update of values
2018-04-05 23:56:07.570 [DEBUG] [nding.greeair.handler.GreeAirHandler] - Fetching status values from device.
2018-04-05 23:56:07.578 [TRACE] [nding.greeair.handler.GreeAirHandler] - Sending Status request packet to device
2018-04-05 23:56:07.597 [TRACE] [nding.greeair.handler.GreeAirHandler] - Status request packet received from device
2018-04-05 23:56:07.604 [TRACE] [nding.greeair.handler.GreeAirHandler] - Response from device: {“t”:“dat”,“mac”:“f4911e09cb56”,“r”:200,“cols”:[“Pow”,“Mod”,“SetTem”,“WdSpd”,“Air”,“Blo”,“Health”,“SwhSlp”,“Lig”,“SwingLfRig”,“SwUpDn”,“Quiet”,“Tur”,“StHt”,“TemUn”,“HeatCoolType”,“TemRec”,“SvSt”,“NoiseSet”],“dat”:[1,1,18,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0]}
2018-04-05 23:56:08.614 [DEBUG] [nding.greeair.handler.GreeAirHandler] - Greeair executing automatic update of values
2018-04-05 23:56:08.618 [DEBUG] [nding.greeair.handler.GreeAirHandler] - Fetching status values from device.

openhab> bundle:list | grep Gree
247 │ Active │ 80 │ 2.2.0.201802011757 │ GreeAir Binding

’’’’’’’’’’’’’’’’’'This is USING the SITEMAP
2018-04-06 00:02:58.392 [vent.ItemStateChangedEvent] - AirconTemp changed from 18 to 17
2018-04-06 00:02:58.398 [vent.ItemStateChangedEvent] - AirconTempSet changed from 18 to 17
2018-04-06 00:03:30.166 [ome.event.ItemCommandEvent] - Item ‘AirconPower’ received command ON
2018-04-06 00:03:30.189 [vent.ItemStateChangedEvent] - AirconPower changed from NULL to ON
2018-04-06 00:03:33.246 [ome.event.ItemCommandEvent] - Item ‘AirconPower’ received command OFF
2018-04-06 00:03:33.264 [vent.ItemStateChangedEvent] - AirconPower changed from ON to OFF
2018-04-06 00:03:38.432 [ome.event.ItemCommandEvent] - Item ‘AirconPower’ received command ON
2018-04-06 00:03:38.447 [vent.ItemStateChangedEvent] - AirconPower changed from OFF to ON

ITEMS FILE

28%20AM

SITEMAP FILE

16%20AM42%20AM


(John Cunha) #31

HI Hector,

Sorry for the long delay in replying (I’ve been on vacation without internet)
Looking at the log, the app is querying the airconditioner for status and it’s replying that it’s ON.

2018-04-05 23:56:07.604 [TRACE] [nding.greeair.handler.GreeAirHandler] - Response from device: {“t”:“dat”,“mac”:“f4911e09cb56”,“r”:200,“cols”:[“Pow”,“Mod”,“SetTem”,“WdSpd”,“Air”,“Blo”,“Health”,“SwhSlp”,“Lig”,“SwingLfRig”,“SwUpDn”,“Quiet”,“Tur”,“StHt”,“TemUn”,“HeatCoolType”,“TemRec”,“SvSt”,“NoiseSet”],“dat”:[1,1,18,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0]}

Try to unlink and delete the item linked to the power channel and recreate it using PaperUI instead of defining it in the file.


(Vladyslav Denysov) #32

Hi John! I hope you can answer me. Can this work with air conditioners Cooper&Hunter? It would be very cool, thanks!


(John Cunha) #33

Hi Vladyslav,

I know Gree make airconditioners for other brands.

If your aircon works with Gree’s „Wifi Smart” app then it should work with this binding.

Thanks,

John


(Vladyslav Denysov) #34

Ok, thanks, I’ll try and give feedback:)


(John Cunha) #35

Please do :slight_smile:


(Mihai Badea) #36

Hi @JCunha!

Great job with this Gree binding.
I just installed a Gree Viola A3 (GWH12RA-K3DNA3M) and I’m testing the binding.
It works with a little glitch regarding getting values from the AC:

13:14:05.981 [DEBUG] [inding.greeair.handler.GreeAirHandler] - Greeair executing automatic update of values
13:14:06.009 [DEBUG] [inding.greeair.handler.GreeAirHandler] - Fetching status values from device.
13:14:06.034 [TRACE] [inding.greeair.handler.GreeAirHandler] - Sending Status request packet to device
13:14:06.061 [TRACE] [inding.greeair.handler.GreeAirHandler] - Status request packet received from device
13:14:06.089 [TRACE] [inding.greeair.handler.GreeAirHandler] - Response from device: {"t":"dat","mac":"XXXXXXXXXXXX","r":200,"cols":["Pow","Mod","SetTem","WdSpd","Air","Blo","Health","SwhSlp","Lig","SwingLfRig","SwUpDn","Quiet","Tur","StHt","TemUn","HeatCoolType","TemRec","SvSt","NoiseSet"],"dat":[1,1,16,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0]}
13:14:11.272 [TRACE] [inding.greeair.handler.GreeAirHandler] - Status request packet received from device
13:14:11.277 [INFO ] [smarthome.event.ItemStateChangedEvent] - AC_Livingroom_Mode changed from NULL to 1
13:14:11.303 [TRACE] [inding.greeair.handler.GreeAirHandler] - Response from device: {"t":"res","mac":"XXXXXXXXXXXX","r":200,"opt":["Mod"],"p":[1],"val":[1]}
13:14:11.365 [DEBUG] [inding.greeair.handler.GreeAirHandler] - Greeair failed during automatic update of airconditioner values due to null
13:14:13.062 [WARN ] [i.internal.proxy.BlockingProxyServlet] - Proxy servlet failed to stream content: java.net.NoRouteToHostException: No route to host
13:14:16.062 [WARN ] [i.internal.proxy.BlockingProxyServlet] - Proxy servlet failed to stream content: java.net.NoRouteToHostException: No route to host
13:14:16.398 [DEBUG] [inding.greeair.handler.GreeAirHandler] - Greeair executing automatic update of values
13:14:16.423 [DEBUG] [inding.greeair.handler.GreeAirHandler] - Fetching status values from device.
13:14:16.447 [TRACE] [inding.greeair.handler.GreeAirHandler] - Sending Status request packet to device
13:14:16.473 [TRACE] [inding.greeair.handler.GreeAirHandler] - Status request packet received from device
13:14:16.499 [DEBUG] [inding.greeair.handler.GreeAirHandler] - Greeair failed during automatic update of airconditioner values due to null
13:14:18.321 [INFO ] [smarthome.event.ItemCommandEvent     ] - Item 'AC_Livingroom_FanSpeed' received command 5
13:14:18.353 [INFO ] [smarthome.event.ItemStateChangedEvent] - AC_Livingroom_FanSpeed changed from NULL to 5
13:14:21.532 [DEBUG] [inding.greeair.handler.GreeAirHandler] - Greeair executing automatic update of values
13:14:21.557 [DEBUG] [inding.greeair.handler.GreeAirHandler] - Fetching status values from device.
13:14:21.582 [TRACE] [inding.greeair.handler.GreeAirHandler] - Sending Status request packet to device
13:14:21.608 [TRACE] [inding.greeair.handler.GreeAirHandler] - Status request packet received from device
13:14:21.636 [DEBUG] [inding.greeair.handler.GreeAirHandler] - Greeair failed during automatic update of airconditioner values due to null

By the way, those Proxy servlet failed warnings are from the Gree binding?
I didn’t notice those before…
In this ‘not updating’ state, the commands to the AC are working, just no updates FROM the AC.
If I edit the thing, changing the refresh time, it starts working again:

13:17:59.875 [DEBUG] [inding.greeair.handler.GreeAirHandler] - Greeair executing automatic update of values
13:17:59.915 [DEBUG] [inding.greeair.handler.GreeAirHandler] - Fetching status values from device.
13:17:59.940 [TRACE] [inding.greeair.handler.GreeAirHandler] - Sending Status request packet to device
13:17:59.968 [TRACE] [inding.greeair.handler.GreeAirHandler] - Status request packet received from device
13:18:00.000 [DEBUG] [inding.greeair.handler.GreeAirHandler] - Greeair failed during automatic update of airconditioner values due to null
13:18:01.545 [DEBUG] [inding.greeair.handler.GreeAirHandler] - GreeAircon for greeair:greeairthing:47597159 is disposing
13:18:01.641 [INFO ] [smarthome.event.ThingUpdatedEvent    ] - Thing 'greeair:greeairthing:47597159' has been updated.
13:18:01.641 [DEBUG] [inding.greeair.handler.GreeAirHandler] - GreeAirconHandler for greeair:greeairthing:47597159 is initializing
13:18:01.758 [WARN ] [i.internal.proxy.BlockingProxyServlet] - Proxy servlet failed to stream content: java.net.NoRouteToHostException: No route to host
13:18:01.769 [DEBUG] [inding.greeair.handler.GreeAirHandler] - GreeAirconHandler config for greeair:greeairthing:47597159 is GreeAirconConfig{ipAddress=192.168.200.63}
13:18:02.035 [TRACE] [inding.greeair.handler.GreeAirHandler] - Greeair Binding Sending scan packet to /255.255.255.255
13:18:02.303 [TRACE] [inding.greeair.handler.GreeAirHandler] - Greeair Binding Response received from address /192.168.200.63
13:18:02.375 [TRACE] [inding.greeair.handler.GreeAirHandler] - Greeair Binding Response : {"t":"dev","cid":"f4911e401034","bc":"gree","brand":"gree","catalog":"gree","mac":"XXXXXXXXXXXX","mid":"10001","model":"gree","name":"1e401034","series":"gree","vender":"1","ver":"V1.1.13","lock":0}
13:18:04.754 [WARN ] [i.internal.proxy.BlockingProxyServlet] - Proxy servlet failed to stream content: java.net.NoRouteToHostException: No route to host
13:18:07.533 [DEBUG] [inding.greeair.handler.GreeAirHandler] - GreeAircon found 1 Gree Devices during scanning
13:18:07.612 [INFO ] [inding.greeair.handler.GreeAirHandler] - Gree AirConditioner Device greeair:greeairthing:47597159 from was Succesfully bound
13:18:07.694 [DEBUG] [inding.greeair.handler.GreeAirHandler] - Greeair executing automatic update of values
13:18:07.694 [DEBUG] [inding.greeair.handler.GreeAirHandler] - Start Greeair automatic refresh with 4 second intervals
13:18:07.720 [DEBUG] [inding.greeair.handler.GreeAirHandler] - Fetching status values from device.
13:18:07.814 [TRACE] [inding.greeair.handler.GreeAirHandler] - Sending Status request packet to device
13:18:07.848 [TRACE] [inding.greeair.handler.GreeAirHandler] - Status request packet received from device
13:18:07.875 [TRACE] [inding.greeair.handler.GreeAirHandler] - Response from device: {"t":"dat","mac":"XXXXXXXXXXXX","r":200,"cols":["Pow","Mod","SetTem","WdSpd","Air","Blo","Health","SwhSlp","Lig","SwingLfRig","SwUpDn","Quiet","Tur","StHt","TemUn","HeatCoolType","TemRec","SvSt","NoiseSet"],"dat":[1,1,19,5,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0]}
13:18:08.002 [TRACE] [inding.greeair.handler.GreeAirHandler] - Pow value has changed!
13:18:08.026 [TRACE] [inding.greeair.handler.GreeAirHandler] - Updating channel state for ChannelID powerchannel :
13:18:08.056 [TRACE] [inding.greeair.handler.GreeAirHandler] - Mod value has changed!
13:18:08.079 [TRACE] [inding.greeair.handler.GreeAirHandler] - Updating channel state for ChannelID modechannel :
13:18:08.109 [TRACE] [inding.greeair.handler.GreeAirHandler] - Mod value has changed!
.........................................................................................................

(Mihai Badea) #37

Some other tests…
It looks like the binding is not updating the channels properly… It detects the change in status (ON/OFF), but it doesn’t update the corresponding channel/item.
What I did?
I turned on the AC from BasicUI, then turned it off from the Gree+ app. The binding detected the Pow value has changed!, but the was no update send to the channel.

AC turned ON from BasicUI:

09:08:57.321 [DEBUG] [inding.greeair.handler.GreeAirHandler] - Greeair executing automatic update of values
09:08:57.328 [DEBUG] [inding.greeair.handler.GreeAirHandler] - Fetching status values from device.
09:08:57.336 [TRACE] [inding.greeair.handler.GreeAirHandler] - Sending Status request packet to device
09:08:57.351 [TRACE] [inding.greeair.handler.GreeAirHandler] - Status request packet received from device
09:08:57.360 [TRACE] [inding.greeair.handler.GreeAirHandler] - Response from device: {"t":"dat","mac":"xxxxxxxxxxxx","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,20,5,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0]}
09:08:57.917 [INFO ] [smarthome.event.ItemCommandEvent     ] - Item 'AC_Livingroom_Power' received command ON
09:08:57.926 [INFO ] [smarthome.event.ItemStateChangedEvent] - AC_Livingroom_Power changed from NULL to ON
09:09:03.381 [DEBUG] [inding.greeair.handler.GreeAirHandler] - Greeair executing automatic update of values
09:09:03.388 [DEBUG] [inding.greeair.handler.GreeAirHandler] - Fetching status values from device.
09:09:03.396 [TRACE] [inding.greeair.handler.GreeAirHandler] - Sending Status request packet to device
09:09:03.413 [TRACE] [inding.greeair.handler.GreeAirHandler] - Status request packet received from device
09:09:03.420 [TRACE] [inding.greeair.handler.GreeAirHandler] - Response from device: {"t":"dat","mac":"xxxxxxxxxxxx","r":200,"cols":["Pow","Mod","SetTem","WdSpd","Air","Blo","Health","SwhSlp","Lig","SwingLfRig","SwUpDn","Quiet","Tur","StHt","TemUn","HeatCoolType","TemRec","SvSt","NoiseSet"],"dat":[1,1,20,5,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0]}
09:09:03.440 [TRACE] [inding.greeair.handler.GreeAirHandler] - Pow value has changed!
09:09:03.446 [TRACE] [inding.greeair.handler.GreeAirHandler] - Updating channel state for ChannelID powerchannel :
09:09:09.456 [DEBUG] [inding.greeair.handler.GreeAirHandler] - Greeair executing automatic update of values
09:09:09.464 [DEBUG] [inding.greeair.handler.GreeAirHandler] - Fetching status values from device.
09:09:09.471 [TRACE] [inding.greeair.handler.GreeAirHandler] - Sending Status request packet to device
09:09:09.487 [TRACE] [inding.greeair.handler.GreeAirHandler] - Status request packet received from device
09:09:09.495 [TRACE] [inding.greeair.handler.GreeAirHandler] - Response from device: {"t":"dat","mac":"xxxxxxxxxxxx","r":200,"cols":["Pow","Mod","SetTem","WdSpd","Air","Blo","Health","SwhSlp","Lig","SwingLfRig","SwUpDn","Quiet","Tur","StHt","TemUn","HeatCoolType","TemRec","SvSt","NoiseSet"],"dat":[1,1,20,5,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0]}

AC turned OFF from app:

09:09:33.787 [TRACE] [inding.greeair.handler.GreeAirHandler] - Response from device: {"t":"dat","mac":"xxxxxxxxxxxx","r":200,"cols":["Pow","Mod","SetTem","WdSpd","Air","Blo","Health","SwhSlp","Lig","SwingLfRig","SwUpDn","Quiet","Tur","StHt","TemUn","HeatCoolType","TemRec","SvSt","NoiseSet"],"dat":[1,1,20,5,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0]}
09:09:39.806 [DEBUG] [inding.greeair.handler.GreeAirHandler] - Greeair executing automatic update of values
09:09:39.814 [DEBUG] [inding.greeair.handler.GreeAirHandler] - Fetching status values from device.
09:09:39.821 [TRACE] [inding.greeair.handler.GreeAirHandler] - Sending Status request packet to device
09:09:39.837 [TRACE] [inding.greeair.handler.GreeAirHandler] - Status request packet received from device
09:09:39.845 [TRACE] [inding.greeair.handler.GreeAirHandler] - Response from device: {"t":"dat","mac":"xxxxxxxxxxxx","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,20,5,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0]}
09:09:39.865 [TRACE] [inding.greeair.handler.GreeAirHandler] - Pow value has changed!
09:09:39.872 [TRACE] [inding.greeair.handler.GreeAirHandler] - Updating channel state for ChannelID powerchannel :
09:09:45.885 [DEBUG] [inding.greeair.handler.GreeAirHandler] - Greeair executing automatic update of values
09:09:45.893 [DEBUG] [inding.greeair.handler.GreeAirHandler] - Fetching status values from device.
09:09:45.900 [TRACE] [inding.greeair.handler.GreeAirHandler] - Sending Status request packet to device
09:09:45.916 [TRACE] [inding.greeair.handler.GreeAirHandler] - Status request packet received from device
09:09:45.945 [TRACE] [inding.greeair.handler.GreeAirHandler] - Response from device: {"t":"dat","mac":"xxxxxxxxxxxx","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,20,5,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0]}
09:09:21.606 [TRACE] [inding.greeair.handler.GreeAirHandler] - Status request packet received from device
09:09:21.614 [TRACE] [inding.greeair.handler.GreeAirHandler] - Response from device: {"t":"dat","mac":"xxxxxxxxxxxx","r":200,"cols":["Pow","Mod","SetTem","WdSpd","Air","Blo","Health","SwhSlp","Lig","SwingLfRig","SwUpDn","Quiet","Tur","StHt","TemUn","HeatCoolType","TemRec","SvSt","NoiseSet"],"dat":[1,1,20,5,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0]}
09:09:27.634 [DEBUG] [inding.greeair.handler.GreeAirHandler] - Greeair executing automatic update of values
09:09:27.641 [DEBUG] [inding.greeair.handler.GreeAirHandler] - Fetching status values from device.

As you can see, there is no update to the AC_Livingroom_Power.
Turning it OFF from openHAB:

09:09:52.039 [TRACE] [inding.greeair.handler.GreeAirHandler] - Status request packet received from device
09:09:52.046 [TRACE] [inding.greeair.handler.GreeAirHandler] - Response from device: {"t":"dat","mac":"xxxxxxxxxxxx","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,20,5,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0]}
09:09:56.710 [INFO ] [smarthome.event.ItemCommandEvent     ] - Item 'AC_Livingroom_Power' received command OFF
09:09:56.721 [INFO ] [smarthome.event.ItemStateChangedEvent] - AC_Livingroom_Power changed from ON to OFF
09:09:58.065 [DEBUG] [inding.greeair.handler.GreeAirHandler] - Greeair executing automatic update of values
09:09:58.071 [DEBUG] [inding.greeair.handler.GreeAirHandler] - Fetching status values from device.
09:09:58.077 [TRACE] [inding.greeair.handler.GreeAirHandler] - Sending Status request packet to device
09:09:58.094 [TRACE] [inding.greeair.handler.GreeAirHandler] - Status request packet received from device
09:09:58.104 [TRACE] [inding.greeair.handler.GreeAirHandler] - Response from device: {"t":"dat","mac":"xxxxxxxxxxxx","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,20,5,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0]}

(John Cunha) #38

Hi,

Many thanks for the debug.

I will try to get to it as soon as I can (honestly probably not before the weekend as very busy at work at the moment).

Thanks,

John


(John Cunha) #39

Hi Mihai,

I spent this evening looking into this…

I tried a number of combinations:

  • The combinations you listed above.
  • Turn on Aircon using app then off using Habpanel
  • and alternating with the app, Habpanel and BasicUI

For all actions I could see the status changed in the logfile.

But…One thing I noticed… There seems to be a problem with BasicUI…
ALL changes are reflected correctly in the Habpanel, Gree WifiSmart app and even the OpenHab app.
But… the changes are not reflected in BasicUI (using Internet explorer and Firefox too).

Can you do me a favour and check if the updates are not visible in any interface OTHER than basicUI?

Regarding the other problems you saw :
I dont see the ‘NoRouteToHostException’ so that might be coming from somewhere else.
The ‘Greeair failed during automatic update of airconditioner values due to null’ I did get… but once I restarted Openhab it dissappeared and I cant seem to get that problem back.
I will keep checking the logs to see if it comes back.

So… in summary, the problem in seeing changes made by the apps etc might be in BasicUI (since all other interfaces seem to see the changes)
Looking at google, this problem seems to have been reported a few times:
e.g. No autoupdate in basicui after sitemap update

So…
Please can you do me a favour and see if the lack of updates is appearing in any other interfaces?

Thanks,
John

p.s. the Null value is bothering me… Im not going to forget it. but it might take some time until it comes back


(Mihai Badea) #40

Hello John,

Thanks for spending time to look into this.

I’ll test further, but I’m not talking about BasicUI - or any other UI. I couldn’t see the state change for the items in OH’s logs, not UIs.

Tomorrow I’ll digg further…

Might be something with OH as I’m running the snapshot version always a few days behind the latest (living on the edge :smile: )

I might setup a VM with 2.2 and see if it matters.