npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@peterhsilva/homebridge-lg-thinq

v1.5.1

Published

A Homebridge plugin for controlling/monitoring LG ThinQ device via LG ThinQ platform.

Downloads

2

Readme

Homebridge LG ThinQ

verified-by-homebridge npm npm join-discord

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 compatible, please check table Implementation Status below.

A plugin for interacting with the "LG ThinQ" system, which can control new LG smart device. API used in this plugin is not official, I reversed from their "LG ThinQ" mobile app.

Installation

npm i -g homebridge-lg-thinq

Configuration

✔️ I highly recommend using homebridge-config-ui-x to make these changes.

  1. Navigate to the Plugins page in homebridge-config-ui-x.
  2. Click the Settings button for the LG ThinQ plugin.
  3. Login to your LG account
  4. Add or remove which devices you want
  5. Restart Homebridge for the changes to take effect.

⚠️ Or you can manual edit it, add json below to config.json (not recommend)

{
  "auth_mode": "token",
  "refresh_token": "**refresh*token**",
  "username": "lg username",
  "password": "lg password",
  "country": "US",
  "language": "en-US",
  "thinq1": false,
  "devices": [
	{
	  "id": "device id"
	}
  ],
  "platform": "LGThinQ"
}
  • auth_mode Required. You can choose between token and account
  • refresh_token Required if auth_mode = token. The refresh_token of your account.
  • username Required if auth_mode = account. LG thinQ account
  • password Required if auth_mode = account. LG thinQ password
  • country Required. Your account country alpha-2 code, e.g., US for the USA.
  • language Required. Your account language code, e.g., en-US, vi-VN.
  • devices List devices you want add to homebridge, leave it empty if you want add all devices. See Wiki for specific device configuration.
  • thinq1 Optional. Enable thinq1 device support
  • platform value always LGThinQ

Plugin Authorization Setting

Device specific configuration

Implementation Status

| Device | Implementation | Status | Control | Thinq2 | Thinq1 | | --- | --- | --- | --- | --- | --- | | Refrigerator | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | Air Purifier | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | Washer & Dryer | ✔️ | ✔️ | 🚫 | ✔️ | ✔️ | | Dishwasher | ✔️ | ✔️ | 🚫 | ✔️ | 🚫 | | Dehumidifier | ✔️ | ✔️ | ⚠️ | ✔️ | 🚫 | | AC | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |

for more device support please open issue request.

Support

If you have a question, please start a discussion or leave a message at discord channel.
If you would like to report a bug, please open an issue.

CLI Usage

$ thinq
Usage: thinq [options] [command]

Options:
  -c, --country <type>         Country code for account (default: "US")
  -l, --language <type>        Language code for account (default: "en-US")
  -h, --help                   display help for command

Commands:
  login <username> <password>  Obtain refresh_token from LG account
  auth                         Obtain refresh_token from account logged by Google Account, Apple ID
  help [command]               display help for command