openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.9k stars 3.59k forks source link

[miio] feature request support for "smartmi fresh air system heating version" (XFXTDFR02ZM) zhimi.airfresh.va4 #11162

Closed Dakononov closed 3 years ago

Dakononov commented 3 years ago

zhimi.airfresh.va4-experimental.json.zip PLEASE! I made a solution, based on previous models-90% of functions is working well, but co2 and heating function is not working with openhab. Thanks!

marcelrv commented 3 years ago

Do you know what happens with the set_ptc_stat["on"] and off command this may be the heating?

marcelrv commented 3 years ago

note, the related property is ptc_state

marcelrv commented 3 years ago

Am I correct to assume mode returns a number between 0 - 5?

Dakononov commented 3 years ago

note, the related property is ptc_state

Sorry, I'm newbie in the openhab. May be you have binding for XFXTDFR02ZM? I can be a beta tester)

Dakononov commented 3 years ago

Am I correct to assume mode returns a number between 0 - 5?

Yes

marcelrv commented 3 years ago

Ok, can you try the json file that I just created (it needs to replace your existing file) It has a heating switch for you to test

Dakononov commented 3 years ago

Am I correct to assume mode returns a number between 0 - 5? Status return in auto="Auto",silent="Night",low="1",middle="2",strong="3"] "PTC" is working well (heating switch) So, we need to find Co2, filter life and so on

marcelrv commented 3 years ago

Can you share debug log when a refresh is happening

Dakononov commented 3 years ago

HI! We edit your version of zhimi.airfresh.va4.json. Almost everything working fine except-

I am sending you my zhimi.airfresh.va4.jason and log

zhimi.airfresh.va4.json.zip Archive.zip

marcelrv commented 3 years ago

thanks., that is helpful

few questions: Child lock- DOES NOT WORK ==> am I right to say that you see the right status, but but you can't control with OH. (I fixed control now) Filter Hours used- please change hours to days ==> Is the calulation wrong, or you prefer to see it in days in the screen? (in case of the latter, the UI will allow you to specify days and OH will do the conversion for you) Run Time- please add after numbers "H" symbol or word "hours" ==> yes Led - Brightness- DOES NOT WORK ==> am I right to say that you see the right status,? but but you can't control with OH.

Dakononov commented 3 years ago

Hi

Thanks! ))

marcelrv commented 3 years ago

Can you try with the latest file and if not working shared the debug log.

For filter hour did you try to change the unit to days in openhab? It should do the conversion for you from hours to days