ballle98 / cec-mqtt-bridge

A HDMI-CEC to MQTT bridge for connecting HDMI-CEC-devices to your Home Automation system.
2 stars 1 forks source link

change the mqtt topic structure to fit better with cec lib #6

Closed ballle98 closed 6 months ago

ballle98 commented 6 months ago

change the mqtt topic structure to fit better with cec client scan output and cec lib functions. power should be an attribute of a device. Mute and volume are attributes of audio

device #1: Recorder 1
address:       2.5.0.0
active source: yes
vendor:        Pulse Eight
osd string:    CECTester
CEC version:   1.4
power status:  on
language:      eng

device #3: Tuner 1
address:       1.0.0.0
active source: no
vendor:        Denon
osd string:    AV Receiver
CEC version:   unknown
power status:  on
language:      ???

device #5: Audio
address:       1.0.0.0
active source: no
vendor:        Denon
osd string:    AVR-S960H
CEC version:   1.4
power status:  on
language:      ???

device #8: Playback 2
address:       1.4.0.0
active source: no
vendor:        Toshiba
osd string:    Fire TV Stick
CEC version:   1.4
power status:  standby
language:      ???