Ps4 turns on for 1 sec and makes a beep sound then turns off

yesterday this also happened. all i did is switch the outlet to plug my ps4 and it worked. today im doing the same thing but it wont turn on. when i unplug then plug it again, i press the power button, it makes a blue light on the power button and makes beep sound then it turns off. if i turn it on from the controller, the controller cant find the ps4 even if its plugged. everything is plugged perfectly.

edit: nevermind i waited an hour and it turned on now. im playing games now but if it happens again i suggest you guys help me.