Send Home Assistant notifications directly to WhatsApp using UltraMSG with this seamless integration!
This integration solely utilizes the UltraMSG service for sending notifications and is not affiliated with, endorsed by, or related to WhatsApp or Meta in any way.
- Instant Notifications: Receive real-time alerts on WhatsApp for various Home Assistant events.
- Easy Setup: Simple configuration with clear instructions.
- Customizable: Tailor notifications to suit your specific needs.
- Secure: Utilizes UltraMSG’s secure messaging platform.
Before you begin, ensure you have the following:
- Home Assistant: Running on your preferred hardware.
- HACS (Home Assistant Community Store): Installed and configured. If you haven't set up HACS yet, follow the official HACS installation guide.
- UltraMSG Account: Sign up at UltraMSG to obtain your
Instance ID
andToken
.
-
Open Home Assistant and navigate to HACS in the sidebar.
-
Click on Integrations.
-
Click the + button in the bottom right corner to add a new integration.
-
Enter the repository URL:
-
Select Home Assistant UltraMSG Integration from the list.
-
Click Install and follow any on-screen prompts.
-
Restart Home Assistant to complete the installation.
If you prefer manual installation, follow these steps:
- Download the Repository:
git clone https://github.com/Itay-Sharoni/homeassistant-ultramsg-integration.git
-
Copy the Integration Files:
Copy the
custom_components/ultramsg
directory into your Home Assistant'sconfig/custom_components/
directory. -
Restart Home Assistant to recognize the new integration.
-
Open your
configuration.yaml
file in the Home Assistant configuration directory. -
Add the UltraMSG Notification Service:
notify:
- name: send_ultramsg
platform: ultramsg
instance_id: "<your UltraMSG instance ID>"
token: "<your UltraMSG token>"
Replace <your UltraMSG instance ID>
and <your UltraMSG token>
with the credentials obtained from your UltraMSG Dashboard.
- Save the Configuration and restart Home Assistant to apply the changes.
After installation and configuration, you can use the send_ultramsg
service to send WhatsApp notifications. Here's how to set it up in an automation:
- Navigate to Automations in Home Assistant.
- Create a New Automation or Edit an Existing One.
- Add an Action with the following service:
service: notify.send_ultramsg
data:
message: "Hello from Home Assistant!"
target: "<recipient WhatsApp number>"
Replace <recipient WhatsApp number>
with the desired recipient's number in international format (e.g., +1234567890
).
- No Notifications Received:
- Verify that your
instance_id
andtoken
are correct. - Check the UltraMSG dashboard for any usage limits or errors.
- Ensure that the recipient number is correctly formatted.
- Verify that your
- Integration Not Showing in HACS:
- Make sure you've added the correct repository URL to HACS.
- Verify that the repository is public and accessible.
- Check Logs:
- Navigate to Configuration > Logs in Home Assistant to view any error messages related to UltraMSG.
Contributions are welcome! If you'd like to contribute to this integration:
- Fork the Repository: homeassistant-ultramsg-integration
- Create a Feature Branch:
git checkout -b feature/YourFeature
- Commit Your Changes:
git commit -m "Add some feature"
- Push to the Branch:
git push origin feature/YourFeature
- Open a Pull Request describing your changes.
This project is licensed under the MIT License.