- Edited
the ups was grounded on the ground most probably or static electricity might have been itjulien_saadeh wroteGood day Firas,
I am going to tell you a story about UPSes at my home..
Few years ago, I bought a PCE UPS and I had the same problem as you but only randomly. Later on, I replaced it with a Diamond 800VA and as soon as the electricity went out, the PC restarted. Well something was fishy about this... I didn't know what to do. It stayed that way until one day I decided to place the UPS directly on the floor instead of the computer table and the problem had gone away. It never happened again!
And to prove it, one day I had an issue with the "multiprise" that as soon as the UPS switched to mains power, the multiprise would fail and cut off power immediately again, and no PC restarts occured.
What was wrong with the table? I don't know, but honestly, I would think of this later on...
as i said its all related to epic electricity we have here in lebanon