I found out that my PC setup with two monitors was pulling around 50 watts even when it was powered off. I made some flows that detects when the power is off and shuts off the electricity. I have a button on the wall that toggles the power on/off.
What is needed
App: Better Logic
App: Simple log
Power-plug with a power meter. I use a TP-link HS110.
A Zigbee or Z-wave button (I use Aqara switch
When the powers change, and power is less than 75 watts. Sett Boolean Variable “StationarypcON” to false. Otherwise, set Boolean variable to true. This changes the Variable so Homey always know if the pc is on or off.
Detects when power is below 75 watts and the Boolean Variable “StationarypcON” is true. Starts Flow 3 after 1 min. Sets the variable to False.
I have made this second flow to prevent the flow to trigger when I am just restarting my pc.
If after one minute, power is still less than 75 watts and the Boolean Variable is false, shuts the pc off and adds a line to my Simple log.
For the button: