{"id":24757180,"url":"https://github.com/magcode/daikin-mqtt","last_synced_at":"2025-07-08T21:33:35.385Z","repository":{"id":45347904,"uuid":"115914999","full_name":"magcode/daikin-mqtt","owner":"magcode","description":"MQTT interface for Daikin AC Wifi Adapter","archived":false,"fork":false,"pushed_at":"2023-12-16T16:57:04.000Z","size":84,"stargazers_count":10,"open_issues_count":3,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-04T07:41:37.688Z","etag":null,"topics":["daikin","mqtt"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/magcode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-01T11:28:06.000Z","updated_at":"2024-06-01T14:25:13.000Z","dependencies_parsed_at":"2025-01-28T14:39:29.835Z","dependency_job_id":"5b32eb32-b54e-4c3e-a1de-0283ae1f1ef1","html_url":"https://github.com/magcode/daikin-mqtt","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/magcode/daikin-mqtt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magcode%2Fdaikin-mqtt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magcode%2Fdaikin-mqtt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magcode%2Fdaikin-mqtt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magcode%2Fdaikin-mqtt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magcode","download_url":"https://codeload.github.com/magcode/daikin-mqtt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magcode%2Fdaikin-mqtt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264353067,"owners_count":23595028,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["daikin","mqtt"],"created_at":"2025-01-28T14:36:38.133Z","updated_at":"2025-07-08T21:33:35.380Z","avatar_url":"https://github.com/magcode.png","language":"Java","readme":"# daikin-mqtt\nMQTT interface for Daikin AC devices. \nBased on the work of [Jonathan Giles](https://bitbucket.org/JonathanGiles/jdaikin/src/default/).\n\nIt aims to be compliant to the [Homie convention](https://homieiot.github.io).\n\nThis software has only been tested with the Daikin **BRP069A42** adapter. Others may work. Please test and let me know.\n\n# Properties file\nYou need a `daikin.properties` file:\n\n```\nrootTopic=home                    # the mqtt root topic\nrefresh=60                        # number of seconds for MQTT status updates. Do not go below 60!\nmqttServer=tcp://192.168.0.1      # IP or hostname of your mqtt broker\nlogLevel=INFO                     # logLevel\nretained=true                     # whether MQTT messages will be sent retained. Defaults to \"false\"\nqos=1                             # the qos which MQTT messages will be sent with. Defaults to \"0\"\n\ndaikin1.host=192.168.0.2          # IP adress of your first Daikin Wifi adapter\ndaikin1.name=ac-room1             # a name for the Daikin device, used in the MQTT topic\n\ndaikin2.host=192.168.0.3\ndaikin2.name=ac-room2\n```\n\nNotes\n* You can define as many controllers as you want.\n* Use the IP address of your controller. Host names do not work!\n\n# Running it\nIt can be simply run with\n\n`java -jar /var/javaapps/daikin/daikin-mqtt-1.1.0-jar-with-dependencies.jar`\n\nDon't forget to put the `daikin.properties` right beside the jar file.\n\nOn Linux I recommend to use a service like this:\n\n```\n[Unit]\nDescription=daikin\nAfter=syslog.target\nWants=network-online.target\nAfter=network-online.target\n[Service]\nUser=daikin\nExecStart=/usr/bin/java -XX:-UsePerfData -jar /var/javaapps/daikin/daikin-mqtt-1.1.0-jar-with-dependencies.jar\nSuccessExitStatus=143\nWorkingDirectory=/var/javaapps/daikin\n[Install]\nWantedBy=multi-user.target\n```\n\nYou can keep this service running, even when powering off your Daikin AC device completely. Once it comes back online it will be reported via MQTT (`$state=ready`, compare with [Homie Device Lifecycle](https://homieiot.github.io/specification/#device-lifecycle)).\n\n# MQTT structure\n\nFollowing the homie convention the interface will post the following messages every 5 minutes.\n\n```\nhome/ac-room1/$localip (the ip of the wifi adapter)\nhome/ac-room1/$homie (homie version, \"3.0.0\")\nhome/ac-room1/$name (\"Aircondition - \u003cname as given in the properties file\u003e\")\nhome/ac-room1/$fw/name (\"daikin-mqtt\")\nhome/ac-room1/$fw/version (current version of the MQTT interface)\nhome/ac-room1/$nodes (\"aircon\")\nhome/ac-room1/$implementation (\"daikin-mqtt\")\nhome/ac-room1/$stats/interval \"600\"\nhome/ac-room1/aircon/$name (\"Aircondition\")\nhome/ac-room1/aircon/$type (\"Aircondition\")\nhome/ac-room1/aircon/$properties (\"targettemp,otemp,intemp,fan,fandirection,mode,power\")\nhome/ac-room1/aircon/targettemp/$settable (\"true\")\nhome/ac-room1/aircon/fan/$settable (\"true\")\nhome/ac-room1/aircon/fandirection/$settable (\"true\")\nhome/ac-room1/aircon/mode/$settable (\"true\")\nhome/ac-room1/aircon/power/$settable (\"true\")\n```\n\n\nIf online, the device will send the following messages every xx seconds (as configured in `daikin.properties`):\n\n```\nhome/ac-room1/$stats/uptime (seconds since the adapter is reachable)\nhome/ac-room1/$state (\"ready\")\nhome/ac-room1/aircon/power (power status)\nhome/ac-room1/aircon/mode (mode, e.g. \"Cool\")\nhome/ac-room1/aircon/targettemp (target temperature)\nhome/ac-room1/aircon/intemp (inside temperature)\nhome/ac-room1/aircon/otemp (outside temperature)\nhome/ac-room1/aircon/fan (fan mode)\nhome/ac-room1/aircon/fandirection (fan direction)\n```\n\nIn case the device gets offline the following messages are sent every xx seconds:\n\n```\nhome/ac-room1/$stats/uptime 0\nhome/ac-room1/$state lost\nhome/ac-room1/aircon/mode None\nhome/ac-room1/aircon/power false\nhome/ac-room1/aircon/otemp 0\nhome/ac-room1/aircon/intemp 0\nhome/ac-room1/aircon/targettemp 0\nhome/ac-room1/aircon/fan None\nhome/ac-room1/aircon/fandirection None\n```\n\nThe following topics can be used to send messages:\n\n```\nhome/ac-room1/aircon/targettemp/set\nhome/ac-room1/aircon/fan/set\nhome/ac-room1/aircon/fandirection/set\nhome/ac-room1/aircon/mode/set\n\n```\n\nNotes\n* `otemp` will go to `0` in case the device is not cooling or heating.\n* Possible values for `mode`, `fandirection` etc. can be found [here](https://github.com/magcode/daikin-mqtt/tree/master/src/main/java/org/magcode/daikin/connector/enums) \n\n# Openhab integration example\n\n## Things\n```\nThing mqtt:topic:ac-room1 \"Aircondition room 1\" (mqtt:broker:mosquitto) {\n    Channels:\n        Type string : mode \"Mode\" [ stateTopic=\"home/ac-room1/aircon/mode\", commandTopic=\"home/ac-room1/aircon/mode/set\"]\n        Type number : intemp \"Inside temp\" [ stateTopic=\"home/ac-room1/aircon/intemp\"] \n        Type number : outtemp \"Outside temp\" [ stateTopic=\"home/ac-room1/aircon/otemp\"] \n        Type number : targettemp \"Target temp\" [ stateTopic=\"home/ac-room1/aircon/targettemp\"] \n        Type switch : power \"Power\" [ stateTopic=\"home/ac-room1/aircon/power\", commandTopic=\"home/ac-room1/aircon/power/set\", on=\"On\", off=\"Off\"]\n        Type switch : online \"Online\" [ stateTopic=\"home/ac-room1/$state\", on=\"ready\", off=\"lost\"]\n}\n```\n## Items\n```\nNumber acRoom1TempTarget  \"AC Room 1 target temp [%.1f °C]\" { channel=\"mqtt:topic:ac-room1:targettemp\" }\nNumber acRoom1TempCur  \"AC Room 1 current temp [%.1f °C]\" { channel=\"mqtt:topic:ac-room1:intemp\" }\nNumber acRoom1TempOt  \"AC Room 1 temp outside [%.1f °C]\" { channel=\"mqtt:topic:ac-room1:outtemp\" }\nString acRoom1Mode  \"AC Room 1 Mode\" { channel=\"mqtt:topic:ac-room1:mode\" }\nSwitch acRoom1Power \"AC Room 1 Power\" { channel=\"mqtt:topic:ac-room1:power\" }\nSwitch acRoom1Online \"AC Room 1 Online\" { channel=\"mqtt:topic:ac-room1:online\" }\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagcode%2Fdaikin-mqtt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagcode%2Fdaikin-mqtt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagcode%2Fdaikin-mqtt/lists"}