'Initialize object.'

def __init__(self, name, egardiasystem, hass, rs_enabled=False, rs_port=None, rs_codes=None):

    self._name = name
    self._egardiasystem = egardiasystem
    self._status = STATE_UNKNOWN
    self._rs_enabled = rs_enabled
    self._rs_port = rs_port
    self._hass = hass
    if (rs_codes is not None):
        self._rs_codes = rs_codes[0]
    else:
        self._rs_codes = rs_codes
    if self._rs_enabled:
        self.listen_to_system_status()
