<commit_before>##################################################
## Customize
##################################################

##################################################
## Components/Sensors
##################################################

# https://www.home-assistant.io/components/dyson/
dyson:
  username: !secret dyson_username
  password: !secret <PASSWORD>
  language: GB
  devices: 
    - device_id: !secret dyson_fan1_serial
      device_ip: !secret dyson_fan1_ip_address

climate:
  - platform: dyson

fan:
  - platform: dyson

sensor:
  - platform: dyson
  - platform: template
    sensors:
      dyson_air_quality_index:
        value_template: "{{ states.air_quality.bedroom.attributes.air_quality_index }}"
        friendly_name: "AQI"
        icon_template: mdi:air-filter
      dyson_nitrogen_dioxide:
        value_template: "{{ states.air_quality.bedroom.attributes.nitrogen_dioxide }}"
        friendly_name: "NO2"
        icon_template: mdi:car-convertible
      dyson_particulate_matter_10:
        value_template: "{{ states.air_quality.bedroom.attributes.particulate_matter_10 }}"
        friendly_name: "PM10"
        icon_template: mdi:flower-outline
      dyson_particulate_matter_2_5:
        value_template: "{{ states.air_quality.bedroom.attributes.particulate_matter_2_5 }}"
        friendly_name: "PM2.5"
        icon_template: mdi:blur-radial
      dyson_volatile_organic_compounds:
        value_template: "{{ states.air_quality.bedroom.attributes.volatile_organic_compounds }}"
        friendly_name: "VOC"
        icon_template: mdi:flask-outline
      dyson_speed:
        value_template: "{{ states.fan.bedroom.attributes.speed }}"
        friendly_name: "Speed"
        icon_template: mdi:weather-windy
      dyson_oscillating:
        value_template: "{{ states.fan.bedroom.attributes.oscillating }}"
        friendly_name: "Oscillating"
        icon_template: mdi:rotate-3d-variant
      dyson_nightmode:
        value_template: "{{ states.fan.bedroom.attributes.night_mode }}"
        friendly_name: "Night"
        icon_template: mdi:weather-night
      dyson_automode:
        value_template: "{{ states.fan.bedroom.attributes.auto_mode }}"
        friendly_name: "Auto"
        icon_template: mdi:alpha-a-circle-outline
      dyson_angle_low:
        value_template: "{{ states.fan.bedroom.attributes.angle_low }}"
        friendly_name: "Angle Low"
        icon_template: mdi:arrow-bottom-right
      dyson_angle_high:
        value_template: "{{ states.fan.bedroom.attributes.angle_high }}"
        friendly_name: "Angle High"
        icon_template: mdi:arrow-top-right
      dyson_flow_direction_front:
        value_template: "{{ states.fan.bedroom.attributes.flow_direction_front }}"
        friendly_name: "Front"
        icon_template: mdi:arrow-left-bold-outline
      dyson_timer:
        value_template: "{{ states.fan.bedroom.attributes.timer }}"
        friendly_name: "Timer"
        icon_template: mdi:av-timer
      dyson_hepa_filter:
        value_template: "{{ states.fan.bedroom.attributes.hepa_filter }}"
        friendly_name: "Hepa %"
        icon_template: mdi:blur
      dyson_carbon_filer:
        value_template: "{{ states.fan.bedroom.attributes.carbon_filter }}"
        friendly_name: "Carbon %"
        icon_template: mdi:blur-radial
      dyson_dyson_speed:
        value_template: "{{ states.fan.bedroom.attributes.dyson_speed }}"
        friendly_name: "Speed Mode"
        icon_template: mdi:speedometer


##################################################<commit_msg>Add units_of_measurement, or convert values to Int in order to render as line graphs in history component<commit_after>##################################################
## Customize
##################################################

##################################################
## Components/Sensors
##################################################

# https://www.home-assistant.io/components/dyson/
dyson:
  username: !secret dyson_username
  password: !<PASSWORD>son_password
  language: GB
  devices: 
    - device_id: !secret dyson_fan1_serial
      device_ip: !secret dyson_fan1_ip_address

climate:
  - platform: dyson

fan:
  - platform: dyson

sensor:
  - platform: dyson
  - platform: template
    sensors:
      dyson_air_quality_index:
        value_template: "{{ states.air_quality.bedroom.attributes.air_quality_index | int }}"
        friendly_name: "AQI"
        # unit_of_measurement: "Dyson Index"
        icon_template: mdi:air-filter
      dyson_nitrogen_dioxide:
        value_template: "{{ states.air_quality.bedroom.attributes.nitrogen_dioxide | int }}"
        friendly_name: "NO2"
        # unit_of_measurement: "Dyson Index"
        icon_template: mdi:car-convertible
      dyson_particulate_matter_10:
        value_template: "{{ states.air_quality.bedroom.attributes.particulate_matter_10 }}"
        friendly_name: "PM10"
        unit_of_measurement: "µg/m³"
        icon_template: mdi:flower-outline
      dyson_particulate_matter_2_5:
        value_template: "{{ states.air_quality.bedroom.attributes.particulate_matter_2_5 }}"
        friendly_name: "PM2.5"
        unit_of_measurement: "µg/m³"
        icon_template: mdi:blur-radial
      dyson_volatile_organic_compounds:
        value_template: "{{ states.air_quality.bedroom.attributes.volatile_organic_compounds | int }}"
        friendly_name: "VOC"
        # unit_of_measurement: "Dyson Index"
        icon_template: mdi:flask-outline
      dyson_speed:
        value_template: "{{ states.fan.bedroom.attributes.speed }}"
        friendly_name: "Speed"
        icon_template: mdi:weather-windy
      dyson_oscillating:
        value_template: "{{ states.fan.bedroom.attributes.oscillating }}"
        friendly_name: "Oscillating"
        icon_template: mdi:rotate-3d-variant
      dyson_nightmode:
        value_template: "{{ states.fan.bedroom.attributes.night_mode }}"
        friendly_name: "Night"
        icon_template: mdi:weather-night
      dyson_automode:
        value_template: "{{ states.fan.bedroom.attributes.auto_mode }}"
        friendly_name: "Auto"
        icon_template: mdi:alpha-a-circle-outline
      dyson_angle_low:
        value_template: "{{ states.fan.bedroom.attributes.angle_low }}"
        friendly_name: "Angle Low"
        unit_of_measurement: "°"
        icon_template: mdi:arrow-bottom-right
      dyson_angle_high:
        value_template: "{{ states.fan.bedroom.attributes.angle_high }}"
        friendly_name: "Angle High"
        unit_of_measurement: "°"
        icon_template: mdi:arrow-top-right
      dyson_flow_direction_front:
        value_template: "{{ states.fan.bedroom.attributes.flow_direction_front }}"
        friendly_name: "Front"
        icon_template: mdi:arrow-left-bold-outline
      dyson_timer:
        value_template: "{{ states.fan.bedroom.attributes.timer }}"
        friendly_name: "Timer"
        icon_template: mdi:av-timer
      dyson_hepa_filter:
        value_template: "{{ states.fan.bedroom.attributes.hepa_filter }}"
        friendly_name: "Hepa %"
        unit_of_measurement: "%"
        icon_template: mdi:blur
      dyson_carbon_filer:
        value_template: "{{ states.fan.bedroom.attributes.carbon_filter }}"
        friendly_name: "Carbon %"
        unit_of_measurement: "%"
        icon_template: mdi:blur-radial
      dyson_dyson_speed:
        value_template: "{{ states.fan.bedroom.attributes.dyson_speed }}"
        friendly_name: "Speed Mode"
        icon_template: mdi:speedometer


##################################################
{'fraction_non_alphanumeric': 0.1610348468848997, 'fraction_numerical': 0.004223864836325237, 'mean_word_length': 3.3545977011494252, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '7178395', 'n_tokens_mistral': 2393, 'n_tokens_neox': 2329, 'n_words': 331}