<commit_before>hyperion:
  automation:
  - alias: Hyperion Sync
    trigger:
    - platform: state
      entity_id: sensor.living_room_tv
    - platform: state
      entity_id: input_select.hyperion_effect
    - platform: state
      entity_id: sensor.day_phase
    - platform: state
      entity_id: input_boolean.living_room_lights
    action:
    - service_template: >
        {% if states.sensor.day_phase.state in ['Evening', 'Night'] %}
          {% if states.sensor.living_room_tv.state != "PowerOff" %}
            shell_command.hyperion_on
          {% elif states.input_boolean.living_room_lights.state != 'off' %}
            shell_command.hyperion_standby
          {% else %}
            shell_command.hyperion_off
          {% endif %}
        {% else %}
          shell_command.hyperion_off
        {% endif %}

  # input_select:
  #   hyperion_effect:
  #     name: Ambilight Mode
  #     icon: mdi:camcorder-box
  #     options:
  #     - "Ambilight"
  #     - "Knight rider"
  #     - "Full color mood blobs"
  #     - "Rainbow mood"
  #     - "Blue mood blobs"
  #     - "Cold mood blobs"
  #     - "Green mood blobs"
  #     - "Red mood blobs"
  #     - "Warm mood blobs"
  #     - "Rainbow swirl fast"
  #     - "Snake"
  #     - "Strobe blue"
  #     - "Strobe Raspbmc"
  #     - "Strobe white"
  #     - "Cinema dim lights"
  #     - "Cinema brighten lights"
  #     - "Police Lights Single"
  #     - "Police Lights Solid"
  #     - "Random"
  #     - "Running dots"
  #     - "System Shutdown"
  #     - "Sparks Color"
  #     - "Sparks"
  #     - "Color traces"
  #     initial: "Ambilight"

  switch:
  - platform: command_line
    switches:
      hyperion:
        friendly_name: Ambilight
        command_on: '/config/scripts/hyperion/on.sh'
        command_off: '/config/scripts/hyperion/off.sh'
        command_state: '/config/scripts/hyperion/status.sh'

  shell_command:
    hyperion_on: '/config/scripts/hyperion/on.sh'
    hyperion_off: '/config/scripts/hyperion/off.sh'
    hyperion_standby: '/config/scripts/hyperion/effects.sh "Full color mood blobs"'
    hyperion_effect: '/config/scripts/hyperion/effects.sh "{{ states.input_select.hyperion_effect.state }}"'<commit_msg>Renamed a hyperion shell command<commit_after>hyperion:
  automation:
  - alias: Hyperion Sync
    trigger:
    - platform: state
      entity_id: sensor.living_room_tv
    - platform: state
      entity_id: input_select.hyperion_effect
    - platform: state
      entity_id: sensor.day_phase
    - platform: state
      entity_id: input_boolean.living_room_lights
    action:
    - service_template: >
        {% if states.sensor.day_phase.state in ['Evening', 'Night'] %}
          {% if states.sensor.living_room_tv.state != "PowerOff" %}
            shell_command.hyperion_ambilight
          {% elif states.input_boolean.living_room_lights.state != 'off' %}
            shell_command.hyperion_standby
          {% else %}
            shell_command.hyperion_off
          {% endif %}
        {% else %}
          shell_command.hyperion_off
        {% endif %}

  # input_select:
  #   hyperion_effect:
  #     name: Ambilight Mode
  #     icon: mdi:camcorder-box
  #     options:
  #     - "Ambilight"
  #     - "Knight rider"
  #     - "Full color mood blobs"
  #     - "Rainbow mood"
  #     - "Blue mood blobs"
  #     - "Cold mood blobs"
  #     - "Green mood blobs"
  #     - "Red mood blobs"
  #     - "Warm mood blobs"
  #     - "Rainbow swirl fast"
  #     - "Snake"
  #     - "Strobe blue"
  #     - "Strobe Raspbmc"
  #     - "Strobe white"
  #     - "Cinema dim lights"
  #     - "Cinema brighten lights"
  #     - "Police Lights Single"
  #     - "Police Lights Solid"
  #     - "Random"
  #     - "Running dots"
  #     - "System Shutdown"
  #     - "Sparks Color"
  #     - "Sparks"
  #     - "Color traces"
  #     initial: "Ambilight"

  switch:
  - platform: command_line
    switches:
      hyperion:
        friendly_name: Ambilight
        command_on: '/config/scripts/hyperion/on.sh'
        command_off: '/config/scripts/hyperion/off.sh'
        command_state: '/config/scripts/hyperion/status.sh'

  shell_command:
    hyperion_off: '/config/scripts/hyperion/off.sh'
    hyperion_ambilight: '/config/scripts/hyperion/on.sh'
    hyperion_standby: '/config/scripts/hyperion/effects.sh "Full color mood blobs"'
    hyperion_effect: '/config/scripts/hyperion/effects.sh "{{ states.input_select.hyperion_effect.state }}"'
{'fraction_non_alphanumeric': 0.12126656186840333, 'fraction_numerical': 0.0, 'mean_word_length': 2.130007027406887, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7373926', 'n_tokens_mistral': 1578, 'n_tokens_neox': 1488, 'n_words': 276}