Event entity: homeassistant.event service

Can we have a service to generate events, like esphome’s homeassistant.event service?

my use case: generate announcements/notifications. I want to generate a message with content, severity and volume attributes. Maybe more when I add also non voice notifications. I could generate event with json data in esphome. But plain HA has no such capabilities. I would need to use 3 helpers to achieve this as I don’t know a way to pass more than 1 value to helper. I could use a script: it can take more than 1 input parameter but it’s ugly solution. I can generate mqtt events with json and this looks clean and nice. But WTH hass has no such capabilities?

Good news. You can already do this. See: https://www.home-assistant.io/docs/scripts/#raise-and-consume-custom-events

1 Like

Love this! It’s buried so deep :wink:
Ok, so there is ‘Manual event’ action without actual service to call. Good news.
It does what it supposed to do. It’s just inconsistent with what I’m used to doing in esphome.
Maybe it’s more into new ‘event’ entities. Anyway, thanks!