{"id":20576614,"url":"https://github.com/hobbyquaker/lgtv2mqtt","last_synced_at":"2025-10-19T11:51:07.005Z","repository":{"id":143885786,"uuid":"47511828","full_name":"hobbyquaker/lgtv2mqtt","owner":"hobbyquaker","description":"Interface between LG WebOS Smart TVs and MQTT :tv:","archived":false,"fork":false,"pushed_at":"2023-01-17T17:59:20.000Z","size":17,"stargazers_count":106,"open_issues_count":8,"forks_count":34,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-12-11T08:22:13.698Z","etag":null,"topics":["lg","mqtt","smart-tv","smarthome","tv","webos"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hobbyquaker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-12-06T20:08:07.000Z","updated_at":"2024-06-03T23:21:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"79e625dc-b250-4952-97cc-bf824a21475f","html_url":"https://github.com/hobbyquaker/lgtv2mqtt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hobbyquaker%2Flgtv2mqtt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hobbyquaker%2Flgtv2mqtt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hobbyquaker%2Flgtv2mqtt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hobbyquaker%2Flgtv2mqtt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hobbyquaker","download_url":"https://codeload.github.com/hobbyquaker/lgtv2mqtt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230017503,"owners_count":18160283,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lg","mqtt","smart-tv","smarthome","tv","webos"],"created_at":"2024-11-16T05:46:22.842Z","updated_at":"2025-10-19T11:51:06.934Z","avatar_url":"https://github.com/hobbyquaker.png","language":"JavaScript","funding_links":[],"categories":["Interfaces","Platforms"],"sub_categories":["Home Entertainment","LG webOS"],"readme":"# lgtv2mqtt\n\n[![mqtt-smarthome](https://img.shields.io/badge/mqtt-smarthome-blue.svg)](https://github.com/mqtt-smarthome/mqtt-smarthome)\n[![NPM version](https://badge.fury.io/js/lgtv2mqtt.svg)](http://badge.fury.io/js/lgtv2mqtt)\n[![Dependencies Status](https://david-dm.org/hobbyquaker/lgtv2mqtt/status.svg)](https://david-dm.org/hobbyquaker/lgtv2mqtt)\n[![Build Status](https://travis-ci.org/hobbyquaker/lgtv2mqtt.svg?branch=master)](https://travis-ci.org/hobbyquaker/lgtv2mqtt)\n[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)\n[![License][mit-badge]][mit-url]\n\n\u003e Interface between LG WebOS Smart TVs and MQTT 📺\n\n\n### Getting started\n\n* TV configuration\n\nYou need to allow \"LG Connect Apps\" on your TV - see http://www.lg.com/uk/support/product-help/CT00008334-1437131798537-others\n\n\n* Install\n\n```npm install -g lgtv2mqtt```\n\n\n* Start \n\n```lgtv2mqtt --help```  \n\n\n### Topics subscribed by lgtv2mqtt\n\nTopics and Payloads follow [mqtt-smarthome Architecture](https://github.com/mqtt-smarthome/mqtt-smarthome).\n\n#### lgtv/set/mute\n\nEnable or disable mute. Payload should be one off '0', '1', 'false' and 'true'.\n\n#### lgtv/set/volume\n\nSet volume. Expects value between 0 and 100.\n\n#### lgtv/set/toast\n\nShow a Popup Message. Send Message as plain payload string.\n\n#### lgtv/set/launch\n\nLauch an app. Send AppId as plain payload string.\n\n#### lgtv/set/media.controls/play\n\n#### lgtv/set/media.controls/pause\n\n#### lgtv/set/media.controls/stop\n\n#### lgtv/set/media.controls/rewind\n\n#### lgtv/set/media.controls/fastForward\n\n#### lgtv/set/system/turnOff\n\n#### lgtv/set/com.webos.service.tv.display/set3DOn\n\n#### lgtv/set/com.webos.service.tv.display/set3DOff\n\n#### lgtv/set/move lgtv/set/drag\n\nSend coordinates as JSON with attributes dx and dy of type number\n\nExample payload: ```{dx: 100, dy: 0}```\n\n#### lgtv/set/scroll\n\nSend coordinates as JSON with attributes dx and dy of type number\n\n#### lgtv/set/click\n\n#### lgtv/set/button\n\nSend button as plain string payload\n\nButtons that are known to work:\nMUTE, RED, GREEN, YELLOW, BLUE, HOME, MENU, VOLUMEUP, VOLUMEDOWN, CC, BACK, UP, DOWN, LEFT, ENTER, DASH, 0-9, EXIT,\nchannelup, channeldown, record\n                    \n#### lgtv/set/youtube \n\nYoutube video ID as payload. Runs youtube app and opens video.                    \n                    \n\n### topics published by lgtv2mqtt\n\n#### lgtv/status/volume\n\nReports volume changes. Payload is the plain value.\n\n#### lgtv/status/mute\n\nReports mute changes. Payload is '0' (not muted) or '1' (muted).\n\n#### lgtv/status/foregroundApp\n\nReports which App is currently in foreground. (example Payloads: 'netflix', 'com.webos.app.livetv', 'com.webos.app.hdmi2')\n\n#### lgtv/status/currentChannel\n\nReports current channel if foregroundApp is 'com.webos.app.livetv'. Payload is a JSON String, property val contains the\nchannelNumber, underneath 'lgtv' you will find more properties with detailed information.\n\n\n## License\n\nMIT © [Sebastian Raff](https://github.com/hobbyquaker)\n\n[mit-badge]: https://img.shields.io/badge/License-MIT-blue.svg?style=flat\n[mit-url]: LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhobbyquaker%2Flgtv2mqtt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhobbyquaker%2Flgtv2mqtt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhobbyquaker%2Flgtv2mqtt/lists"}