Skip to content
Snippets Groups Projects
Select Git revision
2 results Searching

propbox.yaml

Blame
  • propbox.yaml 5.92 KiB
    substitutions:
      devicename: "propbox"
      domain: "faked.local"
      comment: "Propagator Monitor"
      project_name: "groovy.propbox"
      project_version: "1.0"
    
      # Propbox Nodes
      hostname_light: "propbox-light.${domain}"
      hostname_fan: "propbox-fan.${domain}"
    
      # Sensors
      ble_sensor_mac: "A4:C1:38:47:14:50"
    
      # Schedules
      #schedule_grow_on: "0 0 3 * * *"
      #schedule_grow_off: "0 0 21 * * *"
      #schedule_bloom_on: "0 0 6 * * *"
      #schedule_bloom_off: "0 0 18 * * *"
      schedule_grow_on: "5,15,25,35,45,55 * * * * *"
      schedule_grow_off: "0,10,20,30,40,50 * * * * *"
      schedule_bloom_on: "0 * * * * *"
      schedule_bloom_off: "30 * * * * *"
    
      temperature_fan_on: "27.0"
      temperature_fan_off: "21.0"
      humidity_fan_on: "60"
      humidity_fan_off: "40"
    
    <<: !include common.yaml
    
    esp32:
      board: esp32dev
    
    esp32_ble_tracker:
    
    sensor:
    ### Default Sensors
    
      - platform: wifi_signal
        name: "Wifi Signal"
        update_interval: 60s
    
      - platform: uptime
        name: "Uptime"
        update_interval: 60s
    
    ### Specific Sensors
    
      - platform: pvvx_mithermometer
        mac_address: ${ble_sensor_mac}
        battery_level:
          id: ble_battery_level
          name: "BLE Battery Level"
        battery_voltage:
          id: ble_battery_voltage
          name: "BLE Battery Voltage"
        temperature:
          id: ble_temperature
          name: "Temperature"
          on_value_range:
            - above: ${temperature_fan_on}
              then:
                - switch.turn_on: propbox_fan
              # then:
              #   - if:
              #       condition:
              #         and:
              #           - lambda: return (x > ${humidity_fan_off});
              #           - switch.is_off: propbox_fan