Skip to content
Snippets Groups Projects
Select Git revision
  • 636ed214b59fbc170e82938ce74f1bbd56e776ba
  • master default protected
2 results

platformio.ini

Blame
  • propbox.yaml 7.28 KiB
    substitutions:
      devicename: "propbox"
      comment: "Propagator Monitor"
    
      # Propbox Nodes
      hostname_light: "propbox-light.${domain}"
      hostname_fan: "propbox-fan.${domain}"
    
      # 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 * * * * *"
    
    packages:
      device_base: !include base.yaml
    
    esp32:
      board: esp32dev
    
    i2c:
      sda: 21
      scl: 22
    
    dallas:
      - pin: GPIO23
        update_interval: 5s
    
    http_request:
      id: http_request_data
      useragent: esphome/${devicename}
      timeout: 10s
    
    sensor:
      - platform: bme280
        address: 0x76
        update_interval: 5s
        temperature:
          id: temperature
          name: "Sensor: Temperature"
          accuracy_decimals: 2
          on_value:
            then:
              - script.execute: fan_control
        humidity:
          id: humidity
          name: "Sensor: Humidity"
          accuracy_decimals: 2
          on_value:
            then:
              - script.execute: fan_control
        pressure:
          id: pressure
          accuracy_decimals: 2
          name: "Sensor: Pressure"
    
      - platform: dallas
        index: 0
        id: temperature_water
        name: "Sensor: Water Temperature"
        accuracy_decimals: 2
    
      # requires: https://github.com/esphome/feature-requests/issues/1746
      # - platform: template
      #   id: sensor_temperature_max
      #   name: "temperature_max"