• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

NorthernMan54/homebridge-yamaha-home: Homebridge plugin for my Yamaha Receiver o ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

NorthernMan54/homebridge-yamaha-home

开源软件地址:

https://github.com/NorthernMan54/homebridge-yamaha-home

开源编程语言:

JavaScript 99.2%

开源软件介绍:

Homebridge-Yamaha-Home

NPM Downloads

homebridge-plugin for Yamaha AVR control with Apple-Homekit. Optimized for use with the Apple Home App and with homebridge-alexa. Creates a Fan for each zone with the Fan speed being the volume. ( I was originally using light bulbs, but switched as Siri and Alexa were turning off the stereo when you asked her to turn off all the lights.)

Installation

Follow the instruction in NPM for the homebridge server installation. The plugin is published through NPM and should be installed "globally" by typing:

sudo npm install -g homebridge-yamaha-home

Configuration

config.json

  • play_volume - Sets volume to this when turning on, defaults to -48
  • min_volume -
  • max_volume -
  • setMainInputTo - Sets input to this when turning on, no default.
  • show_input_name - Creates a button to display which input is selected, defaults to no
  • manual_addresses - Only required if Bonjour/Autodetection doesn't work.
  • expected_devices - Maximum number of accessories created, defaults to 100
  • discovery_timeout - How long to stay in discovery mode, defaults to 30
  • radio_presets - Create a switch for each radio preset, defaults to false ( true/false )
  • preset_num - Names the switch the number of the preset, defaults to false ( true/false ). Otherwise the name is the frequency. ( useful with Siri and Alexa )
  • zone - Zone name
  • zone_controllers_only_for - A list of zone names for which an accessory is to be created. If no value for this key is provided, then accessories for all available zones are created.

Optional Properties:

  • party_switch - You can choose whether you need Party Mode Switch or not. "party_switch": "yes" if needed or don't add this property if you don't need the switch.
  • inputs_as_accessories - If property exists, Input or Scene switch will be created. Checkout a config for an example.
  • YamahaReceiver - Here should be your yamaha recevier network name. Additional switches won't work with a wrong receiver name.
  • set_scene – If property exists, Scene switch will be created. Checkout a config for example.
  • setInputTo - use this property to specify input for switch. Also, add this property if you want a scene switch (use the same input name as in your receiver scene settings).
  • spotify - Enable spotify control buttons
  • nozones - Do not create an accessory per zone

Use with Siri

I have been looking for a way to tell Siri (on my HomePod Mini) to turn up or down the volume on the Yamaha Receiver. This plugin works perfectly using the Home app, where adjusting the "fan speed" changes the receiver volume. For anyone curious, this works for me: Hei, Siri, set the living room TV to 40 percent.

Basic config.json config

"platforms": [{ "platform": "yamaha-home", "max_volume": 10 }

Example advanced configuration

Example config.json:

{
    "bridge": {
        "name": "Homebridge",
        "username": "CC:22:3D:E3:CE:51",
        "port": 51826,
        "pin": "031-45-154"
    },
    "description": "This is an example configuration file for homebridge plugin for yamaha AVR",
    "hint": "Always paste into jsonlint.com validation page before starting your homebridge, saves a lot of frustration",

  "platforms": [
    {
      "platform": "yamaha-home",
      "play_volume": -48,
      "setMainInputTo": "Airplay",
      "show_input_name": "yes",
      "party_switch": "yes",
      "inputs_as_accessories":{
        "YamahaReceiver": {
          "1": {
                "name":"Raspberry",
                "setInputTo": "HDMI1",
                "set_default_volume": -49
           },
          "2": {
                "name":"AppleTV",
                "setInputTo": "HDMI2"
           },
           "3": {
                "name": "Scene 3",
                "set_scene": "3",
                "setInputTo": "HDMI3"
          }
        }
      },
      "manual_addresses": {
          "Yamaha": "192.168.1.115"
      }
    }
  ],
  "accessories": [
      {}
    ]
}

My personal configuration

{
  "platform": "yamaha-home",
  "discovery_timeout": 5,
  "radio_presets": true,
  "preset_num": true,
  "max_volume": 20,
  "party_switch": "yes",
  "spotify": true,
  "inputs_as_accessories": {
    "YamahaReceiver": {
      "1": {
        "name": "Input Radio",
        "setInputTo": "TUNER"
      },
      "2": {
        "name": "Input Spotify",
        "setInputTo": "Spotify"
      }
    }
  }
}

Other Yamaha Receiver Plugins

homebridge-yamaha-zone-tv For multi-zone Yamaha Receivers, and uses the Television control for each zone of the receiver.

homebridge-yamaha-avr For single zone Yamaha receivers, and uses the Television control for the receiver.

Credits

  • neonightmare - Creating the original plugin
  • TommyCardello - Adding Party Mode Switch, Adding Input or Scene Switches.



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap