Skip to main content

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

Project description

This service exposes an API to contorl a broadlink IR remote device reachable over the network. 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

irremote-2026.5.25.2.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

irremote-2026.5.25.2-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file irremote-2026.5.25.2.tar.gz.

File metadata

  • Download URL: irremote-2026.5.25.2.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for irremote-2026.5.25.2.tar.gz
Algorithm Hash digest
SHA256 66b5328800b7094836f9feb5ff852ceff143564268b2024838494771482eb724
MD5 2dd64ac5a3c7ac38345cdec8af9798ee
BLAKE2b-256 787aaae8eabc211169bdf071369bd3c7943eecafdf7dc997deb4fc043310290e

See more details on using hashes here.

File details

Details for the file irremote-2026.5.25.2-py3-none-any.whl.

File metadata

  • Download URL: irremote-2026.5.25.2-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for irremote-2026.5.25.2-py3-none-any.whl
Algorithm Hash digest
SHA256 86eae815a81340c19bbfcbe59ec4b03664b40642481fa547c8df4deaaa131fd5
MD5 1eeeb4e00c0472c33f56c90ae3248c2d
BLAKE2b-256 1738195cb79466446ecdff4accab405f5a08b128797acd874d42e20b3b588053

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page