I just purchased a Cleverio Motion Sensor ss200 and successfully integrated it into my HA. However, once it goes into a “detected” state it doesnt revert back to “clear”. I have tried serveral ways to trigger it but nothing is changing.
Does anyone have any experience with these sensors?
Got it working now with a fake timeout using this code in Z2M
It triggers again after 60 seconds and clears after 90 seconds without motion.
const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const extend = require('zigbee-herdsman-converters/lib/extend');
const e = exposes.presets;
const ea = exposes.access;
const definition = {
zigbeeModel: ['SM0202'], // The model ID from: Device with modelID 'lumi.sens' is not supported.
model: 'SS200', // Vendor model number, look on the device for a model number
vendor: 'Cleverio', // Vendor of the device (only used for documentation and startup logging)
description: 'Motion sensor', // Description of the device, copy from vendor site. (only used for documentation and startup logging)
fromZigbee: [fz.ias_occupancy_alarm_1_with_timeout, fz.battery], // We will add this later
toZigbee: [], // Should be empty, unless device can be controlled (e.g. lights, switches).
exposes: [e.battery(), e.occupancy(),e.battery_low(),e.tamper()], // Defines what this device exposes, used for e.g. Home Assistant discovery and in the frontend
};
module.exports = definition;
ah man awesome! Fake timeouts are always that scary thing you try to do to get some code working and it works… but you know the truth haha. I ended up returning it for an Aqara one as they work straight out of the box for me.
is this a library from zigbee or is this a third party open source library?