Simple TV Channel Command Sequencing: Broadlink RF-IR Blaster

You can still use automation, but you should use it with the script.yaml. All you need to do is give you script an alias like “channel 11”, and use it to populate you input select list. Its the best way to send multiple IR signals simultaneously to a single device IMO

I need some help here. I’m not sure where the error is. A random channel is selected each time I select a channel :flushed:

Input_select.yaml

tv_kanaler_stuen:
  name: 'Tv kanaler stuen'
  options:
   - '(1) NRK 1'
   - '(2) NRK 2'
   - '(3) TV2'
   - '(4) TV Norge'
   - '(5) TV3'
   - '(6) NRK 3 / Super'
   - '(7) TV2 Zebra'
   - '(8)TV2 Livsstil'
   - '(9) Viasat 4'
  initial: '(3) TV2'
  icon: 'mdi:television'

configuration.yaml

script:
  tv_kanal_0:
    alias: TV kanal 0
    sequence:
      - service: switch.broadlink_send_packet_10_0_0_116
        data:
          packet: 
            - 'JgDSAJOVETgRORE4ERQRFBETERQRFBE4ETkROBEUERQRExEUERQROBEUERQRExI4ERQRExITERQROBE5ETgRFBE4EjgROBEABgGTlBI4ETgROREUERMRFBEUERQROBE4EjgRFBETEhMRFBEUETgRFBEUERMROREUERMRFBEUETgRORE4ERQROBE5ETgRAAYBk5QSOBE4EjUUFBETERQRFBEUETgROBI4ERQRExEUERQRFBE4ERQRExITETkRExEUERQRFBE4ETgSOBEUETgRORE4EQANBQAAAAAAAA=='

  tv_kanal_1:
    alias: TV kanal 1
    sequence:
      - service: switch.broadlink_send_packet_10_0_0_116
        data:
          packet: 
            - "JgCMAJOVETgRORE4ERQRFBETEhMRFBE4ETYUOBEUERQRExEUERQRFBETETkRExITERQRFBETETkROBEUETgRORE4ETkROBEABgCTlRE4ETkROBEUERQRExITERQROBE5ETgRFBEUERMSExEUERQRExE5ERMSExEUERQRExI4ETgRFBE4EjgROBE5ETgRAA0FAAAAAAAAAAAAAAAA=="

  tv_kanal_2:
    alias: TV kanal 2
    sequence:
      - service: switch.broadlink_send_packet_10_0_0_116
        data:
          packet: 
            - "JgCMAJOUETkROBE5ERMRFBEUERQRExE5ETgRORETEhMRFBETEhMRORETETkRFBETERQRFBETEhMRORETEjgROBE5ETgROBIABgCTlBE5ETgRORETERQRFBEUERMRORE4ETkRExEUERQRExITETkRExI4ERQRExEUERQRExITETkRExI4ETgRORE4ETkRAA0FAAAAAAAAAAAAAAAA=="

  tv_kanal_3:
    alias: TV kanal 3
    sequence:
      - service: switch.broadlink_send_packet_10_0_0_116
        data:
          packet: 
            - "JgCMAJOVETgROBI4ERQRExEUERQRFBE4ETgSOBEUERMRFBEUERMSExE5ETgRFBEUERMRFBEUETgRFBEUETgROBI4ETgSOBEABgCTlRE4ETgSOBEUERMRFBEUERQROBE5ETgRFBETEhMRFBEUERMRORE4ERQRFBETEhMRFBE4EhMRFBE4ETkROBE5ETgRAA0FAAAAAAAAAAAAAAAA=="

  tv_kanal_4:
    alias: TV kanal 4
    sequence:
      - service: switch.broadlink_send_packet_10_0_0_116
        data:
          packet: 
            - "JgCMAJKVETkROBE5ERMRFBEUERMSExE5ETgRORETERQRFBETEhMRFBEUERMROREUERMRFBEUETgRORE4ERQROBE5ETgROREABgCTlBI4ETgROREUERMRFBEUERMSOBE4ETkRFBETERQRFBETEhMRFBEUETgRFBEUERMRFBE4EjgROBITETkROBE4EjgRAA0FAAAAAAAAAAAAAAAA=="

  tv_kanal_5:
    alias: TV kanal 5
    sequence:
      - service: switch.broadlink_send_packet_10_0_0_116
        data:
          packet: 
            - "JgDSAJOUEjgROBE5ERQRExITERQRExI4ETgROREUERMRFBEUERMSOBEUERMROREUERMRFBEUERMSOBE4EhMRORE4ETgSOBEABgCTlRE4ETkROBEUERQRExEUERQROBE5ETgRFBEUERMSExEUETgRFBEUETgRFBEUERMSExEUETYTOREUETgROBI4ETgSAAYAk5UROBE5ETgRFBEUERMRFBEUETgRORE4ERQRFBETERQRFBE4ERQRFBE4ERQRFBETEhMRFBE4EjgRFBE4ETgSOBE4EgANBQAAAAAAAA=="

  tv_kanal_6:
    alias: TV kanal 6
    sequence:
      - service: switch.broadlink_send_packet_10_0_0_116
        data:
          packet: 
            - "JgCMAJOUEjgROBE5ERQRExEUERQRExI4ETgROREUERMRFBEUERMSExE5ERMROREUERMRFBEUETgRFBE4EhMRORE4ETkROBEABgCTlRE4ETkROBEUERQRExEUERQROBE5ETgRFBEUERMSExEUERQROBEUETgRFBEUERQRExE5ERMSNhMUETgRORE4ETgSAA0FAAAAAAAAAAAAAAAA=="

  tv_kanal_7:
    alias: TV kanal 7
    sequence:
      - service: switch.broadlink_send_packet_10_0_0_116
        data:
          packet: 
            - "JgBGAJOUETkROBE5ERMRFBEUERQRExE5ETgRORETERQRFBEUERMRFBEUETgRORETERQRFBEUETgROBITERQROBI4ETgROREADQUAAA=="

  tv_kanal_8:
    alias: TV kanal 8
    sequence:
      - service: switch.broadlink_send_packet_10_0_0_116
        data:
          packet: 
            - "JgCMAJOUEjgROBI4ERQRExEUERQRExI4ETgSOBEUERMRFBEUERQROBEUETgRORETERQRFBEUERMRORETEhMRORE4ETkROBEABgCTlRE4ETkROBEUERQRExITERQROBI4ETgRFBEUERQRExEUETgSExE5ETgRFBEUERMRFBEUETgRFBEUETgRORE4ETkRAA0FAAAAAAAAAAAAAAAA=="

  tv_kanal_9:
    alias: TV kanal 9
    sequence:
      - service: switch.broadlink_send_packet_10_0_0_116
        data:
          packet: 
            - "JgCMAJOVETgRORE4ERQRFBETEhMRFBE4ETkROBEUERQRExITERQRFBE4ETkROBEUERMSExEUETgSExEUERQROBE5ETgROBIABgCTlBE5ETgRORETERQRFBEUERMRORE4ETkRExITERQRFBETERQROBI4ETgSExEUERQRExE5ERMSExEUETgSOBE4EjgRAA0FAAAAAAAAAAAAAAAA=="

automation_tv_kanaler.yaml

- alias: 'TV Kanal (1) NRK 1'
  hide_entity: True
  trigger:
    - platform: state
      entity_id: input_select.tv_kanaler_stuen
#      state: '(1) NRK 1' 
  action:
    - service: script.tv_kanal_1

- alias: 'TV Kanal (2) NRK 2'
  hide_entity: True
  trigger:
    - platform: state
      entity_id: input_select.tv_kanaler_stuen
#      state: '(2) NRK 2' 
  action:
    - service: script.tv_kanal_2

- alias: 'TV Kanal (3) TV2'
  hide_entity: True
  trigger:
    - platform: state
      entity_id: input_select.tv_kanaler_stuen
#      state: '(1) NRK 1' 
  action:
    - service: script.tv_kanal_3

- alias: 'TV Kanal (4) TV Norge'
  hide_entity: True
  trigger:
    - platform: state
      entity_id: input_select.tv_kanaler_stuen
#      state: '(1) NRK 1' 
  action:
    - service: script.tv_kanal_4

- alias: 'TV Kanal (5) TV3'
  hide_entity: True
  trigger:
    - platform: state
      entity_id: input_select.tv_kanaler_stuen
#      state: '(1) NRK 1' 
  action:
    - service: script.tv_kanal_5

- alias: 'TV Kanal (6) NRK 3 / Super'
  hide_entity: True
  trigger:
    - platform: state
      entity_id: input_select.tv_kanaler_stuen
#      state: '(1) NRK 1' 
  action:
    - service: script.tv_kanal_6

- alias: 'TV Kanal (7) TV2 Zebra'
  hide_entity: True
  trigger:
    - platform: state
      entity_id: input_select.tv_kanaler_stuen
#      state: '(1) NRK 1' 
  action:
    - service: script.tv_kanal_7

- alias: 'TV Kanal (8)TV2 Livsstil'
  hide_entity: True
  trigger:
    - platform: state
      entity_id: input_select.tv_kanaler_stuen
#      state: '(1) NRK 1' 
  action:
    - service: script.tv_kanal_8

- alias: 'TV Kanal (9) Viasat 4'
  hide_entity: True
  trigger:
    - platform: state
      entity_id: input_select.tv_kanaler_stuen
#      state: '(1) NRK 1' 
  action:
    - service: script.tv_kanal_9

Hey, I am in Melbourne if you still have all the channels i would love to not have to re-invent the wheel.