MHI-AC-Ctrl
MHI-AC-Ctrl copied to clipboard
Add supported MHI models
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
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.
Hi, I'm using your program for the AC SRK60ZSX-W and it works fine! You have done a great job!!!
Thank you for your feedback @ThatsIT67. I'm glad to hear that.
Hello! Thanks for the project. I connected the air conditioner SRK25ZJX-S.
- Power On/Off - Perfect!
- Fan speed. In total, the air conditioner has 3 fan speeds. Do I understand correctly that mode 4 is an automatic mode? - Perfect!
- 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
- Setpoint temp. - Perfect!
- 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
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.
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
Thank you for the feedback @waynethomas69!
sorry, closed it unintenionally...
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.
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.
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"
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
InMHI-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 thanks for sharing this, it works perfectly on my SRF35ZMX-S
Great 👍 thanks for your feedback @scottm1985
@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
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.
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?
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.
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).
Thank you for the info joshuammex, glad to hear that it works.
MHI SRK18YXS2-W6 Model supported. working without any bugs. highest Indian ISEER model, 1.65ton.. installed in the case itself, discreet.
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)
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
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.
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.
Closed because of no activity for a long time
Hello! Does someone know is it Homebridge compatible?