PepperDash.Essentials.Plugin.LgDisplay
2.9.0
See the version list below for details.
dotnet add package PepperDash.Essentials.Plugin.LgDisplay --version 2.9.0
NuGet\Install-Package PepperDash.Essentials.Plugin.LgDisplay -Version 2.9.0
<PackageReference Include="PepperDash.Essentials.Plugin.LgDisplay" Version="2.9.0" />
<PackageVersion Include="PepperDash.Essentials.Plugin.LgDisplay" Version="2.9.0" />
<PackageReference Include="PepperDash.Essentials.Plugin.LgDisplay" />
paket add PepperDash.Essentials.Plugin.LgDisplay --version 2.9.0
#r "nuget: PepperDash.Essentials.Plugin.LgDisplay, 2.9.0"
#:package PepperDash.Essentials.Plugin.LgDisplay@2.9.0
#addin nuget:?package=PepperDash.Essentials.Plugin.LgDisplay&version=2.9.0
#tool nuget:?package=PepperDash.Essentials.Plugin.LgDisplay&version=2.9.0
PepperDash Essentials LG Display Plugin (c) 2025
License
Provided under MIT license
Overview
This repo contains a plugin for use with PepperDash Essentials. This plugin enables Essentials to communicate with and control an LG display over RS-232.
Example Config Object
{
"key": "display01",
"name": "Display 1",
"group": "displays",
"type": "lg",
"properties": {
"id": "01",
"volumeUpperLimit": 100,
"volumeLowerLimit": 0,
"pollIntervalMs": 45000,
"coolingTimeMs": 10000,
"warmingTimeMs": 10000,
"smallDisplay": false,
"control": {
"method": "com",
"controlPortNumber": 1,
"controlPortDevKey": "processor",
"comParams": {
"protocol": "RS232",
"parity": "None",
"baudRate": 9600,
"dataBits": 8,
"softwareHandshake": "None",
"hardwareHandshake": "None",
"stopBits": 1
}
},
"friendlyNames": [ //if you want to use friendly names, add this section
{
"inputKey": "90", //The input key for the input you want to use a friendly name for, this has to a valid input key(90,91,c0)
"name": "Friendly Name 1", //The desired name to be displayed on the screen
"hideInput": false //if set to true, the input will not be displayed in the list of inputs
},
{
"inputKey": "91",
"name": "Friendly Name 2",
"hideInput": false
},
{
"inputKey": "c0",
"name": "Friendly Name 3",
"hideInput": true
}
],
}
}
The smallDisplay configuration option is used to control padding of the power on command. If smallDisplay is true, the power on command sent will be ka 01 1. If smallDisplay is false, the power on command sent will be ka 01 01.
For more configuration information, see the PepperDash Essentials wiki.
Mock Display (bench testing without hardware)
The mockLgDisplay type builds the real LG controller on an in-process mock panel instead of a serial port. Power, warm-up and cool-down, inputs, volume, mute, polling and NG handling all run through the same code as with real hardware, so the room and the touchpanel behave the same way. To switch an existing display to the mock, change only type. Any control block is ignored. The type was named lgDisplayMock before 2026-10-19, and that name still works as an alias.
{
"key": "display01",
"name": "Display 1",
"group": "displays",
"type": "mockLgDisplay",
"properties": {
"id": "01",
"mock": { // optional; these are the defaults
"responseDelayMs": 50, // delay before the panel answers each command
"powerOn": false, // starting power state
"input": "90", // starting input: 90-93 (HDMI 1-4) or c0 (DisplayPort)
"volume": 20, // starting volume, 0-100
"muted": false,
"videoMuted": false
}
}
}
Like a real panel, the mock answers NG to input, volume and mute commands while it is off, and it answers the RS232 protocol only, so it starts polling without overrideWol.
Use the mocklg console command to make changes at the panel, or to inject faults. The controller picks up panel-side changes on its next poll.
mocklg display01 status
mocklg display01 power on|off
mocklg display01 input 90|91|92|93|c0
mocklg display01 volume 0-100
mocklg display01 mute on|off
mocklg display01 fault none|ng|silent // ng: answer everything with NG; silent: stop answering (goes offline)
Github Actions
This repo contains two Github Action workflows that will build this project automatically. Modify the SOLUTION_PATH and SOLUTION_FILE environment variables as needed. Any branches named feature/*, release/*, hotfix/* or development will automatically be built with the action and create a release in the repository with a version number based on the latest release on the master branch. If there are no releases yet, the version number will be 0.0.1. The version number will be modified based on what branch triggered the build:
featurebranch builds will be tagged with analphadescriptor, with the Action run appended:0.0.1-alpha-1developmentbranch builds will be tagged with abetadescriptor, with the Action run appended:0.0.1-beta-2releasebranches will be tagged with anrcdescriptor, with the Action run appended:0.0.1-rc-3hotfixbranch builds will be tagged with ahotfixdescriptor, with the Action run appended:0.0.1-hotfix-4
Builds on the Main branch will ONLY be triggered by manually creating a release using the web interface in the repository. They will be versioned with the tag that is created when the release is created. The tags MUST take the form major.minor.revision to be compatible with the build process. A tag like v0.1.0-alpha is NOT compatabile and may result in the build process failing.
If you have any questions about the action, contact Andrew Welker or Neil Dorin.
Minimum Essentials Framework Versions
- 2.16.0
Config Example
{
"key": "display-1",
"uid": 1,
"name": "Display",
"type": "lgDisplay",
"group": "display",
"properties": {
"id": "01",
"volumeUpperLimit": 100,
"volumeLowerLimit": 0,
"pollIntervalMs": 10000,
"coolingTimeMs": 10000,
"warmingTimeMs": 8000,
"smallDisplay": false,
"overrideWol": false,
"friendlyNames": [
{
"inputKey": "90",
"name": "HDMI 1",
"hideInput": false
},
{
"inputKey": "c0",
"name": "DisplayPort",
"hideInput": true
}
],
"control": {
"method": "com",
"controlPortDevKey": "processor",
"controlPortNumber": 1,
"comParams": {
"protocol": "RS232",
"baudRate": 9600,
"dataBits": 8,
"stopBits": 1,
"parity": "None",
"softwareHandshake": "None",
"hardwareHandshake": "None",
"pacing": 0
}
}
}
}
Supported Types
- lgDisplay
- lgPlugin
- lg
- lgDisplayIr
- mockLgDisplay
- lgDisplayMock
Interfaces Implemented
- ISelectableItems<string>
- IBasicVolumeWithFeedback
- ICommunicationMonitor
- IInputHdmi1
- IInputHdmi2
- IInputHdmi3
- IInputHdmi4
- IInputDisplayPort1
- IBridgeAdvanced
- IHasInputs<string>
- IBasicVideoMuteWithFeedback
- IWarmingCooling
- IBasicCommunication
- IBasicVolumeControls
- IDPad
- INumericKeypad
- ITransport
- IChannel
- IColor
Base Classes
- DisplayControllerJoinMap
- TwoWayDisplayBase
- LgDisplayPropertiesConfig
- DisplayBase
Public Methods
- public void Select()
- public void SetVolume(ushort level)
- public void MuteOn()
- public void MuteOff()
- public void MuteToggle()
- public void VolumeDown(bool pressRelease)
- public void VolumeUp(bool pressRelease)
- public void VideoMuteOn()
- public void VideoMuteOff()
- public void VideoMuteToggle()
- public void VideoMuteGet()
- public void LinkToApi(BasicTriList trilist, uint joinStart, string joinMapKey, EiscApiAdvanced bridge)
- public void SendData(string s)
- public void ListRoutingInputPorts()
- public void MuteGet()
- public void VolumeGet()
- public void InputHdmi1()
- public void InputHdmi2()
- public void InputHdmi3()
- public void InputHdmi4()
- public void InputDisplayPort1()
- public void InputGet()
- public void PowerGet()
- public void UpdateInputFb(string s)
- public void UpdatePowerFb(string s)
- public void UpdateVideoMuteFb(string s)
- public void UpdateVolumeFb(string s)
- public void UpdateMuteFb(string s)
- public void StatusGet()
- public string Respond(string line)
- public void SetPower(bool on)
- public bool SetInput(string inputCode)
- public void SetVolume(int level)
- public void SetMute(bool muted)
- public string Describe()
- public void Connect()
- public void Disconnect()
- public void SendText(string text)
- public void SendBytes(byte[] bytes)
- public void Select()
- public void LinkToApi(BasicTriList trilist, uint joinStart, string joinMapKey, EiscApiAdvanced bridge)
- public void SendIrCommand(string cmd)
- public void PowerOnPress(bool pressRelease)
- public void PowerOffPress(bool pressRelease)
- public void PowerTogglePress(bool pressRelease)
- public void ListRoutingInputPorts()
- public void InputHdmi1()
- public void InputHdmi1(bool pressRelease)
- public void InputHdmi2()
- public void InputHdmi2(bool pressRelease)
- public void InputHdmi3()
- public void InputHdmi3(bool pressRelease)
- public void InputHdmi4()
- public void InputHdmi4(bool pressRelease)
- public void InputTv()
- public void InputTv(bool pressRelease)
- public void InputAntenna()
- public void InputAntenna(bool pressRelease)
- public void InputNetflix()
- public void InputNetflix(bool pressRelease)
- public void InputPrimeVideo()
- public void InputPrimeVideo(bool pressRelease)
- public void InputToggle()
- public void InputToggle(bool pressRelease)
- public void VolumeUp(bool pressRelease)
- public void VolumeDown(bool pressRelease)
- public void MuteToggle()
- public void Up(bool pressRelease)
- public void Down(bool pressRelease)
- public void Left(bool pressRelease)
- public void Right(bool pressRelease)
- public void Select(bool pressRelease)
- public void Menu(bool pressRelease)
- public void Exit(bool pressRelease)
- public void Digit0(bool pressRelease)
- public void Digit1(bool pressRelease)
- public void Digit2(bool pressRelease)
- public void Digit3(bool pressRelease)
- public void Digit4(bool pressRelease)
- public void Digit5(bool pressRelease)
- public void Digit6(bool pressRelease)
- public void Digit7(bool pressRelease)
- public void Digit8(bool pressRelease)
- public void Digit9(bool pressRelease)
- public void KeypadAccessoryButton1(bool pressRelease)
- public void KeypadAccessoryButton2(bool pressRelease)
- public void Play(bool pressRelease)
- public void Pause(bool pressRelease)
- public void Rewind(bool pressRelease)
- public void FFwd(bool pressRelease)
- public void ChapMinus(bool pressRelease)
- public void ChapPlus(bool pressRelease)
- public void Stop(bool pressRelease)
- public void Record(bool pressRelease)
- public void ChannelUp(bool pressRelease)
- public void ChannelDown(bool pressRelease)
- public void LastChannel(bool pressRelease)
- public void Guide(bool pressRelease)
- public void Info(bool pressRelease)
- public void Red(bool pressRelease)
- public void Green(bool pressRelease)
- public void Yellow(bool pressRelease)
- public void Blue(bool pressRelease)
- public void Home(bool pressRelease)
- public void Back(bool pressRelease)
- public void Enter(bool pressRelease)
Bool Feedbacks
- MuteFeedback
- VideoMuteIsOn
Int Feedbacks
- InputNumberFeedback
- VolumeLevelFeedback
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
-
.NETFramework 4.7.2
- PepperDashEssentials (>= 2.16.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0-fix-v3-minimum-versio... | 45 | 11/19/2026 |
| 3.0.0-fix-power-last-reques... | 45 | 11/19/2026 |
| 3.0.0-fix-last-request-wins... | 45 | 11/19/2026 |
| 3.0.0-fix-dropped-replies-a... | 50 | 11/20/2026 |
| 3.0.0-feature-v3-sync-main.1 | 41 | 11/19/2026 |
| 3.0.0-feature-migrate-to-v3... | 40 | 11/19/2026 |
| 3.0.0-feature-migrate-to-v3... | 44 | 11/19/2026 |
| 3.0.0-feature-migrate-to-v3... | 50 | 11/19/2026 |
| 3.0.0-feature-migrate-to-v3... | 41 | 11/19/2026 |
| 2.9.0 | 82 | 11/19/2026 |
| 2.9.0-fix-poll-video-mute.1 | 67 | 10/20/2026 |
| 2.9.0-fix-ng-retry-bound.1 | 78 | 10/18/2026 |
| 2.9.0-feature-add-mock-devi... | 71 | 10/21/2026 |
| 2.9.0-feature-add-mock-devi... | 62 | 10/20/2026 |
| 2.9.0-feature-add-mock-devi... | 64 | 10/20/2026 |
| 2.9.0-feature-add-mock-devi... | 67 | 10/19/2026 |
| 2.9.0-feature-add-mock-devi... | 72 | 10/18/2026 |
| 2.9.0-feature-add-mock-devi... | 62 | 10/18/2026 |
| 2.9.0-feature-add-mock-devi... | 62 | 10/18/2026 |
| 2.9.0-feature-add-mock-devi... | 70 | 10/18/2026 |