A scene updating method, device, equipment and storage medium

By calculating the matching score between new devices and scenes in the smart home system, and automatically configure new devices to smart scenes, solving the problem of complex and inefficient new devices in the existing technology, and achieving rapid and efficient device configuration and user experience improvement.

CN119225198BActive Publication Date: 2025-02-28GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411734367.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-02-28
Estimated Expiration
2044-11-29

AI Technical Summary

Technical Problem

When adding new devices to existing smart home systems, users need to manually configure complex configurations, which makes them time-consuming, labor-intensive, error-prone, and difficult to meet rapidly changing needs, especially in large-scale deployment scenarios.

Method used

By obtaining the device function information of the newly added device, computing the matching score between the device function information and the smart scene function requirement information, determining the smart scene to be updated, and automatically adding the new device to the scene.

Benefits of technology

It realizes the rapid and efficient configuration of new devices into existing smart scenarios, improves configuration efficiency, reduces the time and error rate of manual configuration of users, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119225198B_ABST
    Figure CN119225198B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a scene update method, apparatus, device and storage medium, which obtain the device function information of the newly added device; determine the matching score between the device function information and the function requirement information corresponding to the smart scene; count the matching score between the function requirement information corresponding to each smart scene and the device function information; determine the smart scene to be updated according to the matching score; add the newly added device to the smart scene to be updated to obtain the target smart scene. The embodiments of the present application can accurately identify the functional requirements of the new device, efficiently match the existing scene, quickly determine the smart scene to be updated, and automatically add the newly added device to the scene, which significantly improves the efficiency of configuring the newly added device into the existing scene and greatly improves the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart home technology, and in particular to a scene updating method and device, an electronic device and a storage medium. Background Art

[0002] In the context of smart home and IoT, a "scenario" refers to a set of predefined device states and actions that can be triggered simultaneously or sequentially to achieve a specific automated task or user experience. With the rapid development of smart home and IoT technologies, users have deployed more and more smart devices at home or in the workplace. These devices can be linked through various scenarios to achieve automated control.

[0003] However, in the prior art, when users add new devices to existing smart scenes, the configuration of the newly added devices usually requires users to manually perform complex settings. This manual configuration is not only time-consuming and labor-intensive, but also prone to errors, resulting in a poor user experience. In addition, manual configuration is inefficient and difficult to meet rapidly changing needs, especially in large-scale deployment scenarios, where manual configuration is even more difficult to achieve.

[0004] Therefore, how to quickly and efficiently configure new devices into existing smart scenarios has become a problem that needs to be solved urgently. Summary of the invention

[0005] The embodiment of the present application provides a scene updating method to solve the problem of how to quickly and efficiently configure new devices into an existing smart scene.

[0006] Correspondingly, an embodiment of the present application also provides a scene updating device, an electronic device and a storage medium to ensure the implementation and application of the above method.

[0007] In order to solve the above problems, an embodiment of the present application discloses a scene updating method, which is applied to a smart home system, wherein the smart home system stores smart scenes, and the smart scenes have corresponding functional requirement information. The method includes:

[0008] Get device function information of newly added devices;

[0009] Determine a matching score between the device function information and the function requirement information corresponding to the smart scene;

[0010] Counting the matching scores between the functional requirement information and the device functional information corresponding to each smart scene;

[0011] Determining the smart scene to be updated according to the matching score;

[0012] The newly added device is added to the smart scene to be updated to obtain a target smart scene.

[0013] In an optional embodiment of the present application, the smart scene has a scene rule pre-set for the functional requirement information, and the determining of a matching score between the device functional information and the functional requirement information corresponding to the smart scene includes:

[0014] Matching the device function information with the scene rules corresponding to the smart scene one by one;

[0015] When the device function information hits the target scenario rule, determining a function matching degree between the device function information and the target function requirement information corresponding to the target scenario rule according to the target scenario rule;

[0016] According to the functional matching degree, a matching score between the device function information and the functional requirement information corresponding to the smart scene is calculated.

[0017] In an optional embodiment of the present application, determining, according to the target scenario rule, a functional matching degree between the device function information and the target function requirement information corresponding to the target scenario rule includes:

[0018] Determining, according to the target scenario rule, a preliminary matching degree between the device function information and the target function requirement information corresponding to the target scenario rule;

[0019] Get real-time weather information;

[0020] Adjusting the preliminary matching degree according to the real-time weather information;

[0021] The adjusted preliminary matching degree is used as the functional matching degree between the device functional information and the target functional requirement information.

[0022] In an optional embodiment of the present application, determining a matching score between the device function information and the function requirement information corresponding to the smart scene includes:

[0023] Inputting the device function information into a scene matching model; the scene matching model is a model trained according to the configuration information of the devices included in the smart scene and the function requirement information;

[0024] Obtain a matching score between the device function information output by the scene matching model and the function requirement information.

[0025] In an optional embodiment of the present application, the function requirement information corresponding to the smart scene has a corresponding requirement weight, and the function matching degree is calculated according to the function matching degree, and the matching degree score between the device function information and the function requirement information corresponding to the smart scene is calculated to obtain the matching degree score between the device function information and the function requirement information corresponding to the smart scene, and further includes:

[0026] According to the device function information, obtaining a function score corresponding to the device function of the newly added device;

[0027] According to the practicality of the device function in the smart scene, a function weight of the device function is set;

[0028] Calculating a matching score weight between the device function information and the function requirement information according to the requirement weight, the function weight and the function score;

[0029] The function matching degree and the matching degree score weight are counted to obtain a matching degree score between the device function information and the function requirement information corresponding to the smart scene.

[0030] In an optional embodiment of the present application, the counting of the function matching degree and the matching degree score weight to obtain the matching degree score between the device function information and the function requirement information corresponding to the smart scene includes:

[0031] Using the matching score weight, adjusting the functional matching degree to obtain an adjusted functional matching degree;

[0032] The adjusted functional matching degree is statistically calculated to obtain a matching score between the device function information and the functional requirement information corresponding to the smart scene.

[0033] In an optional embodiment of the present application, the adding the newly added device to the smart scene to be updated to obtain the target smart scene includes:

[0034] Generate an initial smart scene including the newly added device according to the function requirement information corresponding to the smart scene to be updated, the device function information of the newly added device, and the scene content of the smart scene to be updated;

[0035] Displaying the initial smart scene;

[0036] In response to a modification operation on the initial smart scene, the target smart scene is acquired.

[0037] In an optional embodiment of the present application, the method includes:

[0038] The scene matching model is updated according to the modification operation on the initial smart scene and / or the modification operation received by the target smart scene.

[0039] In an optional embodiment of the present application, the terminal device is communicatively connected to the smart home system, and the acquiring device function information of the newly added device includes:

[0040] Controlling the terminal device to identify the newly added device and obtain the device type of the newly added device;

[0041] Receiving the device type of the newly added device uploaded by the terminal device;

[0042] According to the device type of the newly added device, device function information of the newly added device is obtained.

[0043] The embodiment of the present application further discloses a scene updating device, which is applied to a smart home system. The smart home system stores smart scenes, and the smart scenes have corresponding functional requirement information. The device includes:

[0044] Function information acquisition module, used to obtain device function information of newly added devices;

[0045] A function matching scoring module, used to determine a matching score between the device function information and the function requirement information corresponding to the smart scene;

[0046] A matching score summary module, used to count the matching scores between the device function information and the function requirement information corresponding to each smart scene;

[0047] A scene determination module, used to determine the smart scene to be updated according to the matching score;

[0048] The scene updating module is used to obtain a target smart scene by adding the newly added device to the smart scene to be updated.

[0049] An embodiment of the present application also discloses an electronic device, including: a processor; and a memory, on which executable code is stored. When the executable code is executed, the processor executes the scene update method as described in one or more of the embodiments of the present application.

[0050] The embodiments of the present application also disclose one or more machine-readable media on which executable codes are stored. When the executable codes are executed, the processor executes the scene updating method as described in one or more of the embodiments of the present application.

[0051] Compared with the prior art, the embodiments of the present application have the following advantages:

[0052] In an embodiment of the present application, the device function information of the newly added device is obtained; the matching score between the device function information and the function requirement information corresponding to the smart scene is determined; the matching score between the function requirement information corresponding to each smart scene and the device function information is counted; the smart scene to be updated is determined according to the matching score; the newly added device is added to the smart scene to be updated to obtain the target smart scene. By calculating and counting the matching score between the device function information and the function requirement information, the embodiment of the present application can accurately identify the function requirements of the new device, efficiently match the existing scene, quickly determine the smart scene to be updated, and automatically add the newly added device to the scene, which significantly improves the efficiency of configuring the newly added device into the existing scene and greatly improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 is a flowchart of the steps of an embodiment of a scene updating method of the present application;

[0054] Figure 2 is a flow chart of an embodiment of a scene updating method of the present application;

[0055] Figure 3 is a structural block diagram of an embodiment of a scene updating device of the present application;

[0056] Figure 4 It is a schematic diagram of the structure of a device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0057] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0058] Reference Figure 1 , is a flowchart of a scene updating method embodiment of the present application, comprising the following steps:

[0059] Step 101: Obtain device function information of a newly added device.

[0060] A scene updating method proposed in an embodiment of the present application is applied to a smart home system. The smart home system stores a number of smart scenes. Users can add, edit, and perform other operations on the smart scenes in the smart home system through a smart home application installed on a terminal device.

[0061] Among them, the smart scene is a programmed process in which the devices controlled by the smart home system perform predetermined operations according to a preset schedule. For example, in the smart scene of returning home from get off work, programmed processes such as turning on the lights immediately and turning on the air conditioner after a delay of 5 seconds can be set. Each smart scene has corresponding functional requirement information. For example, the "home mode" of the smart scene of returning home from get off work requires turning on the lights and air conditioner, and the "away mode" requires turning off all electrical appliances, etc. These are all functional requirement information corresponding to the smart scene.

[0062] In this embodiment, when the user needs to add a new device to the smart home system, in step 101, the device function information of the newly added device is first obtained.

[0063] In an optional embodiment, the device identification module of the smart home application on the user's terminal device can identify the type of device, that is, the model information of the device, such as electric heaters, fans, air conditioners and other device types and corresponding model information, through RFID (Radio Frequency Identification), QR code scanning, etc. The device function information of the newly added device is determined based on the identified device type, such as electric heaters can heat, air conditioners can cool or heat, temperature sensors can measure temperature, and smart light bulbs can adjust brightness and color.

[0064] Step 102: Determine a matching score between the device function information and the function requirement information corresponding to the smart scene.

[0065] In step 102, it is necessary to first extract functional requirement information corresponding to several existing smart scenes, such as "home mode" needs to turn on lights and air conditioning, and "away mode" needs to turn off all electrical appliances.

[0066] Match the device function information of the newly added device with the functional requirement information corresponding to each smart scene one by one, and calculate several matching scores for each smart scene. For example, if the newly added device is a temperature sensor, the smart home system will automatically match it with the functional requirement information of the smart scene that requires temperature data and calculate the matching score. For example, match the device function information of the temperature sensor (such as the device function information of temperature adjustment) with the various functional requirement information in the "home mode" (such as the functional requirement information of turning on lights, air conditioning, adjusting temperature, etc.), and generate several matching scores.

[0067] In one embodiment, the matching score between the device function information and the function requirement information corresponding to the smart scene can be determined by rule matching, model calculation, and weight calculation.

[0068] Step 103: Count the matching scores between the functional requirement information corresponding to each smart scene and the device functional information.

[0069] In step 103, the matching scores between the device function information and the function requirement information can be counted to obtain the target matching score corresponding to each smart scene. That is, the matching scores obtained by matching the device function information of the newly added device with each function requirement information in a smart scene are summarized to obtain the target matching score corresponding to the smart scene. The aggregation operation is performed on all existing smart scenes to obtain the target matching score corresponding to each smart scene.

[0070] Step 104: Determine the smart scene to be updated according to the matching score.

[0071] In step 104, the smart scene to be updated is determined from the existing smart scenes according to the target matching score corresponding to each smart scene, and the smart scene to be updated is the smart scene adapted to the newly added device. For example, if the newly added device is a smart light bulb, the smart scene to be updated may be a "home mode" or "away mode" that requires control of the light.

[0072] In an optional embodiment, the target matching scores corresponding to each smart scene may be sorted from high to low, and the smart scene with the highest target matching score is used as the smart scene to be updated.

[0073] In another embodiment, one or more energy scenes with a target matching degree score higher than a preset score threshold may be used as smart scenes to be updated, and the user may select the smart scenes to be updated to which the new device needs to be added.

[0074] Step 105: Add the newly added device to the smart scene to be updated to obtain a target smart scene.

[0075] In step 105, the newly added device is added to the smart scene to be updated, and a target smart scene including the newly added device is obtained.

[0076] In one embodiment, after adding a new device to the smart scene to be updated, an initial smart scene can be generated and displayed on the visual screen of the terminal device. The initial smart scene includes a programmed process of performing predetermined operations according to a preset schedule after the new device is configured. The user can view, modify and confirm the configuration plan of the initial smart scene. For example, the user can choose to configure a smart bulb configured in "Go Home Mode" to "Night Mode" at the same time, or adjust the brightness and color settings of the smart bulb in "Go Home Mode". After the user confirms the modification, the new device is successfully added to the smart scene to be updated, and the target smart scene containing the new device is obtained.

[0077] In an optional embodiment, after completing the update of the target smart scene, the smart home system will record a log of the configuration, including new device information, target smart scene information, and configuration time, etc., to facilitate subsequent management and maintenance.

[0078] In an embodiment of the present application, the device function information of the newly added device is obtained; the matching score between the device function information and the function requirement information corresponding to the smart scene is determined; the matching score between the function requirement information corresponding to each smart scene and the device function information is counted; the smart scene to be updated is determined according to the matching score; the newly added device is added to the smart scene to be updated to obtain the target smart scene. By calculating and counting the matching score between the device function information and the function requirement information, the embodiment of the present application can accurately identify the function requirements of the new device, efficiently match the existing scene, quickly determine the smart scene to be updated, and automatically add the newly added device to the scene, which significantly improves the efficiency of configuring the newly added device into the existing scene and greatly improves the user experience.

[0079] In an optional embodiment of the present application, the smart scene has a scene rule pre-set for the functional requirement information, and the determining of a matching score between the device functional information and the functional requirement information corresponding to the smart scene includes:

[0080] Matching the device function information with the scene rules corresponding to the smart scene one by one;

[0081] When the device function information hits the target scenario rule, determining a function matching degree between the device function information and the target function requirement information corresponding to the target scenario rule according to the target scenario rule;

[0082] According to the functional matching degree, a matching score between the device function information and the functional requirement information corresponding to the smart scene is calculated.

[0083] Specifically, a set of scene rules can be set in advance for each smart scene. For example, the scene rules set for the "home mode" may include "if the device function information is temperature control, the matching score between the function requirement of adjusting the temperature is 80", "if the device function information is light control, the matching score between the function requirement of turning on the light is 90", etc.

[0084] When calculating the matching score, the device function information is matched with the scene rules corresponding to the smart scene one by one to determine the target scene rules hit by the device function information of the newly added device. When the device function information hits the target scene rules, the function matching degree between the device function information and the target function requirement information corresponding to the target scene rules can be determined according to the target scene rules.

[0085] For example, when the newly added device is a temperature sensor, its device function information for temperature control can hit the scenario rule of "Go Home Mode" that "If the device function information is temperature control, the matching score with the functional requirement of adjusting the temperature is 80". Then the functional matching score between the device function information of the temperature sensor temperature control and the functional requirement of adjusting the temperature in "Go Home Mode" is 80.

[0086] Afterwards, based on the functional matching degree, the matching score between the device function information in each smart scene and the functional requirement information corresponding to the smart scene is calculated.

[0087] The above specific rules and values ​​for scene rules and function matching are only examples. Those skilled in the art can set the scene rules for each smart scene according to actual needs, and the embodiments of the present application do not impose any restrictions on this.

[0088] The embodiment of the present application determines the functional matching degree between the device function information and the target function requirement information corresponding to the target scene rule by matching the scene rules, and can accurately and efficiently match the device function information of the newly added device with the function requirement information of the existing scene to determine the smart scene to be updated.

[0089] In an optional embodiment of the present application, determining, according to the target scenario rule, a functional matching degree between the device function information and the target function requirement information corresponding to the target scenario rule includes:

[0090] Determining, according to the target scenario rule, a preliminary matching degree between the device function information and the target function requirement information corresponding to the target scenario rule;

[0091] Get real-time weather information;

[0092] Adjusting the preliminary matching degree according to the real-time weather information;

[0093] The adjusted preliminary matching degree is used as the functional matching degree between the device functional information and the target functional requirement information.

[0094] In this embodiment, when calculating the functional matching degree between the device functional information and the functional requirement information corresponding to the smart scene in accordance with the rule matching method, the functional matching degree can be further calculated in combination with the real-time weather information.

[0095] First, determine the initial matching degree between the device function information and the target function requirement information corresponding to the target scenario rules according to the target scenario rules.

[0096] After that, real-time weather information is obtained, and the preliminary matching degree is adjusted according to the real-time weather information. For example, if the newly added device is a baseboard heater, for the smart scene of "cinema mode", assuming that the preliminary matching degree between the device function information (heating) determined according to the target scene rule and the target function requirement information (room temperature adjustment) corresponding to the target scene rule is 70, when the real-time weather information obtained is "temperature 5°C", the preliminary matching degree can be adjusted to 90 according to the weather information.

[0097] The adjusted preliminary matching degree is used as the functional matching degree between the device functional information and the target functional requirement information.

[0098] The above scene rules and the specific values ​​adjusted are for example only. Those skilled in the art can make relevant settings according to actual needs, and the embodiments of the present application do not impose any limitation on this.

[0099] The embodiment of the present application combines the matching of scene rules with real-time weather to determine the functional matching degree between the device function information and the target function requirement information corresponding to the target scene rules, and can more accurately match the device function information of newly added devices with the function requirement information of existing scenes to obtain a matching score.

[0100] In an optional embodiment of the present application, determining a matching score between the device function information and the function requirement information corresponding to the smart scene includes:

[0101] Inputting the device function information into a scene matching model; the scene matching model is a model trained according to the configuration information of the devices included in the smart scene and the function requirement information;

[0102] Obtain a matching score between the device function information output by the scene matching model and the function requirement information.

[0103] In this embodiment, the matching score between the device function information and the function requirement information corresponding to the smart scene can be calculated according to the model calculation method.

[0104] Specifically, a matching model can be trained using machine learning algorithms (such as decision trees, random forests, support vector machines, etc.) based on the configuration information of the devices contained in the existing smart scenes and the functional requirement information of the smart scenes themselves. The model input is the device function information of the device, and the output is the matching score with the functional requirement information of each smart scene, thereby obtaining a scene matching model.

[0105] Therefore, by inputting the device function information of the newly added device into the scene matching model, the matching score between the device function information of the newly added device output by the scene matching model and the various functional requirement information of each scene can be obtained.

[0106] In one embodiment, the scene matching model may also be updated according to user feedback on the updated target smart scene containing the newly added device.

[0107] The embodiment of the present application uses a scene matching model to determine the matching score between the device function information and the function requirement information corresponding to the smart scene, and can accurately and efficiently match the device function information of the newly added device with the function requirement information of the existing scene to determine the smart scene to be updated.

[0108] In an optional embodiment of the present application, the function requirement information corresponding to the smart scene has a corresponding requirement weight, and the calculating, according to the function matching degree, a matching score between the device function information and the function requirement information corresponding to the smart scene further includes:

[0109] According to the device function information, obtaining a function score corresponding to the device function of the newly added device;

[0110] According to the practicality of the device function in the smart scene, a function weight of the device function is set;

[0111] Calculating a matching score weight between the device function information and the function requirement information according to the requirement weight, the function weight and the function score;

[0112] The function matching degree and the matching degree score weight are counted to obtain a matching degree score between the device function information and the function requirement information corresponding to the smart scene.

[0113] In this embodiment, weight calculation can be further used to adjust the functional matching degree between the device function information obtained by rule matching calculation and the functional requirement information corresponding to the smart scene, so as to obtain a matching score between the device function information and the functional requirement information corresponding to the smart scene.

[0114] Specifically, the functional requirement information corresponding to the smart scene has a corresponding requirement weight, and the requirement weight reflects the priority of the functional requirement information.

[0115] The device function of the newly added device may also have a corresponding function score, which reflects the device performance, device accuracy and other characteristics of the newly added device. Therefore, the function score corresponding to the device function of the newly added device can be obtained based on the device function information. For example, a high-precision temperature sensor may have a function score of 90, and a normal-precision temperature sensor may have a function score of 70.

[0116] Furthermore, the functional weight of the device function can be set according to the practicality of the device function in the smart scene.

[0117] According to the demand weight, function weight and function score, the matching score weight between the device function information and the function requirement information is calculated.

[0118] For example, suppose the newly added device is a temperature sensor, which has two device functions: temperature data and humidity data. The function scores of these two device functions are 90 for temperature data and 80 for humidity data. In the smart scene of "home mode", since both temperature data and humidity data are necessary device functions, the function weights of these two device functions are set to 1; and the demand weights of these functional attributes in "home mode" can be set to 0.8 for temperature data and 0.2 for humidity data. The final calculated matching score weight M of this temperature sensor is M=(90×1×0.8)+(80×1×0.2)=88.

[0119] After obtaining the matching score weight, the matching score weight and the function matching degree can be statistically calculated to obtain the matching score between the device function information and the function requirement information corresponding to the smart scene. Specifically, the matching score weight can be used to adjust the function matching degree, and the adjusted function matching degree can be statistically calculated to obtain the matching score between the device function information and the function requirement information corresponding to the smart scene.

[0120] The above settings of demand weights, function weights and function scores are all examples, and the embodiments of the present application do not impose any restrictions on the specific values ​​of demand weights, function weights and function scores.

[0121] The embodiment of the present application can calculate the matching score weight according to the demand weight, function weight and function score, and adjust the function matching degree between the device function information obtained by rule matching and the function requirement information corresponding to the smart scene, so as to more accurately match the device function information of the newly added device with the function requirement information of the existing scene.

[0122] In an optional embodiment of the present application, the counting of the function matching degree and the matching degree score weight to obtain the matching degree score between the device function information and the function requirement information corresponding to the smart scene includes:

[0123] Using the matching score weight, adjusting the functional matching degree to obtain an adjusted functional matching degree;

[0124] The adjusted functional matching degree is statistically calculated to obtain a matching score between the device function information and the functional requirement information corresponding to the smart scene.

[0125] In this embodiment, after obtaining the matching score weight, the function matching degree obtained by rule matching can be adjusted according to the matching score weight to obtain an adjusted function matching degree.

[0126] For example, if the function matching degree calculated for the function requirement information of temperature data and humidity data of the temperature sensor in the "Go Home Mode" is 75 and 70 respectively, the function matching degree calculated for the function requirement information of temperature data and humidity data in the "Night Mode" is also 75 and 70 respectively. However, since the weight matching degree score of the temperature sensor in the "Go Home Mode" is higher, according to the adjustment of the matching degree score weight, the function matching degree of the temperature sensor in the "Go Home Mode" may be higher than that in the "Night Mode", which can reflect the higher importance of the temperature sensor in the "Go Home Mode".

[0127] According to the adjusted functional matching degree between the device function information and the functional requirement information, the matching degree score between the device function information corresponding to each smart scene and the functional requirement information corresponding to the smart scene is counted. That is, the adjusted functional matching degree scores obtained by matching the device function information of the newly added device with each functional requirement information in a smart scene are summarized to obtain the matching degree score corresponding to the smart scene. The summarization operation is performed on all existing smart scenes to obtain the matching degree score corresponding to each smart scene.

[0128] The embodiment of the present application can adjust the functional matching degree between the device function information obtained by rule matching or model calculation and the functional requirement information corresponding to the smart scene according to the matching score weight, so as to more accurately match the device function information of the newly added device with the functional requirement information of the existing scene.

[0129] In an optional embodiment of the present application, the adding the newly added device to the smart scene to be updated to obtain the target smart scene includes:

[0130] Generate an initial smart scene including the newly added device according to the function requirement information corresponding to the smart scene to be updated, the device function information of the newly added device, and the scene content of the smart scene to be updated;

[0131] Displaying the initial smart scene;

[0132] In response to a modification operation on the initial smart scene, the target smart scene is acquired.

[0133] In this embodiment, after the newly added device is added to the smart scene to be updated, the newly added device can be configured into the smart scene to be updated according to the functional requirement information corresponding to the smart scene to be updated, the device function information of the newly added device and the scene content of the smart scene to be updated, and the initial smart scene is generated. The initial smart scene is displayed on the visual screen of the terminal device, and the initial smart scene includes a programmed process of performing predetermined operations according to a preset schedule after the newly added device is configured.

[0134] For example, the "Home Mode" of the smart scene to be updated was originally: "When the user arrives home, open the curtains immediately and turn on the air conditioner after a delay of 5 seconds"; after the new device smart light bulb is added, the initial smart scene "Home Mode" can be: "When the user arrives home, open the curtains immediately, turn on the smart light bulb immediately, and turn on the air conditioner after a delay of 5 seconds".

[0135] Users can view, modify and confirm the initial smart scene configuration. For example, users can choose to configure the smart bulbs configured in "Home Mode" to "Night Mode" at the same time, or adjust the brightness and color settings of smart bulbs in "Home Mode".

[0136] In response to the modification operation on the initial smart scene, and after the user confirms the modification, the newly added device is successfully added to the smart scene to be updated, and the target smart scene including the newly added device is obtained.

[0137] After generating the initial smart scene, the embodiment of the present application can accept the user's modification and confirmation, and then determine the target smart scene including the newly added equipment, thereby improving the user experience and operability.

[0138] In an optional embodiment of the present application, the method includes:

[0139] The scene matching model is updated according to the modification operation on the initial smart scene and / or the modification operation received by the target smart scene.

[0140] In this embodiment, the user's modification operation on the initial smart scene can be recorded; moreover, after the target smart scene is confirmed, the user can also perform modification operations on it, and the smart home system can also record the modification operations received by the target smart scene. The scene matching model can be updated according to the recorded modification operations on the initial smart scene and / or the modification operations received by the target smart scene.

[0141] The embodiments of the present application can utilize modification operations on the initial smart scene and / or modification operations received by the target smart scene to update the scene matching model, so that the matching score output by the scene matching model is more in line with the actual needs of the user, thereby improving the intelligence level of the matching score calculation.

[0142] In an optional embodiment of the present application, the terminal device is communicatively connected to the smart home system, and the acquiring device function information of the newly added device includes:

[0143] Controlling the terminal device to identify the newly added device and obtain the device type of the newly added device;

[0144] Receiving the device type of the newly added device uploaded by the terminal device;

[0145] According to the device type of the newly added device, device function information of the newly added device is obtained.

[0146] In this embodiment, the terminal device used by the user can communicate with the smart home system through the smart home application, so that the device function information of the newly added device can be obtained through the terminal device.

[0147] Specifically, when a user needs to add a new device to an existing smart scene, the user can use the terminal device to identify the new device and obtain the device type of the new device. In an optional embodiment, the device type, that is, the model information of the device, such as electric heaters, fans, air conditioners, etc., can be identified through the device identification module of the smart home application on the user's terminal device through RFID (Radio Frequency Identification), QR code scanning, etc.

[0148] After the smart home system receives the device type of the newly added device uploaded by the terminal device, it can determine the device function information of the newly added device based on the identified device type, such as electric heaters can heat, air conditioners can cool or heat, temperature sensors can measure temperature, smart light bulbs can adjust brightness and color, etc.

[0149] In the embodiment of the present application, when a user needs to add a new device to an existing smart scene, the terminal device can be used to identify the new device and obtain the device function information of the new device, which greatly simplifies the device adding process.

[0150] In an embodiment of the present application, the device function information of the newly added device is obtained; the matching score between the device function information and the function requirement information corresponding to the smart scene is determined; the matching score between the function requirement information corresponding to each smart scene and the device function information is counted; the smart scene to be updated is determined according to the matching score; the newly added device is added to the smart scene to be updated to obtain the target smart scene. By calculating and counting the matching score between the device function information and the function requirement information, the embodiment of the present application can accurately identify the function requirements of the new device, efficiently match the existing scene, quickly determine the smart scene to be updated, and automatically add the newly added device to the scene, which significantly improves the efficiency of configuring the newly added device into the existing scene and greatly improves the user experience.

[0151] Reference Figure 2 , is a flowchart of an embodiment of a scene updating method of the present application.

[0152] Step 201: A new device needs to be connected.

[0153] Step 202: Use the terminal device to identify the newly added device.

[0154] Step 203: The smart home system attempts to obtain device function information. If the acquisition fails, the user is prompted to try again to use the terminal device to identify the newly added device, or to manually enter the model information of the newly added device.

[0155] Step 204: According to the device function information, a matching algorithm (such as rule matching, model calculation, weight calculation, etc.) is used to perform scene matching to obtain the smart scene to be updated.

[0156] Step 205: Generate a preliminary configuration plan (ie, initial smart scene) for the smart scene to be updated and the newly added device.

[0157] Step 206: The user can modify and confirm the preliminary configuration plan. If modification and confirmation are not required, the preliminary configuration plan takes effect and the target smart scene is obtained.

[0158] Step 207: Record a configuration log for the process of this scene update.

[0159] In an embodiment of the present application, the device function information of the newly added device is obtained; the matching score between the device function information and the function requirement information corresponding to the smart scene is determined; the matching score between the function requirement information corresponding to each smart scene and the device function information is counted; the smart scene to be updated is determined according to the matching score; the newly added device is added to the smart scene to be updated to obtain the target smart scene. By calculating and counting the matching score between the device function information and the function requirement information, the embodiment of the present application can accurately identify the function requirements of the new device, efficiently match the existing scene, quickly determine the smart scene to be updated, and automatically add the newly added device to the scene, which significantly improves the efficiency of configuring the newly added device into the existing scene and greatly improves the user experience.

[0160] It should be noted that, for the method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited by the described order of actions, because according to the embodiments of the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present application.

[0161] On the basis of the above embodiments, this embodiment further provides a scene updating device, which is applied to electronic devices such as terminal devices and servers.

[0162] Reference Figure 3 , shows a structural block diagram of an embodiment of a scene updating device of the present application, which may specifically include the following modules:

[0163] Function information acquisition module 301, used to acquire device function information of a newly added device;

[0164] A function matching scoring module 302 is used to determine a matching score between the device function information and the function requirement information corresponding to the smart scene;

[0165] A matching score summary module 303 is used to count the matching scores between the functional requirement information and the device function information corresponding to each smart scene;

[0166] A scene determination module 304 is used to determine the smart scene to be updated according to the matching score;

[0167] The scene updating module 305 is used to obtain a target smart scene by adding the newly added device to the smart scene to be updated.

[0168] In an optional embodiment of the present application, the smart scene has a scene rule pre-set for the function requirement information, and the function matching scoring module 302 includes:

[0169] A rule matching submodule, used for matching the device function information with the scene rules corresponding to the smart scene one by one;

[0170] A rule scoring submodule, for determining, when the device function information hits a target scenario rule, a function matching degree between the device function information and the target function requirement information corresponding to the target scenario rule according to the target scenario rule;

[0171] The rule calculation submodule is used to calculate the matching score between the device function information and the function requirement information corresponding to the smart scene according to the function matching degree.

[0172] In an optional embodiment of the present application, the rule scoring submodule is further used to:

[0173] Determining, according to the target scenario rule, a preliminary matching degree between the device function information and the target function requirement information corresponding to the target scenario rule;

[0174] Get real-time weather information;

[0175] Adjusting the preliminary matching degree according to the real-time weather information;

[0176] The adjusted preliminary matching degree is used as the functional matching degree between the device functional information and the target functional requirement information.

[0177] In an optional embodiment of the present application, the function matching scoring module 302 includes:

[0178] A model matching submodule, used for inputting the device function information into a scene matching model; the scene matching model is a model trained according to the configuration information of the devices included in the smart scene and the function requirement information;

[0179] The model scoring submodule is used to obtain a matching score between the device function information output by the scene matching model and the function requirement information.

[0180] In an optional embodiment of the present application, the functional requirement information corresponding to the smart scene has a corresponding requirement weight, and the rule calculation submodule is further used to:

[0181] According to the device function information, obtaining a function score corresponding to the device function of the newly added device;

[0182] According to the practicality of the device function in the smart scene, a function weight of the device function is set;

[0183] Calculating a matching score weight between the device function information and the function requirement information according to the requirement weight, the function weight and the function score;

[0184] The function matching degree and the matching degree score weight are counted to obtain a matching degree score between the device function information and the function requirement information corresponding to the smart scene.

[0185] In an optional embodiment of the present application, the counting of the function matching degree and the matching degree score weight to obtain the matching degree score between the device function information and the function requirement information corresponding to the smart scene includes:

[0186] Using the matching score weight, adjusting the functional matching degree to obtain an adjusted functional matching degree;

[0187] The adjusted functional matching degree is statistically calculated to obtain a matching score between the device function information and the functional requirement information corresponding to the smart scene.

[0188] In an optional embodiment of the present application, the scene updating module 305 includes:

[0189] An initial scene generation submodule, configured to generate an initial smart scene including the newly added device according to the function requirement information corresponding to the smart scene to be updated, the device function information of the newly added device, and the scene content of the smart scene to be updated;

[0190] An initial scene display submodule, used to display the initial smart scene;

[0191] The target scene acquisition submodule is used to acquire the target smart scene in response to the modification operation on the initial smart scene.

[0192] In an optional embodiment of the present application, the device includes:

[0193] The model updating module is used to update the scene matching model according to the modification operation on the initial smart scene and / or the modification operation received by the target smart scene.

[0194] In an optional embodiment of the present application, the terminal device is communicatively connected to the smart home system, and the function information acquisition module 301 includes:

[0195] A device type identification submodule, used to control the terminal device to identify the newly added device and obtain the device type of the newly added device;

[0196] A device type receiving submodule, used for receiving the device type of the newly added device uploaded by the terminal device;

[0197] The device information acquisition submodule is used to acquire device function information of the newly added device according to the device type of the newly added device.

[0198] In an embodiment of the present application, the device function information of the newly added device is obtained; the matching score between the device function information and the function requirement information corresponding to the smart scene is determined; the matching score between the function requirement information corresponding to each smart scene and the device function information is counted; the smart scene to be updated is determined according to the matching score; the newly added device is added to the smart scene to be updated to obtain the target smart scene. By calculating and counting the matching score between the device function information and the function requirement information, the embodiment of the present application can accurately identify the function requirements of the new device, efficiently match the existing scene, quickly determine the smart scene to be updated, and automatically add the newly added device to the scene, which significantly improves the efficiency of configuring the newly added device into the existing scene and greatly improves the user experience.

[0199] The embodiment of the present application further provides a non-volatile readable storage medium, in which one or more modules (programs) are stored. When the one or more modules are applied to a device, the device can execute instructions (instructions) of each method step in the embodiment of the present application.

[0200] The present application embodiment provides one or more machine-readable media, on which instructions are stored, and when executed by one or more processors, an electronic device executes one or more of the methods described in the above embodiments. In the present application embodiment, the electronic device includes various types of devices such as terminal devices, servers (clusters), etc.

[0201] The embodiments of the present disclosure may be implemented as a device that uses any appropriate hardware, firmware, software, or any combination thereof to perform a desired configuration, and the device may include electronic devices such as terminal devices and servers (clusters). Figure 4 An exemplary apparatus 400 that can be used to implement various embodiments described in this application is schematically shown.

[0202] For one embodiment, Figure 4An exemplary apparatus 400 is shown having one or more processors 402, a control module (chip set) 404 coupled to at least one of the processor(s) 402, a memory 406 coupled to the control module 404, a non-volatile memory (NVM) / storage device 408 coupled to the control module 404, one or more input / output devices 410 coupled to the control module 404, and a network interface 412 coupled to the control module 404.

[0203] The processor 402 may include one or more single-core or multi-core processors, and the processor 402 may include any combination of general-purpose processors or special-purpose processors (such as graphics processors, application processors, baseband processors, etc.). In some embodiments, the device 400 can be used as a terminal device, server (cluster), etc. described in the embodiments of the present application.

[0204] In some embodiments, the apparatus 400 may include one or more computer-readable media (e.g., memory 406 or NVM / storage device 408) having instructions 414 and one or more processors 402 configured to execute the instructions 414 in combination with the one or more computer-readable media to implement a module to perform the actions described in the present disclosure.

[0205] For one embodiment, control module 404 may include any suitable interface controller to provide any suitable interface to at least one of processor(s) 402 and / or any suitable device or component in communication with control module 404 .

[0206] The control module 404 may include a memory controller module to provide an interface to the memory 406. The memory controller module may be a hardware module, a software module, and / or a firmware module.

[0207] The memory 406 may be used, for example, to load and store data and / or instructions 414 for the device 400. For one embodiment, the memory 406 may include any suitable volatile memory, such as a suitable DRAM. In some embodiments, the memory 406 may include a double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).

[0208] For one embodiment, control module 404 may include one or more input / output controllers to provide interfaces to NVM / storage device 408 and input / output device(s) 410 .

[0209] For example, NVM / storage 408 may be used to store data and / or instructions 414. NVM / storage 408 may include any suitable non-volatile memory (e.g., flash memory) and / or may include any suitable non-volatile storage device(s) (e.g., one or more hard disk drives (HDDs), one or more compact disk (CD) drives, and / or one or more digital versatile disk (DVD) drives).

[0210] NVM / storage device 408 may include storage resources that are physically part of the device on which apparatus 400 is installed, or it may be accessible to the device without being part of the device. For example, NVM / storage device 408 may be accessed via input / output device(s) 410 over a network.

[0211] (One or more) input / output devices 410 may provide an interface for the apparatus 400 to communicate with any other appropriate device, and the input / output device 410 may include a communication component, an audio component, a sensor component, etc. The network interface 412 may provide an interface for the apparatus 400 to communicate through one or more networks, and the apparatus 400 may wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and / or protocols, for example, accessing a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, etc., or a combination thereof for wireless communication.

[0212] For one embodiment, at least one of the processor(s) 402 may be packaged together with the logic of one or more controllers (e.g., a memory controller module) of the control module 404. For one embodiment, at least one of the processor(s) 402 may be packaged together with the logic of one or more controllers of the control module 404 to form a system-in-package (SiP). For one embodiment, at least one of the processor(s) 402 may be integrated on the same die with the logic of one or more controllers of the control module 404. For one embodiment, at least one of the processor(s) 402 may be integrated on the same die with the logic of one or more controllers of the control module 404 to form a system-on-chip (SoC).

[0213] In various embodiments, the device 400 may be, but is not limited to, a terminal device such as a server, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). In various embodiments, the device 400 may have more or fewer components and / or a different architecture. For example, in some embodiments, the device 400 includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an application-specific integrated circuit (ASIC), and a speaker.

[0214] Among them, the main control chip can be used as a processor or control module in the detection device, sensor data, location information, etc. are stored in a memory or NVM / storage device, the sensor group can be used as an input / output device, and the communication interface may include a network interface.

[0215] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0216] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0217] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable scene update terminal device to produce a machine, so that the instructions executed by the processor of the computer or other programmable scene update terminal device generate instructions for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0218] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable scene update terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which is implemented in the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0219] These computer program instructions can also be loaded onto a computer or other programmable scenario update terminal device, so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable terminal device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0220] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.

[0221] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0222] The above is a detailed introduction to a scene update method and device, an electronic device and a storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A scene updating method, characterized in that: Applied to a smart home system, the smart home system stores smart scenes, the smart scenes have corresponding functional requirement information, and the method includes: Get device function information of newly added devices; Determine a matching score between the device function information and the function requirement information corresponding to the smart scene; Counting the matching scores between the functional requirement information and the device functional information corresponding to each smart scene; Determining the smart scene to be updated according to the matching score; Adding the newly added device to the smart scene to be updated to obtain a target smart scene; The smart scene has a scene rule pre-set for the functional requirement information, the functional requirement information corresponding to the smart scene has a corresponding requirement weight, and the determining of a matching score between the device functional information and the functional requirement information corresponding to the smart scene includes: Matching the device function information with the scene rules corresponding to the smart scene one by one; When the device function information hits the target scenario rule, determining a function matching degree between the device function information and the target function requirement information corresponding to the target scenario rule according to the target scenario rule; According to the device function information, obtaining a function score corresponding to the device function of the newly added device; According to the practicality of the device function in the smart scene, a function weight of the device function is set; Calculating a matching score weight between the device function information and the target function requirement information according to the requirement weight, the function weight and the function score; The function matching degree and the matching degree score weight are counted to obtain a matching degree score between the device function information and the target function requirement information corresponding to the smart scene.

2. The method according to claim 1, characterized in that The determining, according to the target scenario rule, a function matching degree between the device function information and the target function requirement information corresponding to the target scenario rule includes: Determining, according to the target scenario rule, a preliminary matching degree between the device function information and the target function requirement information corresponding to the target scenario rule; Get real-time weather information; Adjusting the preliminary matching degree according to the real-time weather information; The adjusted preliminary matching degree is used as the functional matching degree between the device functional information and the target functional requirement information.

3. The method according to claim 1, characterized in that The determining a matching score between the device function information and the function requirement information corresponding to the smart scene includes: Inputting the device function information into a scene matching model; the scene matching model is a model trained according to the configuration information of the devices included in the smart scene and the function requirement information; Obtain a matching score between the device function information output by the scene matching model and the function requirement information.

4. The method according to claim 1, characterized in that: The counting of the function matching degree and the matching degree score weight to obtain the matching degree score between the device function information and the function requirement information corresponding to the smart scene includes: Using the matching score weight, adjusting the functional matching degree to obtain an adjusted functional matching degree; The adjusted functional matching degree is statistically calculated to obtain a matching score between the device function information and the functional requirement information corresponding to the smart scene.

5. The method according to claim 1, characterized in that The adding the newly added device to the smart scene to be updated to obtain a target smart scene includes: Generate an initial smart scene including the newly added device according to the function requirement information corresponding to the smart scene to be updated, the device function information of the newly added device, and the scene content of the smart scene to be updated; Displaying the initial smart scene; In response to a modification operation on the initial smart scene, the target smart scene is acquired.

6. The method according to claim 5, characterized in that The method comprises: The scene matching model is updated according to the modification operation on the initial smart scene and / or the modification operation received by the target smart scene.

7. The method according to claim 1, characterized in that The terminal device is connected to the smart home system for communication, and the acquiring of device function information of the newly added device includes: Controlling the terminal device to identify the newly added device and obtain the device type of the newly added device; Receiving the device type of the newly added device uploaded by the terminal device; According to the device type of the newly added device, device function information of the newly added device is obtained.

8. A scene updating device, characterized in that: Applied to a smart home system, the smart home system stores smart scenes, the smart scenes have corresponding functional requirement information, and the device includes: Function information acquisition module, used to obtain device function information of newly added devices; A function matching scoring module, used to determine a matching score between the device function information and the function requirement information corresponding to the smart scene; A matching score summary module, used to count the matching scores between the functional requirement information and the device function information corresponding to each smart scene; A scene determination module, used to determine the smart scene to be updated according to the matching score; A scene updating module, configured to obtain a target smart scene by adding the newly added device to the smart scene to be updated; The smart scene has a scene rule pre-set for the functional requirement information, the functional requirement information corresponding to the smart scene has a corresponding requirement weight, and the functional matching scoring module includes: A rule matching submodule, used for matching the device function information with the scene rules corresponding to the smart scene one by one; A rule scoring submodule, for determining, when the device function information hits a target scenario rule, a function matching degree between the device function information and the target function requirement information corresponding to the target scenario rule according to the target scenario rule; A rule calculation submodule is used to obtain a function score corresponding to the device function of the newly added device according to the device function information; set a function weight of the device function according to the practicality of the device function in the smart scene; calculate the matching score weight between the device function information and the target function requirement information according to the requirement weight, the function weight and the function score; and calculate the function matching degree and the matching score weight to obtain a matching score between the device function information and the target function requirement information corresponding to the smart scene.

9. An electronic device, characterized in that: include: processor; and A memory having executable codes stored thereon, which, when executed, enables the processor to execute the scene updating method as described in any one of claims 1-7.

10. One or more machine-readable media having executable codes stored thereon, which, when executed, enable a processor to execute the scene updating method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Device recommendation method and apparatus, electronic device, and storage medium

    CN113302639A

  • Scene configuration method, scene engine, user terminal and smart home system

    CN113341754A