New Gree Air Conditioner Binding

Yes, I’m using ‘swingUpDown’
I have a Thing in a file. What I’ve done:

  • removed thing file from a folder
  • stop openhab
  • add thing file
  • replace binding
  • update items
  • start application

found a typo in the channel name, please check again

When I’m trying to run AirConditioner (power channel):

2020-05-31 23:14:19.478 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method ‘ThingHandler.handleCommand()’ on ‘org.openhab.binding.gree.internal.handler.GreeHandler@2202f0a1’: null
java.lang.StackOverflowError: null
at org.openhab.binding.gree.internal.handler.GreeHandler.getOnOff(GreeHandler.java:207) ~[?:?]

should be fixed, try new build

On/OFF is working now.
Error for ‘quiet’ channel again:

2020-06-01 17:09:22.507 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘ON’ of item AirconQuiet with format ‘%.0f’: f != java.lang.String

‘swingUpDown’ ‘swingLeftRight’ ‘mode’ stopped working.

please provide a TRACE log

No reaction on change for ‘swingUpDown’ ‘swingLeftRight’ ‘mode’ and no trace logs (lack of AirCon beep)
As I mention - only ‘Power’ (ON/OFF) back to normal after update.

please retry new build, the command is now written to the log
please just use PaperUI, nothing else

With this build I’ve check mentioned channels using PaperUI and I got:

Error: 400 - Bad request

? what does that mean? Log?

Just to confirm, that it works:

:+1:
did you tried the different channels?
what do you see on Control?

2020-06-01 20:05:17.039 [WARN ] [rest.core.internal.item.ItemResource] - Received HTTP POST request at ‘items/AirconSwingLeftRight’ with an invalid status value ‘MidLeft’
2020-06-01 20:04:49.727 [WARN ] [rest.core.internal.item.ItemResource] - Received HTTP POST request at ‘items/AirconSwingUpDown’ with an invalid status value ‘MidUp’.

you need to set the number values as desceibed in the README, you could use a transform to map strong values to Number

In PaperUI I do have names like Left, MidLeft and when I’m trying to change there, still doesn’t react. Is it working your AirCon with this build?

I still don‘t have the unit (expecting in 2 weeks)
@kovacsi2899 could you verify the channels, so we know if it‘s a binding problem or setup

please send a TRACE log with enough content, otherwise I can’t support you

In logs I found:

2020-06-01 21:53:56.295 [DEBUG] [ng.gree.internal.handler.GreeHandler] - Issue command 4 to channe swingLeftRight
2020-06-01 21:52:27.763 [DEBUG] [ng.gree.internal.handler.GreeHandler] - Issue command 3 to channe swingUpDown

Probably other values give similar results.

Here is my set up:



Everything works except Fan angle change for some reason.
I will switch on trace later and provide log if I can’t fix it.
I made several trials and changes today for different reasons.
I hasn’t touched Gree settings but I need to verify what could be the problem.

So, if I proper understand also doesn’t work SwingLeftRight and SwingUpDown?
Do you have added quiet mode?
Can you provide configuration for mentioned channels from Item and Sitemap files?

If mentioned channels doesn’t work, in trace logs probably you get the same data.