Skip to content

fix: add 'device' param to Broadlink remote.send_command for HA 2026 compatibility#1574

Open
gabrielcolceriu wants to merge 1 commit into
smartHomeHub:masterfrom
gabrielcolceriu:fix/broadlink-device-param-ha2026
Open

fix: add 'device' param to Broadlink remote.send_command for HA 2026 compatibility#1574
gabrielcolceriu wants to merge 1 commit into
smartHomeHub:masterfrom
gabrielcolceriu:fix/broadlink-device-param-ha2026

Conversation

@gabrielcolceriu

Copy link
Copy Markdown

Problem

Starting with HA 2026 (confirmed on 2026.6.4), the native Broadlink integration requires a device parameter when calling remote.send_command. Without it, the following error appears in the logs:

homeassistant.components.broadlink.remote: Failed to call remote.send_command: You need to specify a device

This causes all IR commands sent via SmartIR + Broadlink to silently fail — no IR signal is emitted.

Root cause

BroadlinkController.send() in controller.py builds service_data without a device key:

service_data = {
    ATTR_ENTITY_ID: self._controller_data,
    'command': commands,
    'delay_secs': self._delay
}

The HA 2026 Broadlink remote.send_command handler now validates that a device is specified before processing raw b64: commands.

Fix

Add 'device': 'smartir' to service_data. The value is used only as a label by the Broadlink integration and does not affect the IR signal transmitted — raw b64: codes are passed directly to the hardware.

service_data = {
    ATTR_ENTITY_ID: self._controller_data,
    'command': commands,
    'device': 'smartir',
    'delay_secs': self._delay
}

Tested

  • HA 2026.6.4
  • Broadlink RM Pro (remote.rmpro_remote)
  • SmartIR 1.18.1, device code 1060 (Samsung TV)
  • Volume up/down confirmed working after fix

HA 2026 Broadlink integration requires a 'device' parameter when calling
remote.send_command, otherwise it raises:
  "Failed to call remote.send_command: You need to specify a device"

Adding 'device': 'smartir' as a static label satisfies the requirement
without affecting functionality, since raw b64: codes are passed directly
to the IR blaster regardless of the device name.

Tested with HA 2026.6.4 + Broadlink RM Pro.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant