def __init__(self, plm, address, cat, subcat, product_key=None, description=None, model=None): """Initialize the SecurityHealthSafety_2842_222 device class.""" super().__init__(plm, address, cat, subcat, product_key, description, model) self._product_data_in_aldb = True self._stateList[0x01] = OnOffSensor(self._address, "motionSensor", 0x01, self._send_msg, self._message_callbacks, 0x00) self._stateList[0x02] = OnOffSensor(self._address, "lightSensor", 0x02, self._send_msg, self._message_callbacks, 0x00) self._stateList[0x03] = OnOffSensor(self._address, "batterySensor", 0x03, self._send_msg, self._message_callbacks, 0x00)
def __init__(self, plm, address, cat, subcat, product_key=None, description=None, model=None): """Initialize the SecurityHealthSafety_2421 device class.""" super().__init__(plm, address, cat, subcat, product_key, description, model) self._product_data_in_aldb = True self._stateList[0x01] = OnOffSensor(self._address, "openClosedSensor", 0x01, self._send_msg, self._message_callbacks, 0x00)