This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Attribute state in NV memory

I have an issue about keeping the value of an attribute. I know that I can use NV_RESTORE and NV_INIT in order to keep the value of ZGlobals and the network state of the device.

My issue is to keep the state of the ON/OFF cluster in a HA device, is it possible to keep the state of the attribute (on or off)  when the device power down and then power up?

How can I do that?

Thanks for your help