<commit_before>thermostat_engine:
  sequence:
    - condition: state
      entity_id: input_boolean.thermostat_enable
      state: 'on'

    - service: script.thermostat_set
      data_template:
        mode: >
          {%- macro hot_outside() -%}
            {% if (states.sensor.occupancy.state == 'home') or (states.input_boolean.guest_mode.state == 'on') %}
              {% if (now().strftime("%H") | int > 5) and (now().strftime("%H") | int < 20) %}
                'ac_home'
              {% else %}
                'ac_sleep'
            {% else %}
              'ac_away'
            {% endif %}
          {%- endmacro -%}
          {%- macro cold_outside() -%}
            {% if (now().strftime("%H") | int > 5) and (now().strftime("%H") | int < 20) %}
                'heat_home'
              {% else %}
                'heat_sleep'
              {% endif %}
            {% else %}
              'heat_away'
            {% endif %}
          {%- endmacro -%}
          {%- macro nice_outside() -%}
            {% if (states.sensor.occupancy.state == 'home') or (states.input_boolean.guest_mode.state == 'on') and (states.sensor.bedroom_temperature.state > states.sensor.pws_temp_f.state)%}
              {% if ((states.sensor.living_room_humidity.state | int) > 58) and (now().strftime("%H") | int > 5) and (now().strftime("%H") | int < 20) %}
                'ac_home'
              {% else %}
                'off'<commit_msg>Copy/paste error, was missing if statement... should be fixed<commit_after>thermostat_engine:
  sequence:
    - condition: state
      entity_id: input_boolean.thermostat_enable
      state: 'on'

    - service: script.thermostat_set
      data_template:
        mode: >
          {%- macro hot_outside() -%}
            {% if (states.sensor.occupancy.state == 'home') or (states.input_boolean.guest_mode.state == 'on') %}
              {% if (now().strftime("%H") | int > 5) and (now().strftime("%H") | int < 20) %}
                'ac_home'
              {% else %}
                'ac_sleep'
            {% else %}
              'ac_away'
            {% endif %}
          {%- endmacro -%}
          {%- macro cold_outside() -%}
            {% if (states.sensor.occupancy.state == 'home') or (states.input_boolean.guest_mode.state == 'on') %}
              {% if (now().strftime("%H") | int > 5) and (now().strftime("%H") | int < 20) %}
                'heat_home'
              {% else %}
                'heat_sleep'
              {% endif %}
            {% else %}
              'heat_away'
            {% endif %}
          {%- endmacro -%}
          {%- macro nice_outside() -%}
            {% if (states.sensor.occupancy.state == 'home') or (states.input_boolean.guest_mode.state == 'on') and (states.sensor.bedroom_temperature.state > states.sensor.pws_temp_f.state)%}
              {% if ((states.sensor.living_room_humidity.state | int) > 58) and (now().strftime("%H") | int > 5) and (now().strftime("%H") | int < 20) %}
                'ac_home'
              {% else %}
                'off'
{'fraction_non_alphanumeric': 0.1717005909389363, 'fraction_numerical': 0.007222586999343401, 'mean_word_length': 1.642671292281006, 'pattern_counts': {'":': 0, '<': 9, '<?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': '793456', 'n_tokens_mistral': 1050, 'n_tokens_neox': 912, 'n_words': 171}