大家好,
我准备做一个光感Sensor,请问它的DEVICE ID“”ZCL_HA_DEVICEID_LIGHT_SENSOR“”应该赋值到什么地方去,做出来的设备就能被识别为光感Sensor呢?或者怎样设置才能让做出来的新设备被识别为一个标准HA的光感Sensor呢?谢谢了
Susan Yang:
您可以定义在zcl_ha.h内
https://github.com/dynamicy/z-stack/blob/master/Sample%20Example/Projects/zstack/HomeAutomation/Source/zcl_ha.h
// HVAC Device IDs #define ZCL_HA_DEVICEID_HEATING_COOLING_UNIT0x0300 #define ZCL_HA_DEVICEID_THERMOSTAT0x0301 #define ZCL_HA_DEVICEID_TEMPERATURE_SENSOR0x0302 #define ZCL_HA_DEVICEID_PUMP0x0303 #define ZCL_HA_DEVICEID_PUMP_CONTROLLER0x0304 #define ZCL_HA_DEVICEID_PRESSURE_SENSOR0x0305 #define ZCL_HA_DEVICEID_FLOW_SENSOR0x0306