qq:380939960
Sensors may bedesigned for two purposes: A multilevel sensor advertises a measurement. Anotification sensor advertises a specific event. Legacy notification sensorsmay implement the Alarm Command Class. 老的sensor可能实现的是Alarm Command Class。
A notificationsensor may be designed to operate in push or pull mode. notification sensor可能工作在push或者pull模式中。
A push modenotification sensor sends unsolicited notification reports. The transmission ofunsolicited notification reports may be disabled or enabled via theNotification Set message. Even if enabled, unsolicited notification reports canonly be transmitted if an association destination is defined. Pushfunctionality such as event reporting via Notification CC and relay control viaBasic CC are advertised via the Association Group Information (AGI) CC. 支持push模式的sensor会主动上报事件。可以通过Notification Set message来控制“使能”或者“停止”sensor主动发送事件。不过即便是使能了sensor主动发送事件,也只有在指定了association destination(通过association命令)时,sensor才会主动发送事