---
sequence:
  - if:
      - condition: state
        entity_id: input_boolean.tv_oled_lg_c1
        state: "on"
    then:
      - action: remote.send_command
        metadata: {}
        data:
          num_repeats: 1
          delay_secs: 0.4
          hold_secs: 0
          device: lg_oled_c1
          command: power_toggle
        target:
          entity_id: remote.rm4pro
        alias: Turn off TV OLED LG C1
      - action: input_boolean.turn_off
        metadata: {}
        data: {}
        target:
          entity_id: input_boolean.tv_oled_lg_c1
  - if:
      - condition: state
        entity_id: input_boolean.sony_ubx700
        state: "on"
    then:
      - action: remote.send_command
        metadata: {}
        data:
          num_repeats: 1
          delay_secs: 0.4
          hold_secs: 0
          device: sony_ubx700
          command: power_toggle
        target:
          entity_id: remote.rm4pro
        alias: Turn off Sony UBX700
      - action: input_boolean.turn_off
        metadata: {}
        data: {}
        target:
          entity_id: input_boolean.sony_ubx700
  - if:
      - condition: state
        entity_id: input_boolean.triangle_ln01a
        state: "on"
    then:
      - alias: Set input on Triangle LN01A to Optical
        action: remote.send_command
        metadata: {}
        data:
          num_repeats: 1
          delay_secs: 0.4
          hold_secs: 0
          device: triangle_ln01a
          command: input_optical
        target:
          entity_id: remote.rm4pro
      - action: remote.send_command
        metadata: {}
        data:
          num_repeats: 1
          delay_secs: 0.4
          hold_secs: 0
          device: triangle_ln01a
          command: power_toggle
        target:
          entity_id: remote.rm4pro
        alias: Turn off Triangle LN01A
      - action: input_boolean.turn_off
        metadata: {}
        data: {}
        target:
          entity_id: input_boolean.triangle_ln01a
  - if:
      - condition: state
        entity_id: input_boolean.retrotink_5x
        state: "on"
    then:
      - action: remote.send_command
        metadata: {}
        data:
          num_repeats: 1
          delay_secs: 0.4
          hold_secs: 0
          device: retrotink_5x
          command: power_toggle
        target:
          entity_id: remote.rm4pro
        alias: Turn off Retrotink 5x
      - action: input_boolean.turn_off
        metadata: {}
        data: {}
        target:
          entity_id: input_boolean.retrotink_5x
  - if:
      - condition: state
        entity_id: input_boolean.portta_hdmi_matrix_switch
        state: "on"
    then:
      - action: remote.send_command
        metadata: {}
        data:
          num_repeats: 1
          delay_secs: 0.4
          hold_secs: 0
          device: portta_matrix_switch
          command: power_toggle
        target:
          entity_id: remote.rm4pro
        alias: Turn off PORTTA HDMI Matrix Switch
      - action: input_boolean.turn_off
        metadata: {}
        data: {}
        target:
          entity_id: input_boolean.portta_hdmi_matrix_switch
  - if:
      - condition: state
        entity_id: input_boolean.pioneer_cld_600
        state: "on"
    then:
      - action: remote.send_command
        metadata: {}
        data:
          num_repeats: 1
          delay_secs: 0.4
          hold_secs: 0
          device: pioneer_cld600
          command: power_toggle
        target:
          entity_id: remote.rm4pro
        alias: Turn off Pioneer CLD-600
      - action: input_boolean.turn_off
        metadata: {}
        data: {}
        target:
          entity_id: input_boolean.pioneer_cld_600
alias: consonance_shutdown
description: ""
