当前位置: 首页 > 软件库 > 其他开源 > 物联网 >

homebridge-lg-thinq-ac

授权协议 Apache-2.0 License
开发语言 JavaScript
所属分类 其他开源、 物联网
软件类型 开源软件
地区 不详
投 递 者 潘刚洁
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

homebridge-lg-thinq-ac

Release

Homebridge plugin for LG ThinQ-enabled portable air conditioners.

WARNING: This has only been tested with the LP1419IVSM model. This may not work with other models.

Installation guide

  1. Mobile app setup

    • Set up the air conditioner using the "LG ThinQ" app (iOS | Google Play)
    • Ensure the air conditioner shows up in the app and responds to controls
  2. Install the homebridge plugin

    • sudo npm -g i homebridge-lg-thinq-ac
  3. Add platform to config.json

    • I highly recommend using homebridge-config-ui-x to make these changes
    • Add the appropriate country & language code for your account
    • Add the following to your config (or merge with the platforms array if it exists):
    {
      "platforms": [
        {
          "platform": "LgThinqAirConditioner",
          "country_code": "US",
          "language_code": "en-US"
        }
      ]
    }
    
  4. Restart Homebridge

  5. Log into your LG account

    • Wait for Homebridge to start back up.
    • In the Homebridge Config UI, click the "Plugins" tab.
    • In the list of plugins, click "Settings" under "LG ThinQ Air Conditioner"
    • In the modal that pops up, find "Login URL". Copy & paste this URL into another browser tab.
    • Log into your LG account. You should be redirected to a blank page.
    • On the blank page, copy the URL address of that page and close the tab
  6. Paste back the returned URL

    • Keeping the URL you copied at the end of Step 5, open the Homebridge Config UI
    • In the plugin settings, paste the URL into "Redirected URL"
    • Click "Save" and restart Homebridge
  7. Try it out!

    • Wait for Homebridge to start back up
    • Open HomeKit on your device! You should now see your air conditioner pop up.

Debugging

  • If you have issues, review the Homebridge logs (found on the "status" page of the Homebridge Config UI).
  • If you see 400 errors or otherwise suspect auth/login issues, clear all config values for the plugin, restart Homebridge, and follow the installation guide again.

Setup Development Environment

To develop Homebridge plugins you must have Node.js 12 or later installed, and a modern code editor such as VS Code. This plugin template uses TypeScript to make development easier and comes with pre-configured settings for VS Code and ESLint. If you are using VS Code install these extensions:

Install Development Dependencies

Using a terminal, navigate to the project folder and run this command to install the development dependencies:

npm install

Build Plugin

TypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your src directory and put the resulting code into the dist folder.

npm run build

Link To Homebridge

Run this command so your global install of Homebridge can discover the plugin in your development environment:

npm link

You can now start Homebridge, use the -D flag so you can see debug log messages in your plugin:

homebridge -D

Watch For Changes and Build Automatically

If you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:

npm run watch

This will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will 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 file.

Commit Message Format

Release notes are automatically generated by semantic-release. Please follow the Angular commit guidelines for formatting commit messages.

Publish Package

New versions are automatically built, versioned, and published by semantic-release. Every push to the master branch will trigger a release, with a version bump that respects the types of new commit(s) included.

Versioning Your Plugin

Given a version number MAJOR.MINOR.PATCH, such as 1.4.3, increment the:

  1. MAJOR version when you make breaking changes to your plugin,
  2. MINOR version when you add functionality in a backwards compatible manner, and
  3. PATCH version when you make backwards compatible bug fixes.
  • LG G8X ThinQ是一款全新发布的机型,这款手机和iPhone12一样不赠送充电器,那么这款手机的参数配置是什么?有哪些值得入手的地方?小编为大家带来最新的手机性能评测,快来看看吧。 一、参数配置 手机型号 LG G8X ThinQ 手机屏幕 6.1英寸,3120x1440像素,双屏手机 手机性能 骁龙855处理器 手机前置 3200万 手机后置 1200万主摄 1300万超广角 手机电池

 相关资料
  • Homebridge LG ThinQ Overview A Homebridge plugin for controlling/monitoring LG ThinQ device via their ThinQ platform. ⚠️ This library works with v2 of the LG ThinQ API. But some v1 device may backward

  • 我现在正在阅读Twitter Bootstrap 3上的文档,并尝试按照本页所示的列顺序进行排序,但遇到了问题。我不明白为什么这样的代码可以工作,也不知道如何正确地指定设置。我想展示的是一个网格,它由长度5组成,另一个长度5,最后是一个长度2的网格。 所以我的是这样的: 我想实现的是,当它在桌面上查看时,上面的布局会显示出来,但是当它在移动设备上查看时,我想先显示第二个长度5的对象,然后是第一个长

  • 问题内容: 我现在正在阅读Twitter Bootstrap3上的文档,并试图按照此页面上所示的顺序进行排序,但遇到了麻烦。我不明白为什么这样的代码有效,也不知道如何正确指定设置。我要显示的是一个网格,它由长度5,另一个长度5和最后一个长度2网格组成。 所以我的是这样的: 我要实现的是,在桌面上查看时会显示上面的布局,但是在移动设备上查看时,我想先显示第二个长度为5的对象,然后是第一个长度为5的对

  • 我正在与亚洲开发银行和LG G6就OSX进行斗争。 > 尝试安装LG Mobile驱动程序。 尝试了MPT, PTP和其他模式没有运气 尝试启用USB连接 似乎没有什么工作,有人有同样的问题吗?? 谢谢

  • Homebridge 是一个轻量级 NodeJS 服务器,它模拟 iOS HomeKit API,提供从 HomeKit 到“智能家居”设备制造商提供的各种第三方 API 的基本桥接。通过 Homebridge 的桥接,可以让 Siri 控制完全不支持 HomeKit 的设备。 此外 Homebridge 支持插件。

  • homebridge-mi-acpartner English Version | 中文版 小米空调伴侣的Homebridge插件 感谢takatost,miio,YinHangCode和所有测试开发人员提供支持。 注意:此插件于0.6.0版本后修改了配置文件,请根据本文修改你的配置文件使插件正常工作。 若要查看抓包教程,请访问此项目Github的Wiki页面 Support(支持) 空调伴侣型号