Surely have that see with the connections of the relay to the network power; It would be useful to check if you've connected it in normally open (NOT) instead of normally closed (NC).
Pengine ina nini na relay kwa miunganisho mains; lazima kuangalia kama ana kushikamana katika kawaida ya wazi (La) badala ya kawaida kufungwa (NC).