use a TTGO TFT LCD to display temperature graphs and control a water heater

4 Responses

  1. Erik Schott says:

    Excellent tutorial, and working flawless. Simetimes i lose wifi cionbnection, si i woukld like to show th ip adress of the TTGO. Found out that you should use text sensor for wifi but i can;t get it to work. Any suggestions.

    • roger says:

      Cheers Erik. Knowing the ip address might be useful. Displaying the wifi signal strength might be useful too.

      The text sensor instructions could be more helpful and provide examples. My suggestion is to send the IP address to HA and then use ‘- platform: homeassistant’ to get it back and to display it in the lamdba line with other variables. If that’s not clear shout back.

      text_sensor:
      – platform: wifi_info
      ip_address:
      name: ESPIPAddress

      AND THEN
      sensor:
      – platform: homeassistant
      id: ipaddress
      entity_id: sensor.ESPIPAddress
      internal: true

  2. Ned Duggan says:

    You can get the IPaddress directly within EspHome by giving the WiFi component an ID:

    —-
    wifi:
    id: wifi_wificomponent # Create a label for the WiFi object so we can refer to it.
    —-

    and then referring to it within the display lambda:

    —-
    auto addressString = (id(wifi_wificomponent).is_connected()) ? id(wifi_wificomponent).get_ip_address().str().c_str()) : “Connecting…”;
    —-

Leave a Reply

Your email address will not be published. Required fields are marked *