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

fan.yaml

Blame
  • fan.yaml 3.92 KiB
    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"]
        initial_option: "1"
        optimistic: true
        restore_value: true
      - platform: template
        id: temperature_min
        name: "Fan: Temperature Off"
        options: ["19", "20", "21", "22", "23", "24", "25"]
        initial_option: "21"
        optimistic: true
        restore_value: true
      - platform: template
        id: humidity_max
        name: "Fan: Humidity On"
        options: ["40", "45", "50", "55", "60", "65", "70", "75", "80"]
        initial_option: "70"
        optimistic: true
        restore_value: true
      - platform: template
        id: humidity_hysteresis
        name: "Fan: Humidity Hysteresis"
        options: ["1", "2", "3", "4", "5", "10", "15"]
        initial_option: "5"
        optimistic: true
        restore_value: true
      - platform: template
        id: humidity_min