{"id":35837145,"url":"https://github.com/mossipcams/autosnooze","last_synced_at":"2026-01-27T06:01:07.838Z","repository":{"id":329019211,"uuid":"1117073773","full_name":"mossipcams/autosnooze","owner":"mossipcams","description":"Temporarily pause Home Assistant automations with automatic re-enabling","archived":false,"fork":false,"pushed_at":"2026-01-20T02:21:27.000Z","size":1889,"stargazers_count":26,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-20T08:59:16.344Z","etag":null,"topics":["automation","custom-integration","hacs","home-assistant"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/mossipcams.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-15T19:45:24.000Z","updated_at":"2026-01-20T04:30:51.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mossipcams/autosnooze","commit_stats":null,"previous_names":["mossipcams/autosnooze"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/mossipcams/autosnooze","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mossipcams%2Fautosnooze","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mossipcams%2Fautosnooze/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mossipcams%2Fautosnooze/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mossipcams%2Fautosnooze/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mossipcams","download_url":"https://codeload.github.com/mossipcams/autosnooze/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mossipcams%2Fautosnooze/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28805318,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T05:43:52.625Z","status":"ssl_error","status_checked_at":"2026-01-27T05:43:48.957Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["automation","custom-integration","hacs","home-assistant"],"created_at":"2026-01-08T01:16:12.753Z","updated_at":"2026-01-27T06:01:07.735Z","avatar_url":"https://github.com/mossipcams.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AutoSnooze\n\n[![HACS Custom](https://img.shields.io/badge/HACS-Custom-41BDF5.svg?style=flat-square)](https://github.com/hacs/integration)\n[![GitHub Release](https://img.shields.io/github/release/mossipcams/autosnooze.svg?style=flat-square)](https://github.com/mossipcams/autosnooze/releases)\n![GitHub all releases](https://img.shields.io/github/downloads/mossipcams/autosnooze/total.svg?style=flat-square)\n[![Build Status](https://img.shields.io/github/actions/workflow/status/mossipcams/autosnooze/build.yml?branch=main\u0026style=flat-square)](https://github.com/mossipcams/autosnooze/actions)\n[![Home Assistant](https://img.shields.io/badge/Home%20Assistant-2024.1+-blue.svg?style=flat-square)](https://www.home-assistant.io/)\n\n\n**Temporarily pause Home Assistant automations with automatic re-enabling.**\n\n![AutoSnooze Card](https://raw.githubusercontent.com/mossipcams/autosnooze/main/docs/images/card-main.jpg)\n![Snoozed Automations](https://raw.githubusercontent.com/mossipcams/autosnooze/main/docs/images/card-snoozed.jpeg)\n\n-----\n\n## The Problem\n\nYour motion lights keep turning off during dinner. Your wake-up routine fires while you’re on vacation. You disable automations for maintenance and forget which ones.\n\n## The Solution\n\nSnooze automations for a set duration. They re-enable automatically when the timer expires. No more forgotten disabled automations.\n\n-----\n\n## Features\n\n|Feature             |Description                                        |\n|--------------------|---------------------------------------------------|\n|**Smart Filtering** |Filter by Area, Label, or search by name           |\n|**Preset Durations**|Quick-tap 30m, 1h, 4h, 1 day, or custom            |\n|**Live Countdown**  |Real-time timers show exactly when automations wake|\n|**Restart Survival**|Timers persist through reboots and power outages   |\n|**Quick Wake**      |Cancel individual snoozes or wake all at once      |\n|**Schedule Mode**   |Snooze until a specific date/time                  |\n|**Status Sensor**   |Track snoozed count in automations and dashboards  |\n\n-----\n\n## Installation\n\n### HACS (Recommended)\n\n1. Open HACS in Home Assistant\n2. Search for AutoSnooze\n3. Click the download button\n4. Restart Home Assistant\n\n### HACS (Manual Install)\n\n1. Open HACS in Home Assistant\n1. Click the 3-dot menu → **Custom repositories**\n1. Add `https://github.com/mossipcams/autosnooze` as type **Integration**\n1. Search for “AutoSnooze” and click **Download**\n1. Restart Home Assistant\n1. Go to **Settings → Devices \u0026 Services → Add Integration → AutoSnooze**\n\nThe dashboard card is automatically registered when the integration loads. Just add the card to your dashboard and you’re ready to go.\n\n-----\n\n## Dashboard Card\n\nAdd to any Lovelace dashboard:\n\n```yaml\ntype: custom:autosnooze-card\ntitle: AutoSnooze\n```\n\n### Card Options\n\n|Option |Type  |Default     |Description      |\n|-------|------|------------|-----------------|\n|`title`|string|`AutoSnooze`|Card header title|\n\n### Filtering with Labels\n\nControl which automations appear in the card using Home Assistant labels:\n\n|Label|Behavior|\n|-----|--------|\n|`autosnooze_include`|**Whitelist mode**: Only automations with this label are shown|\n|`autosnooze_exclude`|**Blacklist mode**: Automations with this label are hidden|\n\n**How it works:**\n- If **any** automation has the `autosnooze_include` label, the card switches to whitelist mode and only shows automations with that label\n- Otherwise, the card shows all automations except those with `autosnooze_exclude`\n\n**To set up:**\n1. Go to **Settings → Labels** and create `autosnooze_include` or `autosnooze_exclude`\n2. Edit an automation and assign the label under **Labels**\n\nThis is useful for hiding automations you never want to snooze (like critical security automations) or limiting the card to only show specific automations.\n\n-----\n\n## Usage Examples\n\n### Dinner Party\n\n\u003e “Pause dining room motion lights for 4 hours”\n\n**Areas** → Dining Room → Select automations → **4h** → **Snooze**\n\n### Vacation Mode\n\n\u003e “Pause wake-up routine for a week”\n\n**Search** “wake up” → Select → **Custom** → 7 days → **Snooze**\n\n### Sensor Maintenance\n\n\u003e “Pause all security automations while fixing sensors”\n\n**Labels** → Security → Select all → **1h** → **Snooze**\n\n-----\n\n## Services\n\n### `autosnooze.pause`\n\nSnooze one or more automations.\n\n```yaml\nservice: autosnooze.pause\ndata:\n  entity_id:\n    - automation.motion_lights\n    - automation.door_notify\n  hours: 4\n```\n\n|Parameter   |Required|Description                                       |\n|------------|--------|--------------------------------------------------|\n|`entity_id` |Yes     |Automation entity ID(s)                           |\n|`days`      |No      |Duration in days                                  |\n|`hours`     |No      |Duration in hours                                 |\n|`minutes`   |No      |Duration in minutes                               |\n|`resume_at` |No      |Datetime when to re-enable (overrides duration)   |\n|`disable_at`|No      |Datetime when to start the snooze (for scheduling)|\n\n### `autosnooze.cancel`\n\nWake a specific snoozed automation.\n\n```yaml\nservice: autosnooze.cancel\ndata:\n  entity_id: automation.motion_lights\n```\n\n### `autosnooze.cancel_all`\n\nWake all snoozed automations immediately.\n\n```yaml\nservice: autosnooze.cancel_all\n```\n\n### `autosnooze.pause_by_area`\n\nSnooze all automations in specified areas.\n\n```yaml\nservice: autosnooze.pause_by_area\ndata:\n  area_id:\n    - living_room\n    - kitchen\n  hours: 2\n```\n\n### `autosnooze.pause_by_label`\n\nSnooze all automations with specified labels.\n\n```yaml\nservice: autosnooze.pause_by_label\ndata:\n  label_id:\n    - security\n    - motion\n  hours: 1\n```\n\n### `autosnooze.cancel_scheduled`\n\nCancel a scheduled snooze before it activates.\n\n```yaml\nservice: autosnooze.cancel_scheduled\ndata:\n  entity_id: automation.motion_lights\n```\n\n-----\n\n## Sensor\n\nTrack snoozed automations programmatically:\n\n```yaml\nsensor.autosnooze_snoozed_automations\n```\n\n- **State**: Count of currently snoozed automations\n- **Attributes**: Details of each snoozed automation\n\n### Example: Conditional Automation\n\n```yaml\ncondition:\n  - condition: numeric_state\n    entity_id: sensor.autosnooze_snoozed_automations\n    below: 1\n```\n\n### Example: Dashboard Badge\n\n```yaml\ntype: entity\nentity: sensor.autosnooze_snoozed_automations\nname: Snoozed\nicon: mdi:sleep\n```\n\n-----\n\n## Troubleshooting\n\n### Card not appearing\n\nThe card should register automatically. If it doesn’t:\n\n1. Clear browser cache and hard refresh (`Ctrl+Shift+R`)\n1. Check **Settings → Dashboards → Resources** for the autosnooze entry\n1. If missing, manually add the resource:\n- URL: `/autosnooze-card.js`\n- Type: **JavaScript module**\n\n**For YAML mode dashboards:** The automatic registration only works with storage mode (UI-managed) dashboards. If you use YAML mode for Lovelace, add the resource manually to your `configuration.yaml`:\n\n```yaml\nlovelace:\n  mode: yaml\n  resources:\n    - url: /autosnooze-card.js\n      type: module\n```\n\nOr add it directly to your dashboard YAML file under `resources:`.\n\n### Automations not re-enabling\n\n1. Check **Developer Tools → States** for the sensor state\n1. Verify Home Assistant hasn’t restarted during the snooze\n1. Check logs for errors: **Settings → System → Logs**\n\n### Card shows “Integration not found”\n\nEnsure the AutoSnooze integration is configured in **Settings → Devices \u0026 Services**.\n\n-----\n\n## Requirements\n\n- Home Assistant **2024.1** or newer\n- Areas and Labels configured (optional, enables filtering features)\n\n-----\n\n## Contributing\n\nContributions are welcome! Please:\n\n1. Fork the repository\n1. Create a feature branch (`git checkout -b feature/amazing-feature`)\n1. Run tests (`npm test \u0026\u0026 pytest tests/`)\n1. Commit changes (`git commit -m 'Add amazing feature'`)\n1. Push to branch (`git push origin feature/amazing-feature`)\n1. Open a Pull Request\n\n-----\n\n## Support\n\n- [Report a Bug](https://github.com/mossipcams/autosnooze/issues/new?template=bug_report.md)\n- [Request a Feature](https://github.com/mossipcams/autosnooze/issues/new?template=feature_request.md)\n- [Discussions](https://github.com/mossipcams/autosnooze/discussions)\n\n-----\n\n## License\n\nMIT License - see \u003cLICENSE\u003e for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmossipcams%2Fautosnooze","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmossipcams%2Fautosnooze","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmossipcams%2Fautosnooze/lists"}