Select Git revision
propbox.yaml
propbox.yaml 1.29 KiB
substitutions:
devicename: "propbox"
comment: "Propagator Controller"
# Propbox Nodes
hostname_light: "propbox-light.${domain}"
hostname_fan: "propbox-fan.${domain}"
# Overrides
bme280_script: "fan_control"
packages:
base: !include packages/base.yaml
esp32: !include packages/esp32.yaml
bme280: !include packages/bme280.yaml
ds18b20: !include packages/ds18b20.yaml
fan: !include packages/fan.yaml
light: !include packages/light.yaml
time:
- platform: sntp
id: sntp_time
timezone: ${timezone}
update_interval: 1h
on_time:
- cron: ${schedule_grow_on}
then:
- lambda: |-
if (id(schedule).state == "Grow") {
id(propbox_light).turn_on();
}
- cron: ${schedule_grow_off}
then:
- lambda: |-
if (id(schedule).state == "Grow") {
id(propbox_light).turn_off();
}
- cron: ${schedule_bloom_on}
then:
- lambda: |-
if (id(schedule).state == "Bloom") {
id(propbox_light).turn_on();
}
- cron: ${schedule_bloom_off}
then:
- lambda: |-
if (id(schedule).state == "Bloom") {
id(propbox_light).turn_off();
}