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

rnilssoncx/homebridge-pico: Expose Lutron Pico Remotes in Homebridge: https://gi ...

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

开源软件名称:

rnilssoncx/homebridge-pico

开源软件地址:

https://github.com/rnilssoncx/homebridge-pico

开源编程语言:

JavaScript 100.0%

开源软件介绍:

Pico Platform

verified-by-homebridge npm donate

A platform that exposes Lutron Pico Remotes to Homekit as buttons. Supports single, double, and long press actions.

Requirements

Lutron Caseta Pro bridge

This plugin will not work with the standard Caseta bridge.

Why do we need this platform

Lutron Pico Remote are a seemless way to add virtual control to any homekit device or scene.

Installation instructions

After Homebridge has been installed:

sudo npm install -g homebridge-pico

In the Lutron mobile app go to configure, choose Advanced, and then Integration. Enable Telnet Support. You can also choose to "Send Integration Report" here and it will email you the device list with IDs for your bridge.

Configure the plugin with buslog set to monitor or full. Add your Pico remotes to your Lutron Pro bridge. You do not have to associate the Pico remotes with Lutron lights. Simply push any button on the Pico remote you'd like to add to this plugin and you'll see a log entry like this in homebridge:

[6/13/2020, 11:14:23] [Pico] [<bridge IP>] Bus Data: ~DEVICE,63,2,3

The number after DEVICE is the ID of the Pico remote you just pressed.

Example config.json:

{
  "bridge": {
      ...
  },
  "platforms": [
    {
      "platform": "Pico",
      "buslog": "monitor",
      "servers": [
        {
          "host": "<IP Address or Host Name>",
          "port": 23,
          "switches": [
            {
              "name": "Kitchen Pico",
              "pico": 22,
              "type": "simple"
            },
            {
              "name": "Home Theater Pico",
              "pico": [11,31],
              "type": "custom",
              "buttons": [2,4,5],
              "repeat": [2,4]
            }
          ]
        }
      ]
    }
  ]
}

servers: You can have one or more Lutro Caseta Pro bridges

host: IP Address or hostname of the Lutron Caseta Pro bridge

port: Port to use for the Lutron Caseta Pro bridge (default: 23)

switches: List of the Pico remotes to be exposed to Homekit

  • name: Name of the remote as it will appear in HomeKit
  • pico: One or more Pico Remotes that will trigger the Homekit button
  • repeat: (optional) Buttons to enable for repeating long press
  • repeatmax: (optional) Maximum repeats for a button (default: 10)
  • type:
    • PJ2-2B: Two buton Pico (previously simple - on/off
    • PJ2-2BRL: Four button Pico (previously dimmer) - on/brighten/dim/off
    • PJ2-3B: Three button Pico - on/favorite/off
    • PJ2-3BRL: Five button Pico (previously favorite) - on/brigthen/favorite/dim/off
    • PJ2-4B-XXX-L01: Four button Pico for lights - on/up/down/off
    • PJ2-4B-XXX-S01: Four button Pico for shades - on/up/down/off
    • PJ2-4B-XXX-L21: Four button Pico for 2 lights - on1/off1/on2/off2
    • PJ2-4B-XXX-S21: Four button Pico for 2 shades - open1/closed1/open2/closed2
    • PJ2-4B-XXX-LS21: Four button Pico for lights and shades - on/off/open/closed
    • PJ2-4B-XXX-L31: Four button Pico for lights (Previously scene) - scene1/scene2/scene3/off
    • PJ2-4B-XXX-S31: Four button Pico for lights - open/scene1/scene2/close
    • PJ2-4B-XXX-L41: Four button Pico with 4 toggles - toggle1/toggle2/toggle3/toggle4
    • custom: User specified button list. You must add a list with the buttons as in the example above
    • If you aren't sure what type to choose, the 2nd number after "DEVICE" in the log is the button pressed. You can press the buttons on the Pico remote and compare the output to the list in accessory.js. If you find you have buttons configured differently, or not in the list, please let me know and I'll add your Pico.

Optional platform settings:

  • buslog: (default: off)

    • off: No bus logging
    • monitor: Show Lutron commands sent and received on bus
    • full: Show all bus and keep alive activity
  • clicktime: The timeout for detecting a doubleclick in milliseconds. (default: 500)

  • slowbuttons: The up and down buttons on remotes can repeat when directly paired with a Lutron switch. I believe they already have a built in delay because of this capability. This makes these two buttons not capable of a double click with the default clicktime. This setting allows you to list out buttons you want extra time alloted to correct for this. (default: [5,6])

  • slowextra: This sets the additional time added to the buttons listed in slowbuttons. (default: 250)

  • repeattime: The delay for repeating long presses in milliseconds. (default: 500)

  • longname: If you'd like the name of the switch added to the function (Dining Room Single Press instead of Single Press) set this to true. For normal installations this should not be needed. (default: false)

Credits

See CONTRIBUTORS for acknowledgements to the individuals that contributed to this plugin.

Some asks for friendly gestures

If you use this and like it - please leave a note by staring this package here or on GitHub.

If you use it and have a problem, file an issue at GitHub - I'll try to help.

If you tried this, but don't like it: tell me about it in an issue too. I'll try my best to address these in my spare time.

If you fork this, go ahead - I'll accept pull requests for enhancements.

License

MIT License

Copyright (c) 2018 Robert Nilsson

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.




鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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