Wake on Lan switch automatic off without trigger it

Hello, I have setup a switch to power on and power off my PC, but every day at about 12:00 AM the switch automatically go to off state and my pc goes off.

2017-11-09 12:43:15 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=switch.nicopc, old_state=<state switch.nicopc=on; friendly_name=Nico-PC @ 2017-11-08T21:47:28.201045+01:00>, new_state=<state switch.nicopc=off; friendly_name=Nico-PC @ 2017-11-09T12:43:15.192693+01:00

 - platform: wake_on_lan
   mac_address: 'xx-xx-x-xx-x-x-x'
   name: Nico-PC
   host: xxx.xxx.xxx.xxx
     service: shell_command.shutdown_pc

Anyone had this problem too?