Sonoff Mini turns off but power still active

Sonoff Mini, attached to light ket of celling fan. After a few hours or so (not set time) the lights will cut off but the Mini still responds to commands. About 30 minutes later the light turns back on. It is as if it is cutting power to the lights. Could it be overheating? Thoughts?
Installed a few days ago

Little information.

What component do you use with your sonoff mini ?
How many amps do your lights draw ?
How did you configure your sonoff mini ?

Thanks for the reply…

Live and Neutral fed from celling fan to mini…
Live and Neutral from mini to light kit…
Pull switch then connected to mini
probably 3-4 amps max. Works fine but for some reason cuts the lights off after a few hours. Then about 30 minutes later they cut back on. Random times but happens consistently. I am suspecting the mini is too close to the lights and gets too hot then once cools off turns back on. When it cuts off I can still pull the chain and hear the relay clicking.

I disconnected the switch (s1 s2) and so far after several hours no cut off. Thinking now the switch had interference of some kind. The hot wires and switch are all close, Ill see about sheilding or separating.

B. Ellis

Well…without the S1 S2 it lasts longer but still cuts off after few hours. And now when it cut off it made a noise like a constant beep. Not trusting this, I’ll do without its not worth the inconsistency. Perhaps will revisit in a year or so and let the tech mature.