Skip to content

[FEATURE] Expose ha_fire_event tool (POST /api/events/{event_type}) #996

@Patch76

Description

@Patch76

What would you like to see?

A tool to fire custom Home Assistant events:

  • ha_fire_event(event_type, data=None) — POST to /api/events/{event_type}

Why do you need this?

ha_call_service covers service calls, but firing a raw event is a distinct HA mechanism used for custom integrations, event-triggered automations, and inter-component signaling. There is no way to trigger homeassistant_start, call_api, or any custom event type through the current tool surface.

The underlying client method HomeAssistantClient.fire_event() is already implemented in rest_client.py — the MCP tool wrapper is the only missing piece.

Additional context

  • REST endpoint: POST /api/events/{event_type} (stable public API)
  • Existing client method: rest_client.py::fire_event() (line 324)
  • Analogous to ha_call_service but for the event bus rather than the service layer

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions