Remove humidity, wifi from dashboard, add last sync time to dashboard
This commit is contained in:
parent
3415fa68df
commit
54e9dd2144
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
|
@ -120,6 +120,11 @@ globals:
|
|||
type: "MAX1704xSensor*"
|
||||
restore_value: no
|
||||
|
||||
time:
|
||||
- platform: sntp
|
||||
id: sntp_time
|
||||
servers: 10.5.5.2
|
||||
|
||||
binary_sensor:
|
||||
- platform: status
|
||||
name: "Status"
|
||||
|
@ -131,6 +136,7 @@ sensor:
|
|||
update_interval: 3min
|
||||
unit_of_measurement: "dB"
|
||||
accuracy_decimals: 1
|
||||
expire_after: 4h
|
||||
- platform: custom
|
||||
lambda: |-
|
||||
SHT1xSensor* sht1x = new SHT1xSensor();
|
||||
|
@ -142,14 +148,17 @@ sensor:
|
|||
id: Temperature_C
|
||||
unit_of_measurement: "°C"
|
||||
accuracy_decimals: 1
|
||||
expire_after: 4h
|
||||
- name: "Temperature_F"
|
||||
id: Temperature_F
|
||||
unit_of_measurement: "°F"
|
||||
accuracy_decimals: 1
|
||||
expire_after: 4h
|
||||
- name: "Humidity"
|
||||
id: Humidity
|
||||
unit_of_measurement: "%"
|
||||
accuracy_decimals: 1
|
||||
expire_after: 4h
|
||||
- platform: custom
|
||||
lambda: |-
|
||||
MAX1704xSensor* max1704x = new MAX1704xSensor();
|
||||
|
@ -161,17 +170,22 @@ sensor:
|
|||
id: Battery_Voltage
|
||||
unit_of_measurement: "V"
|
||||
accuracy_decimals: 2
|
||||
expire_after: 4h
|
||||
- name: "Battery_Level"
|
||||
id: Battery_Level
|
||||
unit_of_measurement: "%"
|
||||
accuracy_decimals: 1
|
||||
expire_after: 4h
|
||||
- name: "Battery_Sleeping"
|
||||
id: Battery_Sleeping
|
||||
expire_after: 4h
|
||||
- name: "Battery_Alert"
|
||||
id: Battery_Alert
|
||||
expire_after: 4h
|
||||
- name: "Battery_Threshold"
|
||||
id: Battery_Threshold
|
||||
accuracy_decimals: 0
|
||||
expire_after: 4h
|
||||
|
||||
# 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
|
||||
|
@ -211,15 +225,12 @@ display:
|
|||
else {
|
||||
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
|
||||
it.image(0, 32, id(thermometer));
|
||||
it.printf(32, 48, id(deja_vu_mono), "%.1f°F", id(Temperature_F).state);
|
||||
// Humidity
|
||||
it.image(148, 32, id(humidity));
|
||||
it.printf(185, 48, id(deja_vu_mono), "%.1f%%", id(Humidity).state);
|
||||
it.image(116, 0, id(thermometer)); // 148, 0
|
||||
it.printf(153, 16, id(deja_vu_mono), "%.1f°F", id(Temperature_F).state);
|
||||
// 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());
|
||||
// Plants
|
||||
it.image(0, 64, id(inverted_cat_nip));
|
||||
it.image(37, 64, id(inverted_christmas_cactus));
|
||||
|
@ -276,9 +287,6 @@ image:
|
|||
- file: graphics/noun_humidity_1762738.png # temp + humidity
|
||||
id: temp_humidity
|
||||
resize: 32x32
|
||||
- file: graphics/noun_humidity_2280622.png # humidity
|
||||
id: humidity
|
||||
resize: 32x32
|
||||
- file: graphics/noun_leaf_1153077.png # catnip
|
||||
id: cat_nip
|
||||
resize: 32x32
|
||||
|
@ -288,8 +296,8 @@ image:
|
|||
- file: graphics/noun_Thermometer_217722.png # thermometer
|
||||
id: thermometer
|
||||
resize: 32x32
|
||||
- file: graphics/noun_wifi_2201334.png # wifi
|
||||
id: wifi_icon
|
||||
- file: graphics/noun_update_2346502.png # last sync
|
||||
id: last_sync_icon
|
||||
resize: 32x32
|
||||
- file: graphics/inverted_noun_Tarragon_499800.png # inverted tarragon
|
||||
id: inverted_tarragon
|
||||
|
|
Loading…
Reference in New Issue