Platform not found: 'light.homeassistant'/

Hi,
I am trying to toggle a HA light entity from esphome yaml.

I guess the platform homeassistant just does not exist to control lights directly out of esp32?

Thank you very much

light:

  • platform: homeassistant
    name: “ESPHome Light”
    id: my_light
    entity_id: light.essen

Your statement is correct. Light components in ESPHome are for creating lights entities in Home Assistant that interact with something on your micro controller. It wouldn’t make much sense for an ESPHome device to try to create a light in Home Assistant that already existed in Home Assistant.

If you need to control a Home Assistant light from an ESPHome device, such as in a lambda, you can use a Home Assistant service action.

2 Likes