Skip to main content
SMHUB Nano Mg24 — now shipping worldwideNew: SLWF-11 — our new compact WLED controller · see the datasheet →
SMLIGHT
← All videos

Control your HiFi with ESPHome and HDMI CEC!

With HDMI CEC you can not only control equipment that does not have a Home Assistant integration but even control some features that are not supported by an integration such as turning on a PS4 that is completely turned off, control the volume of your TV and receiver, switch HDMI inputs, get information about what devices are turned on and what source is playing and even send remote control commands. All you need is to plug it into your tv or receiver and it will control all other connected devices. No need for "one way", "line of sight" IR control. I have been using HDMI CEC to control and monitor the power state of my tv for years, but always on Raspberry Pi (zero). This method is much easier and even works with Home Assistant servers that do not support HDMI CEC. Link to ESPHome configuration: https://github.com/Palakis/esphome-native-hdmi-cec And to enable CEC messages via MQTT: https://github.com/Palakis/esphome-native-hdmi-cec/issues/9#issuecomment-2209323488 To make it easier to understand what the devices are communicating, I made a Node-RED flow that translates CEC commands to plain English: https://flows.nodered.org/flow/db17ddf68de40c89c7824128a96ebd5e ESP32 DevKitC: https://a.aliexpress.com/_EwVZblj HDMI breakout board: https://a.aliexpress.com/_EyHJrdT Compact version: - ESP32-C3 supermini: https://a.aliexpress.com/_Ezrsi9c - HDMI connector: https://a.aliexpress.com/_EJRClNs - Jumper wires: Any thin wires will do. Needs to be soldered on. - My 3D printed case: https://makerworld.com/en/models/1488957-esp32-c3-hdmi-case#profileId-1556002 Thanks to Palakis for making HDMI CEC available on ESPHome!

Control your HiFi with ESPHome and HDMI CEC!