Mitsubishi AC with Wemos D1 Mini Pro

I managed to compile OK. My setup as follows

esphome:
  name: bedroomheatpump
  platform: ESP8266
  board: esp01_1m
  # Boards tested: ESP-01S (ESP8266), Wemos D1 Mini (ESP8266); ESP32 Wifi-DevKit2

  libraries:
    #- SwiCago/HeatPump
    - https://github.com/geoffdavis/HeatPump#init_fix

  includes:
    - src/esphome-mitsubishiheatpump

wifi:
  ssid: 
  password: 

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Bedroom HP Fallback Hotspot"
    password: fallback_password

captive_portal:

# Enable logging
logger:
  # ESP8266 only - disable serial port logging, as the HeatPump component
  # needs the sole hardware UART on the ESP8266
  baud_rate: 0

# Enable Home Assistant API
api:

ota:

web_server:
  port: 80

  # Sync time with Home Assistant.
time:
  - platform: homeassistant
    id: homeassistant_time
    timezone: Pacific/Auckland

# Text sensors with general information.
text_sensor:
  # Expose ESPHome version as sensor.
  - platform: version
    name: Bedroom Heat Pump ESPHome Version
  # Expose WiFi information as sensors.
  - platform: wifi_info
    ip_address:
      name: Bedroom Heatpump IP
    ssid:
      name: Bedroom Heatpump SSID
    bssid:
      name: Bedroom Heat Pump BSSID

# Sensors with general information.
sensor:
  # Uptime sensor.
  - platform: uptime
    name: edroom Heat Pump Uptime

  # WiFi Signal sensor.
  - platform: wifi_signal
    name: Bedroom Heat Pump WiFi Signal
    update_interval: 60s


climate:
  - platform: custom
    # ESP32 only - change &Serial to &Serial1 or &Serial2 and remove the
    # logging:baud_rate above to allow the built-in UART0 to function for
    # logging.
    lambda: |-
      auto my_heatpump = new MitsubishiHeatPump(&Serial);
      App.register_component(my_heatpump);
      return {my_heatpump};
    climates:
      - name: "Bedroom Heat Pump"

I should add that I have not connected to my AC yet, as I cannot find my pigtail wires, and it ain’t exactly a priority over keeping staff working (from home) and some money coming in!

so you do not know if you will actually get any data from AC? I have successfully compiled, connected, I can see it in home assistant, I just do not get any data from AC and it also do not responds to my commands.

For cabling I just found some od 2x8 pin similar connecto that was used to connect keyboard to some old electronics and cutted it down to keep only 4 pins.

Geoff Davis will probably answer on github.

Hi all,

I apologize in advance, I’m sure this will seem like very basic stuff but I’m struggling. Any advice would be appreciated. I have my Wemos D1 Minis connected to the AC units as per way back in this thread (built out as per the SwiCago/HeatPump README), and I can update them OTA.

  • I’m running Home Assistant 0.107.7 as a VDI within Virtualbox. I added the https://github.com/esphome/hassio repository to the add-on store, which gives me the ESPHome, ESPHome (beta) and ESPHome (dev) Add-ons, but all three show as release v1.14.3. I understand that this needs the 1.15.0-dev or greater, and presumably the 1.14.3 (dev) won’t do it. Are there steps someone I can follow to install the 1.15.0-dev version?

  • Because I’m running Home Assistant as a VDI image, and I can get to the command line via a Terminal / SSH add-on, by I suspect that I need console access to run the commands:

    mkdir -p src
    cd src
    git clone https://github.com/geoffdavis/esphome-mitsubishiheatpump.git

  • I haven’t been able to get console access to work; at the “~ $” prompt I type ‘login’ and then get a “core-ssh login:” prompt. I give it the username ‘root’ and get a ‘Login incorrect’ return. Obviously I’m not doing the right thing here - any advice?

  • For the YAML configuration, in my configuration.yaml file I’ve included a line “esphome: !include esphome.yaml” and then created an esphome.yaml file in the same directory as my configuration.yaml file. In the esphome.yaml file I have put the ‘Example Configuration’ from Geoff Davis’ page (which I will then tailor). Will this approach work? (see below for what the file starts with…).

    esphome:
    name: denheatpump
    platform: ESP8266
    board: esp01_1m
    # Boards tested: ESP-01S (ESP8266), Wemos D1 Mini (ESP8266); ESP32 Wifi-DevKit2

     libraries:
       - SwiCago/HeatPump
    

    … and so on …

Any advice would be appreciated.

Skip.

Disregard on how to get console access. I found this thread on how to do a git clone with hass.io installed from an image.

I have 5 Mitsubishi units - all been working fine for more than month with
Couple days back I noticed that 1-2 of them got offline without any visible reason.
After some time offline they got back online without any intervention.

I did not use or re-flash them since March.
This morning 3 out of 5 are offline.
Units are working perfectly from remote control and permanently connected to power.
We did not have any power outage at all.

I trying to understand what happened.

Any ideas?

Look in the Logs?

I’m having the same issue. Were you able to resolve this?

The answer was posted IN THE NEXT POST.

Pay attention :slight_smile:

Yeah I tried using the dev version of https://github.com/geoffdavis/esphome-mitsubishiheatpump but has the same result. Could you please share your ESPHome config?

Hello did you get it to work?

Sorry, this passed me by. My config that compiles, but I haven’t uploaded to the esp yet, is as follows:

esphome:
  name: bedroomheatpump
  platform: ESP8266
  board: esp01_1m
  # Boards tested: ESP-01S (ESP8266), Wemos D1 Mini (ESP8266); ESP32 Wifi-DevKit2

  libraries:
    #- SwiCago/HeatPump
    - https://github.com/geoffdavis/HeatPump#init_fix

  includes:
    - src/esphome-mitsubishiheatpump

wifi:
  ssid: xxxx
  password: xxxx

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Bedroom HP Fallback Hotspot"
    password: fallback_password

captive_portal:

# Enable logging
logger:
  # ESP8266 only - disable serial port logging, as the HeatPump component
  # needs the sole hardware UART on the ESP8266
  baud_rate: 0

# Enable Home Assistant API
api:

ota:

# Enable Web server.
web_server:
  port: 80

  # Sync time with Home Assistant.
time:
  - platform: homeassistant
    id: homeassistant_time
    timezone: Pacific/Auckland

# Text sensors with general information.
text_sensor:
  # Expose ESPHome version as sensor.
  - platform: version
    name: Bedroom Heat Pump ESPHome Version
  # Expose WiFi information as sensors.
  - platform: wifi_info
    ip_address:
      name: Bedroom Heatpump IP
    ssid:
      name: Bedroom Heatpump SSID
    bssid:
      name: Bedroom Heat Pump BSSID

# Sensors with general information.
sensor:
  # Uptime sensor.
  - platform: uptime
    name: edroom Heat Pump Uptime

  # WiFi Signal sensor.
  - platform: wifi_signal
    name: Bedroom Heat Pump WiFi Signal
    update_interval: 60s


climate:
  - platform: custom
    # ESP32 only - change &Serial to &Serial1 or &Serial2 and remove the
    # logging:baud_rate above to allow the built-in UART0 to function for
    # logging.
    lambda: |-
      auto my_heatpump = new MitsubishiHeatPump(&Serial);
      App.register_component(my_heatpump);
      return {my_heatpump};
    climates:
      - name: "Bedroom Heat Pump"
1 Like

I tried this on my Mitsubishi a couple of weeks ago and it didn’t work well at all… Everything was out of whack and the control/feedback did not work as expected at all… Put things back to the way they were. Will set up a seperate esp just to try this again when I have some time. I think I have some screenshots showing how it presented completely differently under Home Assistant too… I’ll post later.

I have my equipment right now running with https://github.com/gysmo38/mitsubishi2MQTT and it seems to work well

1 Like

I was talking SPECIFICALLY about the esphome implementation.

Has anyone been able to source pigtails (or even the 2mm JST plugs) locally in Australia? Revolectrix now looks to be charging $14+ shipping for the $1.99 item. And the only AU based seller I can find is charging $23 (for a $0.28).

Yes.
https://au.rs-online.com/web/p/pre-crimped-leads/5128737/
https://au.rs-online.com/web/p/pcb-connector-housings/4766798

But PLEASE quadruple check… It’s been a long time and I’ve ordered a bunch of stuff from them… I COULD be mistaken.

Should end up as $15.59. I did 3 units with that… But now I’m wondering how as I should need 12 pre-crimped wires…

1 Like

Awesome… Thanks! I checked… seems right… comes to $14.83 (with the 150mm leads) :slight_smile:

I did - it works great. Was able to work through / learn about all of my issues above, and after flashing my Wemos D1 Mini Pro with something generic the first time round to make sure that OTA was working properly, I then used @nickrout 's yaml file shown above as my template, and everything works fine. Updates on my dashboard about 10 seconds after any input or temperature change.