cec-mqtt-bridge icon indicating copy to clipboard operation
cec-mqtt-bridge copied to clipboard

No installation instructions for Home Assistant?

Open DIYtechie opened this issue 4 years ago • 3 comments

I’ve been using your great tool with Node-RED for a while, but after recently moving from Raspbian to Hassio (HassOS), I don’t know how to install it?

I still want to use with Node-RED, but installed on Hassio (HassOS) rather than Raspbian.

Ideally this could also be a self contained node in Node-RED. (I am aware of the node-red-contrib-cec, but that does not support sending raw commands in simple format.)

If this is not possible what is the best way of sending and receiving raw cec commands with Hassio?

DIYtechie avatar Feb 01 '20 04:02 DIYtechie

I think there is a hdmi_cec component in Hass for this.

michaelarnauts avatar Feb 01 '20 08:02 michaelarnauts

Thanks for your swift reply. I've tried to find it, but was not able to. Can you link to the one you're thinking of?

https://www.home-assistant.io/integrations/hdmi_cec does not seem to support listening for or sending raw commands...

update: it does support sending raw commands, but does not seem to be able to listen for commands.

DIYtechie avatar Feb 01 '20 19:02 DIYtechie

I also use this with home assistant because when using the home assistant component the device you want to control needs to be connected to the home assistant device.

I use a simple mqtt switch component to power the tv.

switch:
  - platform: mqtt
    name: Living Room TV
    command_topic: 'mqttTopic/cec/0/cmd'
    payload_on: 'on'
    payload_off: 'off'
    state_topic: 'mqttTopic/cec/0'
    availability_topic: 'mqttTopic/bridge/status'

depuits avatar Oct 22 '20 10:10 depuits