This binding is designed to interface with BenQ projectors that have an RS232 interface on them that accepts the commands documented by BenQ in [1].
This binding is current in Beta state with the following commands implemented:
Command | Query | Set | Comments |
---|---|---|---|
Power | Y | Y | |
Mute | Y | Y | |
Volume | Y | Y | |
Source | Y | Y | Can be returned as either a string or number |
Lamp Time | Y | N |
Tested Devices:
- BenQ W1070
- BenQ W1080
The binding support transport using a TCP/IP to RS232 converter or via a direct RS232 interface.
USR-TCP232-2 is a known working TCP/IP to RS232 converter.
############################# BenqProjector Binding ########################################
# mode controls how the projector can be reached. 'serial' is for a directly
# connected RS232 serial interface while 'network' is for using a TCP/IP to
# serial converter
#benqprojector:mode=network
# For mode=network, define the Serial to Ethernet device location
#benqprojector:deviceId=<hostname>:<port>
# For mode=serial, define the serial device (e.g. /dev/ttyUSB0) and speed
# (defaults to 57600 bps)
#benqprojector:deviceId=<device>:<speed>
# Define polling interval in milliseconds
#benqprojector:refresh=15000
Example of Item bindings:
Switch gf_lounge_multimedia_projectorPower "Projector Power" (gf_lounge, gf_multimedia) {benqprojector="power"}
Switch gf_lounge_multimedia_projectorMute "Projector Mute" (gf_lounge, gf_multimedia) {benqprojector="mute"}
Number gf_lounge_multimedia_projectorVol "Projector Volume [%d]" (gf_lounge, gf_multimedia) {benqprojector="volume", autoupdate="false"}
Number gf_lounge_multimedia_projectorSourceNum "Projector Source [MAP(ProjSourceNum.map):%s]" (gf_lounge, gf_multimedia) {benqprojector="source_number"}
String gf_lounge_multimedia_projectorSourceString "Projector Source [%s]" (gf_lounge, gf_multimedia) {benqprojector="source_string"}
Number gf_lounge_multimedia_projectorLamp "Projector Lamp [%d hours]" (gf_lounge, gf_multimedia) {benqprojector="lamp_hours"}
Example source mapping:
0=Computer
1=Computer 2
2=Component
3=DVI-A
4=DVI-D
5=Sky TV (HDMI)
6=Chromecast (HDMI2)
7=Composite
8=S-Video
9=Network
10=USB Display
11=USB Reader
-=Unknown
undefined=Unknown
Example sitemap:
Frame label="Media" {
Switch item=gf_lounge_multimedia_projectorPower
}
Frame label="Projector" visibility=[gf_lounge_multimedia_projectorPower==ON] {
Selection item=gf_lounge_multimedia_projectorSourceNum label="Projector Source" mappings=[5="Sky TV", 6="Chromecast"] visibility=[gf_lounge_multimedia_projectorPower==ON]
Switch item=gf_lounge_multimedia_projectorMute visibility=[gf_lounge_multimedia_projectorPower==ON]
Setpoint item=gf_lounge_multimedia_projectorVol step=1 minValue=0 maxValue=10 visibility=[gf_lounge_multimedia_projectorPower==ON]
}
[1] ftp://ftp.benq-eu.com/projector/benq_rs232_commands.pdf