{"id":13647257,"url":"https://github.com/vectronic/homebridge-ping-hosts","last_synced_at":"2025-10-02T03:30:47.059Z","repository":{"id":40654897,"uuid":"108002747","full_name":"vectronic/homebridge-ping-hosts","owner":"vectronic","description":"Ping state sensor plugin for homebridge","archived":false,"fork":true,"pushed_at":"2023-04-16T17:20:01.000Z","size":71,"stargazers_count":16,"open_issues_count":0,"forks_count":3,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-01-17T08:46:02.141Z","etag":null,"topics":["homebridge","homebridge-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"jsworks/homebridge-ping-hosts","license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vectronic.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":"2017-10-23T15:40:17.000Z","updated_at":"2024-09-07T17:03:41.000Z","dependencies_parsed_at":"2023-02-13T20:15:45.965Z","dependency_job_id":null,"html_url":"https://github.com/vectronic/homebridge-ping-hosts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vectronic%2Fhomebridge-ping-hosts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vectronic%2Fhomebridge-ping-hosts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vectronic%2Fhomebridge-ping-hosts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vectronic%2Fhomebridge-ping-hosts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vectronic","download_url":"https://codeload.github.com/vectronic/homebridge-ping-hosts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234929351,"owners_count":18908930,"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","homebridge-plugin"],"created_at":"2024-08-02T01:03:26.397Z","updated_at":"2025-10-02T03:30:41.770Z","avatar_url":"https://github.com/vectronic.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# homebridge-ping-hosts\nA ping state sensor plugin for homebridge (https://github.com/nfarina/homebridge).\n\n# Installation\n1. Install homebridge using: `npm install -g homebridge`\n2. Install this plugin: `npm install -g --unsafe-perm @vectronic/homebridge-ping-hosts`\n3. Update your `config.json` configuration file\n\n# Configuration\nExample `config.json` entry:\n\n```\n\"platforms\": [\n    {\n        \"platform\": \"PingHosts\",\n        \"hosts\": [\n            {\n                \"name\": \"Router\",\n                \"ipv4_address\": \"192.168.0.1\",\n                \"interval\": 60,\n                \"timeout\": 25,\n                \"retries\": 1,\n                \"startup_as_failed\": true,\n                \"closed_on_success\": true,\n                \"type\": \"Lightbulb\"\n            },\n            {\n                \"name\": \"Website\",\n                \"ipv4_address\": \"website.com\",\n                \"interval\": 60,\n                \"timeout\": 25,\n                \"retries\": 1,\n                \"startup_as_failed\": true,\n                \"closed_on_success\": true,\n                \"type\": \"ContactSensor\"\n            },\n            {\n                \"name\": \"Internet\",\n                \"ipv6_address\": \"fe80::a00:27ff:fe2a:3427\",\n                \"interval\": 60,\n                \"timeout\": 25,\n                \"retries\": 1,\n                \"startup_as_failed\": true,\n                \"closed_on_success\": true,\n                \"type\": \"MotionSensor\"\n            },\n            {\n                \"name\": \"Television\",\n                \"mac_address\": \"04:a1:51:1b:12:92\",\n                \"interval\": 60,\n                \"timeout\": 25,\n                \"retries\": 1,\n                \"startup_as_failed\": true,\n                \"closed_on_success\": true,\n                \"type\": \"ContactSensor\"\n            }\n        ]\n    }\n]\n```\n\n# Notes \n- Only one of `ipv6_address`, `ipv4_address` or `mac_address` should be specified for any given device.\n- If `ipv6_address` is specified any specified `ipv4_address` or `mac_address` will be ignored.\n- If `ipv4_address` is specified any specified `mac_address` will be ignored.\n- Despite the name `ipv4_address` supports either an IP address e.g. `192.168.0.1` OR a hostname e.g. `www.google.com`.\n- If a MAC address is specified, ARP table lookup is performed to map to an IP address. NOTE: This will only resolve an IP address if there is already a MAC address in the ARP table on the machine running Homebridge.\n- `interval` defaults to 60\n- `timeout` defaults to 25\n- `retries` defaults to 1\n- Works better if `timeout * (1 + retries) \u003c interval`\n- On startup the sensor will default to a \"failed\" ping state. This can be overridden by configuring `startup_as_failed: false`.\n- The sensor will have a \"closed\" state for successful pings and an \"open\" state for failed pings (or for any other issues).\nThis can be overridden by configuring `closed_on_success: false`.\n- The `type` of the accessory can be one of `ContactSensor`, `Lightbulb` or `MotionSensor`. The default is `ContactSensor`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvectronic%2Fhomebridge-ping-hosts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvectronic%2Fhomebridge-ping-hosts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvectronic%2Fhomebridge-ping-hosts/lists"}