在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:paolotremadio/homebridge-automation-chromecast开源软件地址:https://github.com/paolotremadio/homebridge-automation-chromecast开源编程语言:JavaScript 100.0%开源软件介绍:Automation - Chromecast / Chromecast AudioInstallationInstall dependenciesThis command will work on Raspbian. Please Google the right comand for your platform.
Config exampleExample config.json: {
"accessories": [
{
"accessory": "AutomationChromecast",
"name": "Test",
"chromecastDeviceName": "<The device Name of your Chromecast>",
"switchOffDelay": 10000
}
]
} This accessory will create a switch linked with the status of a Chromecast or Chromecast Audio device. When you stream some audio/video to the Chromecast / Chromecast Audio, the switch turns on and the Sensor detects movement. Stop the streaming will turn the switch off and the sensor will stop detecting movements. Turning On the switch will play the currently casted stream. Turning Off the switch will stop the stream. The switch has the following properties:
Note: some properties are not compatible with iOS Home app, use Elgato Eve app instead. Configuration options
CreditsThis project as been largely inspired by the work of @robertherber ExamplesDim the lights when I stream some video to my Chromecast
Turn on/off the speakers when I streaming musicLet's assume you have some powered speakers that need to be turned on before use (I have for example the Yamaha HS8). You can connect the speakers to a Chromecast Audio device and connect the to an Elgato Eve Energy) switch. You want to turn On the speakers automatically when streaming music and turning them Off once done. Here's how:
Using a delay will prevent the speakers from switching on and off constantly when you momentarily stop/start a stream (to avoid damages to the speakers) Other examples
Other useful pluginsDo you want to play some audio/video on demand from your automation? Check my homebridge-automation-chromecast-play plugin. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论