{"id":24757173,"url":"https://github.com/magcode/jeelink-mqtt","last_synced_at":"2026-04-27T12:34:33.620Z","repository":{"id":27988103,"uuid":"113764071","full_name":"magcode/jeelink-mqtt","owner":"magcode","description":"Exposes Jeelink data via MQTT.","archived":false,"fork":false,"pushed_at":"2022-11-05T07:58:57.000Z","size":40,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-28T14:45:31.325Z","etag":null,"topics":["home-automation","jeelink","mqtt"],"latest_commit_sha":null,"homepage":null,"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/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}},"created_at":"2017-12-10T16:09:58.000Z","updated_at":"2021-12-19T08:36:25.000Z","dependencies_parsed_at":"2023-01-14T07:52:48.550Z","dependency_job_id":null,"html_url":"https://github.com/magcode/jeelink-mqtt","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magcode%2Fjeelink-mqtt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magcode%2Fjeelink-mqtt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magcode%2Fjeelink-mqtt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magcode%2Fjeelink-mqtt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magcode","download_url":"https://codeload.github.com/magcode/jeelink-mqtt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245072271,"owners_count":20556353,"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":["home-automation","jeelink","mqtt"],"created_at":"2025-01-28T14:36:35.917Z","updated_at":"2026-04-27T12:34:33.582Z","avatar_url":"https://github.com/magcode.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jeelink MQTT\n\nThis program exposes Jeelink data via MQTT.\nIt connects to a given serial port and publishes data to a given MQTT topic.\n\nThe program is written in Java. You can run it on almost any device which can run Java.\n\n## Config file\nCreate a `jeelink.properties` file with the following content. The file must be placed beside the *.jar file.\n\n```\nmqttServer=tcp://broker.my.lan   #address of your MQTT server\nlogLevel=INFO                    #log level\ntopic=home/temperatures          #root topic\nsketchName=LACR                  #LACR or EC3K\nserialPortName=/dev/usb-lacr     #port name of your jeelink\n```\n\n## Building and running\nTo build run the following commands:\n```\nmvn clean install\njava -jar target/jeelink-mqtt-0.1.0-SNAPSHOT-jar-with-dependencies.jar\n```\n\nAlternatively you can download a [release](https://github.com/magcode/jeelink-mqtt/releases).\n\n# Supported sketches\n## Lacrosse \nUse `LACR` as sketchName.\nThe following data is published for each sensor:\n\n```\nhome/temperatures/18/temperature 22.2\nhome/temperatures/18/humidity 48\nhome/temperatures/18/batterylow false\n```\n\n## Energy Count 3000\nUse `EC3K` as sketchName.\nThe following data is published for each sensor:\n\n```\nhome/ec3k/14E7/currentpower 31.0\nhome/ec3k/14E7/energy 199774\nhome/ec3k/14E7/timeon 24106151\nhome/ec3k/14E7/timetotal 24106151\nhome/ec3k/14E7/maxpower 51.6\n```\n\n\n# Integration into Openhab\n## Sample for Lacrosse\n\n```\nNumber temp_room1   \"room1 temp [%.1f �C]\" \u003ctemperature\u003e  { mqtt=\"\u003c[mosquitto:home/temperatures/63/temperature:state:default]\" }\nNumber hum_room1   \"room1 hum [%1d %%]\" \u003chumidity\u003e  { mqtt=\"\u003c[mosquitto:home/temperatures/63/humidity:state:default]\" }\nSwitch bat_room1 \"room1 battery low\" {mqtt=\"\u003c[mosquitto:home/temperatures/63/humidity/batterylow:state:MAP(battery.map)]\"}\n```\n\nYou need a `battery.map` file:\n```\ntrue=ON\nfalse=OFF\nNULL=OFF\n```\n\n## Sample for EC3K\n```\nNumber ec3k1Power \"ec3k 1 power\" { mqtt=\"\u003c[mosquitto:home/ec3k/0E3D/currentpower:state:default]\" }\nNumber ec3k1Max \"ec3k 1 max\" { mqtt=\"\u003c[mosquitto:home/ec3k/0E3D/maxpower:state:default]\" }\nNumber ec3k1EnergyTotal \"ec3k 1 total\" { mqtt=\"\u003c[mosquitto:home/ec3k/0E3D/energy:state:default]\" }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagcode%2Fjeelink-mqtt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagcode%2Fjeelink-mqtt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagcode%2Fjeelink-mqtt/lists"}