Home Assistant integration for PJLink class 2 based projectors (media_player fork)
|
|
há 1 mês atrás | |
|---|---|---|
| custom_components | há 1 mês atrás | |
| tests | há 2 anos atrás | |
| .pre-commit-config.yaml | há 2 anos atrás | |
| LICENSE.md | há 2 anos atrás | |
| README.md | há 1 mês atrás | |
| hacs.json | há 2 anos atrás | |
| requirements.test.txt | há 2 anos atrás | |
| setup.cfg | há 2 anos atrás |
Home Assistant custom component to integrate video projectors via the PJLink network protocol. In contrast to the official PJLink integration, it also supports PJLink class-2 features, notably querying the current resolution of the projector. The projector is integrated as a sensor that shows the current state (ON/OFF), all other data fields are attributes to the entity.
The component has been developed and tested with an Epson LS12000 projector, but should work with all models and brands that support the PJLink protocol, among them Sony, NEC, Panasonic, Optoma, BenQ, and many more.
HACS
IntegrationsCustom Repositories from the three dots in top right cornerhttps://github.com/noahvogt/ha-pjlink2 as repository and select Integration as categoryAddCustom Repositories again and you should see PJLink2 at the top of the list, click itDownload in lower right cornerDownloadManually
pjlink2 folder from latest release to custom_components folder in your config folder.All settings are specified in your Home Assistant configuration via YAML.
Add your projector as a sensor and configure like this:
media_player:
- platform: pjlink2
host: 192.168.0.123 # IP address of the projector
port: 1234 # projector port for communication (optional, default is 4352)
name: "My Projector" # name under which projector appears in HA (optional)
encoding: "utf-16" # encoding for communication (optional, default is utf-8)
password: "secret%123" # password to establish connection (optional)
timeout: 1.5 # timeout to establish connection in seconds (optional, default is 4 sec)
sources: # mapping of the raw source to appriorate names
"31": "Smart TV"
"32": "Camera HDMI Out"
"11": "Laptop"
If you omit the sources block, the integration will show raw codes like 31, 32, etc., and add new ones to the dropdown as you switch to them on the device.
Possible changes in future releases: