dzungpv / mitsubishi2MQTT

Mitsubishi to MQTT with ESP8266/ESP32 module
GNU General Public License v3.0
68 stars 13 forks source link

mitsubishi2MQTT ESP8266/ESP32 module to control Mitsubishi Electric HVAC unit. Support control with Home Assistant, buit-in web app and MQTT.

build status


Screenshots:

Main Control Config
Init Unit Status

Features:


Supported Mitsubishi Electrict Units

Basically, if the unit has a CN105 header on the main board, it should work. The HeatPump wiki has a long confirmed list.

The same CN105 connector is used by the Mitsubishi KumoCloud remotes, which have a compatibility list available.

The software and hardware has been tested by the author for 5 years on the following units:

Demo Circuit

This circuit using by the author, here is some boards before install.

You can also use ESP-32 module for more processing power. If using ESP-32 by default app use UART0 (TX - GPIO 1, RX - GPIO 3) You can assign any compatible pin in the SETUP->OTHERS to use custom pin, example TX: 26, RX: 27, check ESP-32 manual for pin, when TX and RX set it will use UART1 port. Better not using UART0, it is default for logs and flash the chip. You can see more pictures in hardware folder.


Attention:

:warning: You have to open the indoor unit to have access to the CN105 port. You should disconnected the main power before install the module. Faulty handling may cause leakage of water, electric shock or fire! :warning:


Parts

Parts required to make a CN105 female connector

Other part suggestions

How to use:

Nightly builds are available for select platforms via GitHub Actions. Go to the workflow, select the latest build, then check the Artifacts section.


How to build code from source:


MQTT topic use cases

The topic is: "mqtt_topic/mqtt_friendly_name"


MQTT secure connection

MQTT secure connection via 8883 port only support ESP32, app inlude default CA-Root-Certificate for Letsencrypt base domain. You can set your Certificate in the Setup -> Unit


Special thanks

SwiCago for the great libraries: https://github.com/SwiCago/HeatPump

Hadley in New Zealand. His blog post, describing baud rate and details of cn105, Raspberry Pi Python code:

https://nicegear.co.nz/blog/hacking-a-mitsubishi-heat-pump-air-conditioner/

Wayback machine link as the site no longer exists: https://web.archive.org/web/20171007190023/https://nicegear.co.nz/blog/hacking-a-mitsubishi-heat-pump-air-conditioner/


License

Licensed under the GNU Lesser General Public License. https://www.gnu.org/licenses/lgpl-3.0.txt


If you like my work and use it, give a star.