MHI-AC-Ctrl icon indicating copy to clipboard operation
MHI-AC-Ctrl copied to clipboard

Add supported MHI models

Open waynethomas69 opened this issue 4 years ago • 21 comments

Hi not really an issue, but thought you would like to know your base code works with the SRK50ZJX-S1 heat pump also. Only issue noted is the SCK frequency is measured incorrectly, but this doesn't affect operation. Checked SPI output using a logic analyser and actual SCK was around 60kHz (from memory) but measured as 2500Hz. Haven't tested v2.0 yet (only just noticed you updated). Cheers Wayne

waynethomas69 avatar Jun 06 '20 04:06 waynethomas69

I am absolutely interested in such feedback, thank you.

The frequency measurement counts the rising edges for 1 second. The result is only meaningful, if the timing of your AC is identical to the timing of the SRK xx ZS-S. That means only if you have 20 frames in one second (1frame=20byte=20 x 8bit=160bit => 20frame x 160bit=3200). So also with the latest version you will see no meaningful results. But as you mentioned, that is no restriction for the normal usage.

absalom-muc avatar Jun 06 '20 06:06 absalom-muc

Hi, I'm using your program for the AC SRK60ZSX-W and it works fine! You have done a great job!!!

ThatsIT67 avatar Jun 14 '20 10:06 ThatsIT67

Thank you for your feedback @ThatsIT67. I'm glad to hear that.

absalom-muc avatar Jun 15 '20 17:06 absalom-muc

Hello! Thanks for the project. I connected the air conditioner SRK25ZJX-S.

  1. Power On/Off - Perfect!
  2. Fan speed. In total, the air conditioner has 3 fan speeds. Do I understand correctly that mode 4 is an automatic mode? - Perfect!
  3. Mode. Fail... When I try to turn on any of the modes, the Heat mode is turned on:
MQTT_subscribe_callback, topic=MHI-AC-Ctrl/set/Mode payload=Cool
status=67 value=16
status=67 topic=Mode payload=Heat
status=128 value=16
status=128 topic=Mode payload=Heat
status=129 value=26
status=129 topic=Tsetpoint payload=26
status=137 value=4
status=137 topic=OU-FANSPEED payload=4
status=133 value=1
status=133 topic=IU-FANSPEED payload=1
mhi_ac_ctrl_core.loop error: -2
  1. Setpoint temp. - Perfect!
  2. A large number of errors in the terminal:
mhi_ac_ctrl_core.loop error: -2
mhi_ac_ctrl_core.loop error: -2
status=130 value=170
status=130 topic=RETURN-AIR payload=27.50
mhi_ac_ctrl_core.loop error: -1
mhi_ac_ctrl_core.loop error: -2
mhi_ac_ctrl_core.loop error: -2
mhi_ac_ctrl_core.loop error: -2
mhi_ac_ctrl_core.loop error: -2
mhi_ac_ctrl_core.loop error: -2
mhi_ac_ctrl_core.loop error: -2
mhi_ac_ctrl_core.loop error: -1
mhi_ac_ctrl_core.loop error: -2
mhi_ac_ctrl_core.loop error: -1
mhi_ac_ctrl_core.loop error: -2

makonrus avatar Jun 19 '20 06:06 makonrus

Thanks for your feedback. Please find my response below:

2. Fan speed. In total, the air conditioner has 3 fan speeds. Do I understand correctly that mode 4 is an automatic mode? - Perfect!

There should be 4 different fan speeds, no auto mode for the fan.

3. Mode. Fail... When I try to turn on any of the modes, the Heat mode is turned on: 
MQTT_subscribe_callback, topic=MHI-AC-Ctrl/set/Mode payload=Cool
status=67 value=16
status=67 topic=Mode payload=Heat
status=128 value=16
status=128 topic=Mode payload=Heat
status=129 value=26
status=129 topic=Tsetpoint payload=26
status=137 value=4
status=137 topic=OU-FANSPEED payload=4
status=133 value=1
status=133 topic=IU-FANSPEED payload=1
mhi_ac_ctrl_core.loop error: -2

Please create a log with time stamp and some more entries before and after the effect. In addition, how does row 30 of MHI-AC-Ctrl-core.h //#define POWERON_WHEN_CHANGING_MODE true looks like?, Unchanged or have you commented it in?

2. A large number of errors in the terminal:
mhi_ac_ctrl_core.loop error: -2
mhi_ac_ctrl_core.loop error: -2
status=130 value=170
status=130 topic=RETURN-AIR payload=27.50
mhi_ac_ctrl_core.loop error: -1
mhi_ac_ctrl_core.loop error: -2
mhi_ac_ctrl_core.loop error: -2
mhi_ac_ctrl_core.loop error: -2
mhi_ac_ctrl_core.loop error: -2
mhi_ac_ctrl_core.loop error: -2
mhi_ac_ctrl_core.loop error: -2
mhi_ac_ctrl_core.loop error: -1
mhi_ac_ctrl_core.loop error: -2
mhi_ac_ctrl_core.loop error: -1
mhi_ac_ctrl_core.loop error: -2

We've seen this instability alrady e.g. in the issue10. I couldn't find out the root cause, but since this seems to be not critical, I postponed it. btw: If you have an oscilloscope, a measurement would be helpful. Could you open another issue for the problem related to the mode selection? Then we can use this issue only for the supported MHI models. Thank you.

absalom-muc avatar Jun 20 '20 09:06 absalom-muc

Me again, also works with my SRF50ZJX-S1. Only issue was this model AC seems to vomit room temperature readings constantly in pairs (0.5 degrees difference). I added an averaging filter for the pairs and another filter to reduce the number of outputs. No issue with your code, just an oddity about this AC model. Thanks again for your great work!!! Cheers

waynethomas69 avatar Jun 20 '20 09:06 waynethomas69

Thank you for the feedback @waynethomas69!

absalom-muc avatar Jun 20 '20 09:06 absalom-muc

sorry, closed it unintenionally...

absalom-muc avatar Jun 20 '20 09:06 absalom-muc

I added a testprogram to folder testprog and I would appreciate when you could upload here the according logfile. My intention is to find out, if the timing of MHI-AC-Ctrl should be adapted to improve it for further AC models.

absalom-muc avatar Jun 21 '20 14:06 absalom-muc

Hi, thanks so much for your work on this. I've just got my SRK50ZJX-S1 working here in New Zealand. The SRK frequency is reported as 2509Hz, and there is some mhi_ac_ctrl_core.loop error: -2 in the monitor. But it still works fine as far as I can tell.

My Logic Level converter only has 2 bi-directional MOSFET channels available (TX). There are 2 other uni-directional step-down (RX) pins which are just voltage dividers. The MISO and SCK are on proper converters The MOSI is just on one of the voltage divider circuits.

Here's my hack-job circuit board, largely based on your original schematics. IMG_7030 The DS18B20 ended up overheating after initially working so it's now cut out. There's a 12v to 5v converter under the WEMOS D1

I made these small changes to work in my Home Assistant: In support.h - uncomment #define POWERON_WHEN_CHANGING_MODE true In MHI-AC-Ctrl.h change some of the payloads to lowercase only (mostly because I couldn't figure out how to change the Home Assistant side to suit) e.g. the word Heat to heat #define PAYLOAD_MODE_HEAT "Heat" change to #define PAYLOAD_MODE_HEAT "heat"

Example of my Home Assistant setup, adapted from @apateluk 's in another post In configuration.yaml add climate: !include climates.yaml

In climates.yaml

- platform: mqtt
  unique_id: mhi0001a
  name: LivingAC
  initial: 22
  min_temp: 18
  max_temp: 30
  availability:
    payload_available: 1
    payload_not_available: 0
    topic: "MHI-AC-Ctrl/connected"
  modes:
  - "auto"
  - "dry"
  - "cool"
  - "fan_only"
  - "heat"
  - "off"
  swing_modes:
  - "1"
  - "2"
  - "3"
  - "4"
  - "Swing"
  fan_modes:
  - "1"
  - "2"
  - "3"
  - "4"
  mode_command_topic: "MHI-AC-Ctrl/set/Mode"
  mode_state_topic: "MHI-AC-Ctrl/Mode"
  temperature_command_topic: "MHI-AC-Ctrl/set/Tsetpoint"
  temperature_state_topic: "MHI-AC-Ctrl/Tsetpoint"
  fan_mode_command_topic: "MHI-AC-Ctrl/set/Fan"
  fan_mode_state_topic: "MHI-AC-Ctrl/Fan"
  swing_mode_command_topic: "MHI-AC-Ctrl/set/Vanes"
  swing_mode_state_topic: "MHI-AC-Ctrl/Vanes"
  current_temperature_topic: "MHI-AC-Ctrl/Troom"

deverelo avatar Aug 23 '20 01:08 deverelo

Thanks for your feedback and congrat for the working system 👍

Hi, thanks so much for your work on this. I've just got my SRK50ZJX-S1 working here in New Zealand. The SRK frequency is reported as 2509Hz, and there is some mhi_ac_ctrl_core.loop error: -2 in the monitor. But it still works fine as far as I can tell.

Usually there should be no mhi_ac_ctrl_core.loop error: -2 in the monitor, but this shouldn't affect the functionality. If you are interested avoiding these messages you could provide a logfile based on the SPI logger.

The DS18B20 ended up overheating after initially working so it's now cut out.

That is unusual, maybe you have connected the DS18B20 to a higher voltage than 3.3V?

There's a 12v to 5v converter under the WEMOS D1

I made these small changes to work in my Home Assistant: In support.h - uncomment #define POWERON_WHEN_CHANGING_MODE true In MHI-AC-Ctrl.h change some of the payloads to lowercase only (mostly because I couldn't figure out how to change the Home Assistant side to suit) e.g. the word Heat to heat #define PAYLOAD_MODE_HEAT "Heat" change to #define PAYLOAD_MODE_HEAT "heat"

Example of my Home Assistant setup, adapted from @apateluk 's in another post ...

No comment, since I'm not familiar with Home Assistant, but happy that it works :smiley:

absalom-muc avatar Aug 23 '20 10:08 absalom-muc

@absalom-muc thanks for sharing this, it works perfectly on my SRF35ZMX-S

scottm1985 avatar Oct 07 '20 08:10 scottm1985

Great 👍 thanks for your feedback @scottm1985

absalom-muc avatar Oct 07 '20 17:10 absalom-muc

@absalom-muc awesome work man, can confirm this works with SRK95ZRA-W Have control through Apple Home app using Home Assistant. Changes made as per @deverelo post above

L4RGER avatar Nov 19 '20 20:11 L4RGER

Hi, I'm using it for the AC MHI SRK 35 ZSX - W and it works perfect! It´s a superb project. Please advise if I can support you anyhow.

drdoener avatar Mar 06 '21 10:03 drdoener

Thanks for your feedback @drdoener - I'm happy to hear that. Have you used the latest PCB layout from Feb 2021 or the previous version?

absalom-muc avatar Mar 07 '21 21:03 absalom-muc

I use the previous version. Due to the limited space in the device, I focussed already ne new PCB layout. It seems to be really good improvement.

drdoener avatar Mar 07 '21 22:03 drdoener

Thanks for your work on this. The hardware and code works for a SETSRK25ZSA-W (C2.5kW H3.2kW Reverse Cycle Split System). I did have issues with Mosquitto in Home Assistant picking up the new MQQT device (probably unrelated to this project), so I've instead installed the ESPHome fork (https://github.com/ginkage/MHI-AC-Ctrl-ESPHome).

joshuammex avatar Aug 03 '21 08:08 joshuammex

Thank you for the info joshuammex, glad to hear that it works.

absalom-muc avatar Aug 18 '21 15:08 absalom-muc

MHI SRK18YXS2-W6 Model supported. working without any bugs. highest Indian ISEER model, 1.65ton.. installed in the case itself, discreet.

kARTechnology avatar Jan 20 '22 18:01 kARTechnology

AC MHI SRK 35 ZSX - WT works too. It's the same as the other ZSX that are already listed. Just a different color (W=white, WB=White/Black, WT=Titanium)

tharealmb avatar Apr 05 '22 14:04 tharealmb

Hi, Thanks for your awesome work. I ordered the PCB with the provided Gerber Files from JLCPCB and it works perfectly with my SRF25-ZJX-S and SRF35-ZJX-S. But the PCB does hardly fit into the cabinet so I placed outside next to the power supply cables. There is a lot of space.

The DC-DC converter was hard to get, but the TSR 1-2450E seems to be the successor of TSR 1-2450 and can also be used. Best regards from Germany

FloR012 avatar Dec 29 '22 18:12 FloR012

Thanks for yor feedback @FloR012

A discussion related to the TSR1-2450E was started here. I had also the impression that the 'E'-version it an adequate replacement - good to hear that you can confirm.

absalom-muc avatar Jan 02 '23 12:01 absalom-muc

Thank you for the good work. I have a SRK25ZS-W that works great. I also have an SRF50ZSX-W as a chest, which unfortunately doesn't work with MHI-AC-Ctrl. Unfortunately it is not read. I installed MHI-AC_CTRL as ESP Home. I haven't found the test program yet.

Fix1985 avatar Jun 18 '23 06:06 Fix1985

Closed because of no activity for a long time

glsf91 avatar Oct 02 '23 10:10 glsf91

Hello! Does someone know is it Homebridge compatible?

Krava615 avatar Apr 08 '24 10:04 Krava615