Expose sensors to HA

This commit is contained in:
Edward Firmo
2024-01-21 23:13:38 +01:00
parent 1c2cbb9fd2
commit 98c6cf9849
3 changed files with 17 additions and 28 deletions

View File

@@ -21,22 +21,12 @@ button:
icon: mdi:file-sync
id: tft_reparse_off
entity_category: config
internal: False
disabled_by_default: true
on_press:
- logger.log: "Button pressed: Exit reparse"
- script.execute: exit_reparse
##### UPDATE TFT BLANK DISPLAY #####
- name: ${name} Update TFT display (blank)
platform: template
icon: mdi:file-sync
id: tft_update_blank
entity_category: config
on_press:
- lambda: |-
static const char *const TAG = "button.tft_update_blank";
ESP_LOGD(TAG, "Button pressed: Update TFT display (blank)");
upload_tft->execute("${nextion_blank_url}");
captive_portal:
sensor:
@@ -70,7 +60,9 @@ text_sensor:
##### ESPhome version used to compile the app #####
- name: ${name} ESPhome Version
platform: version
disabled_by_default: true
disabled_by_default: false
internal: false
icon: mdi:tag-text-outline
- platform: wifi_info
ip_address: