Skip to main content

This service exposes an API to control a broadlink IR remote device reachable over the network.

I specifically use a Broadlink RM4C Universal IR remote, although other models may also work if they are supported by the broadlink python library bindings.

It makes it possible to programmatically press an IR remote button, but also listen for and learn new buttons, and save button-press contents under memorable names.

To install:

$ pip install irremote

Connect to broadlink device at 10.0.0.12, then repeatedly prompt to listen and save new buttons:

$ irremote --ip 10.0.0.12 -L

These are persisted by default under ~/.config/ir-buttons/

List learned buttons:

$ irremote -l

Run the HTTP API service on the default port 2727 after connecting to the same broadlink device:

$ irremote --ip 10.0.0.12 $ irremote --ip 10.0.0.12 -p2727

Run as a client, pressing the button named LG_VOLUP:

$ irremote -b LG_VOLUP

or

curl http://localhost:2727/LG_VOLUP_UP

Press the LG_POWER button, followed by 10 presses of the LG_VOLUP button.

$ irremote -b LG_POWER,LG_VOLUPx10

Create a button called "TCL_BRIGHTNESS_UP" that consists of a comma-separated list of other button names.

echo "TCL_MENU,TCL_DOWN,TCL_RIGHT,TCL_RIGHT,TCL_UP,TCL_ENTER,TCL_DOWN,TCL_RIGHT,TCL_UP,TCL_ENTER,TCL_BACKx2" > ~/.config/ir-buttons/TCL_BRIGHTNESS_UP

Press the more complex TCL_BRIGHTNESS_UP button as it if were a regular button:

$ irremote -b TCL_BRIGHTNESS_UP

If the IP address argument is omitted in a non-client mode, the broadlink API may try to scan the network for the device, although this can be slower and less reliable.

Metadata

Release files for irremote 2026.11.11.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for irremote 2026.11.11.0
File Size Uploaded Provenance Actions
irremote-2026.11.11.0.tar.gz 7.4 kB Without provenance Details for irremote-2026.11.11.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for irremote 2026.11.11.0
File Interpreter ABI Platform Actions
irremote-2026.11.11.0-py3-none-any.whl Python 3 none any Details for irremote-2026.11.11.0-py3-none-any.whl

Total release size: 14.8 kB

Release files / irremote-2026.11.11.0.tar.gz

Download URL irremote-2026.11.11.0.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d5b866e20c4ecab47391f185ada92f58167e79b270713e622c2fa9b9ced58cd3
BLAKE2b-256 checksum
How to use checksums
fbd8d839f0743433822400d2387407bfd7fc5c28360148d9d55bf0911becbc2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / irremote-2026.11.11.0-py3-none-any.whl

Download URL irremote-2026.11.11.0-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aa17538e72e79b05b73fac2f296752e182c44c0e13242ed85675c132f72ed1ff
BLAKE2b-256 checksum
How to use checksums
bb16fb7311bd0f3e531161ebbecc34c7ef841305d15399ab2afd096f56210736
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for irremote 2026.11.11.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page