{"id":21462037,"url":"https://github.com/bhuebschen/delayed_action","last_synced_at":"2025-07-15T03:30:38.868Z","repository":{"id":245618986,"uuid":"818749834","full_name":"bhuebschen/delayed_action","owner":"bhuebschen","description":"The delayed_action integration allows you to schedule actions for Home Assistant entities with a delay or at a specific time. This integration supports various entities and actions, providing flexibility in controlling your devices.","archived":false,"fork":false,"pushed_at":"2024-08-20T20:45:54.000Z","size":210,"stargazers_count":5,"open_issues_count":3,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-04T16:26:26.593Z","etag":null,"topics":["delayed-jobs","hacs","hacs-integration","home-assistant","home-assistant-integration"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bhuebschen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-22T18:48:28.000Z","updated_at":"2025-02-03T06:27:43.000Z","dependencies_parsed_at":"2024-06-28T10:29:59.606Z","dependency_job_id":"b4458b12-96a0-4a42-8e90-bfd7c7e7e467","html_url":"https://github.com/bhuebschen/delayed_action","commit_stats":null,"previous_names":["bhuebschen/delayed_action"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/bhuebschen/delayed_action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhuebschen%2Fdelayed_action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhuebschen%2Fdelayed_action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhuebschen%2Fdelayed_action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhuebschen%2Fdelayed_action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bhuebschen","download_url":"https://codeload.github.com/bhuebschen/delayed_action/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhuebschen%2Fdelayed_action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265397523,"owners_count":23758443,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["delayed-jobs","hacs","hacs-integration","home-assistant","home-assistant-integration"],"created_at":"2024-11-23T07:12:19.765Z","updated_at":"2025-07-15T03:30:38.619Z","avatar_url":"https://github.com/bhuebschen.png","language":"Python","funding_links":["https://github.com/sponsors/bhuebschen"],"categories":[],"sub_categories":[],"readme":"![delayed_action](https://github.com/bhuebschen/delayed_action/assets/1864448/fe84a672-b572-46ca-bb7e-73f236ab4306)\n\n# Delayed Action Home Assistant Integration\n\n[![hacs][hacs-image]][hacs-url]\n[![GitHub Sponsors][gh-sponsors-image]][gh-sponsors-url]\n\nThe `delayed_action` integration allows you to schedule actions for Home Assistant entities with a delay or at a specific time. This integration supports various entities and actions, providing flexibility in controlling your devices.\n\n*** WORKS IN BEST COMBINATION WITH [DELAYED-ACTION-CARD](https://github.com/bhuebschen/delayed-action-card) ***\n\n## Features\n\n- Schedule actions with a delay (in seconds).\n- Schedule actions at a specific date and time (ISO 8601 format).\n- Pass additional data to the actions.\n\n## Installation:\n\n### [HACS](hacs) (Home Assistant Community Store)\n\n1. Go to HACS page on your Home Assistant instance\n1. Add this repository (https://github.com/bhuebschen/delayed_action) via HACS Custom repositories [How to add Custom Repositories](https://hacs.xyz/docs/faq/custom_repositories/)\n1. Select `Integration`\n1. Press add icon and search for `Delayed Action`\n1. Select Delayed Action repo and install,\n1. Restart Home Assistant\n1. Add delayed_action to your page\n\n[![Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.](https://my.home-assistant.io/badges/hacs_repository.svg)](https://my.home-assistant.io/redirect/hacs_repository/?owner=bhuebschen\u0026repository=delayed_action\u0026category=integration)\n\n### Manual\n\n1. Ensure your Home Assistant configuration directory has the following structure:\n\n```\n/config/custom_components/delayed_action/\n├── init.py\n├── manifest.json\n├── config_flow.py\n├── const.py\n└── services.yaml\n    ├── translations/de.json\n    └── translations/en.json\n```\n\n2. Copy the provided files into the `custom_components/delayed_action/` directory.\n3. Restart Home Assistant to load the new custom component.\n\n## Configuration\n\n1. Go to **Configuration** -\u003e **Devices \u0026 Services**.\n1. Click on the \"+\" button and add the \"Delayed Action\" integration.\n\n## Usage\n\nYou can use the `delayed_action.execute` service to schedule actions with a delay or at a specific time.\n\n### Service Data Attributes\n\n- `entity_id` (required): The entity ID of the device to control.\n- `action` (required): The action to perform (e.g., `turn_on`, `turn_off`, `set_brightness`, `set_temperature`).\n- `delay` (optional): The delay in seconds before performing the action.\n- `datetime` (optional): The specific date and time to perform the action (ISO 8601 format).\n- `additional_data` (optional): Any additional data to be passed to the service call.\n\n### Examples\n\n#### Script: Turn On with Delay\n\n```yaml\nscript:\n  turn_on_with_delay:\n    sequence:\n      - service: delayed_action.execute\n        data:\n          entity_id: switch.any_switch\n          delay: 10  # Delay in seconds\n          action: turn_on\n```\n\n#### Script: Set Brightness with Delay\n\n```yaml\nscript:\n  set_brightness_with_delay:\n    sequence:\n      - service: delayed_action.execute\n        data:\n          entity_id: light.any_light\n          delay: 15  # Delay in seconds\n          action: turn_on\n          brightness: 128\n```\n\n## Development\n\nTo develop and test this integration:\n\n1. Clone the repository into your Home Assistant `custom_components` directory.\n2. Make changes to the code as needed.\n3. Restart Home Assistant to apply the changes.\n\n## Troubleshooting\n\nIf you encounter issues, check the Home Assistant logs for error messages. Common issues include:\n\n- Ensuring the `entity_id` is correct and exists.\n- Verifying the `action` is supported for the specified entity.\n- Confirming the date and time are in the correct format.\n\nFor more information on Home Assistant custom components, visit the [Home Assistant Developer Documentation](https://developers.home-assistant.io/docs/creating_integration_file_structure).\n\n## Contributing\n\nContributions are welcome! Please submit a pull request with your changes.\n\n## License\n\nThis project is licensed under the MIT License. See the LICENSE file for details.\n\n\u003c!-- Badges --\u003e\n\n[hacs-url]: https://github.com/hacs/integration\n[hacs-image]: https://img.shields.io/badge/hacs-custom-orange.svg?style=flat-square\n[gh-sponsors-url]: https://github.com/sponsors/bhuebschen\n[gh-sponsors-image]: https://img.shields.io/github/sponsors/bhuebschen?style=flat-square\n\n\u003c!-- References --\u003e\n\n[home-assistant]: https://www.home-assistant.io/\n[hacs]: https://hacs.xyz\n[latest-release]: https://github.com/bhuebschen/delayed_action/releases/latest\n[ha-scripts]: https://www.home-assistant.io/docs/scripts/\n[edit-readme]: https://github.com/bhuebschen/delayed_action/edit/master/README.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhuebschen%2Fdelayed_action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbhuebschen%2Fdelayed_action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhuebschen%2Fdelayed_action/lists"}