EEPROM write / read - often

Hi,
can some one advice is this is good/bad idea to hold 30 relay states in EEPROM ?
I would like to use relay which remember his state even when power is down - but because of this I will not know in which state relay was after arudino restart.

How frequently do the relay states change ?
How often is the Arduino expected to power down ?

I believe that relays are available that latch mechanically in either position so their state is not affected by loss of power. Depending on the number of contacts available and the application it would be possible to query the relays for their current state on startup of the Arduino.

Relay changes quite a lot - every time You have turn on/off light.
I think EEPROM have some restriction for cycles number.

There are relays which are not loosing state when loss power (You just trigger relay change with L or H signal) but I have not found similar relay which I can query for state ?

The EEPROM is millions of cycles. For most human-scale uses (like light switches) it should be fine. What you don't want to to is write to it every time you go through loop.

(BTW, reads are fine. Writes are what wear it out.)

I have not found similar relay which I can query for state ?

You just need the relay to be double pole so that you can use the second pole to feed back the current state.

can some one advice is this is good/bad idea to hold 30 relay states in EEPROM ?

Four bytes of EEPROM.
Yup, no big deal.
You normally have about half as much EEPROM as RAM.

thanks