<commit_before>- platform: template
  sensors:
    day_phase:
      friendly_name: 'Day Phase'
      value_template: >
        {% if now() > now().replace(hour=5).replace(minute=0).replace(second=0) and
            now() < now().replace(hour=6).replace(minute=30).replace(second=0) %}
            Early Morning
        {% elif now() > now().replace(hour=6).replace(minute=30).replace(second=0) and
            now() < now().replace(hour=9).replace(minute=0).replace(second=0) %}
            Morning
        {% elif states.sun.sun.state == "above_horizon" or
                now() < now().replace(hour=19).replace(minute=0).replace(second=0) and
                now() > now().replace(hour=9).replace(minute=0).replace(second=0) %}
            Day
        {% elif now() < now().replace(hour=22).replace(minute=0).replace(second=0) and
            now() > now().replace(hour=9).replace(minute=0).replace(second=0) %}
            Evening
        {% else %}
            Night
        {% endif %}
    media_players_active:
      friendly_name: 'Active Media Players'
      value_template: >
        {{ states.media_player
          | rejectattr('state', 'equalto', 'off')
          | rejectattr('state', 'equalto', 'idle')
          | rejectattr('entity_id', 'equalto', 'media_player.spotify')
          | map(attribute ='entity_id')
          | join(', ')<commit_msg>Changed day phanse sensor to go evening at 1800 instead of 1900<commit_after>- platform: template
  sensors:
    day_phase:
      friendly_name: 'Day Phase'
      value_template: >
        {% if now() > now().replace(hour=5).replace(minute=0).replace(second=0) and
            now() < now().replace(hour=6).replace(minute=30).replace(second=0) %}
            Early Morning
        {% elif now() > now().replace(hour=6).replace(minute=30).replace(second=0) and
            now() < now().replace(hour=9).replace(minute=0).replace(second=0) %}
            Morning
        {% elif states.sun.sun.state == "above_horizon" or
                now() < now().replace(hour=18).replace(minute=0).replace(second=0) and
                now() > now().replace(hour=9).replace(minute=0).replace(second=0) %}
            Day
        {% elif now() < now().replace(hour=22).replace(minute=0).replace(second=0) and
            now() > now().replace(hour=9).replace(minute=0).replace(second=0) %}
            Evening
        {% else %}
            Night
        {% endif %}
    media_players_active:
      friendly_name: 'Active Media Players'
      value_template: >
        {{ states.media_player
          | rejectattr('state', 'equalto', 'off')
          | rejectattr('state', 'equalto', 'idle')
          | rejectattr('entity_id', 'equalto', 'media_player.spotify')
          | map(attribute ='entity_id')
          | join(', ')
{'fraction_non_alphanumeric': 0.16870944484498918, 'fraction_numerical': 0.023071377072819033, 'mean_word_length': 2.503787878787879, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, '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': '3584218', 'n_tokens_mistral': 871, 'n_tokens_neox': 824, 'n_words': 137}