{"id":42161133,"url":"https://github.com/hostcc/esphome-component-dynamic-on-time","last_synced_at":"2026-04-19T21:15:43.333Z","repository":{"id":179163118,"uuid":"663049822","full_name":"hostcc/esphome-component-dynamic-on-time","owner":"hostcc","description":"ESPHome: Dynamic 'on-time' component","archived":false,"fork":false,"pushed_at":"2026-01-26T14:06:14.000Z","size":86,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-27T06:09:46.502Z","etag":null,"topics":["esphome","esphome-component","scheduler"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hostcc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","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":"2023-07-06T12:53:41.000Z","updated_at":"2026-01-26T14:07:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"d0f3667c-d5d4-4932-b915-b1a4e6465981","html_url":"https://github.com/hostcc/esphome-component-dynamic-on-time","commit_stats":null,"previous_names":["hostcc/esphome-component-dynamic-on-time"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/hostcc/esphome-component-dynamic-on-time","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hostcc%2Fesphome-component-dynamic-on-time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hostcc%2Fesphome-component-dynamic-on-time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hostcc%2Fesphome-component-dynamic-on-time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hostcc%2Fesphome-component-dynamic-on-time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hostcc","download_url":"https://codeload.github.com/hostcc/esphome-component-dynamic-on-time/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hostcc%2Fesphome-component-dynamic-on-time/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29606525,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T06:47:36.664Z","status":"ssl_error","status_checked_at":"2026-02-19T06:45:47.551Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["esphome","esphome-component","scheduler"],"created_at":"2026-01-26T20:05:45.494Z","updated_at":"2026-04-19T21:15:43.325Z","avatar_url":"https://github.com/hostcc.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ESPHome: Dynamic 'on-time' component\n\n## Overview\nBasically, it functions similar to\n[time.on_time](https://esphome.io/components/time/index.html#on-time-trigger)\ntrigger, but allows changing the schedule dynamically.\n\n## Schedule aspects supported\n\n* Hour and minute\n* Days of week (multiple ones are fine)\n* Second is internally set to zero\n* All days of months are enabled internally\n* All months are enabled internally\n\n## Usage\n\nThe ESPHome configuration should consider following components:\n- [Number](https://esphome.io/index.html#number-components) to fetch hours and minutes from\n- [Switch](https://esphome.io/index.html#switch-components) to fetch days of week from\n\nThe component then updates its schedule dynamically as soon as the components\nbelow change their values.\n\nMultiple instances of the component are supported.\n\n### Configuration variables\n\n* **rtc** (*Required*, [Time](https://esphome.io/components/time/index.html)): Time component to attach the schedule to\n* **hour** (*Required*, [Number](https://esphome.io/index.html#number-components)): Component to get scheduled hour from\n* **minute** (*Required*, [Number](https://esphome.io/index.html#number-components)): Component to get scheduled minute from\n* **mon** (*Required*, [Switch](https://esphome.io/index.html#switch-components)): Component indicating the schedule is enabled for Monday\n* **tue** (*Required*, [Switch](https://esphome.io/index.html#switch-components)): Similarly but for Tuesday\n* **wed** (*Required*, [Switch](https://esphome.io/index.html#switch-components)): Similarly but for Wednesday\n* **thu** (*Required*, [Switch](https://esphome.io/index.html#switch-components)): Similarly but for Thursday\n* **fri** (*Required*, [Switch](https://esphome.io/index.html#switch-components)): Similarly but for Friday\n* **sat** (*Required*, [Switch](https://esphome.io/index.html#switch-components)): Similarly but for Saturday\n* **sun** (*Required*, [Switch](https://esphome.io/index.html#switch-components)): Similarly but for Sunday\n* **disabled** (*Required*, [Switch](https://esphome.io/index.html#switch-components)): Component to disable scheduled actions\n* **on_time** (*Requred*, [Automation](https://esphome.io/guides/automations.html#automation)) Automation to run when schedule triggers\n\n## Example\n\nThe code below triggers sprinkler controller for full cycle as per schedule.\nThe HomeAssistant UI will present switches for each particular day of week, and\ntwo number inputs for hour and minute.\n\n```\nexternal_components:\n  source: github://hostcc/esphome-component-dynamic-on-time\n\nswitch:\n  - platform: template\n    id: lawn_sprinklers_mon\n    name: \"Lawn sprinklers: Mon\"\n    optimistic: true\n    restore_mode: RESTORE_DEFAULT_OFF\n    entity_category: config\n  - platform: template\n    id: lawn_sprinklers_tue\n    name: \"Lawn sprinklers: Tue\"\n    optimistic: true\n    restore_mode: RESTORE_DEFAULT_OFF\n    entity_category: config\n  - platform: template\n    id: lawn_sprinklers_wed\n    name: \"Lawn sprinklers: Wed\"\n    optimistic: true\n    restore_mode: RESTORE_DEFAULT_OFF\n    entity_category: config\n  - platform: template\n    id: lawn_sprinklers_thu\n    name: \"Lawn sprinklers: Thu\"\n    optimistic: true\n    restore_mode: RESTORE_DEFAULT_OFF\n    entity_category: config\n  - platform: template\n    id: lawn_sprinklers_fri\n    name: \"Lawn sprinklers: Fri\"\n    optimistic: true\n    restore_mode: RESTORE_DEFAULT_OFF\n    entity_category: config\n  - platform: template\n    id: lawn_sprinklers_sat\n    name: \"Lawn sprinklers: Sat\"\n    optimistic: true\n    restore_mode: RESTORE_DEFAULT_OFF\n    entity_category: config\n  - platform: template\n    id: lawn_sprinklers_sun\n    name: \"Lawn sprinklers: Sun\"\n    optimistic: true\n    restore_mode: RESTORE_DEFAULT_OFF\n    entity_category: config\n  - platform: template\n    id: lawn_sprinklers_disabled\n    name: \"Lawn sprinklers: Disable\"\n    optimistic: true\n    restore_mode: RESTORE_DEFAULT_OFF\n    entity_category: config\n\nnumber:\n  - platform: template\n    id: lawn_sprinklers_hour\n    name: \"Lawn sprinklers: Hour\"\n    entity_category: config\n    optimistic: true\n    restore_value: true\n    initial_value: 0\n    min_value: 0\n    max_value: 23\n    step: 1\n    mode: box\n  - platform: template\n    name: \"Lawn sprinklers: Minute\"\n    id: lawn_sprinklers_minute\n    entity_category: config\n    optimistic: true\n    restore_value: true\n    initial_value: 0\n    min_value: 0\n    max_value: 59\n    step: 1\n    mode: box\n\ntime:\n  - platform: homeassistant\n    id: homeassistant_time\n\ndynamic_on_time:\n  - id: lawn_schedule\n    rtc: homeassistant_time\n    hour: lawn_sprinklers_hour\n    minute: lawn_sprinklers_minute\n    mon: lawn_sprinklers_mon\n    tue: lawn_sprinklers_tue\n    wed: lawn_sprinklers_wed\n    thu: lawn_sprinklers_thu\n    fri: lawn_sprinklers_fri\n    sat: lawn_sprinklers_sat\n    sun: lawn_sprinklers_sun\n    disabled: lawn_sprinklers_disabled\n    on_time:\n      - logger.log:\n          format: 'schedule: Starting full sprinkler cycle'\n          tag: lawn_sprinklers\n          level: 'INFO'\n      - sprinkler.start_full_cycle: lawn_sprinklers\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhostcc%2Fesphome-component-dynamic-on-time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhostcc%2Fesphome-component-dynamic-on-time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhostcc%2Fesphome-component-dynamic-on-time/lists"}