code: def decode_door(packet, channel=1):
      
      val = str(packet.get(QSDATA, ''))
      if len(val) == 6 and val.startswith('46') and channel == 1:
          return val[-1] == '0'
      return None
docs: Decode a door sensor.