{"id":13844466,"url":"https://github.com/NightRang3r/Broadlink-e-control-db-dump","last_synced_at":"2025-07-11T22:32:15.911Z","repository":{"id":44887759,"uuid":"77610778","full_name":"NightRang3r/Broadlink-e-control-db-dump","owner":"NightRang3r","description":"These two scripts will \"parse\" the broadlink e-Control Android application database or SharedData and dump the IR / RF codes for selected accessories into a text file which can be later used with broadlink-python to send the codes to the RM PRO hub","archived":false,"fork":false,"pushed_at":"2022-09-28T00:04:49.000Z","size":27,"stargazers_count":149,"open_issues_count":20,"forks_count":52,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-08-05T17:41:49.399Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NightRang3r.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-29T12:30:37.000Z","updated_at":"2024-08-04T15:05:56.000Z","dependencies_parsed_at":"2023-01-18T17:34:10.431Z","dependency_job_id":null,"html_url":"https://github.com/NightRang3r/Broadlink-e-control-db-dump","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NightRang3r%2FBroadlink-e-control-db-dump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NightRang3r%2FBroadlink-e-control-db-dump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NightRang3r%2FBroadlink-e-control-db-dump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NightRang3r%2FBroadlink-e-control-db-dump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NightRang3r","download_url":"https://codeload.github.com/NightRang3r/Broadlink-e-control-db-dump/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225763423,"owners_count":17520457,"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":[],"created_at":"2024-08-04T17:02:43.068Z","updated_at":"2024-11-21T16:31:33.343Z","avatar_url":"https://github.com/NightRang3r.png","language":"Python","funding_links":[],"categories":["Python (1887)","Python"],"sub_categories":[],"readme":"# Description\n\n# * All Scripts are written using python 2.7 \n\n# econtrol-db-dump.py\n\nThis script will \"parse\" the broadlink e-Control Android application **rmt.db database** and dump the IR / RF codes (in HEX format) for selected accessories into a text file which can be later used with broadlink-python to send the codes to the RM PRO hub.\n\nYou need to get the \"rmt.db\" file from your android device or emulator (ARM), \n\n**ROOT ACCESS REQUIRED**\n\nthe file is located in \"/data/data/com.broadlink.rmt/databases/rmt.db\" and put it in the same folder as this script.\n\n\u003cpre\u003e ~# adb pull /data/data/com.broadlink.rmt/databases/rmt.db \u003c/pre\u003e\n\n# getBroadlinkSharedData.py\n\nThis script will \"parse\" the broadlink e-Control Android application **\"SharedData\"** json files and dump the IR / RF codes (in HEX format) for selected accessories into a text file which can be later used with broadlink-python to send the codes to the RM PRO hub\n\n**NO ROOT ACCESS REQUIRED**\n\nJust connect your Android device to your computer and browse the SD card / External Storage folder \"/broadlink/newremote/SharedData/\"\nYou need to get the following files:\n\njsonSubIr\n\njsonButton\n\njsonIrCode\n\nand put them in the same folder as this script.\n\n##### *** If you can't find the following files on your phone storage You may need to open the e-control app and on the left side menu choose \"Share\" and then \"Share to other phones in WLAN\" it should generate the files. ***\n\nrun: `~# python getBroadlinkSharedData.py`\n\nor duplicate code by number\n\n`~# python getBroadlinkSharedData.py 5`\n\n### Requirements\n\nsimplejson\n\n`~# pip install simplejson`\n\n\n\n# sendCode.py\n\nThis is a script you can use to test that your codes are working, It will send the command to the RM Pro\nYou will need the python-broadlink library for the script to work.\n\n\n\u003cpre\u003e~# git clone https://github.com/mjg59/python-broadlink.git\u003c/pre\u003e\n\n\u003cpre\u003e~# sudo python setup.py install\u003c/pre\u003e\n\nYou will also need to edit the script `line 6` with your RM Pro IP Address and MAC Address and `line 17` with the code in hex format (Which can be produced by \"econtrol-db-dump.py\" and \"getBroadlinkSharedData.py\").\n\n\n# FOR TC2 RF SWITCHES\n\nIn case you get the following error: `Input strings must be a multiple of 16 in length` when sending the TC2 codes you dumped from the DB you will have to do the following:\n\nTry sending the code one time using the \"sendCode.py\" script:\n\ne.g:\n`e90a4200df0909161609160909160916091609160916160909160916091609160916091609161609091609160916160916090916091609160916091616091609160909160916`\n\nIf it is not working and you get the `Input strings must be a multiple of 16 in length` error again, try to duplicate it twice:\n\ne.g:\n`e90a4200df0909161609160909160916091609160916160909160916091609160916091609161609091609160916160916090916091609160916091616091609160909160916e90a4200df0909161609160909160916091609160916160909160916091609160916091609161609091609160916160916090916091609160916091616091609160909160916`\n\nIf not working keep going 3,4,5,6 time until it works with the script.\n\n# broadlink_to_home_assistant_encoder.py\n\nThis script will output the codes in a format that will work with home assistant\n\n`~# broadlink_to_home_assistant_encoder.py \"packet\"`\n\n`~# broadlink_to_home_assistant_encoder.py e90a4200df0909161609160909160916091609160916160909160916091609160916091609161609091609160916160916090916091609160916091616091609160909160916e90a4200df0909161609160909160916091609160916160909160916091609160916091609161609091609160916160916090916091609160916091616091609160909160916`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNightRang3r%2FBroadlink-e-control-db-dump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNightRang3r%2FBroadlink-e-control-db-dump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNightRang3r%2FBroadlink-e-control-db-dump/lists"}