def _new_cerpadlo(self,send,table,pipe,command,load): if len(load) != 4: self._log.warning("cerpadlo new data - bad load length") return; enabled = load[0] & 1 heating = (load[0] >> 1) & 1 heating_latch = (load[0] >> 2) &1 i = "new cerpadlo %d, heating %d, latch %d" % (enabled,heating,heating_latch) self._log.info(i) self._log_event_to_db(pipe, table, enabled,table.event_id.WATER_PUMP_ENABLED) self._log_event_to_db(pipe,table, heating,table.event_id.HEATING_ENABLED ) self._log_event_to_db(pipe,table, heating_latch,table.event_id.HEATING_LATCH ) #send(table.PIPE_KOTEL,table.MCU_RESET) a = load[2:] ch = baseClass.getInt(a) if heating_latch: i = "disable time remains [seconds] %d " % ch logging.getLogger("root.superSpecial").info(i)