tomikaa87 / gree-remote

Simple remote control utility for Gree Smart air conditioners
GNU General Public License v3.0
277 stars 65 forks source link

Reading TemSen in the Android app #31

Open k8ieone opened 4 years ago

k8ieone commented 4 years ago

It looks like some ACs report current room temperature with the TemSen property. The reported value has +40°C offset. Would this be possible to integrate into your programs?

I should also add that my Sinclair AC with firmware 3.7 didn't report the temperature until I "updated" to 2.5. Before that it just reported 0.

tomikaa87 commented 4 years ago

Hi @satcom886,

I have some ongoing projects at the moment, but in the near future I can allocate some time to add it to the Android app.

alex-013 commented 4 years ago

Hi, @satcom886 how did you "update" your firmaware? When i open the app and click on firmware update i get current version 3.7 server version 3.42 and back button.

k8ieone commented 4 years ago

I mentioned that here.

xuefer commented 3 years ago

there's no +40°C offset reported by V4 from gree+ app (iOS)

https://github.com/tomikaa87/gree-remote.git
# cd gree-remote/PythonCLI
# ./get TemSen
gree.py -c 192.168.26.72 -i 77a8ba4a -k ... get TemSen
Getting parameter: TemSen
TemSen = 25

gree.py -c 192.168.26.73 -i 77dd30f3 -k ... get TemSen
Getting parameter: TemSen
TemSen = 26

gree.py -c 192.168.26.74 -i a70f1fa6 -k ... get TemSen
Getting parameter: TemSen
TemSen = 26

gree.py -c 192.168.26.75 -i a7102045 -k ... get TemSen
Getting parameter: TemSen
TemSen = 24
velmafia commented 3 years ago

@xuefer how do you upgrade firmware to v4?

//edit TemSem is also working on 3.4.2. To downgrade from 3.70 to 3.4.2 I first "upgrade" to 2.5 like @satcom886 describe, and after that I upgrade firmware to 3.4.2 by Gree+ mobile app. I don't see any problem with my A/C after this (Gree Luxury plus).

xuefer commented 3 years ago

@xuefer how do you upgrade firmware to v4?

just by the official app, the China mainlain version from China area of app store which is accessible with China apple account(The apple account can't switch area once registered). I'm not sure if it's triggered the app version or by your device model though

velmafia commented 3 years ago

Thanks for answer, in Europe region (and Europe A/C distribution) I don't see any update in android app. In next days I will create new gree account, and chose China region to check what will happen.

velmafia commented 3 years ago

I tried today firmware upgrade with China region for Gree+ android app (new gree account and A/C registration So for my Gree Luxury Plus:

Version and TemSen summary:

dulemis commented 3 years ago

I have gree amber 25 with firmware 3.67. TemSen returns +40 offset.

dulemis commented 3 years ago

I just noticed on my unit that the returned temperature is different depending on if I switch between cooling and heating!? It's a 3c difference. Could someone confirm?

aivus commented 3 years ago

@dulemis I can confirm this and I see the same temperature change on internal AC display. I guess it was added by developers to add some temperature difference between different modes.

dulemis commented 3 years ago

@dulemis I can confirm this and I see the same temperature change on internal AC display. I guess it was added by developers to add some temperature difference between different modes.

So you don't think this is a bug? Can't really see what would be the benefit. Which temperature is the correct one then...?

aivus commented 3 years ago

Yes, I don't think that this is a bug.

Probably this change is compensating heating/cooling of the temp sensor itself during the work. But it's just my guess.

k8ieone commented 3 years ago

@aivus Yes, that's also what I think. It's not a very good solution (or really not a solution at all), but I guess their devs at least tried to compensate for the heating.

dulemis commented 3 years ago

I don't quite understand, why is there need for compensation? I mean, the room temperature is still the same obviously..

dulemis commented 3 years ago

Actually, the temperature returned when swtiching to cooling is more "correct" in my house then the other. (compared with a digital temperature unit on the wall). It says right now 22 c, while the AC unit says 20 c in heating-mode and 23c in cooling-mode. So it's really weird, which one it is in fact and why it differs 3 degres as "baseline"...

dulemis commented 2 years ago

Just upgraded to v 3.72 and the TemSen returns +40 offret (not 0).

xuefer commented 2 years ago

How did you update the firmware? Because the iOS app does not have firmware update function.

3 dots on the top-right corner, Device Information, Firmware Version. Update button will be available only when new version is available.

There's no version upgrade for my AC model. too bad, i really need it fixed to keep updating TemSen

zsiraph commented 2 years ago

Thanks, I found it, and looks like 3.72 fixed my problem (-40C all day everyday :D ). The UX of the official app is horrendous.

aivus commented 2 years ago

Just an interesting findings.

Several days ago one user reported issues with current temp value. I checked the logs and found this:

[finder] Message:  {
  t: 'dev',
  cid: 'xxxxxxxxx',
  bc: 'gree',
  brand: 'gree',
  catalog: 'gree',
  mac: 'xxxxxxxxx',
  mid: '10002',
  model: 'gree',
  name: 'xxxxxxxxx',
  series: 'gree',
  vender: '1',
  ver: 'V1.1.13',
  lock: 0
}
...
IN.MSG.UNPACK {
  t: 'dat',
  mac: 'xxxxxxxxx',
  r: 200,
  cols: [
    'Pow',    'Mod',
    'TemUn',  'SetTem',
    'TemSen', 'WdSpd',
    'Air',    'Blo',
    'Health', 'SwhSlp',
    'Lig',    'SwingLfRig',
    'SwUpDn', 'Quiet',
    'Tur',    'SvSt'
  ],
  dat: [
    1, 4, 0, 20, 218, 1,
    0, 0, 0,  0,   1, 0,
    0, 2, 0,  0
  ]
}

Meaning TemSen always returns 218. And seems it's constant and not correlates with real temperature in the room The temp sensor in AC presents, because it shows correct temperature on built-in screen when using Temp button)