Hi,
What a great product is Mozilla gateway, glad I found it and can use it, it has a lot of potential.
Question. Why is a BinarySensor and BooleanProperty used instead of an MotionSensor and MotionProperty for the Xiaomi motion sensor? Is there a difference between occupied and motion in the Mozilla gateway? Design? If I change this to motion I get the nice motion and no motion icons shown in the thing.
currently used code:
‘lumi.sensor_motion.aq2’: { // RTCGQ11LM
name: ‘occupancy’,
type: Constants.THING_TYPE_BINARY_SENSOR,
‘@type’: [‘BinarySensor’],
powerSource: POWERSOURCE.BATTERY,
occupancyTimeout: 10, // seconds
activeEndpoints: {
1: {
profileId: PROFILE_ID.ZHA_HEX,
inputClusters: [
CLUSTER_ID.GENBASIC_HEX,
CLUSTER_ID.OCCUPANCY_SENSOR_HEX,
],
outputClusters: [],
},
},
properties: {
occupied: {
descr: {
‘@type’: ‘BooleanProperty’,
type: ‘boolean’,
label: ‘Occupied’,
description: ‘Occupancy Sensor’,
},
profileId: PROFILE_ID.ZHA,
endpoint: 1,
clusterId: CLUSTER_ID.OCCUPANCY_SENSOR,
attr: ‘occupancy’,
value: false,
parseValueFromAttr: ‘parseOccupiedAttr’,
},
With motion property.