ESPHome call Service - SOLVED

Hello i try to lunch TTS by ESPhome but NOT runing
Have you some advice (i enable ESP device to connect to Home Assistant) ?

This is the code `

  • homeassistant.service:
    service: tts.google_say
    data:
    entity_id: media_player.salotto
    message: “Bla Bla BLa”`

Thanks in advance for your reply

Does your esphome device have permission to call services?

Hi @ploto22, you need to post a little more code than that as we don’t know the context here. Also you need to format the code. You will get better help.

Home Assistant service calls
ESPHome devices can make service calls to any Home Assistant service. This functionality is not enabled by default for newly configured device, but can be turned on the options flow on a per device basis

Further to what Nick has said, you need to go to Settings> Devices & Services>ESPhome then select Configure next to your device and tick the box.

1 Like

Thanks sparkydave
you are right . . i miss unable HA service call !

Thanks nickrout
you are right . . i miss unable HA service call !