Skip to content

Oshayr/toggle_alarm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Home Assistant Alarm Blueprint

This repository contains a blueprint for toggling an alarm script in Home Assistant and a UI card for setting and displaying the alarm state.

Table of Contents

Prerequisites

  1. Create an input datetime helper.
  2. Create a timer helper.

Alternatively, you can use the provided YAML configuration to set up these entities along with a binary sensor: alarm_entities.yaml

Finding the Next Alarm and Notify Entities

To find the next_alarm and notify entities required by the blueprint, follow these steps:

  1. Install the Home Assistant Companion App on your mobile device from the App Store (iOS) or Google Play Store (Android).
  2. Open the app and go to App Configuration.
  3. Ensure that the sensors are enabled under App Configuration > Manage Sensors.
  4. Look for the Next Alarm sensor. This is typically named something like sensor.phone_next_alarm.
    • On Android: This sensor is automatically created by the companion app.
    • On iOS: You may need to configure the companion app to track alarms.
  5. Look for the notify entity for your device. It is usually named something like notify.mobile_app_<your_device_name>.
  6. Note down these entity IDs as they will be required when setting up the blueprint.

Installation

  1. Open your Home Assistant instance and navigate to Configuration > Blueprints.
  2. Click on "Import Blueprint".
  3. Click the link below to import the blueprint: Import Blueprint

Usage

Once installed:

  1. Create a script using the blueprint, using the created helpers.

Contributing

Contributions are welcome! Please follow these steps to contribute:

  1. Fork the repository.
  2. Create a new branch (`git checkout -b feature/your-feature-name`).
  3. Make your changes and commit them (`git commit -am 'Add new feature'`).
  4. Push to the branch (`git push origin feature/your-feature-name`).
  5. Create a new Pull Request.

For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Releases

No releases published

Packages

No packages published