michaelarnauts / cec-mqtt-bridge

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

Added availability, mute, volume and volume/set topics #16

Closed ConnorGriffin closed 5 years ago

ConnorGriffin commented 5 years ago

The code for setting the volume is a little wonky, but it works pretty well in my testing. My receiver has 75 volume steps, so sometimes I get weird rounding issues when setting a 0-100 value. It just causes the volume to flip between two numbers before finally giving up.

I apologize if the topics don't follow your standard, I can always change them. I'm not super familiar with the MQTT best practices, and didn't want to rewrite all of your existing topics and actions to fit a new schema.