|
@@ -250,7 +250,7 @@ class SmartSceneView(View):
|
|
|
return response.json(173)
|
|
|
serial_number = sub_device_qs[0]['device__serial_number']
|
|
|
msg['scene_status'] = 1
|
|
|
- msg['sensor_type'] = conditions_dict['sensor']['device_type']
|
|
|
+ msg['sensor_type'] = int(conditions_dict['sensor']['device_type'])
|
|
|
msg['sensor_src'] = int(sub_device_qs[0]['src_addr'], 16)
|
|
|
msg['sensor_status'] = int(conditions_dict['sensor']['eventValues'][0]['event_type'])
|
|
|
|
|
@@ -532,7 +532,7 @@ class SmartSceneView(View):
|
|
|
sub_device_qs = GatewaySubDevice.objects.filter(id=sub_device_id).values('src_addr').first()
|
|
|
msg['smart_scene_id'] = smart_scene_id
|
|
|
msg['scene_status'] = 1
|
|
|
- msg['sensor_type'] = conditions_dict['sensor']['device_type']
|
|
|
+ msg['sensor_type'] = int(conditions_dict['sensor']['device_type'])
|
|
|
msg['sensor_src'] = int(sub_device_qs['src_addr'], 16)
|
|
|
msg['sensor_status'] = int(conditions_dict['sensor']['eventValues'][0]['event_type'])
|
|
|
else:
|