diff --git a/hardware/esphome/plant_dashboard/graphics/noun_Settings Download_1854756.png b/hardware/esphome/plant_dashboard/graphics/noun_Settings Download_1854756.png new file mode 100644 index 0000000..c12477e Binary files /dev/null and b/hardware/esphome/plant_dashboard/graphics/noun_Settings Download_1854756.png differ diff --git a/hardware/esphome/plant_dashboard/max1704xsensor.h b/hardware/esphome/plant_dashboard/max1704xsensor.h index 5be7131..5c103b8 100644 --- a/hardware/esphome/plant_dashboard/max1704xsensor.h +++ b/hardware/esphome/plant_dashboard/max1704xsensor.h @@ -13,7 +13,7 @@ class MAX1704xSensor : public PollingComponent, public sensor::Sensor { sensor::Sensor *getThresholdSensor = new sensor::Sensor(); // 4294967295UL == never per sources - MAX1704xSensor() : PollingComponent(4294967295UL) { } + MAX1704xSensor() : PollingComponent(60*60*1000) { } void setup() override { _fuelGauge1.begin(); diff --git a/hardware/esphome/plant_dashboard/plant_dashboard.yaml b/hardware/esphome/plant_dashboard/plant_dashboard.yaml index cd6aadb..89ed783 100644 --- a/hardware/esphome/plant_dashboard/plant_dashboard.yaml +++ b/hardware/esphome/plant_dashboard/plant_dashboard.yaml @@ -49,6 +49,7 @@ esphome: delay(500); ESP_LOGD("on_boot: -10:", "END delay(500)"); ESP_LOGD("on_boot: -10:", "Display"); + id(display_main).clear(); id(display_main).update(); ESP_LOGD("on_boot: -10:", "END Display"); ESP_LOGD("on_boot: -10:", "END custom"); @@ -84,7 +85,7 @@ deep_sleep: # Enable logging logger: level: DEBUG # Flip to ERROR for production deployments - baud_rate: 0 # Disable UART logging + baud_rate: 115200 # Disable UART logging # Enable Home Assistant API #api: @@ -198,7 +199,7 @@ display: reset_pin: 14 model: 2.90in rotation: 90 - update_interval: 2min + update_interval: 1h lambda: |- delay(60*1000); // Clear @@ -228,6 +229,8 @@ display: // Temperature it.image(116, 0, id(thermometer)); // 148, 0 it.printf(153, 16, id(deja_vu_mono), "%.1f°F", id(Temperature_F).state); + // OTA Mode + it.image(259, 0, id(ota_mode_enabled)); // Last update it.image(0, 32, id(last_sync_icon)); it.strftime(32, 39, id(deja_vu_mono), "%Y-%m-%d %H:%M", id(sntp_time).now()); @@ -248,7 +251,7 @@ display: it.image(185, 96, id(poinsettia)); it.image(222, 96, id(bamboo)); it.image(259, 96, id(vase)); - it.image(259, 0, id(disabled_tulip)); + it.image(222, 32, id(disabled_tulip)); it.image(259, 32, id(disabled_vase)); font: @@ -347,4 +350,7 @@ image: - file: graphics/disabled_noun_Tulip_2510353.png # disabled tulip id: disabled_tulip resize: 32x32 + - file: graphics/noun_Settings Download_1854756.png # ota mode enabled + id: ota_mode_enabled + resize: 32x32 \ No newline at end of file diff --git a/hardware/esphome/plant_dashboard/sht1x.h b/hardware/esphome/plant_dashboard/sht1x.h index e0b0674..5207ced 100644 --- a/hardware/esphome/plant_dashboard/sht1x.h +++ b/hardware/esphome/plant_dashboard/sht1x.h @@ -17,7 +17,7 @@ class SHT1xSensor : public PollingComponent, public sensor::Sensor { sensor::Sensor *temp_f_sensor = new sensor::Sensor(); sensor::Sensor *humidity_sensor = new sensor::Sensor(); - SHT1xSensor() : PollingComponent(4294967295UL) { } + SHT1xSensor() : PollingComponent(60*60*1000) { } void setup() override { }