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

3d auto and vanes l/r seems possible over CNS #77

Closed
sauermouth opened this issue Jan 23, 2022 · 109 comments
Closed

3d auto and vanes l/r seems possible over CNS #77

sauermouth opened this issue Jan 23, 2022 · 109 comments

Comments

@sauermouth
Copy link

MHI has a (new?) WiFi module called WF-RAC. This module is connected to the CNS port of the airco. Then you can use the 'Smart M-air' app to control your airco. I've read a confirmation that 3D auto and vanes left/right is supported by the app and also works. I don't know if the app has more extra features.

I see some sites advertising the module should work with models SRKxxZS(X), SRKxxZR, SRRxxZS and SRFxxZSX.

The app has a demo, maybe it can be used to decompile the SPI commando's?

@niclet
Copy link

niclet commented Jan 24, 2022

Hi,
I'm afraid app will only send WiFi instructions to the WF-RAC, SPI signal will be only between the WF-RAC and the airco
But I like the idea of an external WiFi item, I intend to use a Wio Terminal beside the airco to be able to control it manually and remotely.
This is just an idea for now

@absalom-muc
Copy link
Owner

MHI has a (new?) WiFi module called WF-RAC. This module is connected to the CNS port of the airco. Then you can use the 'Smart M-air' app to control your airco. I've read a confirmation that 3D auto and vanes left/right is supported by the app and also works. I don't know if the app has more extra features.

I've read here (German) contrary information, no support of 3D auto and vanes left/right

@sauermouth
Copy link
Author

That is the old module. The new module is a wired module.
Here's is a manual: https://www.mhi-mth.co.jp/en/products/pdf/rkz012a105a_english.pdf

They can be bought in The Netherlands:
https://www.coolmark.nl/nl/artnr/7140199

@niclet You are correct that the SPI commands will (probably) not be in the app, but in the module. But I believe absalom-muc and another user were investigating tapping into the signals between the wifi-module and the CNS-port.

@sauermouth
Copy link
Author

sauermouth commented Jan 24, 2022

Here are a few screenshots of the app, with buttons for 3D Auto and vanes L/R. I also see support for fan speed 'AUTO'. That would be really nice! I would like to be able to slow down the fan speed on dinner times and revert it back to 'auto' after dinner. I also see inputs for creating a week schedule:
https://gathering.tweakers.net/forum/list_message/70335624#70335624

The same user confirms on that forum the buttons really work.

@absalom-muc
Copy link
Owner

o.k. I see, thank you. That is the first time that I see that a wired module supports these commands.
Then it should be not too complicated to snif the related SPI commands with the MHI-AC-Ctrl PCB and the SW here.

@picanl
Copy link

picanl commented Apr 28, 2022

Any updates on this ?? would be nice feature to have

@kARTechnology
Copy link

kARTechnology commented May 4, 2022

Any updates on this ?? would be nice feature to have

I'm also waiting. Also in cassette individual flap control for 4 flaps also possible thru wired controller...
Need to find how to ..
Power/econo
Self clean
Silent (outdoor)
Auto fan

Left right vanes (7 ways and swing)
Up down (5 ways and swing) - currently only 4 in mhi
3d auto

@absalom-muc
Copy link
Owner

absalom-muc commented May 16, 2022

You need a wired remote control supporting the interesting modes (i.e. the new WF-RAC mentioned above), where you can snif the SPI communication to implement it in MHI-AC-Ctrl.

@kARTechnology
Copy link

You need a wired remote control supporting the interesting modes (i.e. the new WF-RAC mentioned above), where you can snif the SPI communication to implement it in MHI-AC-Ctrl.

Regarding self clean, it is actually a mode like fan/cool/heat.
As i told before the ac didn't respond to on/off from mqtt once it is in self clean by remote.
Today i tried to change mode from mqtt when it is in self clean more and the ac responded as usual.

So it is concerned with the mode bits and not the power bits.

My other ac didn't have cns support and i installed ir-esp8266 control for it. And even in that, self clean, 3d auto, turbo, econo are supported fully, turbo, econo are also connected to the fan bits.

Is there a way for me to experiment by sending possible combinations of mode bits(cool dry auto) to find self clean?
Also fan bits for turbo and econo.

Silent mode in remote Is limiting compressor to 40%. With which im able to run ac all day long with reduced power, but higher efficiency (cop is high for partial load as per spec)

@absalom-muc
Copy link
Owner

As you can see in the frame summary many bits of the frame are used by known functions (green), for some others (grey & white) I'm not aware if they are used or which function they have. Of course you could test different combinations - but as usual on your own risk.
But maybe it is easier to record the MOSI frame and check what happens when self clean is activated. Maybe so far unknown frame bits are used.

@kARTechnology
Copy link

kARTechnology commented Jun 16, 2022 via email

@KostyaSha
Copy link

KostyaSha commented Jun 28, 2022

Could somebody describe what is the difficulty to press interesting mode and snif it on SPI?

@KostyaSha
Copy link

As i see on screenshots AM-MHI-01 has auto fan button and left-right setting, isn't it?

@absalom-muc
Copy link
Owner

Could somebody describe what is the difficulty to press interesting mode and snif it on SPI?

No difficulty, you need only someone who has the wired remote control supporting the interesting cases and is willing to check it.

As i see on screenshots AM-MHI-01 has auto fan button and left-right setting, isn't it?

Not sure which sreenshots you mean

@kARTechnology
Copy link

kARTechnology commented Jun 29, 2022 via email

@DYLaKo
Copy link

DYLaKo commented Jul 20, 2022

@absalom-muc If I can get my hands on a MHI WF-RAC, are you willing to implement the new features like 3D auto and Vanes if I provide you with the needed information? If yes, what do I need to build / flash in order to give you the needed information?

@KostyaSha
Copy link

@absalom-muc is it possible to sniff and log communication? I think we can then send single commands and verify how a/c reacts to them (i can join with testing soon (waiting d1 mini from post)).

@kARTechnology
Copy link

kARTechnology commented Jul 20, 2022 via email

@absalom-muc
Copy link
Owner

@absalom-muc If I can get my hands on a MHI WF-RAC, are you willing to implement the new features like 3D auto and Vanes if I provide you with the needed information? If yes, what do I need to build / flash in order to give you the needed information?

yes, please check MHI-AC-Trace

@DYLaKo
Copy link

DYLaKo commented Jul 21, 2022

@absalom-muc If I can get my hands on a MHI WF-RAC, are you willing to implement the new features like 3D auto and Vanes if I provide you with the needed information? If yes, what do I need to build / flash in order to give you the needed information?

yes, please check MHI-AC-Trace

Ok, I might be able to get one. Not quite sure yet how to connect it, both the MHI-AC-Ctrl and the original controller need to be connected parallel? You mention the old version of the board, is there any image to explain it?

@absalom-muc
Copy link
Owner

Conncetion has to be parallel according to the diagram (just added) here.

@Aesculapius
Copy link

Just for information, I'm seeing a lot of development on the HomeAssistant forums with this new module - they seem to have decoded stuff. I placed a request to help out here...
https://community.home-assistant.io/t/mitsubishi-wifi-module-wf-rac-smart-m-air/411025/76

@arpiecodes
Copy link

Would be great if someone with the new module could sniff out the unknowns. If someone has the new WiFi module and is able to send it to me (Netherlands), I am willing to take a stab at sniffing the SPI communication. I promise to send it back afterwards. :-)

@DYLaKo
Copy link

DYLaKo commented Oct 9, 2022

Would be great if someone with the new module could sniff out the unknowns. If someone has the new WiFi module and is able to send it to me (Netherlands), I am willing to take a stab at sniffing the SPI communication. I promise to send it back afterwards. :-)

I have one, managed to get my hands on one this summer but haven't found the time yet to sniff the commands. Maybe we can work something out with the module. How can i contact you?

@arpiecodes
Copy link

arpiecodes commented Oct 9, 2022

Would be great if someone with the new module could sniff out the unknowns. If someone has the new WiFi module and is able to send it to me (Netherlands), I am willing to take a stab at sniffing the SPI communication. I promise to send it back afterwards. :-)

I have one, managed to get my hands on one this summer but haven't found the time yet to sniff the commands. Maybe we can work something out with the module. How can i contact you?

Sounds good! You can contact me via redacted.

@DYLaKo
Copy link

DYLaKo commented Oct 9, 2022

Would be great if someone with the new module could sniff out the unknowns. If someone has the new WiFi module and is able to send it to me (Netherlands), I am willing to take a stab at sniffing the SPI communication. I promise to send it back afterwards. :-)

I have one, managed to get my hands on one this summer but haven't found the time yet to sniff the commands. Maybe we can work something out with the module. How can i contact you?

Sounds good! You can contact me via redacted.

Mail sent. :)

@kARTechnology
Copy link

kARTechnology commented Oct 11, 2022 via email

@arpiecodes
Copy link

arpiecodes commented Oct 11, 2022

@kARTechnology I guess the more the merrier. DYLaKo is also lending his WF-RAC to me so I can do some SPI sniffing as well. If you'd do the same at least we have a very broad data set to reverse engineer upon. :-)

@ervee
Copy link
Contributor

ervee commented Sep 19, 2023

I thought about this too a while back because I actually have one indoor unit set this way because it is in a corner. But for the other one which I would like to control L/R and U/D via automation this setting will limit you L/R control via IR. All positions are offset by the wall setting.

Still a nice work around and thank you for putting it here. Sure can help someone!

@glsf91
Copy link
Collaborator

glsf91 commented Sep 27, 2023

So I thought to give it a try. It is now (partly working), 3D auto and vanes LR.
It is now using the extended frame size (33). Reading status is working. Have to implement changing it.
So still be patient .... :-)

@ervee
Copy link
Contributor

ervee commented Sep 27, 2023

That is super nice of you. I hope you succeed! Thank you.

@glsf91
Copy link
Collaborator

glsf91 commented Sep 28, 2023

3D auto and vanes LR are working fine now, including setting these.
Need to test a little bit more.,

@damienmorrissey
Copy link

damienmorrissey commented Sep 28, 2023 via email

@kARTechnology
Copy link

kARTechnology commented Sep 28, 2023 via email

@glsf91
Copy link
Collaborator

glsf91 commented Sep 28, 2023

I made a pull request for this. But first I want to ask a few people to test this before the merge is done.
You can retrieve the code here: https://github.com/glsf91/MHI-AC-Ctrl/tree/master
Also the documentation is updated.
You have to enable the use of 3D auto and vanes LR by enabling #define USE_EXTENDED_FRAME_SIZE true in support.sh
So please give it a try and report here the result. Thanks.

@mjszwo
Copy link

mjszwo commented Sep 28, 2023

Just tested on one of my SRK35ZS-W. 3Dauto as well as VanesLR is fully working like intended!

@rwijnhov
Copy link

rwijnhov commented Sep 30, 2023

Do you happen to have the changes for the ha yaml part to controll vanes and auto3d? I now have this, but how do I embed vanes and auto3d?

climate:
- unique_id: AircoWoonkamer
name: AircoWoonkamer
temp_step: 0.5
initial: 22
min_temp: 18
max_temp: 30
modes:
- "auto"
- "dry"
- "cool"
- "fan_only"
- "heat"
- "off"
swing_modes:
- "1"
- "2"
- "3"
- "4"
- "swing"
fan_modes:
- "1"
- "2"
- "3"
- "4"
- "auto"
mode_command_topic: "AircoWoonkamer/set/Mode"
mode_state_topic: "AircoWoonkamer/Mode"
temperature_command_topic: "AircoWoonkamer/set/Tsetpoint"
temperature_state_topic: "AircoWoonkamer/Tsetpoint"
fan_mode_command_topic: "AircoWoonkamer/set/Fan"
fan_mode_state_topic: "AircoWoonkamer/Fan"
swing_mode_command_topic: "AircoWoonkamer/set/Vanes"
swing_mode_state_topic: "AircoWoonkamer/Vanes"
current_temperature_topic: "AircoWoonkamer/Troom"
VanesLR_mode_command_topic: "AircoWoonkamer/set/VanesLR"
VanesLR_mode_state_topic: "AircoWoonkamer/VanesLR"
3Dauto_mode_command_topic: "AircoWoonkamer/set/3Dauto"
3Dauto_mode_state_topic: "AircoWoonkamer/3Dauto"

@glsf91
Copy link
Collaborator

glsf91 commented Sep 30, 2023 via email

@RobertJansen1
Copy link

RobertJansen1 commented Sep 30, 2023

I am working on getting this update to the ESPhome version of this script (https://github.com/RobertJansen1/MHI-AC-Ctrl-ESPHome), and so far the changes seems to be working as expected.

one thing i noticed, not all modes support the 3D auto. if you happened to select a mode that doesn't support 3D Auto, the controller allows you to set it, but it doesn't actually do anything if you understand what i mean. once i have some more time for this, i will try to prevent something for it in the fork.

@JoepWi
Copy link

JoepWi commented Sep 30, 2023

I am working on getting this update to the ESPhome version of this script (https://github.com/RobertJansen1/MHI-AC-Ctrl-ESPHome), and so far the changes seems to be working as expected.

one thing i noticed, not all modes support the 3D auto. if you happened to select a mode that doesn't support 3D Auto, the controller allows you to set it, but it doesn't actually do anything if you understand what i mean. once i have some more time for this, i will try to prevent something for it in the fork.

This is awesome!

@rwijnhov
Copy link

rwijnhov commented Oct 1, 2023

Is silent mode also available? Would be great if we could set that too.

@glsf91
Copy link
Collaborator

glsf91 commented Oct 1, 2023

if you happened to select a mode that doesn't support 3D Auto, the controller allows you to set it, but it doesn't actually do anything if you understand what i mean.

That is right. 3D auto is only working in the mode Auto, cool and heat.

@glsf91
Copy link
Collaborator

glsf91 commented Oct 1, 2023

Is silent mode also available? Would be great if we could set that too.

No, I'm sorry.

@rwijnhov
Copy link

rwijnhov commented Oct 1, 2023

I ran some tests. Now the vanelr settings stays in memory while moving vanes up and down. So it now no longer resets. And i can call auto3d from a script. Everything working as expected. AWESOME WORK!!!!

@glsf91
Copy link
Collaborator

glsf91 commented Oct 2, 2023

Solved with pull request #159

@glsf91 glsf91 closed this as completed Oct 2, 2023
@jeroenkl
Copy link

jeroenkl commented Oct 4, 2023

Do you happen to have the changes for the ha yaml part to controll vanes and auto3d? I now have this, but how do I embed vanes and auto3d?

climate: - unique_id: AircoWoonkamer name: AircoWoonkamer temp_step: 0.5 initial: 22 min_temp: 18 max_temp: 30 modes: - "auto" - "dry" - "cool" - "fan_only" - "heat" - "off" swing_modes: - "1" - "2" - "3" - "4" - "swing" fan_modes: - "1" - "2" - "3" - "4" - "auto" mode_command_topic: "AircoWoonkamer/set/Mode" mode_state_topic: "AircoWoonkamer/Mode" temperature_command_topic: "AircoWoonkamer/set/Tsetpoint" temperature_state_topic: "AircoWoonkamer/Tsetpoint" fan_mode_command_topic: "AircoWoonkamer/set/Fan" fan_mode_state_topic: "AircoWoonkamer/Fan" swing_mode_command_topic: "AircoWoonkamer/set/Vanes" swing_mode_state_topic: "AircoWoonkamer/Vanes" current_temperature_topic: "AircoWoonkamer/Troom" VanesLR_mode_command_topic: "AircoWoonkamer/set/VanesLR" VanesLR_mode_state_topic: "AircoWoonkamer/VanesLR" 3Dauto_mode_command_topic: "AircoWoonkamer/set/3Dauto" 3Dauto_mode_state_topic: "AircoWoonkamer/3Dauto"

Put this into your mqtt.yaml:

switch:
- name: "3D-auto-Airco-woonkamer"
state_topic: "MHI-AC-Ctrl-woonkamer/3Dauto"
command_topic: "MHI-AC-Ctrl-woonkamer/3Dauto" # Topic to publish commands
payload_on: "on" # or "on", depending on your MQTT device
payload_off: "öff" # or "off", depending on your MQTT device
retain: true # or false if you want to wait for changes

select:

  • name: "VanesLR-Airco-woonkamer"
    state_topic: "MHI-AC-Ctrl-woonkamer/VanesLR"
    command_topic: "MHI-AC-Ctrl-woonkamer/VanesLR" # Topic to publish commands
    options:
    • "1"
    • "2"
    • "3"
    • "4"
    • "5"
    • "6"
    • "7"
    • "Swing"
      retain: true # or false if you want to wait for changes

@kARTechnology
Copy link

kARTechnology commented Oct 5, 2023 via email

@Aesculapius
Copy link

I have a question about the integration of the latest VanesLR option in Homeassistant. It works to add this as sensor/switch by using the code from @jeroenkl in mqtt.yaml. But I can't get to integrate it nicely on a lovelace card because the default climate card or simple-thermostat card etc. only support one 'swing mode'. So I'm not able to add the horizontal-swing modes as separate option.

image

I know that sounds like a HA-issue but I'm posting it here because a different configuration option could help. Would it be possible to add the extra LR swing modes to the existing topic? So extend it with extra values, eg. LR1, LR2, LR3, etc. or something alike.

Just to show how my current setup is, thanks to this integration;
image

Or maybe someone can show how they have integrated this in HA?

@Aesculapius

This comment was marked as resolved.

@glsf91
Copy link
Collaborator

glsf91 commented Oct 29, 2023

I'm sorry but I'm not going to extend this which extra values.
Of course you can do this in your own version.

@kARTechnology
Copy link

kARTechnology commented Oct 29, 2023 via email

@glsf91
Copy link
Collaborator

glsf91 commented Oct 29, 2023

Makes not much sense to sniff this with using it from the ir remote.
We need the commands on the CNS port. So using it from the app or a remote wired to that port.
But this is another subject

@arpiecodes
Copy link

Any idea of turbo fan mode and self clean which i can sniff and help with ir remote?

This has been answered many times; these options do not seem to be supported in the communication between module and unit. So it's not going to be possible, and probably not ever, until the app supports it as well which can be an indicator of support on the CNS.

@ErikvO
Copy link

ErikvO commented Nov 5, 2023

MHI-AC-Ctrl works fine on my SRK20ZM-S with frame size 20. However when I switch to frame size 33 the unit does not respond at all. Instead I get a torrent of err_msg_invalid_checksum errors. So, for now, I cannot change the position of the vanes.
Any idea what might be wrong or how I can find out?

I am using the ESPHome version, but I also tried flashing the vanilla version of MHI-AC-Ctrl. Both exhibit the same error.

@arpiecodes
Copy link

MHI-AC-Ctrl works fine on my SRK20ZM-S with frame size 20. However when I switch to frame size 33 the unit does not respond at all. Instead I get a torrent of err_msg_invalid_checksum errors. So, for now, I cannot change the position of the vanes. Any idea what might be wrong or how I can find out?

I am using the ESPHome version, but I also tried flashing the vanilla version of MHI-AC-Ctrl. Both exhibit the same error.

Difficult to say what's wrong here. The most logical thing to do would probably be test your unit with WF-RAC to see if the controller supports 3D auto and vane control modes on your model. But since you probably do not have one close by to try this out, the only educated guess would be that your unit dates from before they added support for the extended SPI frame sizes.

@ErikvO
Copy link

ErikvO commented Nov 5, 2023

The unit has Manufacturing year 2014 written on it.
Can anyone confirm that they successfully use frame size 33 on a model from 2014 or earlier?

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

No branches or pull requests