This integration allows you to send messages (iMessage/RCS/SMS/MMS) from Home Assistant using a BlueBubbles server. It connects to your BlueBubbles instance and exposes a service for sending messages.
After adding the repository, search for "BlueBubbles" in HACS > Integrations and install it. Then, restart Home Assistant.
- Open HACS in Home Assistant.
- Go to "Integrations".
- Click the three dots in the top right and select "Custom repositories".
- Add
https://github.com/helv-io/ha-bluebubblesas a repository (category: Integration). - Search for "BlueBubbles" and install it.
- Restart Home Assistant.
- Download the latest release from the releases page.
- Extract the contents to
custom_components/bluebubbles/in your Home Assistant configuration directory. - Restart Home Assistant.
This integration uses Home Assistant's configuration flow for setup. BlueBubbles server setup is outside the scope of this integration. Head over to the BlueBubbles website for details on getting your server running.
- In Home Assistant, go to Settings > Devices & Services.
- Click "Add Integration" and search for "BlueBubbles".
- You'll be prompted for the following:
- Host: The URL of your BlueBubbles server (e.g.,
http://192.168.1.100:1234orhttps://your-domain.com). - Password: The password set in your BlueBubbles server.
- SSL (optional, default: false): Enable if your server uses HTTPS with a self-signed certificate.
- Host: The URL of your BlueBubbles server (e.g.,
- Submit the form. The integration will attempt to connect, fetch server details (including your iMessage account for naming), and verify.
- If successful, the integration will be added with a title based on your detected iMessage account (e.g., "[email protected]").
Important Note: After initial setup, you may need to send a test message through the service. On the macOS machine running the BlueBubbles server app, a permission prompt might appear. Click to accept and grant access for message sending to work properly. Refer to the BlueBubbles documentation for more on permissions.
The integration automatically detects if Private API is enabled on your server and updates this on Home Assistant restarts. Private API is required for sending to multiple addresses (group messages); without it, only single-address sends are supported.
The integration provides a single service for sending messages.
Sends a message via BlueBubbles (iMessage/RCS/SMS/MMS depending on recipients).
- addresses: The address(es) to send to—phone numbers or emails, separated by commas or semicolons for groups (requires Private API enabled on your server). Required.
- message: The message to send. Required.
Example automation in YAML:
automation:
- alias: Send Test Message
trigger:
- platform: time
at: "12:00:00"
action:
- service: bluebubbles.send_message
data:
addresses: "+15551234567, [email protected]"
message: "Hello from Home Assistant!"You can also call this service from the Developer Tools > Services page for testing.
- Connection Errors: Double-check your host URL and password. Ensure the BlueBubbles server is running and accessible from your Home Assistant instance.
- Permission Issues: If messages aren't sending, verify permissions on your macOS BlueBubbles app as noted in the setup section.
- Group Send Failures: If sending to multiple addresses fails, ensure Private API is enabled on your BlueBubbles server (check server settings). The integration detects this automatically on setup and restarts.
- SSL Problems: If using HTTPS, try toggling the SSL option.
- For other issues, check the Home Assistant logs (search for "bluebubbles") or open an issue.
Contributions are welcome! Feel free to submit pull requests or report bugs via the issue tracker.
This integration is licensed under the MIT License. See the LICENSE file for details.
Thank you for your support and feedback!