All Projects → SwiCago → Heatpump

SwiCago / Heatpump

Licence: gpl-3.0
Arduino library to control Mitsubishi Heat Pumps via connector cn105

Projects that are alternatives of or similar to Heatpump

Espmqttclient
Wifi and MQTT handling for ESP8266 and ESP32
Stars: ✭ 169 (-48.32%)
Mutual labels:  arduino, arduino-library, mqtt, esp8266, wifi
Dsckeybusinterface
An Arduino/esp8266/esp32 library to directly interface with DSC security systems.
Stars: ✭ 202 (-38.23%)
Mutual labels:  home-assistant, openhab, arduino, arduino-library, esp8266
Open Home Automation
Open Home Automation with Home Assistant, ESP8266/ESP32 and MQTT
Stars: ✭ 820 (+150.76%)
Mutual labels:  home-assistant, arduino, mqtt, esp8266
Mqtt via esp01
TCP/UDP Applicaton for UNO/MEGA/STM32 using ESP8266's AT firmware.
Stars: ✭ 23 (-92.97%)
Mutual labels:  arduino, mqtt, esp8266, wifi
Openmqttgateway
MQTT gateway for ESP8266, ESP32, Sonoff RF Bridge or Arduino with bidirectional 433mhz/315mhz/868mhz, Infrared communications, BLE, Bluetooth, beacons detection, mi flora, mi jia, LYWSD02, LYWSD03MMC, Mi Scale, TPMS, BBQ thermometer compatibility, SMS & LORA.
Stars: ✭ 2,413 (+637.92%)
Mutual labels:  home-assistant, arduino, mqtt, esp8266
Blinker Library
An IoT Solution,Blinker library for embedded hardware. Works with Arduino, ESP8266, ESP32.
Stars: ✭ 1,095 (+234.86%)
Mutual labels:  arduino, mqtt, esp8266, wifi
Blinker Doc
blinker中文文档
Stars: ✭ 139 (-57.49%)
Mutual labels:  arduino, mqtt, esp8266, wifi
Esp Mqtt Json Digital Leds
(OBSOLETE) ESP8266 MQTT JSON Digital LEDs for Home Assistant
Stars: ✭ 503 (+53.82%)
Mutual labels:  home-assistant, arduino, mqtt, esp8266
Esphelper
A library to make using WiFi & MQTT on the ESP8266 easy.
Stars: ✭ 310 (-5.2%)
Mutual labels:  arduino, mqtt, esp8266, wifi
Esp Mqtt Json Multisensor
(OBSOLETE) ESP MQTT JSON Multisensor for Home Assistant. Supported sensors include the TEMT6000 light, AM312 PIR, DHT22 temperature/humidity sensors. RGB led supports flash, fade, and transition. Over-The-Air (OTA) uploading, too!
Stars: ✭ 323 (-1.22%)
Mutual labels:  mqtt, esp8266, wifi
Itead sonoff
Alternative firmware for Itead Sonoff switches, based on the MQTT protocol and a TLS connection
Stars: ✭ 115 (-64.83%)
Mutual labels:  home-assistant, mqtt, esp8266
Feature Requests
ESPHome Feature Request Tracker
Stars: ✭ 160 (-51.07%)
Mutual labels:  home-assistant, esp8266, wifi
Loadcelloccupany
Home automation occupancy sensor using load cells
Stars: ✭ 103 (-68.5%)
Mutual labels:  home-assistant, arduino, mqtt
Pysmartnode
Micropython Smarthome framework
Stars: ✭ 58 (-82.26%)
Mutual labels:  home-assistant, mqtt, esp8266
Temper Esp8266
Temper is a compact temperature sensor based on ESP8266 and SHT30 with large 13x7 pixel led display.
Stars: ✭ 155 (-52.6%)
Mutual labels:  home-assistant, mqtt, esp8266
Homeautomation.codesys3
Home Automation system build in CoDeSys 3 with MQTT communication to any third party Home Automation software
Stars: ✭ 55 (-83.18%)
Mutual labels:  home-assistant, openhab, mqtt
Wavin Ahc 9000 Mqtt
Esp8266 mqtt interface for Wavin AHC-9000/Jablotron AC-116
Stars: ✭ 47 (-85.63%)
Mutual labels:  home-assistant, mqtt, esp8266
Garhage
a Home-Automation-friendly ESP8266-based MQTT Garage Door Controller
Stars: ✭ 163 (-50.15%)
Mutual labels:  home-assistant, arduino, esp8266
Blynk Library
Blynk library for embedded hardware. Works with Arduino, ESP8266, Raspberry Pi, Intel Edison/Galileo, LinkIt ONE, Particle Core/Photon, Energia, ARM mbed, etc.
Stars: ✭ 3,305 (+910.7%)
Mutual labels:  arduino, esp8266, wifi
Ssd1306
Driver for SSD1306, SSD1331, SSD1351, IL9163, ILI9341, ST7735, PCD8544, Nokia 5110 displays running on Arduino/ESP32/Linux (Rasperry) platforms
Stars: ✭ 303 (-7.34%)
Mutual labels:  arduino, arduino-library, esp8266

Join the chat at https://gitter.im/Mitsubishi-Heat-Pump

HeatPump

Arduino library to control Mitsubishi Heat Pumps via connector CN105.

Quick start

Controlling the heat pump

HeatPump hp;
hp.connect(&Serial);

heatpumpSettings settings = {
    "ON",  /* ON/OFF */
    "FAN", /* HEAT/COOL/FAN/DRY/AUTO */
    26,    /* Between 16 and 31 */
    "4",   /* Fan speed: 1-4, AUTO, or QUIET */
    "3",   /* Air direction (vertical): 1-5, SWING, or AUTO */
    "|"    /* Air direction (horizontal): <<, <, |, >, >>, <>, or SWING */
}; 

hp.setSettings(settings);
// OR individual settings
// hp.setModeSetting("COOL");

hp.update();

See heatPump_test.ino

You can make the library automatically send new settings to the heat pump by calling enableAutoUpdate(). When auto update is enabled the call to update() in the above example is not necessary, the new settings will be sent to the heat pump on the next call to sync() in loop().

Getting updates from the heat pump

void setup() {
  HeatPump hp;
  hp.connect(&Serial);
}

void loop() {
  hp.sync();

  /* get settings from heatpump, including room temperature in settings.roomTemperature */
  heatpumpSettings settings = hp.getSettings();
}

By default the library ignores changes made from other sources (usually, the IR remote) and reverts them the next time sync() is called. This is the intendend behavior when the heat pump is fully controlled by automation.

If you want to also allow manual control and allow the library to update its settings from the current state of the heat pump you need to call enableExternalUpdate(). This will also enable automatic updates.

Callbacks

Instead of manually checking settings changes on each loop, you can set callback functions to be called when the current heat pump status or settings change:

void hpSettingsChanged() {
  // ...
}

void hpStatusChanged(heatpumpStatus currentStatus) {
  // ...
}

void setup() {
  hp.setSettingsChangedCallback(hpSettingsChanged);
  hp.setStatusChangedCallback(hpStatusChanged);

  hp.connect(&Serial);
}

The callbacks will be called as necessary by the sync() method.

You can see this in use in the MQTT example.

Contents

  • sources
  • sample usage code
  • Demo circuit using ESP-01

Installation

Notes

  • Tested with ESP8266
  • Tested with Arduino Micro Pro / Arduino Nano
  • Tested with Mitsubishi HeatPump MSZ-FH/GE(wall units) and SEZ-KD (ducted units) complete list

Demo Circuit

Parts

Parts required to make a CN105 female connector

Other part suggestions

Special thanks

... to 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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].