IR codes for Infomir Mag STB boxes

Hi

Perhaps someone else will need these codes. Capture of all IR codes avalaible on remote for Mag Infomir boxes (Linux ones for sure). The sketch also includes some few TV channels favorites.

remote_transmitter:
pin: GPIO2
carrier_duty_percent: 50%

switch:

  • platform: template
    name: “Al Arabya”
    turn_on_action:
    • switch.turn_on: d4
    • delay: 0.1s
    • switch.turn_on: d5
    • delay: 0.1s
    • switch.turn_on: d5
    • delay: 0.1s
    • switch.turn_on: d5
    • delay: 0.1s
    • switch.turn_on: ok
  • platform: template
    name: “Al Hayat”
    turn_on_action:
    • switch.turn_on: d4
    • delay: 0.1s
    • switch.turn_on: d5
    • delay: 0.1s
    • switch.turn_on: d4
    • delay: 0.1s
    • switch.turn_on: d2
    • delay: 0.1s
    • switch.turn_on: ok
  • platform: template
    name: “Al Jazeera (Arabic)”
    turn_on_action:
    • switch.turn_on: d4
    • delay: 0.1s
    • switch.turn_on: d5
    • delay: 0.1s
    • switch.turn_on: d4
    • delay: 0.1s
    • switch.turn_on: d5
    • delay: 0.1s
    • switch.turn_on: ok
  • platform: template
    name: “Al Jazeera (English)”
    turn_on_action:
    • switch.turn_on: d5
    • delay: 0.1s
    • switch.turn_on: d5
    • delay: 0.1s
    • switch.turn_on: d0
    • delay: 0.1s
    • switch.turn_on: ok
  • platform: template
    name: “Power”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000B 0000 0020 0021 0020 0021 0040 0041 0020 0021 0020 0021 0040 0021 0020 0021 0020 0041 0020 0021 0040 0021 0020 06C3”
  • platform: template
    name: “TV Power”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000A 0000 0020 0021 0040 0021 0020 0041 0020 0021 0020 0021 0040 0041 0040 0041 0020 0021 0040 0041 0020 06C3”
  • platform: template
    name: “A/V”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000B 0000 0020 0021 0040 0021 0020 0041 0020 0021 0020 0021 0040 0021 0020 0041 0020 0021 0020 0021 0020 0021 0040 06C3”
  • platform: template
    name: “Red”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000A 0000 0020 0021 0020 0021 0040 0041 0020 0021 0020 0021 0040 0041 0020 0021 0040 0021 0020 0041 0040 06C3”
  • platform: template
    name: “Green”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000B 0000 0020 0021 0041 0020 0020 0041 0020 0021 0020 0021 0040 0041 0020 0021 0040 0021 0020 0021 0020 0041 0020 06C3”
  • platform: template
    name: “Yellow”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000B 0000 0020 0021 0020 0021 0040 0041 0020 0021 0020 0021 0040 0041 0020 0021 0020 0021 0040 0021 0020 0041 0020 06C3”
  • platform: template
    name: “Blue”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000A 0000 0020 0021 0040 0021 0020 0041 0020 0021 0020 0021 0040 0041 0020 0021 0020 0021 0040 0041 0040 06C3”
  • platform: template
    name: “Mute”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000B 0000 0021 0020 0020 0021 0040 0041 0021 0020 0020 0021 0040 0041 0020 0021 0040 0021 0020 0021 0020 0021 0020 06C3”
  • platform: template
    name: “TV”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000A 0000 0020 0021 0040 0021 0020 0041 0020 0021 0020 0021 0040 0041 0020 0021 0040 0041 0040 0041 0020 06C3”
  • platform: template
    name: “EPG”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000A 0000 0020 0021 0040 0021 0020 0041 0020 0021 0020 0021 0040 0041 0020 0021 0040 0041 0020 0021 0040 06C3”
  • platform: template
    name: “Settings”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000B 0000 0020 0021 0020 0021 0040 0041 0020 0021 0020 0021 0040 0041 0020 0021 0040 0021 0020 0041 0020 0021 0020 06C3”
  • platform: template
    name: “i”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000B 0000 0020 0021 0040 0021 0020 0041 0020 0021 0020 0021 0040 0021 0020 0041 0020 0021 0020 0021 0040 0041 0020 06C3”
  • platform: template
    name: “Vol +”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000A 0000 0020 0021 0020 0021 0040 0041 0020 0021 0020 0021 0040 0021 0020 0041 0040 0021 0020 0041 0040 06C3”
  • platform: template
    name: “Vol -”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000B 0000 0020 0021 0040 0021 0020 0041 0020 0021 0020 0021 0040 0021 0020 0041 0041 0020 0020 0041 0021 0020 0020 06C3”
  • platform: template
    name: “CH +”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000B 0000 0020 0021 0020 0021 0040 0041 0020 0021 0020 0021 0040 0041 0020 0021 0020 0021 0020 0021 0040 0021 0020 06C3”
  • platform: template
    name: “CH -”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000B 0000 0020 0021 0040 0021 0020 0041 0020 0021 0020 0021 0040 0021 0020 0041 0040 0021 0020 0021 0020 0041 0020 06C3”
  • platform: template
    name: “Up”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000B 0000 0020 0021 0020 0021 0040 0041 0020 0021 0020 0021 0040 0041 0020 0021 0020 0021 0020 0021 0040 0041 0020 06C3”
  • platform: template
    name: “Down”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000B 0000 0020 0021 0040 0021 0020 0041 0021 0020 0020 0021 0040 0041 0020 0021 0020 0021 0020 0021 0021 0020 0040 06C3”
  • platform: template
    name: “Left”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000C 0000 0021 0020 0021 0020 0040 0041 0020 0021 0020 0021 0040 0041 0021 0020 0020 0021 0021 0020 0020 0021 0020 0021 0020 06C3”
  • platform: template
    name: “Right”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000A 0000 0020 0021 0040 0021 0020 0041 0020 0021 0020 0021 0040 0041 0040 0041 0040 0041 0020 0021 0020 06C3”
  • platform: template
    name: “OK”
    id: “ok”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000A 0000 0020 0021 0020 0021 0040 0041 0020 0021 0020 0021 0040 0041 0040 0041 0020 0021 0040 0021 0020 06C3”
  • platform: template
    name: “Home”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000B 0000 0020 0021 0040 0021 0020 0041 0020 0021 0020 0021 0040 0021 0020 0021 0020 0041 0020 0021 0040 0041 0020 06C3”
  • platform: template
    name: “Return”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000C 0000 0020 0021 0020 0021 0040 0041 0020 0021 0020 0021 0040 0021 0020 0021 0020 0041 0020 0021 0020 0021 0020 0021 0020 06C3”
  • platform: template
    name: “APP”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000B 0000 0020 0021 0040 0021 0020 0041 0020 0021 0020 0021 0040 0041 0020 0021 0020 0021 0040 0021 0020 0021 0020 06C3”
  • platform: template
    name: “PIP”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000A 0000 0020 0021 0020 0021 0040 0041 0020 0021 0020 0021 0040 0041 0040 0041 0020 0021 0020 0021 0040 06C3”
  • platform: template
    name: “Menu”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000A 0000 0020 0021 0020 0021 0040 0041 0020 0021 0020 0021 0040 0021 0020 0021 0020 0041 0040 0041 0041 06C3”
  • platform: template
    name: “Rewind”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000A 0000 0020 0021 0040 0021 0020 0041 0020 0021 0020 0021 0040 0021 0020 0041 0040 0041 0020 0021 0040 06C3”
  • platform: template
    name: “Play/Pause”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000B 0000 0020 0021 0020 0021 0040 0041 0020 0021 0020 0021 0040 0021 0020 0021 0020 0041 0040 0041 0020 0021 0020 06C3”
  • platform: template
    name: “Forward”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000B 0000 0020 0021 0040 0021 0020 0041 0020 0021 0020 0021 0040 0021 0020 0041 0040 0021 0020 0021 0021 0020 0020 06C3”
  • platform: template
    name: “1”
    id: “d1”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000C 0000 0020 0021 0020 0021 0040 0041 0020 0021 0020 0021 0040 0021 0020 0021 0020 0021 0020 0021 0020 0021 0020 0041 0020 06C3”
  • platform: template
    name: “2”
    id: “d2”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000B 0000 0020 0021 0040 0021 0020 0041 0021 0020 0020 0021 0040 0021 0020 0021 0020 0021 0020 0021 0020 0041 0040 06C3”
  • platform: template
    name: “3”
    id: “d3”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000C 0000 0020 0021 0020 0021 0040 0041 0020 0021 0020 0021 0040 0021 0020 0021 0020 0021 0020 0021 0020 0041 0020 0021 0020 06C3”
  • platform: template
    name: “4”
    id: “d4”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000B 0000 0020 0021 0040 0021 0020 0041 0020 0021 0020 0021 0040 0021 0020 0021 0020 0021 0020 0041 0040 0021 0020 06C3”
  • platform: template
    name: “5”
    id: “d5”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000B 0000 0020 0021 0020 0021 0040 0041 0020 0021 0020 0021 0040 0021 0020 0021 0020 0021 0020 0041 0040 0041 0020 06C3”
  • platform: template
    name: “6”
    id: “d6”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000B 0000 0020 0021 0040 0021 0020 0041 0020 0021 0020 0021 0041 0020 0020 0021 0020 0021 0020 0041 0020 0021 0040 06C3”
  • platform: template
    name: “7”
    id: “d7”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000C 0000 0020 0021 0020 0021 0040 0041 0020 0021 0020 0021 0040 0021 0020 0021 0021 0020 0021 0040 0021 0020 0021 0020 0020 06C3”
  • platform: template
    name: “8”
    id: “d8”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000B 0000 0020 0021 0040 0021 0020 0041 0020 0021 0020 0021 0040 0021 0020 0021 0020 0041 0040 0021 0020 0021 0020 06C3”
  • platform: template
    name: “9”
    id: “d9”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000B 0000 0020 0021 0020 0021 0040 0041 0020 0021 0020 0021 0040 0021 0020 0021 0020 0041 0040 0021 0020 0041 0020 06C3”
  • platform: template
    name: “0”
    id: “d0”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000C 0000 0020 0021 0040 0021 0020 0041 0020 0021 0020 0021 0040 0021 0020 0021 0020 0021 0020 0021 0020 0021 0020 0021 0020 06C3”
  • platform: template
    name: “Resize”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000B 0000 0020 0021 0020 0021 0040 0041 0020 0021 0020 0021 0040 0021 0020 0041 0040 0041 0020 0021 0020 0021 0020 06C3”
  • platform: template
    name: “Keyboard”
    turn_on_action:
    • remote_transmitter.transmit_pronto:
      data: “0000 006D 000B 0000 0020 0021 0040 0021 0020 0041 0021 0020 0020 0021 0040 0021 0020 0041 0020 0021 0040 0021 0020 0021 0020 06C3”

Enjoy,

Vincèn

1 Like

There is another thread about that. (and actually more than one).

But keep in mind to use the preformatted text button, not blockquote when you paste code.

Share your Broadlink IR/RF codes - Configuration - Home Assistant Community (home-assistant.io)

Red, Blue, Green & Yellow button codes are not working.

Check your yaml syntax as all buttons supplied in my yaml are perfectly working on a Mag524 STB :wink: I use them for some customers since more than a year without any problems !

Thank you so much for these codes !!! I was able to use them in my control 4 system without have to capture each one. My question is what are the first couple of codes ? are those to go to direct channels ?

You’re welcome and happy it’s useful :wink:
You speak about the Al Arabya one and so on ? It’s some examples to do favorites. You push a button on layout and it dials automatically the number to get a specific channel :wink: although we have changed that since and use a service which is a lot more efficient.

globals:
  - id: chiffre
    type: int
    restore_value: no
    initial_value: '0'
api:
  reboot_timeout: 10min
  services:
    - service: favorites
      variables:
        fav: Int
      then:
        - lambda: |-
            id(chiffre) = fav / 1000;
        - switch.turn_on: composition
        - delay: 0.08s
        - lambda: |-
            id(chiffre) = fav / 100 % 10;
        - switch.turn_on: composition
        - delay: 0.08s
        - lambda: |-
            id(chiffre) = fav / 10 % 10;
        - switch.turn_on: composition
        - delay: 0.08s
        - lambda: |-
            id(chiffre) = fav % 10;
        - switch.turn_on: composition
        - delay: 0.08s
        - button.press: bok

switch:
  - platform: template
    id: composition
    turn_on_action:
      then:
        - if:
            condition:
              lambda: |-
                if (id(chiffre)==0) {
                  return true;
                } else {
                  return false;
                }
            then:
              - button.press: bd0
        - if:
            condition:
              lambda: |-
                if (id(chiffre)==1) {
                  return true;
                } else {
                  return false;
                }
            then:
              - button.press: bd1
        - if:
            condition:
              lambda: |-
                if (id(chiffre)==2) {
                  return true;
                } else {
                  return false;
                }
            then:
              - button.press: bd2
        - if:
            condition:
              lambda: |-
                if (id(chiffre)==3) {
                  return true;
                } else {
                  return false;
                }
            then:
              - button.press: bd3
        - if:
            condition:
              lambda: |-
                if (id(chiffre)==4) {
                  return true;
                } else {
                  return false;
                }
            then:
              - button.press: bd4
        - if:
            condition:
              lambda: |-
                if (id(chiffre)==5) {
                  return true;
                } else {
                  return false;
                }
            then:
              - button.press: bd5
        - if:
            condition:
              lambda: |-
                if (id(chiffre)==6) {
                  return true;
                } else {
                  return false;
                }
            then:
              - button.press: bd6
        - if:
            condition:
              lambda: |-
                if (id(chiffre)==7) {
                  return true;
                } else {
                  return false;
                }
            then:
              - button.press: bd7
        - if:
            condition:
              lambda: |-
                if (id(chiffre)==8) {
                  return true;
                } else {
                  return false;
                }
            then:
              - button.press: bd8
        - if:
            condition:
              lambda: |-
                if (id(chiffre)==9) {
                  return true;
                } else {
                  return false;
                }
            then:
              - button.press: bd9

It’ll create a system call in HA named Favorites and you just pass the number of the channel you want and it does everything automatically :slight_smile:

1 Like