Remove humidity, wifi from dashboard, add last sync time to dashboard

This commit is contained in:
KemoNine 2019-05-20 17:59:10 -04:00
parent 3415fa68df
commit 54e9dd2144
2 changed files with 21 additions and 13 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

@ -120,6 +120,11 @@ globals:
type: "MAX1704xSensor*" type: "MAX1704xSensor*"
restore_value: no restore_value: no
time:
- platform: sntp
id: sntp_time
servers: 10.5.5.2
binary_sensor: binary_sensor:
- platform: status - platform: status
name: "Status" name: "Status"
@ -131,6 +136,7 @@ sensor:
update_interval: 3min update_interval: 3min
unit_of_measurement: "dB" unit_of_measurement: "dB"
accuracy_decimals: 1 accuracy_decimals: 1
expire_after: 4h
- platform: custom - platform: custom
lambda: |- lambda: |-
SHT1xSensor* sht1x = new SHT1xSensor(); SHT1xSensor* sht1x = new SHT1xSensor();
@ -142,14 +148,17 @@ sensor:
id: Temperature_C id: Temperature_C
unit_of_measurement: "°C" unit_of_measurement: "°C"
accuracy_decimals: 1 accuracy_decimals: 1
expire_after: 4h
- name: "Temperature_F" - name: "Temperature_F"
id: Temperature_F id: Temperature_F
unit_of_measurement: "°F" unit_of_measurement: "°F"
accuracy_decimals: 1 accuracy_decimals: 1
expire_after: 4h
- name: "Humidity" - name: "Humidity"
id: Humidity id: Humidity
unit_of_measurement: "%" unit_of_measurement: "%"
accuracy_decimals: 1 accuracy_decimals: 1
expire_after: 4h
- platform: custom - platform: custom
lambda: |- lambda: |-
MAX1704xSensor* max1704x = new MAX1704xSensor(); MAX1704xSensor* max1704x = new MAX1704xSensor();
@ -161,17 +170,22 @@ sensor:
id: Battery_Voltage id: Battery_Voltage
unit_of_measurement: "V" unit_of_measurement: "V"
accuracy_decimals: 2 accuracy_decimals: 2
expire_after: 4h
- name: "Battery_Level" - name: "Battery_Level"
id: Battery_Level id: Battery_Level
unit_of_measurement: "%" unit_of_measurement: "%"
accuracy_decimals: 1 accuracy_decimals: 1
expire_after: 4h
- name: "Battery_Sleeping" - name: "Battery_Sleeping"
id: Battery_Sleeping id: Battery_Sleeping
expire_after: 4h
- name: "Battery_Alert" - name: "Battery_Alert"
id: Battery_Alert id: Battery_Alert
expire_after: 4h
- name: "Battery_Threshold" - name: "Battery_Threshold"
id: Battery_Threshold id: Battery_Threshold
accuracy_decimals: 0 accuracy_decimals: 0
expire_after: 4h
# 2.9" Waveshare e-ink setup # 2.9" Waveshare e-ink setup
# BUSY -> 21, RST -> 14, DC -> 15, CS -> 27, CLK -> SCK(5), DIN -> MOSI(18), GND -> GND, 3.3V -> 3.3V # BUSY -> 21, RST -> 14, DC -> 15, CS -> 27, CLK -> SCK(5), DIN -> MOSI(18), GND -> GND, 3.3V -> 3.3V
@ -211,15 +225,12 @@ display:
else { else {
it.printf(32, 16, id(deja_vu_mono), "%.1f%%", id(Battery_Level).state); it.printf(32, 16, id(deja_vu_mono), "%.1f%%", id(Battery_Level).state);
} }
// WiFi
it.image(148, 0, id(wifi_icon));
it.printf(185, 16, id(deja_vu_mono), "%.1fdB", id(sensor_wifi_signal).state);
// Temperature // Temperature
it.image(0, 32, id(thermometer)); it.image(116, 0, id(thermometer)); // 148, 0
it.printf(32, 48, id(deja_vu_mono), "%.1f°F", id(Temperature_F).state); it.printf(153, 16, id(deja_vu_mono), "%.1f°F", id(Temperature_F).state);
// Humidity // Last update
it.image(148, 32, id(humidity)); it.image(0, 32, id(last_sync_icon));
it.printf(185, 48, id(deja_vu_mono), "%.1f%%", id(Humidity).state); it.strftime(32, 39, id(deja_vu_mono), "%Y-%m-%d %H:%M", id(sntp_time).now());
// Plants // Plants
it.image(0, 64, id(inverted_cat_nip)); it.image(0, 64, id(inverted_cat_nip));
it.image(37, 64, id(inverted_christmas_cactus)); it.image(37, 64, id(inverted_christmas_cactus));
@ -276,9 +287,6 @@ image:
- file: graphics/noun_humidity_1762738.png # temp + humidity - file: graphics/noun_humidity_1762738.png # temp + humidity
id: temp_humidity id: temp_humidity
resize: 32x32 resize: 32x32
- file: graphics/noun_humidity_2280622.png # humidity
id: humidity
resize: 32x32
- file: graphics/noun_leaf_1153077.png # catnip - file: graphics/noun_leaf_1153077.png # catnip
id: cat_nip id: cat_nip
resize: 32x32 resize: 32x32
@ -288,8 +296,8 @@ image:
- file: graphics/noun_Thermometer_217722.png # thermometer - file: graphics/noun_Thermometer_217722.png # thermometer
id: thermometer id: thermometer
resize: 32x32 resize: 32x32
- file: graphics/noun_wifi_2201334.png # wifi - file: graphics/noun_update_2346502.png # last sync
id: wifi_icon id: last_sync_icon
resize: 32x32 resize: 32x32
- file: graphics/inverted_noun_Tarragon_499800.png # inverted tarragon - file: graphics/inverted_noun_Tarragon_499800.png # inverted tarragon
id: inverted_tarragon id: inverted_tarragon