20240410-21:12
This commit is contained in:
@@ -124,15 +124,6 @@ font:
|
||||
id: font_month
|
||||
size: 40
|
||||
|
||||
# - file: fonts/materialdesignicons-webfont.ttf
|
||||
# id: font_wifi
|
||||
# size: 20
|
||||
# glyphs:
|
||||
# - "\U000F091F"
|
||||
# - "\U000F0922"
|
||||
# - "\U000F0925"
|
||||
# - "\U000F0928"
|
||||
# - "\U000F092B"
|
||||
|
||||
# Include Material Design Icons font
|
||||
# Thanks to https://community.home-assistant.io/t/display-materialdesign-icons-on-esphome-attached-to-screen/199790/16
|
||||
@@ -173,18 +164,6 @@ font:
|
||||
- "\U000f010b" # mdi-car
|
||||
- "\U000f0819" # trash
|
||||
|
||||
# - file: 'fonts/materialdesignicons-webfont.ttf'
|
||||
# id: font_mdi_medlarge
|
||||
# size: 60
|
||||
# glyphs:
|
||||
# - "\U000f0f64" # new moon
|
||||
# - "\U000f0f67" # mdi-moon-waxing-crescent
|
||||
# - "\U000F0F61" # mdi-moon-first-quarter
|
||||
# - "\U000F0F68" # mdi-moon-waxing-gibbous
|
||||
# - "\U000F0F62" # mdi-moon-full
|
||||
# - "\U000F0F66" # mdi-moon-waning-gibbous
|
||||
# - "\U000F0F63" # mdi-moon-last-quarter
|
||||
# - "\U000F0F65" # mdi-moon-waning-crescent
|
||||
- file: 'fonts/materialdesignicons-webfont.ttf'
|
||||
id: font_mdi_medium
|
||||
size: 36
|
||||
@@ -203,7 +182,7 @@ sensor:
|
||||
id: weather_temperature
|
||||
on_value:
|
||||
then:
|
||||
- lambda: 'id(data_updated) = true;'
|
||||
- lambda: 'id(data_updated) = true;'
|
||||
|
||||
- !include { file: sensors/homeassistant.yaml, vars: { id: weather_temperature_0, entity_id: sensor.e_ink_display_data }}
|
||||
- !include { file: sensors/homeassistant.yaml, vars: { id: weather_temperature_1, entity_id: sensor.e_ink_display_data }}
|
||||
@@ -246,9 +225,9 @@ sensor:
|
||||
unit_of_measurement: "refreshes"
|
||||
|
||||
text_sensor:
|
||||
- platform: homeassistant
|
||||
entity_id: weather.forecast_home
|
||||
id: weather_state
|
||||
# - platform: homeassistant
|
||||
# entity_id: weather.forecast_home
|
||||
# id: weather_state
|
||||
|
||||
- !include { file: sensors/homeassistant.yaml, vars: { id: weather_condition_now, entity_id: sensor.e_ink_display_data }}
|
||||
- !include { file: sensors/homeassistant.yaml, vars: { id: weather_condition_0, entity_id: sensor.e_ink_display_data}}
|
||||
@@ -265,19 +244,6 @@ text_sensor:
|
||||
- !include { file: sensors/homeassistant.yaml, vars: { id: travel_ASML_name, entity_id: sensor.e_ink_display_data }}
|
||||
- !include { file: sensors/homeassistant.yaml, vars: { id: travel_euretco_name, entity_id: sensor.e_ink_display_data }}
|
||||
|
||||
- platform: homeassistant
|
||||
entity_id: sensor.moon_phase
|
||||
#attribute: icon
|
||||
id: moon_phase
|
||||
on_value:
|
||||
then:
|
||||
- lambda: 'id(data_updated) = true;'
|
||||
|
||||
- platform: homeassistant
|
||||
entity_id: sensor.moon
|
||||
id: moon
|
||||
internal: true
|
||||
|
||||
# Sunrise
|
||||
- platform: sun
|
||||
type: sunrise
|
||||
@@ -295,24 +261,6 @@ text_sensor:
|
||||
then:
|
||||
- lambda: 'id(data_updated) = true;'
|
||||
|
||||
- platform: wifi_info
|
||||
ssid:
|
||||
name: "${device_name} Connected SSID"
|
||||
id: ssid
|
||||
icon: mdi:wifi-strength-2
|
||||
entity_category: diagnostic
|
||||
|
||||
bssid:
|
||||
name: "${device_name} Connected BSSID"
|
||||
id: bssid
|
||||
icon: mdi:wifi-strength-2
|
||||
entity_category: diagnostic
|
||||
|
||||
mac_address:
|
||||
name: "${device_name} WiFi Mac Address"
|
||||
id: macaddress
|
||||
icon: mdi:wifi-strength-2
|
||||
entity_category: diagnostic
|
||||
|
||||
- platform: sun
|
||||
id: sunrise
|
||||
@@ -361,12 +309,13 @@ display:
|
||||
- platform: waveshare_epaper
|
||||
cs_pin: GPIO27
|
||||
dc_pin: GPIO16
|
||||
busy_pin: GPIO25
|
||||
busy_pin:
|
||||
number: 25
|
||||
inverted: True
|
||||
reset_pin: GPIO26
|
||||
model: 7.50in-bV2
|
||||
#model: 7.50inv2b
|
||||
#model: 7.50inv2
|
||||
#model: 7.50inV2alt
|
||||
reset_duration: 2ms
|
||||
model: 7.50in-bv2-rb
|
||||
#model: 7.50in-bV2
|
||||
update_interval: 30min
|
||||
id: eink_display
|
||||
rotation: 90°
|
||||
@@ -379,39 +328,9 @@ display:
|
||||
|
||||
int wifi_x_a = xres-x_pad;
|
||||
int wifi_y_a = yres-y_pad+2;
|
||||
|
||||
|
||||
|
||||
// Fill background in black.
|
||||
it.fill(COLOR_OFF);
|
||||
|
||||
// wifi strength
|
||||
// if (id(sensor_wifi_signal).has_state())
|
||||
// {
|
||||
// if (id(sensor_wifi_signal).state >= -50) {
|
||||
// //Excellent
|
||||
// it.print(wifi_x_a, wifi_y_a, id(font_wifi), TextAlign::BASELINE_RIGHT, "");
|
||||
// ESP_LOGI("WiFi", "Excellent");
|
||||
// } else if (id(sensor_wifi_signal).state >= -60) {
|
||||
// //Good
|
||||
// it.print(wifi_x_a, wifi_y_a, id(font_wifi), TextAlign::BASELINE_RIGHT, "");
|
||||
// ESP_LOGI("WiFi", "Good");
|
||||
// } else if (id(sensor_wifi_signal).state >= -67) {
|
||||
// //Fair
|
||||
// it.print(wifi_x_a, wifi_y_a, id(font_wifi), TextAlign::BASELINE_RIGHT, "");
|
||||
// ESP_LOGI("WiFi", "Fair");
|
||||
// } else if (id(sensor_wifi_signal).state >= -70) {
|
||||
// //Weak
|
||||
// it.print(wifi_x_a, wifi_y_a, id(font_wifi), TextAlign::BASELINE_RIGHT, "");
|
||||
// ESP_LOGI("WiFi", "Weak");
|
||||
// } else {
|
||||
// //Unlikely working signal
|
||||
// it.print(wifi_x_a, wifi_y_a, id(font_wifi), TextAlign::BASELINE_RIGHT, "");
|
||||
// ESP_LOGI("WiFi", "Unlikely");
|
||||
// }
|
||||
//}
|
||||
|
||||
|
||||
// clock section
|
||||
int clk_yoffset = 50;
|
||||
int clk_xoffset = 310;
|
||||
@@ -437,7 +356,7 @@ display:
|
||||
if(id(sun_sunset).has_state ()) {
|
||||
it.printf(385, sry_offset, id(font_small_bold), TextAlign::CENTER_RIGHT, "%s", id(sun_sunset).state.c_str());
|
||||
}
|
||||
// Moonphae
|
||||
// Moonphase
|
||||
//it.printf(265, sry_offset, id(font_mdi_medlarge), TextAlign::CENTER, "%s", moon_icon_map[id(moon_phase).state.c_str()].c_str());
|
||||
|
||||
it.line(30, sry_offset+30, 420, sry_offset+30);
|
||||
|
||||
Reference in New Issue
Block a user