Skip to content

jaisor/mitsubishi_ac_wifi_controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mitsubishi AC WiFi Controller with MQTT support

main screen

Supported features:

  • Web UI
  • WiFi with both self-hosted or joining existing access points
  • MQTT support
  • OTA firmware update using ElegantOTA at /update
  • 3D printed case for clean and seamless mounting

Based on:

Usage

Initial boot / reset

On first boot the device creates a self-hosted WiFi access point (AP) with SSID starting with ESP8266MHVAC and WPA2 password password123 In self-hosted AP mode, the device gives itself 192.168.4.1 IP address.

The device can be connected to an existing AP using the /wifi option

wifi screenshot

Resetting / erasing configuration

The device will reset itself to default configuration and self-hosted AP if unable to complete its boot sequence within 2 seconds (smooth boot) 3 times in a row. This can be forced by power-cycling the device several times. Powered up durations should be about 1 second (less than 2 second, but enough for the CPU to start).

Programming the ESP8266

Compile and upload the project using USB. After the resistors are removed (see below), future updates will have to be made using OTA. Access to OTA is at /update path at the device's IP. See Initial boot below on how to connect to the self-hosted AP.

Assembly

The CN105 connected is underneath the unit cover. The cover can be a bit tricky and intimidating to remove. There are some hidden plastic latches that have to be forced and negotiated a bit. Turn power to the unit and take any other appropriate precautions, ladder safety, etc. As with all DIY projects, proceed at your own risk.

Resources showing how to remove the cover from Mitsubishi HVAC units:

Parts

Removing the RX/TX resistors

The RX/TX resistors have to be removed on some variants of the ESP8266 board, like "Wemos D1 Mini" and other similar ones. Easiest way is to heat them up with a soldering gun, or pry them off with tweezers. Keep in mind you will not be able to upload builds via USB anymore, so do this is a final step before connecting to the heat pump. Future updates will have to happen over OTA

resistor remove

Wiring

Link to source - https://www.geekzone.co.nz/forums.asp?forumid=73&topicid=303958

| 12V | - not connected
| GND | - GND
| 5V  | - 5V
| TX  | - RXD0 / GPIO3
| RX  | - TXD0 / GPIO1

ESP8266 pinout

pcb

Case

3D printable case is available pcb back

Apache proxy setup

Example configuration for exposing a local network device via Apache proxy. Strong advised to use SSL/HTTPS and other appropriate authentication and authorization controls to prevent bad actors access.

                <Location /ac>
                        AuthType Basic
                        Authname "Password Required"
                        AuthUserFile /etc/apache2/.htpasswd
                        Require valid-user
                </Location>

                ProxyPass /ac/roomname http://192.168.x.y disablereuse=On
                ProxyPassReverse /ac/roomname http://192.168.x.y