esp8266 board to turn on/off your PC with Home Assistant and ESPHome
Go to file
Andrej Friesen e31e2fe913 Update READEME.md 2021-12-31 17:35:25 +01:00
.github Add FUNDING.yml 2021-11-09 18:59:52 +01:00
images Add image of pc-switch from home assistant gui 2021-12-31 17:35:08 +01:00
README.md Update READEME.md 2021-12-31 17:35:25 +01:00
pc-switch.yaml Add reset, force power off and pc state sensor 2021-12-31 17:08:45 +01:00

README.md

pc-switch

ko-fi

ESPHome powered switch to turn on/off your PC.

Prototype

Just connect your power, reset and power led front panel connector to appropieate pin pairs, power the ESP8266 and you can turn on and off your PC via Home Assistant.

Use cases

  • Hide your PC in a closet or on a shelf without the need to press the actual button. You can just connect any other button via home assistant
  • Setup automation based on time, motion or the moon phase to power on your PC
  • No funky magic packets anymore with wake on LAN (never worked for me)
  • No addons with admin access (password) to your Windows PC
  • Add voice commands via Home Assistant to Google Assistant

Powersource

Internal USB port

Most motherboard can deliver power over USB when the PC is off. Needs to be configure in the BIOS.

TPM header

Check your motherboard manual for a TPM header. Also check how much voltage the TPM header can supply. Then you can connect power and groud from the TPM header to the ESP8266

Prototype

Parts

  • Optocoupler: EL817
  • Resistor:
  • ESP8266-12F from AZDelivery

Todo

  • powering the ESP8266
  • Power, reset and hard power off switch for PC in Home Assistant
  • Protoype on breadboard
  • Create first soldered protoype
  • Check for PC status
  • Design PCB
  • upload PCB
  • Create 3D printed case
  • Maybe enable MQTT to control this device (without home assistant)