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

No installation instructions for Home Assistant? #29

Open DIYtechie opened 4 years ago

DIYtechie commented 4 years ago

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?

michaelarnauts commented 4 years ago

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

DIYtechie commented 4 years ago

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.

depuits commented 4 years ago

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'