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

Xiaomi Smartmi Fresh Air System XFXTDFR02ZM. upgrade version of XFXT01ZM with heater. #791

Closed
wisesokol opened this issue Aug 6, 2020 · 18 comments · Fixed by #795
Closed

Comments

@wisesokol
Copy link

Before submitting a new request, use the search to see if there is an existing issue for the device.

Device information:

Use miiocli device --ip <ip address> --token <token>.

  • Model: zhimi.airfresh.va4
  • Hardware version: MW300
  • Firmware version: 1.4.6_1013

Additional context
Hi. I have XFXT01ZM. I use zhimi.airfresh.va2 model/ Work fine.
Today i am upgrade my fan to XFXTDFR02ZM.
With zhimi.airfresh.va2 setup work fine, but:

  1. Temperature reading. Instead of 25.5, it shows 2.55. Point offset.
  2. No heater control.
@syssi
Copy link
Collaborator

syssi commented Aug 6, 2020

Thanks for your excellent report! The temperature issue can be fixed easily.

@syssi
Copy link
Collaborator

syssi commented Aug 6, 2020

Could you describe the difference of both devices? Is the temperature property of both devices broken? Have both devices am heater?

@wisesokol
Copy link
Author

wisesokol commented Aug 6, 2020

temperature value is correct, only point shift.
I forgot to write - the temperature is shown as 2.78, instead of 27.8.
Control boards.
IMG_2563_1
IMG_1015
Only new, XFXTDFR02ZM, have heater.

@wisesokol
Copy link
Author

I can access the ubuntu server on my local network if necessary.

@rezmus
Copy link

rezmus commented Aug 7, 2020

var isVa4 = _miot.Device.model === 'zhimi.airfresh.va4';
var ptcStateProp = isVa4 ? 'ptc_state' : null;
var propsArr = ["power", "mode", "aqi", "temp_dec", "humidity", "co2", "f1_hour_used", "child_lock", "buzzer", "led_level", ptcStateProp];

var ptcValue = value === true ? "on" : "off";
_miot.Device.getDeviceWifi().callMethod('set_ptc_state', [ptcValue]).then(function (res) {

@syssi
Copy link
Collaborator

syssi commented Aug 9, 2020

@wisesokol Could you provide the output/response of:

miiocli device --ip IP --token TOKEN raw_command get_prop "['power','temp_dec','aqi','average_aqi','co2','buzzer','child_lock','humidity','led_level','mode','motor1_speed','use_time','ntcT','app_extra','f1_hour_used','filter_life','f_hour','favorite_level','led','ptc_state']"

I want to know the raw values of "ptc_state" and "temp_dec".

@wisesokol
Copy link
Author

wisesokol commented Aug 9, 2020

osboxes@osboxes:~$ miiocli device --ip 192.168.1.78 --token d1111 raw_command get_prop "['power','temp_dec','aqi','average_aqi','co2','buzzer','child_lock','humidity','led_level','mode','motor1_speed','use_time','ntcT','app_extra','f1_hour_used','filter_life','f_hour','favorite_level','led','ptc_state']"
Running command raw_command
['on', 28.0, 1, 1, 1081, 'off', 'off', 40, 1, 'silent', 400, 510000, 34.1, None, 141, None]

@syssi
Copy link
Collaborator

syssi commented Aug 9, 2020

This is the response of model va2 or va4? It looks like va2 because "ptc_state" is None.

@wisesokol
Copy link
Author

va4. Now i use only va4 model.
I tried enabling PTC but the answer is the same.

@syssi
Copy link
Collaborator

syssi commented Aug 9, 2020

Ah, the device cannot provide more than 15 properties per request. Please provide the response of:

miiocli device --ip IP --token TOKEN raw_command get_prop "['ntcT','app_extra','f1_hour_used','filter_life','f_hour','favorite_level','led','ptc_state']"

@wisesokol
Copy link
Author

wisesokol commented Aug 9, 2020

[33.53, None, 141, None, None, None, None, 'off']
if i turn on ptc
[33.5, None, 141, None, None, None, None, 'on']

@syssi
Copy link
Collaborator

syssi commented Aug 9, 2020

Perfect!

@wisesokol
Copy link
Author

By the way,
Fix zhimi.airfresh.va2 temperature #794

For va2 model- va2 integration is correct work. Temperature shows correct.

@syssi syssi added the miio label Aug 9, 2020
@rytilahti
Copy link
Owner

@wisesokol was the temperature already correct before that PR, i.e., it is just the va4 that is reporting the temperature differently?

@rezmus
Copy link

rezmus commented Aug 9, 2020

temp_dec: isVa4 ? this.state.temp_dec : this.state.temp_dec / 10,

@syssi
Copy link
Collaborator

syssi commented Aug 9, 2020

I will update the PR.

@wisesokol
Copy link
Author

Repeat.
For va2 model- va2 integration is correct work. Temperature shows correct.

@wisesokol
Copy link
Author

Hi.
Having problems with integration?

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

Successfully merging a pull request may close this issue.

4 participants