@classmethod
def base_from_json(cls, data):
    """Create a base instance from the given SenML data"""
    template = cls()
    attrs = {'name': data.get('bn', template.name), 'time': data.get('bt',
        template.time), 'unit': data.get('bu', template.unit), 'value':
        data.get('bv', template.value)}
    return cls(**attrs)
