{"id":36027563,"url":"https://github.com/hardillb/TRADFRI2MQTT","last_synced_at":"2026-01-17T02:00:47.684Z","repository":{"id":68666329,"uuid":"87621687","full_name":"hardillb/TRADFRI2MQTT","owner":"hardillb","description":"MQTT Bridge for IKEA TRÅDFRI Light Gateway","archived":false,"fork":false,"pushed_at":"2020-10-12T22:00:53.000Z","size":49,"stargazers_count":81,"open_issues_count":2,"forks_count":12,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-04-04T05:11:15.330Z","etag":null,"topics":["coap","ikea","mqtt"],"latest_commit_sha":null,"homepage":"https://www.hardill.me.uk/wordpress/2017/04/06/fist-pass-tradfri-mqtt-bridge/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hardillb.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":"2017-04-08T09:05:32.000Z","updated_at":"2024-10-24T14:06:28.000Z","dependencies_parsed_at":"2023-02-22T23:45:18.753Z","dependency_job_id":null,"html_url":"https://github.com/hardillb/TRADFRI2MQTT","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/hardillb/TRADFRI2MQTT","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardillb%2FTRADFRI2MQTT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardillb%2FTRADFRI2MQTT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardillb%2FTRADFRI2MQTT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardillb%2FTRADFRI2MQTT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hardillb","download_url":"https://codeload.github.com/hardillb/TRADFRI2MQTT/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardillb%2FTRADFRI2MQTT/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28492047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T00:50:05.742Z","status":"online","status_checked_at":"2026-01-17T02:00:07.808Z","response_time":85,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["coap","ikea","mqtt"],"created_at":"2026-01-10T15:00:40.726Z","updated_at":"2026-01-17T02:00:47.613Z","avatar_url":"https://github.com/hardillb.png","language":"Java","funding_links":[],"categories":["Interfaces"],"sub_categories":["Lighting"],"readme":"# Invocation\n\njava -jar TRADFRI2MQTT-X.X.X-SNAPSHOT.jar -ip {gateway IP} -psk {gateway secret} -broker {MQTT broker URL} [-retained]\n\nThe optional `-retained` configures the MQTT topics as retained.\n\ne.g.\n\n`java -jar TRADFRI2MQTT-X.X.X-SNAPSHOT.jar -ip 192.168.1.XXX -psk xxxxxxxxxxxxxxxx -broker tcp://localhost`\n\nPublishes state messages on topics like this:\n\n - TRÅDFRI/bulb/Living Room Light/state/on\n - TRÅDFRI/bulb/Living Room Light/state/dim\n - TRÅDFRI/bulb/Living Room Light/state/temperature\n - TRÅDFRI/room/Living Room/state/on\n - TRÅDFRI/room/Living Room/state/dim\n\nSubscribes to control messages on topics like this:\n\n - TRÅDFRI/bulb/Living Room Light/control/on\n - TRÅDFRI/bulb/Living Room Light/control/dim\n - TRÅDFRI/bulb/Living Room Light/control/temperature\n - TRÅDFRI/room/Living Room/control/on\n - TRÅDFRI/room/Living Room/control/dim\n - TRÅDFRI/room/Living Room/control/mood\n\npublish 0/1 to the `on` topic to turn the light off/on respectively\n\npublish 0-254 to the `dim` topic to change the brightness\n\npublish \"cold\" / \"normal\" / \"warm\" to the `temperature` topic to change temperatures.\nThis only works on individual bulbs.\n\npublish the name of a mood (case-sensitive) to the `mood` topic of a room to adapt that mood.\nIKEA predefined moods are internally uppercase-only for some reason: \"EVERYDAY\" / \"FOCUS\" / \"RELAX\".\nYour self-defined moods have to be spelled like in the Trådfri App.\nAt the moment, only control is implemented and state is not.\n\n# MQTT broker example\nAn easy-to-use MQTT broker is [mosquitto](https://mosquitto.org/).\n\nAfter installation run it locally with `mosquitto`.\n\nThen submit commands like this:\n`mosquitto_pub -t \"TRÅDFRI/bulb/LivingRoomBulb1/control/temperature\" -m warm`\nor subscribe like this:\n`mosquitto_sub -t \"TRÅDFRI/room/LivingRoom/state/on\"`\n\n# Installation on Docker\n\nOptionally, TRADFRI2MQTT can be installed and run within a Docker image using the following instructions:\n\n1. Clone this GIT repository.\n2. Build the tradfri2mqtt docker image like so:\n  `docker build -t tradfri2mqtt .`\n3. Run tradfri2mqtt within a docker container:\n  `docker run -rm tradfri2mqtt -ip [gateway ip] -psk [gateway secret] -broker [mqtt broker url]`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardillb%2FTRADFRI2MQTT","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhardillb%2FTRADFRI2MQTT","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardillb%2FTRADFRI2MQTT/lists"}