michaelarnauts / cec-mqtt-bridge

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

Change how cec-mqtt-bridge advertises itself. E.g. Playback 3 instead of Recorder 1 #31

Open DIYtechie opened 4 years ago

DIYtechie commented 4 years ago

Hi :)

Thanks again for making this great tool.

How do I change how the cec-mqtt-bridge advertises itself? e.g. Playback 3 (9) instead of Recorder 1 (1) or as Unregistered (F). Tried changing "id" in the default configuration in bridge.py from 1 to 9, but that did not seem to change anything?

I see that under "setup CEC" it says "cec_config.deviceTypes.Add(cec.CEC_DEVICE_TYPE_RECORDING_DEVICE)"

Is it possible to control other CEC devices without appearing as a device itself?

michaelarnauts commented 4 years ago

It's been some time since I've looked at this code, but I think you couldn't control devices without having an id yourself. You should be able to change the device type fine though.

DIYtechie commented 4 years ago

Great. How do I change the device type?