Set polling interval to 1h for ota mode, add ota mode icons and similar
This commit is contained in:
parent
54e9dd2144
commit
28fc1b72fd
Binary file not shown.
After Width: | Height: | Size: 7.5 KiB |
|
@ -13,7 +13,7 @@ class MAX1704xSensor : public PollingComponent, public sensor::Sensor {
|
||||||
sensor::Sensor *getThresholdSensor = new sensor::Sensor();
|
sensor::Sensor *getThresholdSensor = new sensor::Sensor();
|
||||||
|
|
||||||
// 4294967295UL == never per sources
|
// 4294967295UL == never per sources
|
||||||
MAX1704xSensor() : PollingComponent(4294967295UL) { }
|
MAX1704xSensor() : PollingComponent(60*60*1000) { }
|
||||||
|
|
||||||
void setup() override {
|
void setup() override {
|
||||||
_fuelGauge1.begin();
|
_fuelGauge1.begin();
|
||||||
|
|
|
@ -49,6 +49,7 @@ esphome:
|
||||||
delay(500);
|
delay(500);
|
||||||
ESP_LOGD("on_boot: -10:", "END delay(500)");
|
ESP_LOGD("on_boot: -10:", "END delay(500)");
|
||||||
ESP_LOGD("on_boot: -10:", "Display");
|
ESP_LOGD("on_boot: -10:", "Display");
|
||||||
|
id(display_main).clear();
|
||||||
id(display_main).update();
|
id(display_main).update();
|
||||||
ESP_LOGD("on_boot: -10:", "END Display");
|
ESP_LOGD("on_boot: -10:", "END Display");
|
||||||
ESP_LOGD("on_boot: -10:", "END custom");
|
ESP_LOGD("on_boot: -10:", "END custom");
|
||||||
|
@ -84,7 +85,7 @@ deep_sleep:
|
||||||
# Enable logging
|
# Enable logging
|
||||||
logger:
|
logger:
|
||||||
level: DEBUG # Flip to ERROR for production deployments
|
level: DEBUG # Flip to ERROR for production deployments
|
||||||
baud_rate: 0 # Disable UART logging
|
baud_rate: 115200 # Disable UART logging
|
||||||
|
|
||||||
# Enable Home Assistant API
|
# Enable Home Assistant API
|
||||||
#api:
|
#api:
|
||||||
|
@ -198,7 +199,7 @@ display:
|
||||||
reset_pin: 14
|
reset_pin: 14
|
||||||
model: 2.90in
|
model: 2.90in
|
||||||
rotation: 90
|
rotation: 90
|
||||||
update_interval: 2min
|
update_interval: 1h
|
||||||
lambda: |-
|
lambda: |-
|
||||||
delay(60*1000);
|
delay(60*1000);
|
||||||
// Clear
|
// Clear
|
||||||
|
@ -228,6 +229,8 @@ display:
|
||||||
// Temperature
|
// Temperature
|
||||||
it.image(116, 0, id(thermometer)); // 148, 0
|
it.image(116, 0, id(thermometer)); // 148, 0
|
||||||
it.printf(153, 16, id(deja_vu_mono), "%.1f°F", id(Temperature_F).state);
|
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
|
// Last update
|
||||||
it.image(0, 32, id(last_sync_icon));
|
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());
|
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(185, 96, id(poinsettia));
|
||||||
it.image(222, 96, id(bamboo));
|
it.image(222, 96, id(bamboo));
|
||||||
it.image(259, 96, id(vase));
|
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));
|
it.image(259, 32, id(disabled_vase));
|
||||||
|
|
||||||
font:
|
font:
|
||||||
|
@ -347,4 +350,7 @@ image:
|
||||||
- file: graphics/disabled_noun_Tulip_2510353.png # disabled tulip
|
- file: graphics/disabled_noun_Tulip_2510353.png # disabled tulip
|
||||||
id: disabled_tulip
|
id: disabled_tulip
|
||||||
resize: 32x32
|
resize: 32x32
|
||||||
|
- file: graphics/noun_Settings Download_1854756.png # ota mode enabled
|
||||||
|
id: ota_mode_enabled
|
||||||
|
resize: 32x32
|
||||||
|
|
|
@ -17,7 +17,7 @@ class SHT1xSensor : public PollingComponent, public sensor::Sensor {
|
||||||
sensor::Sensor *temp_f_sensor = new sensor::Sensor();
|
sensor::Sensor *temp_f_sensor = new sensor::Sensor();
|
||||||
sensor::Sensor *humidity_sensor = new sensor::Sensor();
|
sensor::Sensor *humidity_sensor = new sensor::Sensor();
|
||||||
|
|
||||||
SHT1xSensor() : PollingComponent(4294967295UL) { }
|
SHT1xSensor() : PollingComponent(60*60*1000) { }
|
||||||
|
|
||||||
void setup() override {
|
void setup() override {
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue