How to hide a sensor defined in ESPHome for HomeAssistant

Hi,

I defined something like that:

sensor:
  - platform: homeassistant
    name: "ESP Wohn Beamer Leistung"
    entity_id: sensor.wohn_beamer_leistung
    id: esp_wohn_beamer_leistung

This gets me a sensor value from HomeAssistant into ESPHome. I need this value for an automation in ESPHome.

No this entity is mirrored back into HomeAssistant also. Which is useless.

Can I disable that on the ESPHome configuration side?

Thanks. Cu!

sensor:
  - platform: homeassistant
    name: "ESP Wohn Beamer Leistung"
    entity_id: sensor.wohn_beamer_leistung
    id: esp_wohn_beamer_leistung
    internal: true  ##  <------ Add this ##

The other way is to only specify an id without a name.

7 Likes