-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Expand file tree
/
Copy pathsensor.mjs
More file actions
24 lines (23 loc) · 870 Bytes
/
Copy pathsensor.mjs
File metadata and controls
24 lines (23 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import {temperature} from "zigbee-herdsman-converters/converters/fromZigbee";
import {presets} from "zigbee-herdsman-converters/lib/exposes";
/** @type{import('zigbee-herdsman-converters/lib/types').DefinitionWithExtend | import('zigbee-herdsman-converters/lib/types').DefinitionWithExtend[]} */
export default {
zigbeeModel: ["lumi.sens"],
model: "WSDCGQ01LM",
vendor: "Xiaomi",
description: "MiJia temperature & humidity sensor",
extend: [],
/**
* Clusters reporting "from zigbee"
*/
fromZigbee: [temperature],
/**
* Clusters to send commands "to zigbee"
*/
toZigbee: [],
/**
* Defines which fields are exposed in the definition message to configure a frontend
* (e.g. Z2M frontend, Home Assistant, Domoticz)
*/
exposes: [presets.battery(), presets.temperature(), presets.humidity()],
};