ESP32 Diagnostic Tab

Good afternoon! I already had a Smartreader ESP32 ready-made PCB for the P1 meter.
Today I started with an ESP32 PCB and I want to connect 2 bed sensors to it, I have already made the config.
Now I saw in the ESP dashboard that the smart reader has a diagnosis tab and the new ESP32 does not. Can I configure this somewhere so that I can also see the connection information for the ESP32 PCB?

Each one of those entities is something you have to manually add to your YAML. Just Google each and you’ll see how to do it; I have a handful of those types of sensors/entities that I add to all my ESPHome projects.

1 Like

Thank you, it worked. Sometimes just taking a closer look can make a lot clear. I was able to find everything I needed here.

https://esphome.io/components/wifi.html

While the link describes how to get the connection information, it does not describe how to get the “Diagnose” and other sensor-categories :wink:

If you want to put all those information into an diagnostic “Tab”, you should add the entity_category information to the config:

entity_category: "diagnostic"

the whole sensor should look like this then.

sensor:
  - platform: wifi_signal
    name: "WiFi Signal dB"
    id: wifi_signal_db
    update_interval: 60s
    entity_category: "diagnostic"

This might just be a relevant information for others that might find this thread ^^

1 Like

Very true, sorry! Below is the code for anyone who wants to add this with a restart button.

text_sensor:
  - platform: wifi_info
    ip_address:
      name: ${name} IP
    ssid:
      name: ${name} SSID
  - platform: version
    name: ${name} Version
    hide_timestamp: true
    disabled_by_default: false
    icon: mdi:new-box
    entity_category: diagnostic

switch:
  - platform: restart
    name: ${name} Restart

sensor:
  - platform: wifi_signal # Reports the WiFi signal strength/RSSI in dB
    name: "${name} Signaal dB"
    id: wifi_signal_db
    update_interval: 60s
    entity_category: "diagnostic"
  - platform: copy # Reports the WiFi signal strength in %
    source_id: wifi_signal_db
    name: "${name} Signaal &"
    filters:
      - lambda: return min(max(2 * (x + 100.0), 0.0), 100.0);
    unit_of_measurement: " %"
    entity_category: "diagnostic"
    device_class: ""
  - platform: uptime
    name: ${name} Uptime
    disabled_by_default: false
    force_update: false
    unit_of_measurement: s
    icon: mdi:timer-outline
    accuracy_decimals: 0
    device_class: duration
    state_class: total_increasing
    entity_category: diagnostic
    update_interval: 60s