|
@@ -45,6 +45,8 @@ def loocam_smart_scene(device_type, event_type, serial_number, scene_id=0):
|
|
|
@param scene_id: 场景id
|
|
|
@return:
|
|
|
"""
|
|
|
+ LOGGER.info('loocam智能场景任务,device_type:{},event_type:{},serial_number:{},scene_id:{}'.
|
|
|
+ format(device_type, event_type, serial_number, scene_id))
|
|
|
if device_type == DEVICE_TYPE['socket']:
|
|
|
topic_name = SMART_SOCKET_TOPIC.format(serial_number)
|
|
|
status = 1 if event_type == EVENT_TYPE['socket_power_on'] else 0
|