Skip to content

PJLink

This is the PJLink plugin documentation.

PJLink has 2 classes, ‘1’ and ‘2’. In PJLink Class 2, device discovery was added, as well as the spontaneous state notifications. Class 1 only provides the basic control of the projector/display.

In PJLink Class 2, the following is defined:

  • Device search (not implemented)
  • Procedure of connecting with a projector/display via network
  • Security
  • Control command form
  • Spontaneous status notification

Supported parameters

The following parameters are available:

Parameter
IO type
R/W
Info
name string r
model string r
manufacturer string r
info string r
class int8 r
input_list string r
Operation
power bool rw
input int8 rw
input_str string rw
av_mute bool rw
audio_mute bool rw
video_mute bool rw
Status
lamp_power bool r
lamp_power bool r
lamp_hours float r
lamp_hours float r
error_fan int8 r
error_lamp int8 r
error_temp int8 r
error_cover int8 r
error_filter int8 r
error_other int8 r

Configuration options

The minimal device config when using the default options would be:

settings.yml
devices:
- type: PJLink
name: projector1
options:
ip: 10.0.0.1

This assumes that the scan rate at which the device will be polled is the default of 5000ms.

A complete config would look like this:

settings.yml
devices:
- type: PJLink
name: projector1
options:
scan_rate: 2000
ip: 10.0.0.1
port: 4352
password: PJLinkPassword

where

type

is always “PJLink” as this is the name of this plugin.

name

unique arbitrary name.

options/ip

projector/screen ip address

options/port

the tcp port that the projector/screen is listening on. Default: 4352

options/scan_rate

this is the polling scan rate in ms and should be an integer. Default: 5000, minimum: 500

options/password

the PJLink password, of one is required. Defaults to no password

Metrics

The following metrics are exported by the PJLink plugin. They are prefixed / namespaced with pjlink_, and all of them have the label {instance:"plugin_name"} where plugin_name is the name specified in the settings.yml file with the name attribute.

Metric Name Metric Type Notes
General
connection_state Gauge The connection state of the PJLink device.
Info
info Gauge Info labels of the PJLink device.
Operation
power Projector Power
input Active Input
av_mute AV Mute
audio_mute Audio Mute
video_mute Video Mute
Status
lamp_power Lamp Power State
error_fan Fan Error
error_lamp Lamp Error
error_temp Temperature Error
error_cover Cover Open Error
error_filter Filter Error
error_other Other Error
lamp_hours Lamp Hours