Skip to content
Snippets Groups Projects
Select Git revision
  • 476c5f16773cf1303d594cca8bccb6cb2b601a06
  • main default protected
  • growscreen
3 results

fan.yaml

Blame
  • fan.yaml 5.01 KiB
    output:
      - platform: ledc
        pin: GPIO13
        id: fan_dimmer
        frequency: 223Hz
        min_power: 0.36
        max_power: 0.78
        zero_means_zero: true
    
    fan:
      - platform: speed
        output: fan_dimmer
        name: "Extraction Fan"
    
    prometheus:
      relabel:
        propbox_fan:
          id: fan
          name: Fan
    
    sensor:
      - platform: template
        name: "temperature_max"
        lambda: return atoi(id(temperature_max).state.c_str());
        internal: true
      - platform: template
        name: "temperature_hysteresis"
        lambda: return atoi(id(temperature_hysteresis).state.c_str());
        internal: true
      - platform: template
        name: "temperature_min"
        lambda: return atoi(id(temperature_min).state.c_str());
        internal: true
      - platform: template
        name: "humidity_max"
        lambda: return atoi(id(humidity_max).state.c_str());
        internal: true
      - platform: template
        name: "humidity_hysteresis"
        lambda: return atoi(id(humidity_hysteresis).state.c_str());
        internal: true
      - platform: template
        name: "humidity_min"
        lambda: return atoi(id(humidity_min).state.c_str());
        internal: true
    
    select:
      - platform: template
        id: temperature_max
        name: "Fan: Temperature On"
        options: ["21", "22", "23", "24", "25", "26", "27", "28", "29", "30"]
        initial_option: "27"
        optimistic: true
        restore_value: true
      - platform: template
        id: temperature_hysteresis
        name: "Fan: Temperature Hysteresis"
        options: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"]
        initial_option: "1"
        optimistic: true
        restore_value: true
      - platform: template
        id: temperature_min
        name: "Fan: Temperature Off"
        options: ["15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25"]
        initial_option: "21"
        optimistic: true
        restore_value: true
      - platform: template
        id: humidity_max