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

AMoo-Miki/homebridge-tuya-lan: Homebridge plugin for IoT devices that use Tuya S ...

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

开源软件名称:

AMoo-Miki/homebridge-tuya-lan

开源软件地址:

https://github.com/AMoo-Miki/homebridge-tuya-lan

开源编程语言:

JavaScript 100.0%

开源软件介绍:

homebridge-tuya-lan

Homebridge plugin for IoT devices that use Tuya Smart's platform, allowing them to be exposed to Apple's HomeKit.

Installation

Install this plugin using npm i -g homebridge-tuya-lan.

Update the config.json file of your Homebridge setup, by modifying the sample configuration below. Detailed steps for getting the id and key combinations of your devices can be found on the Setup Instructions page.

Updating

Update to the latest release of this plugin using npm i -g homebridge-tuya-lan.

If you feel brave, want to help test unreleased devices, or are asked to update to the latest unreleased version of the plugin, use npm i -g AMoo-Miki/homebridge-tuya-lan.

Configurations

The configuration parameters to enable your devices would need to be added to platforms section of the Homebridge configuration file. Examples of device configs can be found on the Supported Devices page. Check out the Common Problems page for solutions or raise an issue if you face problems.

{
    ...
    "platforms": [
        ...
        /* The block you need to enable this plugin */
        {
            "platform": "TuyaLan",
            "devices": [
                /* The block you need for each device */
                {
                    "name": "Hallway Light",
                    "type": "SimpleLight",
                    "manufacturer": "Cotify",
                    "model": "Smart Wifi Bulb Socket E26",
                    "id": "011233455677899abbcd",
                    "key": "0123456789abcdef"
                }
                /* End of the device definition block */ 
            ]
        }
        /* End of the block needed to enable this plugin */
    ]
    ...
}

Parameters

  • name (required) is anything you'd like to use to identify this device. You can always change the name from within the Home app.
  • type (required) is a case-insensitive identifier that lets the plugin know how to handle your device. Find your device type on the Supported Devices page.
  • manufacturer and model are anything you like; the purpose of them is to help you identify the device.
  • id (required) and key (required) are parameters for your device. If you don't have them, follow the steps found on the Setup Instructions page.
  • ip needs to be added only if you face discovery issues. See Common Problems for more details.

To find out which id belongs to which device, open the Tuya Smart app and check the Device Information by tapping the configuration icon of your devices; it is almost always a tiny icon on the top-right.

Credit

To create this plugin, I learnt a lot from Max Isom's work on his TuyAPI project to create my communication driver.




鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
nfarina/homebridge-legacy-plugins: Legacy plugins for Homebridge: https://github ...发布时间:2022-06-14
下一篇:
knative/homebrew-client发布时间:2022-06-14
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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