def presencevalue(self, v):
        "Takes a raw presence value. Unfortunately it seems we need to do our own motion detection."
        self.set_data_point("raw_motion_value", v)

        self.motion(v > float(self.config.get(
            'device.motion_threshold', 0.08)))