lad1337 / cec-mqtt-bridge

A HDMI-CEC to MQTT bridge for connecting HDMI-CEC-devices to your Home Automation system.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cec-mqtt-bridge

A HDMI-CEC / IR to MQTT bridge for connecting your AV-devices to your Home Automation system. You can control and monitor power status and volume.

Features

  • Power control (CEC + IR)
  • Power feedback (CEC only)
  • Volume control (CEC + IR)
  • Raw command / keypress support

Dependencies

MQTT (required)

HDMI-CEC (optional)

IR (optional)

MQTT Topics

The bridge subscribes to the following topics:

topic body remark
media/cec/on id Turn on device with id id.
media/cec/off id Turn off device with id id.
media/cec/mute Mute the audio.
media/cec/unmute Unmute the audio.
media/cec/volup Turn the volume up.
media/cec/voldown Turn the volume down.
media/cec/tx commands Send the specified commands to the CEC bus. You can specify multiple commands by seperating that with a space. Example: cec/tx 15:44:41,15:45.
media/ir/tx remote,key Send the specified key of remote to the IR transmitter.

The bridge publishes to the following topics:

topic body remark
media/cec/power/id status Report power status status of id.
media/cec/rx command Notify that command was received.
media/ir/rx remote,key Notify that key of remote was detected.

id is the address (0-15) of the device on the CEC-bus.

Examples

  • mosquitto_pub -t media/cec/volup -m ''
  • mosquitto_pub -t media/cec/tx -m '15:44:42,15:45'

Interesting links

About

A HDMI-CEC to MQTT bridge for connecting HDMI-CEC-devices to your Home Automation system.


Languages

Language:Python 100.0%