Added some cached values for sensors & define max relay & max Lights