Skip to content

Itay-Sharoni/homeassistant-ultramsg-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Home Assistant UltraMSG Integration

HACS License Github Downloads (total) Stars

Send Home Assistant notifications directly to WhatsApp using UltraMSG with this seamless integration!

Clarification

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.

📖 Table of Contents

🌟Features

  • 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.

🛠Prerequisites

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 and Token.

📥Installation

Install via HACS

  1. Open Home Assistant and navigate to HACS in the sidebar.

  2. Click on Integrations.

  3. Click the + button in the bottom right corner to add a new integration.

  4. Enter the repository URL:

  5. Select Home Assistant UltraMSG Integration from the list.

  6. Click Install and follow any on-screen prompts.

  7. Restart Home Assistant to complete the installation.

Manual Installation

If you prefer manual installation, follow these steps:

  1. Download the Repository:
git clone https://github.com/Itay-Sharoni/homeassistant-ultramsg-integration.git
  1. Copy the Integration Files:

    Copy the custom_components/ultramsg directory into your Home Assistant's config/custom_components/ directory.

  2. Restart Home Assistant to recognize the new integration.

🔧Configuration

  1. Open your configuration.yaml file in the Home Assistant configuration directory.

  2. 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.

  1. Save the Configuration and restart Home Assistant to apply the changes.
  • Click here for a quick guide on configuring configuration.yaml - credit to Siytek for this video

🚀Usage

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:

  1. Navigate to Automations in Home Assistant.
  2. Create a New Automation or Edit an Existing One.
  3. 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).

🐞Troubleshooting

  • No Notifications Received:
    • Verify that your instance_id and token are correct.
    • Check the UltraMSG dashboard for any usage limits or errors.
    • Ensure that the recipient number is correctly formatted.
  • 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.

🤝Contributing

Contributions are welcome! If you'd like to contribute to this integration:

  1. Fork the Repository: homeassistant-ultramsg-integration
  2. Create a Feature Branch:
git checkout -b feature/YourFeature
  1. Commit Your Changes:
git commit -m "Add some feature"
  1. Push to the Branch:
git push origin feature/YourFeature
  1. Open a Pull Request describing your changes.

📄License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages