Firstly, please format you post correctly for the forum: https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16
Secondly, yes. Use a shell command to turn off the PC:
Firstly, please format you post correctly for the forum: https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16
Secondly, yes. Use a shell command to turn off the PC: