Skip to content

chrisp250/daikin_mqtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MQTT integration for Daikin airconditoners

I developed this integration to get my AC to work again with Home Assistant after Daikin upgraded the firmware to 2.8.0 and the native integration no longer works.
This is fairly basic at the moment but I'm hoping it fills the gap while a more polished solution is available

Installation Home Assistant (simple)

Open your Home Assistant instance and show the add add-on repository dialog with a specific repository URL pre-filled.

  1. Add reposotory to Home Assistant (clink on the badge above)
  2. Go to Settings -> Add-on Store -> ADD-ON Store -> Daikin MQTT -> Install
  3. Change configuration in /config/daikin-mqtt/configuration.yaml
  4. Start the add-on

Installation Home Assistant (manual)

  1. Go to Settings -> Add-on Store -> 3 dots -> Repositories -> Add repository -> Enter https://github.com/chrisp250/daikin_mqtt -> Add
  2. Go to Settings -> Add-on Store -> ADD-ON Store -> Daikin MQTT -> Install
  3. Change configuration in /config/daikin-mqtt/configuration.yaml
  4. Start the add-on

Installation

Installation steps are very simple:

  • Install the additional python modules
  • Download the 3 files
  • Update the ini file to suit your install
  • Run python3 main.py

Docker build

Build the image:

  • docker build -t daikin_mqtt .

Run the image:

  • Update the daikin.ini file to suit your install
  • docker run -d -v $(pwd)/daikin.ini:/usr/src/app/daikin.ini daikin_mqtt

Example Daikin MQTT config

You can find configuration in the /config/daikin-mqtt/configuration.yaml

general:
mqtt:
  server: localhost
  port: 1883
  username: mqtt_user
  password: mqtt_password
units:
  - name: studio
    address: 192.168.1.101
  • general section is not used at the moment
  • mqtt section is used to configure the MQTT client
  • units section is used to configure the Daikin units to be monitored

MQTT topics have the following format: climate/<unit_name>/<topic> for example climate/studio/temperature

Sample MQTT config in Home Assistant

mqtt:
  - climate:
      name: Studio Climate
      modes:
        - "off"
        - "cool"
        - "dry"
        - "heat"
        - "fan_only"
        - "auto"
      fan_modes:
        - "auto"
        - "Quiet"
        - "1"
        - "2"
        - "3"
        - "4"
        - "5"        
      temperature_command_topic: "climate/studio/settemperature"
      current_humidity_topic: "climate/studio/humidity"
      current_temperature_topic: "climate/studio/temperature"
      temperature_state_topic: "climate/studio/temperaturesp"
      mode_state_topic: "climate/studio/mode"
      mode_command_topic: "climate/studio/modecommand"
      fan_mode_state_topic: "climate/studio/fanmode"
      temperature_command_topic: "climate/studio/temperaturecommand"
      precision: 0.5

What's implemented

The integration reads data from the AC unit and pushes it to MQTT.
The parameters it reads from the unit are:

  • Unit mode (off, heating, cooling, fan, dry, auto)
  • Room temperature
  • Room humidity
  • Temperature setpoint (when in heating or cooling mode)
  • Fan mode: (auto, quiet, 1, 2, 3, 4, 5)

Controls functionality is limited to switching the unit to different modes: off,fan,heat,cool,auto,dry, and setting the temperature only when in heating or cooling mode at this stage. Enjoy!

Ask

If you find my app useful, please consider upvoting my feauture request for an expiry_after option for the MQTT HVAC integration for Home Assistant.
This will allow Home Assistant show the device offline if it stops receiving updates for a period of time.
Thank you