Skip to content

Control your Mitsubishi Electric AC units locally using ESP8266 / ESP32 devices and the CN105 connector

Notifications You must be signed in to change notification settings

szamfirov/mitsubishi-local

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local control for Mitsubishi Electric Airco's

This repo is consolidating the instructions and helper scripts used for setting up ESP8266 or ESP32 devices for local control of Mitsubishi Electric air conditioners.

You can control the units by using any of the following implementations (all of which are usually based on the SwiCago/HeatPump library):

ℹ️ I tried both of the implementations above and they work fine in my case with the following AC models:

MSZ-HR25VF

MSZ-AY42VG

👉 More supported models

Prerequisites

  1. Remove the plastic covers of your AC in order to familiarize yourself with the internals and locate the CN105 connector. It's usually in red with CN105 written right next to it.

  2. An ESP8266 or ESP32 device which you will physically connect to your AC using the CN105 port. I purchased the following parts:

  3. Connect/solder the wires directly to the board as shown here: SwiCago/HeatPump#13 (comment)

  4. Install Docker on your machine in order to run the steps from these instructions later

Setting up the board for the first time

  1. Head over to: https://web.esphome.io
  2. Connect the MCU to your laptop using a USB-C cable
  3. Click on Connect and choose Serial
  4. Once connected, click on: Prepare for first use to flash a basic ESPHome which will allow you to configure the WiFi details and you'll be able to control the device remotely
  5. Find the IP address of the device
  6. Set up a DHCP reservation for the device so it'll always receive the same IP address
  7. Head over to "http://{IP_ADDR}" in order to flash any custom configurations/firmware using the steps below (you can also control the device from the web interface)

Controlling the unit

via ESPHome

  1. Edit the secrets.yaml file to provide your WiFi details

  2. Once the MCU is plugged in and connected to your WiFi, use this example command to upload the updated ESPHome firmware which will include the geoffdavis/esphome-mitsubishiheatpump climate component:

    docker run -it --rm \
      -v "${PWD}":/config \
      --entrypoint /config/entrypoint.sh \
      ghcr.io/esphome/esphome \
      my_office 192.168.1.2 run

via mitsubishi2MQTT

  1. Once the MCU is plugged in and connected to your WiFi, use this example command to upload the gysmo38/mitsubishi2MQTT firmware binary on the device:

    docker run -it --rm \
      -v "${PWD}":/config \
      --entrypoint /config/entrypoint.sh \
      ghcr.io/esphome/esphome \
      my_office 192.168.1.2 upload mitsubishi2MQTT/mitsubishi2MQTT_WEMOS_D1_Mini_2023.8.0.bin
  2. The device will reboot and will start advertising a temporary WiFi network: HVAC_XXXX

  3. Set your WiFi defailts and click on "Save & Reboot"

  4. Set the MQTT information for use with Home Assistant

  5. (optional): Set up a Web password to prevent unwanted access in Setup -> Unit -> Web password -> Save & Reboot

  6. If you haven't disabled the MQTT autodiscovery in Home Assistant, you should see the device automatically appear

Finally

Once you're done with the firmware flashing and you're able to communicate with the device remotely (using its IP address), connect the device to the CN105 port and carefully place back all the plastic covers.

Have fun!

About

Control your Mitsubishi Electric AC units locally using ESP8266 / ESP32 devices and the CN105 connector

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages