1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Electronics Remote power on (not wake on LAN) - Automation

Discussion in 'Modding' started by BazzUK, 20 May 2025.

  1. BazzUK

    BazzUK Are we there yet?

    Joined:
    6 May 2024
    Posts:
    162
    Likes Received:
    152
    Not sure if someone has covered this, but if you have a zigbee network, you can buy the MHCOZY Zigbee dry contact switch to connect to your front panel IO, allowing remote power on
    I use one of these to power up my PC when I get in from work via Home Assistant and an automation
    (also use a seperate zigbee switch for when I haven't left)

    These things are brilliant, get a USB Micro to USB header, and it is all stuck inside out of the way
    Downside is that your motherboard will need to have permenant power on the USB rails (luckily mine does)
    If you get a 2-way splitter, it doesn't interfere with the case power on button as well

    Switch model number ZG-001-RF
    Sold on Amazon for around £17
    They also do a 4-way version for £23
    [​IMG]
     
    wyx087 likes this.
  2. Boscoe

    Boscoe Electronics extraordinaire.

    Joined:
    5 Jan 2010
    Posts:
    1,132
    Likes Received:
    69
    Looks cool but is there a reason you didn't want to use wake on LAN?
     
  3. BazzUK

    BazzUK Are we there yet?

    Joined:
    6 May 2024
    Posts:
    162
    Likes Received:
    152
    Is easier for the automation
     
  4. wyx087

    wyx087 Multimodder

    Joined:
    15 Aug 2007
    Posts:
    12,349
    Likes Received:
    853
    I suppose the other benefit is able to turn off the machine by sending another signal.

    Personally I didn't have problem using WOL switch in HA. Just give it the MAC address and IP address.
    https://www.home-assistant.io/integrations/wake_on_lan/

    PC on/off becomes a switch entity.

    Code:
    switch:
      # Template switch for wyxmain power control
      - platform: wake_on_lan
        name: wyxmain_pwr
        mac: "xxxxxxxx"
        host: "192.168.x.x"
        turn_off:
          service: shell_command.wyxmain_shutdown
    For shutdown, simply use SSH for Linux. For Windows, I use this little tool:
    https://github.com/karpach/remote-shutdown-pc
    Code:
    shell_command:
      # Windows hibernate using this: https://github.com/karpach/remote-shutdown-pc
      wyxmain_shutdown: curl http://192.168.x.x:xxxx/secret/shutdown
    
     
  5. BazzUK

    BazzUK Are we there yet?

    Joined:
    6 May 2024
    Posts:
    162
    Likes Received:
    152
    Exactly, easier for me to rurn it off when I want
    Zigbee button does the job ;)
     

Share This Page