Skip to content

Instantly share code, notes, and snippets.

@Snipercaine
Created September 27, 2018 18:18
Show Gist options
  • Save Snipercaine/7bf0f3d8bbd839eaef8f5320f2fedad4 to your computer and use it in GitHub Desktop.
Save Snipercaine/7bf0f3d8bbd839eaef8f5320f2fedad4 to your computer and use it in GitHub Desktop.
Broadlink IR and Home Assistant - Examples for Config and Automations
@TheGroundZero
Copy link

In configuration.yaml add the following or install the Broadlink integration:

remote:
- platform: broadlink
  host: 192.168.xx.xx
  mac: 'ab:cd:ef:12:34:45'

then under switch:

switch
  - platform: broadlink
    host: 192.168.xx.xx
    mac: 'ab:cd:ef:12:34:45'
    switches:
      # TV
      - name: TV Power
        command_on: "JgBYAAABJZQRExITEjgRFBETExISExETEjgSNxITEjgSNxI4EjcSOBITERMSExI4ERMSExITEhMSOBE4ETgSExI3EjgSOBE4EgAFJAABJ0sSAAxRAAEmSxIADQUAAAAAAAAAAAAAAAAAAA=="
        command_off: "JgBYAAABJpMTEhMSEjcSExITERQRExITEjgROBITEjcSOBI3EjgSOBISEhMSExI3EhMSExITEhMROBI4EjcSExM2EjgSOBE4EwAFIwABKEoSAAxRAAEoShIADQUAAAAAAAAAAAAAAAAAAA=="
      - name: TV Volume up
        command_on: "JgBYAAABJZMSExITEjcSExITEhMRFBETEjgROBMSEjgSNxI3EjgSOBETEjgSExETEhMSExITERMSOBITETgTNxI3EjgROBI4EQAFJQABJ0oSAAxSAAEnShIADQUAAAAAAAAAAAAAAAAAAA=="
      - name: TV Volume down
        command_on: "JgBQAAABJZQSExETEjgSExETEhQRExITEjcSOBEUETgSNxI4EzcSNxI3EzcSExITERMSExITERQSEhITEzcROBI4ETkSNxE4EgAFJAABJ0oSAA0FAAAAAAAA"
      - name: TV Mute
        command_on: "JgBYAAABJpMSExITETgTEhITERMTEhITEjcTNxITETgSOBE4EzcSNxI4EhMRExI4EhMRExITEhMSExI3EzcRExI4EjcTNxI3EgAFJQABJ0oRAAxSAAEnShMADQUAAAAAAAAAAAAAAAAAAA=="
        command_off: "JgBYAAABJZQSEhITEjgRExITEhMSExEUEjcSOBETEjgSNxI4EjcTNxI3EhMSExI4EhISExITEhMRExI4EjcSExI4EjcSOBI3EwAFJAABJ0oTAAxSAAEmShMADQUAAAAAAAAAAAAAAAAAAA=="

in your automation, you can now use:

action:
  - service: switch.turn_on
    data:
      entity_id: switch.tv_power

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment