{"_rev":"31-6d54a523cc0d91f98121910a3783a2fe","time":{"created":"2026-05-18T11:13:17.581Z","modified":"2026-05-18T11:13:17.990Z","0.1.3-beta.0":"2023-10-13T08:37:26.984Z","1.0.5-beta.0":"2023-10-15T12:21:32.146Z","1.0.7-beta.0":"2023-10-16T12:55:21.771Z","1.0.8-beta.0":"2023-10-16T13:30:35.379Z","1.0.9-beta.0":"2023-10-16T13:57:27.919Z","1.0.9":"2023-10-16T15:12:59.111Z","1.0.10-beta.0":"2023-10-16T16:08:38.227Z","1.0.11-beta.0":"2023-10-16T16:15:47.721Z","1.0.13-beta.0":"2023-10-16T16:30:56.563Z","1.0.14-beta.0":"2023-10-16T16:47:25.932Z","1.0.15-beta.0":"2023-10-16T16:56:21.304Z","1.0.16-beta.0":"2023-10-16T17:04:50.367Z","1.0.17-beta.0":"2023-10-16T17:07:28.195Z","1.0.18-beta.0":"2023-10-16T17:12:03.072Z","1.0.19-beta.0":"2023-10-16T17:16:57.870Z","1.0.20-beta.0":"2023-10-16T17:22:23.433Z","1.0.21-beta.0":"2023-10-16T17:27:34.421Z","1.0.22-beta.0":"2023-10-16T17:38:37.569Z","1.0.25-beta.0":"2023-10-17T06:31:08.176Z","1.0.26-beta.0":"2023-10-17T06:36:50.503Z","1.0.27-beta.0":"2023-10-17T06:42:46.082Z","1.0.28-beta.0":"2023-10-17T07:07:02.812Z","1.0.28":"2023-10-26T14:06:09.522Z","1.0.29":"2023-11-06T17:49:38.225Z","1.0.30-beta.0":"2023-11-06T18:07:10.765Z","1.0.31-beta.0":"2023-11-06T18:20:29.016Z","1.0.32-beta.0":"2023-11-08T17:03:39.094Z","2.0.2":"2026-05-18T11:13:17.759Z"},"_id":"homebridge-chromecast-google-tv","name":"homebridge-chromecast-google-tv","dist-tags":{"latest":"2.0.2"},"versions":{"2.0.2":{"displayName":"Homebridge Chromecast with Google TV","name":"homebridge-chromecast-google-tv","type":"module","version":"2.0.2","description":"Integration with google TV to control it with HomeKit and create integrations","license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/rubenRP/homebridge-chromecast-google-tv.git"},"bugs":{"url":"https://github.com/rubenRP/homebridge-chromecast-google-tv/issues"},"engines":{"node":"^18.20.4 || ^20.18.0 || ^22.12.0 || ^24.0.0","homebridge":"^1.6.0 || ^2.0.0"},"main":"dist/index.js","scripts":{"build":"rimraf ./dist && tsc","lint":"eslint . --max-warnings=0","prepublishOnly":"npm run lint && npm run build","watch":"npm run build && npm link && nodemon"},"keywords":["homebridge-plugin","chromecast","google tv","homekit"],"dependencies":{"castv2-client":"^1.2.0","dnssd":"^0.4.1","homebridge-lib":"^7.1.4"},"devDependencies":{"@eslint/js":"^9.21.0","@types/node":"^22.13.5","eslint":"^9.21.0","homebridge":"^2.0.0","nodemon":"^3.1.9","rimraf":"^6.0.1","ts-node":"^10.9.2","typescript":"^5.7.3","typescript-eslint":"^8.24.1"},"directories":{"test":"test"},"author":{"name":"Ruben Rodriguez"},"types":"./dist/index.d.ts","homepage":"https://github.com/rubenRP/homebridge-chromecast-google-tv#readme","_id":"homebridge-chromecast-google-tv@2.0.2","gitHead":"76b49c3b5350fe8ab6d8ade13fb50c971ac929b0","_nodeVersion":"22.16.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-5v1hmPRJzt/eoWMXgKhYiefzarDMSHY/MtylrqFZSqpqdvn9xUS7JX/jYjiKTwo+RRHqnu6aWzaroqXFvF/5oQ==","shasum":"9bf75a5f7c8ab14348416a8a2319aa171705573c","tarball":"https://registry.npmjs.org/homebridge-chromecast-google-tv/-/homebridge-chromecast-google-tv-2.0.2.tgz","fileCount":22,"unpackedSize":85924,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEHoxW/GhMVLswHbK8/C6O+MCjqsBjrPKL6eJratdKqxAiEAjyLXxHVGV4y0df9xdXAKGdPDQJUtNa4p2tn/nnQssCc="}]},"_npmUser":{"name":"rubenrp","email":"ruben.rodriguezpaz@gmail.com"},"maintainers":[{"name":"rubenrp","email":"ruben.rodriguezpaz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/homebridge-chromecast-google-tv_2.0.2_1779102797581_0.038448478655960905"},"_hasShrinkwrap":false}},"maintainers":[{"name":"rubenrp","email":"ruben.rodriguezpaz@gmail.com"}],"description":"Integration with google TV to control it with HomeKit and create integrations","homepage":"https://github.com/rubenRP/homebridge-chromecast-google-tv#readme","keywords":["homebridge-plugin","chromecast","google tv","homekit"],"repository":{"type":"git","url":"git+https://github.com/rubenRP/homebridge-chromecast-google-tv.git"},"author":{"name":"Ruben Rodriguez"},"bugs":{"url":"https://github.com/rubenRP/homebridge-chromecast-google-tv/issues"},"license":"Apache-2.0","readme":"# Chromecast Television Accessory\n\nThis plugin will discover all chromecasts on the network and create a Television/Streaming Accessory. Supported are Chromecast with Google TV.\n\nIt triggers on/off when the Chromecast is activated or deactivated. Useful for automatizations\n\n## Compatibility\n\n- **Homebridge**: 1.6+ and 2.0+\n- **Node.js**: 18.x / 20.x (Homebridge 1.x) and 22.x / 24.x (Homebridge 2.0)\n\nIf you upgraded to Homebridge 2.0 and the plugin disappeared, reinstall it — the package was temporarily removed from npm and has been republished:\n\n```sh\nnpm install -g homebridge-chromecast-google-tv@latest\n```\n\n### Discovery Methods\n\nThe plugin uses multiple discovery methods to find Chromecast devices:\n\n1. **Primary Method**: mDNS discovery using the `dnssd` library (more reliable and Node.js 22 compatible)\n2. **Fallback Method**: Manual network scanning as a backup\n\nIf the primary dnssd method fails, the plugin automatically falls back to manual network scanning to ensure reliable device detection.\n\n## Installation\n\n```sh\nnpm i -g homebridge-chromecast-google-tv\n```\n\nAdd this to your config.json.\n\n```json\n\"platforms\":[\n    {\n        \"name\": \"Google TV\",\n        \"category\": \"TELEVISION\",\n        \"platform\": \"HomebridgeChromecastGoogleTV\"\n    }\n]\n```\n\n### Configuration Options\n\n- **name**: The name that will appear in HomeKit\n- **category**: Controls the icon shown in Apple Home app. Options:\n  - `TELEVISION` - TV icon (default)\n  - `TV_STREAMING_STICK` - Streaming stick icon\n  - `TV_SET_TOP_BOX` - Set-top box icon\n  - `APPLE_TV` - Apple TV icon\n\nYou can specify category for HomeKit accessory. This determines the icon displayed in the Apple Home app but does not change the device functions.\n![Image](https://user-images.githubusercontent.com/8211291/123853650-b295ad80-d8eb-11eb-8d75-9ff557671ec9.jpeg)\n\n## Behavior\n\n### Power State\n\n- **ON**: Chromecast is active and running applications\n- **OFF**: Chromecast is in standby mode\n\nWhen the Chromecast enters standby mode, it will appear as \"OFF\" in HomeKit. When it becomes active (playing content, showing home screen, etc.), it will appear as \"ON\" in HomeKit.\n\n### Input Sources\n\nThe plugin automatically creates and manages input sources based on the current Chromecast state:\n\n- **Standby**: When the device is in standby mode\n- **Home Screen**: When the device is active but no specific app is running\n- **App Name**: When a specific application is running (Netflix, YouTube, etc.)\n\n## Add to HomeKit\n\nThis plugin adds the Chromecast as an external device. Once the plugin is configured you will have to add a new accessory in the Home app using the same code as your homebridge instance.\n\nDue to an Apple limitation TV-type devices cannot be controlled in 3rd party HomeKit apps such as Eve.\n\n## Credits\n\n[@homebridge-chromecast-television](https://github.com/benov84/homebridge-chromecast-television#readme)\n[@homebridge-control-chromecast](https://github.com/yotamtal/homebridge-control-chromecast#readme)\n\n### Build Plugin\n\nTypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.\n\n```shell\n$ npm run build\n```\n\n### Link To Homebridge\n\nRun this command so your global installation of Homebridge can discover the plugin in your development environment:\n\n```shell\n$ npm link\n```\n\nYou can now start Homebridge, use the `-D` flag, so you can see debug log messages in your plugin:\n\n```shell\n$ homebridge -D\n```\n\n### Watch For Changes and Build Automatically\n\nIf you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes, you first need to add your plugin as a platform in `~/.homebridge/config.json`:\n\n```\n{\n...\n    \"platforms\": [\n        {\n            \"name\": \"Config\",\n            \"port\": 8581,\n            \"platform\": \"config\"\n        },\n        {\n            \"name\": \"<PLUGIN_NAME>\",\n            //... any other options, as listed in config.schema.json ...\n            \"platform\": \"<PLATFORM_NAME>\"\n        }\n    ]\n}\n```\n\nand then you can run:\n\n```shell\n$ npm run watch\n```\n\nThis will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.\n","readmeFilename":"README.md"}