{"id":15023288,"url":"https://github.com/elfive/homebridge-advanced-timer","last_synced_at":"2025-10-27T09:31:19.062Z","repository":{"id":57264958,"uuid":"328521595","full_name":"elfive/homebridge-advanced-timer","owner":"elfive","description":"homebridge advanced timer, with homekit and iOS shortcut, you could do much more things.","archived":false,"fork":false,"pushed_at":"2021-01-14T08:42:03.000Z","size":269,"stargazers_count":17,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T04:41:21.449Z","etag":null,"topics":["homebridge","homekit","timer"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/elfive.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":null,"security":null,"support":null}},"created_at":"2021-01-11T01:54:48.000Z","updated_at":"2024-05-31T08:33:31.000Z","dependencies_parsed_at":"2022-08-25T02:52:05.968Z","dependency_job_id":null,"html_url":"https://github.com/elfive/homebridge-advanced-timer","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elfive%2Fhomebridge-advanced-timer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elfive%2Fhomebridge-advanced-timer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elfive%2Fhomebridge-advanced-timer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elfive%2Fhomebridge-advanced-timer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elfive","download_url":"https://codeload.github.com/elfive/homebridge-advanced-timer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238472005,"owners_count":19478142,"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":["homebridge","homekit","timer"],"created_at":"2024-09-24T19:58:54.822Z","updated_at":"2025-10-27T09:31:18.716Z","avatar_url":"https://github.com/elfive.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"  ## homebridge-advanced-timer\n  \u003cp align=\"center\"\u003e\n    \u003ca href=\"https://www.npmjs.com/package/homebridge-advanced-timer\"\u003e\n      \u003cimg src=\"https://flat.badgen.net/npm/v/homebridge-advanced-timer\" alt=\"NPM Version\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://www.npmjs.com/package/homebridge-advanced-timer\"\u003e\n      \u003cimg src=\"https://flat.badgen.net/npm/dt/homebridge-advanced-timer\" alt=\"Total NPM Downloads\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/homebridge/homebridge/wiki/Verified-Plugins\"\u003e\n      \u003cimg src=\"https://flat.badgen.net/badge/homebridge/verified/purple\" alt=\"Verified by Homebridge\" /\u003e\n    \u003c/a\u003e\n    \u003cbr\u003e\n    \u003cstrong\u003e\u003ca href=\"#2-configure\"\u003eSetup Guide\u003c/a\u003e | \u003ca href=\"#3-how-to-contribute\"\u003eContribute\u003c/a\u003e \u003c/strong\u003e\n  \u003c/p\u003e\n\n  ## 1) Description\n\n  advanced timer, get full use of iOS automation.\n\n\n\n  ### features\n\n  - controled by a Homekit switch, easy to control.\n  - setting up interval plan, and can loop infinite or loop certain cycles.\n\n\n\n  ### limitations\n\n  - after homebridge restart, can only start from the loop beginning\n  - ......\n\n\n\n  ### examples\n\n  - every 30 mins, heat your room for 10 mins.\n  - check home temperature every 5 mins, and change heater target temperature.\n  - ......\n\n\n\n  ## 2) Configure\n\n### trigger mode\n\n- TTL\n\n    \u003cp align=\"center\"\u003e\n      \u003cimg src=\"https://raw.githubusercontent.com/elfive/homebridge-advanced-timer/master/images/ttl_timeline.jpg\" alt=\"screenshot\" /\u003e\n    \u003c/p\u003e\n\n- Pulse\n\n    \u003cp align=\"center\"\u003e\n      \u003cimg src=\"https://raw.githubusercontent.com/elfive/homebridge-advanced-timer/master/images/pulse_timeline.jpg\" alt=\"screenshot\" /\u003e\n    \u003c/p\u003e\n\n- Trigger status compare\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/elfive/homebridge-advanced-timer/master/images/trigger_mode.jpg\" alt=\"screenshot\" /\u003e\n\u003c/p\u003e\n\n*note: trigger plan(intervals): 2,6* \n\n\n\n  ### config.json field\n\n|        field   name        |  type  | required |     default     |    range    | description                                                  |\n| :------------------------: | :----: | :------: | :-------------: | :---------: | ------------------------------------------------------------ |\n| accessory | string | yes | 'advanced_timer' | 'advanced_timer' | MUST BE 'advanced_timer' |\n|            name            | string |   yes    | 'AdvancedTimer' |     ---     | device name shows in HomeKit. we don't need it, but homebridge need it. |\n|         intervals          | string |   yes    |       ---       |     0 to 86400\u003cbr/\u003e(each value)     | Comma-separated trigger plan, every interval(in second), if pulse trigger mode is selected, all interval value should longer than trigger_duration below. |\n|           repeat           |  int   |   no  |       0        | 0 to 86400 | How many trigger plan cycles repeat, 0 for infinite loop.   |\n|        enable_name         | string |    no    |    'Enable'     |     ---     | Timer enable switch name shows in HomeKit                    |\n|        trigger_name        | string |    no    |    'Trigger'    |     ---     | Timer trigger indicator name shows in HomeKit.               |\n| trigger_type | int | no | 1 | 0, 1 | like electronic, trigger type has two different type:\u003cbr/\u003e0: Pulse\u003cbr/\u003e1: TTL |\n| pulse_trigger_duration | int | no | 3 | 1 to 3 | Each time a trigger signal last duration, in second,\u003cbr/\u003eonly works in Pulse trigger type |\n| start_delay\u003cbr/\u003e(unit: second) | int | no | 0 | 0 to 86400 | After timer enable status set to enable, delay before trigger plan starts. |\n| stop_delay\u003cbr/\u003e(unit: second) | int | no | 0 | 0 to 86400 | Delay after trigger plan stops or after timer enable status set to disable, only works in TTL trigger type. |\n| enable_status_when_start | int | no | 2 | 0, 1, 2 | Enable status after Homebridge start, only works in TTL trigger type.\u003cbr/\u003e0: OFF,\u003cbr/\u003e1: ON,\u003cbr/\u003e2: Last Status. |\n| trigger_status_when_start | int | no | 2 | 0, 1, 2 | Enable status after Homebridge start, only works in TTL trigger type.\u003cbr/\u003e0: OFF,\u003cbr/\u003e1: ON,\u003cbr/\u003e2: Last Status. |\n| trigger_status_while_enabled | int | no | 0 | 0, 1, 2 | Trigger status while service enabled, only works in TTL trigger type.\u003cbr/\u003e0: Not Triggered,\u003cbr/\u003e1: Triggered,\u003cbr/\u003e2: Last Status. |\n| trigger_status_while_disabled | int | no | 0 | 0, 1, 2 | Trigger status while service disabled, only works in TTL trigger type.\u003cbr/\u003e0: Not Triggered,\u003cbr/\u003e1: Triggered,\u003cbr/\u003e2: Last Status. |\n\n\n\n  ### example of config.json file\n\n  ```json\n  \"accessories\": [\n      {\n          \"name\": \"heater_timer\",\n          \n          // trigger plan:\n          // trigger after 5s then trigger after 10s, means trigger at 5s and 15s\n          \"intervals\": \"5,10\",\n          \n          // repeat trigger plan for 4 times\n          \"repeat\": 4,\n          \"enable_name\": \"Enable\",\n          \"trigger_name\": \"Trigger\",\n          \"enabled_status_after_restart\": 2,\n          \"trigger_duration\": 3,\n          \"accessory\": \"advanced_timer\"\n      }\n  ]\n  ```\n\n\n\n  ## 3) How to contribute\n\n  everyone is welcome to contribute to this plugin. PR/issue/debug all are welcome.\n\n  or you can send me an e-mail: elfive@elfive.cn\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felfive%2Fhomebridge-advanced-timer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felfive%2Fhomebridge-advanced-timer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felfive%2Fhomebridge-advanced-timer/lists"}