Interface between LG WebOS Smart TVs and MQTT
- Install
npm install -g lgtv2mqtt
- Start
lgtv2mqtt --help
Topics and Payloads follow mqtt-smarthome Architecture.
Enable or disable mute. Payload should be one off '0', '1', 'false' and 'true'.
Set volume. Expects value between 0 and 100.
Show a Popup Message. Send Message as plain payload string.
Lauch an app. Send AppId as plain payload string.
Reports volume changes. Payload is the plain value.
Reports mute changes. Payload is '0' (not muted) or '1' (muted).
Reports which App is currently in foreground. (example Payloads: 'netflix', 'com.webos.app.livetv', 'com.webos.app.hdmi2')
Reports current channel if foregroundApp is 'com.webos.app.livetv'. Payload is a JSON String, property val contains the channelNumber, underneath 'lgtv' you will find more properties with detailed information.
MIT © Sebastian Raff