This driver is designed to work with mitsubishi_heatpump_mqtt_esp8266_esp32 from SwiCago's HeatPump.cpp library. The library runs on an ESP8266 or ESP32 microcontroller connected to the heatpump via connector CN105 (just like the official Kumo Cloud device).
- Supports both authenticated and anonymous MQTT connections
- Supports the Hubitat / Google Home integration so you can view and control the heatpumps with Home / Nest devices
- Can detect when the heatpumps are actively heating/cooling and update Hubitat Dashboard
- Reports room temperature back from the heatpump for use in automations
- Supports all heatpump modes and fan speeds
- Before flashing with the mitsubishi_heatpump_mqtt_esp8266_esp32 sketch, edit the header file and configure
heatpump_topic
,heatpump_set_topic
, andheatpump_status_topic
. These topics are used to communicate between the unit and Hubitat. - Flash your ESP8266 / ESP32 device with the sketch and connect to the heatpump.
- You need an MQTT broker running on your network. I use
mosquitto
on a Raspberry Pi.
- Add this device driver to Hubitat by going to Drivers Code -> New Driver -> Import and pasting this importURL.
- Create a new Virtual Device by going to Devices -> Add Device -> Virtual and set the driver to
Mitsubishi Heat Pump + MQTT
. - Edit the device and add the IP address of your MQTT broker and the heatpump topic you configured in the Arduino sketch.
- Check the device logs and you should see temperature reports being received and status updates flowing.
- (Optional) Expose the heatpump to the Google Home or Hubitat Dashboard apps by opening the apps and adding the heatpump.
Hubitat thermostats understand the concept of auto mode, but use two separate setpoints for heating and cooling, which isn't how these heat pumps handle auto. I recommend using the standalone heat and cool modes when possible.
Google Home | Hubitat Dashboard |
---|---|
Make sure Debug Logging is on for the device, then check its logs.
- MQTT connection errors mean that the hub can't connect to MQTT. You might need to allow traffic to pass on the MQTT port (1883 by default)
- If MQTT connects but you get no events from the heatpump, make sure your topic is set to the same topic you used in
mitsubishi_heatpump_mqtt_esp8266_esp32.h
. The settings and status topics are extrapolated from this topic, so if your topic isclimate/office
, you should have setclimate/office
,climate/office/status
, andclimate/office/set
in the header file. - If you're sure that the ESP is on the network, you can turn on debug mode to have it dump every packet it gets so you can verify its behavior. Send a message to the
debug_set_topic
you set in your sketch header:
$ mosquitto_pub -t climate/office/debug/set -m on