Smart power plug lives his own life

My smart plug ( Ikea ) stops working after 30 sec , normaly when there’s motion in the Bathroom or Toilet it works as long there is motion ( motion sensor set to 180sec ) ( it always worked ) . so i swaped my plug for an other brand , corrected the flow still the same problem.( it always have worked till 2 weeks ago ) no changes at my home.
I changed my flow into : ligtbulb on smartplug on, lightbulb of smartplug off.

some sugestions wil highly appreciated