redphx / esphome-ugreen-hdmi-switcher

Control UGREEN HDMI Switcher/Splitter over WiFi using ESPHome
67 stars 6 forks source link
esphome home-assistant

ESPHome UGREEN HDMI Switcher

Control UGREEN HDMI Switcher/Splitter over WiFi using ESPHome. You can still control it with the physical button on top of the device (it also changes the state in Home Assistant device).
Demo video: https://youtu.be/F_oZo9kNero

⚠️ DISCLAIMER: Nobody but you is responsible for any damage this mod may cause.

You can put the USB port to the other side if you want to.

Parts

  1. UGREEN HDMI 2.0 Switch CM217 (~12 USD, Aliexpress). The one I got was manufactured in 2019.
  2. Wemos LOLIN D1 Mini (~4 USD, Aliexpress). Tested with version 4.0.
  3. Two small electrical wires. I use the 24 AWG one.
  4. Soldering station.
  5. Glue gun.
  6. 3D Printer.
  7. Anything with an USB Type C male port (cable, adapter).

Disassembly

  1. Peel off the pad at the bottom and unscrew the screws. We'll need these two screws later.
  2. Use something like a guitar pick to pry up the back. Don't worry if you damage the bottom part as you won't need it.
  3. Take the board out.



Wiring

You'll only need two pins:

3D Printing

3D files are in 3d-files folder. My settings in Cura:

Assembly

  1. Put the board into the case.
  2. Plug the USB Type C cable into the board to make sure that everything is lined up.
  3. Use glue gun to make the board stay in place.
  4. Put in the upper half then screw everything in together.

ESPHome code

Flash the board with ESPHome using the code in esphome-code.yaml.

Home Assistant Device

If everything works you should see something like this in Home Assistant.

Thanks for reading. Good luck!