Skip to content

[Feature]: HA outbound - support notify service (mobile push) #23136

@renhai-lab

Description

@renhai-lab

Problem

The Home Assistant adapter only delivers outbound messages as persistent_notification.create (sidebar). Cron job results and cross-platform messages go to the HA notification panel, which is easy to miss on mobile.

Current behavior

gateway/platforms/homeassistant.py send() ignores the chat_id parameter and always creates a sidebar notification:

url = f"{self._hass_url}/api/services/persistent_notification/create"
payload = {"title": "Hermes Agent", "message": content}

Proposed solution

Add an optional config field for the notify service:

platforms:
  homeassistant:
    enabled: true
    extra:
      notify_service: "notify.mobile_app_iphone"

In send():

  • If notify_service configured → call that service
  • If not → fall back to current persistent_notification.create
POST /api/services/notify/<service_name>
{"title": "Hermes Agent", "message": content}

Environment

  • Hermes version: 0.13.0
  • HA version: 2026.05

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havecomp/gatewayGateway runner, session dispatch, deliverytype/featureNew feature or request

    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