Tuya change local keys

Hi everyone, I want to use Local Tuya and me onle issue is that each time that I have Electric power down in my house all the local keys are being change.
Is anyone can help and advise how to overcome that issue?

Are you sure the value of keys change and not the IPs? Last you can avoid by giving them a fixed IP in your router.

+1 for RD…the keys change if you re-add them to your app but not when they power down/up

Thanks everyone, Vingerha, what do you mean by “re-add them to your app” ?
Which app ? smartlife ?

Indeed… at least Tuya app but I read that this also applies to smartlife (cannot confirm)… in the background it gets added to your Tuya project so if you remove it and re-add it… then it will get a new local key
… but not switch off/on…then is is indeed as RD mentioned, probably an IP change