@@ -46,8 +46,7 @@ DEVICE_EVENT_TYPE = {
8192: 69,
16384: 70,
32768: 71,
- 65536: 72,
- 131072: 73
+ 131072: 72,
}
-ALGORITHM_COMBO_TYPES = [51, 57, 58, 60, 59, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73]
+ALGORITHM_COMBO_TYPES = [51, 57, 58, 60, 59, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72]
@@ -181,7 +181,6 @@ EVENT_DICT_CN = {
70: '看不到宝宝的脸了,快去看看!',
71: '有包裹出现',
72: '检测到电动车',
- 73: '检测到遮挡物'
EVENT_DICT = {
@@ -210,7 +209,6 @@ EVENT_DICT = {
70: 'Cant see the baby\'s face now, go take a look!',
71: 'Package detected ',
72: 'Battery operated vehicle detected',
- 73: 'Obstruction detected'
# 小米推送通知类别id
@@ -581,8 +581,6 @@ class DevicePushService:
msg_type = '有人徘徊'
elif event_type == 65:
msg_type = '长时间无人出现'
- elif event_type == 72:
- msg_type = '检测到电动车'
elif event_type == 73:
msg_type = '检测到遮挡物'
@@ -643,6 +641,9 @@ class DevicePushService:
msg_type = 'Loitering detected'
msg_type = 'No appearance for a long time'
+ elif event_type == 73:
+ msg_type = 'Obstruction detected'
+
elif event_type == 1022:
msg_type = 'Someone rang the doorbell'
elif event_type == 1023: