Household scene control method and device and household equipment central control system
By obtaining user and environmental data and determining the priority of home scenes, the problem of conflicting loading instructions for multiple scenes in smart home apps is solved, and intelligent scene management and user preference response are achieved.
Patent Information
- Application Number
- CN202510953338.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-10
- Publication Date
- 2025-10-14
AI Technical Summary
Existing smart home apps are unable to flexibly respond and automatically modify home scene content when faced with changes in user status or conflicts triggered by multiple home scenes, resulting in command conflicts and an inability to meet users' daily needs.
By obtaining user data, environmental data and home scene data, the home scene to be triggered is determined. When there is a conflict in device control commands, the priority is determined based on the user data, and the home scene with the highest priority is selected for loading to avoid command conflicts.
It avoids command conflicts when loading multiple home scenes, ensures that user-preferred scenes are loaded first, and improves the response flexibility and user experience of the smart home system.
Smart Images

Figure CN120779766A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of smart home, in particular to a smart home scene control method and device and a smart home central control system. BACKGROUND
[0002] The existing smart home App supports presetting of smart home scenes such as homecoming, leaving home, etc., but these smart home scenes mainly rely on manual configuration of trigger conditions and smart home scene actions by the user, and lack intelligent recognition capability. When facing changes in the user state or conflicts in multiple smart home scene triggers, the smart home scenes cannot be flexibly responded to and automatically modified, and the daily needs of the user cannot be met. Therefore, it is necessary to design a smart home App with user state recognition, smart home scene intelligent judgment and execution strategy optimization. SUMMARY
[0003] The main purpose of the present application is to provide a smart home scene control method, device and smart home central control system to at least solve the problem of conflicts in multiple smart home scene loading instructions in the prior art.
[0004] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a smart home scene control method is provided, comprising: acquiring user data, environment data and smart home scene data of a target area, wherein the user data comprises a preferred smart home scene of the user, a priority of user behavior and a user location, the environment data comprises time, temperature, humidity and brightness, and the smart home scene data comprises device control instructions and trigger conditions of each smart home scene; in the case that the environment data meets the trigger conditions of a target smart home scene, determining that the target smart home scene is a to-be-triggered smart home scene, and the target smart home scene is any one of the smart home scenes; in the case that there are multiple to-be-triggered smart home scenes and the device control instructions of at least two to-be-triggered smart home scenes conflict, determining multiple to-be-triggered smart home scenes with conflicting device control instructions as a conflict smart home scene group, determining the priority of the multiple to-be-triggered smart home scenes in the conflict smart home scene group according to the user data, determining the to-be-triggered smart home scene with the highest priority in the conflict smart home scene group and the to-be-triggered smart home scene outside the conflict smart home scene group as a triggered smart home scene, and sending the device control instructions of all the triggered smart home scenes to run the corresponding triggered smart home scenes.
[0005] Optionally, when the environmental data meets the triggering condition of the target home scene, after determining that the target home scene is the home scene to be triggered, before determining the multiple home scenes to be triggered in which the device control instructions conflict as a conflicting home scene group, the method also includes: determining whether there are multiple home scenes to be triggered; when there are multiple home scenes to be triggered, determining whether the control objects of the multiple home scenes to be triggered are the same home device; when the control objects of multiple home scenes to be triggered are the same home device, determining whether the actions corresponding to the multiple device control instructions for controlling the same home device cannot be executed simultaneously; when the actions corresponding to at least two device control instructions for controlling the same home device cannot be executed simultaneously, determining that the device control instructions of at least two home scenes to be triggered conflict; when the actions corresponding to all device control instructions for controlling the same home device can be executed simultaneously, determining that the device control instructions of the multiple home scenes to be triggered do not conflict.
[0006] Optionally, the priorities of the multiple home scenes to be triggered of the conflicting home scene group are determined according to the user data, including: determining the user whose user position is within the target area as the target user; determining the minimum value of the active triggering frequencies corresponding to the multiple preferred home scenes of the target user as the predetermined frequency, and determining the ratio of the active triggering frequency of the home scene to be triggered to the predetermined frequency as the user preference of the home scene to be triggered, the active triggering frequency being the frequency of the user controlling the operation of the scene; obtaining the priority number of each user behavior by sorting the priorities of the user behaviors from high to low, and ranking the priority number of the user behavior bound to the home scene to be triggered. The reciprocal of the level number is determined as the importance of the home scene to be triggered, and the priority number is the number obtained by sorting the priorities of the user behaviors from high to low, and the user behaviors include doing housework, eating, sleeping, studying, relaxing and working; the user preference and the importance are weightedly summed according to the weight of the user preference and the weight of the importance to obtain the priority coefficient of each home scene to be triggered in the conflicting home scene group; the home scenes to be triggered in the conflicting home scene group are prioritized according to the priority coefficient to obtain the priority of each home scene to be triggered in the conflicting home scene group, and the home scene to be triggered with the largest priority coefficient has the highest priority.
[0007] Optionally, determining the user whose user location is within the target area as the target user includes: when the user locations of multiple users are within the target area, determining the user within the target area with the highest usage priority of the target area as the target user; when the user location of one user is within the target area, determining the user within the target area as the target user.
[0008] Optionally, before determining the home scene to be triggered with the highest priority in the conflicting home scene group and the home scene to be triggered outside the conflicting home scene group as the triggered home scenes, the method further includes: when the triggering condition of the home scene to be triggered includes a time window condition, increasing the priority of the home scene to be triggered, and the time window condition is that the current time is within the predetermined time window of the home scene to be triggered; when the environmental data satisfies the matching condition of the home scene to be triggered, increasing the priority of the home scene to be triggered, and the interval of the environmental data corresponding to the matching condition is a sub-interval of the interval of the environmental data corresponding to the triggering condition.
[0009] Optionally, when the environmental data meets the triggering conditions of the target home scene, after determining that the target home scene is the home scene to be triggered, the method also includes: when there is one or more device control instructions of the home scene to be triggered that do not conflict with each other, all the home scenes to be triggered are determined as the triggering home scenes, and the device control instructions of all the triggering home scenes are sent to run the corresponding triggering home scenes.
[0010] Optionally, sending all the device control instructions of the triggered home scenes to run the corresponding triggered home scenes includes: merging each of the triggered home scenes to obtain a merged home scene, and the merged home scene does not include repeated device control instructions; arranging the execution order of the device control instructions of the merged home scene to obtain the instruction execution order of the merged home scene; and sending the device control instructions of the merged home scene in sequence according to the instruction execution order to load the corresponding merged home scene.
[0011] Optionally, the execution order of the device control instructions of the merged home scene is arranged to obtain the instruction execution order of the merged home scene, including: obtaining the label of each triggered home scene, the labels including quiet, bright and energy-saving; arranging the execution order of the device control instructions of the triggered home scenes with the same label to obtain a partial instruction execution order; and incorporating the remaining device control instructions into the partial instruction execution order to obtain the instruction execution order.
[0012] According to another aspect of the present application, a home scene control device is provided, comprising: an acquisition unit, configured to acquire user data, environmental data and home scene data of a target area, the user data comprising a user's preferred home scene, a priority of user behavior and a user location, the environmental data comprising time, temperature, humidity and brightness, and the home scene data comprising device control instructions and trigger conditions for each home scene; a first determination unit, configured to determine, when the environmental data satisfies the triggering condition of the target home scene, the target home scene as the home scene to be triggered, the target home scene being any one of the home scenes; a sending unit, configured to, when there are multiple and at least two conflicting device control instructions for the home scene to be triggered, determine the multiple home scenes to be triggered with conflicting device control instructions as a conflicting home scene group, determine the priorities of the multiple home scenes to be triggered in the conflicting home scene group according to the user data, determine the home scene to be triggered with the highest priority in the conflicting home scene group and the home scenes to be triggered outside the conflicting home scene group as triggered home scenes, and send the device control instructions of all the triggered home scenes to run the corresponding triggered home scenes.
[0013] According to another aspect of the present application, a home appliance central control system is provided, comprising: a central control device, home appliances, one or more processors, a memory, and one or more programs, wherein the central control device is communicatively connected to each of the home appliances respectively, the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of the methods described.
[0014] With the technical solution of the present application, in the above-mentioned home scene control method, when the environmental data meets the triggering condition of the target home scene, the target home scene is determined as a to-be-triggered home scene, which can be one or multiple. When there are multiple to-be-triggered home scenes, if the device control instructions of at least two to-be-triggered home scenes conflict, the conflict home scene group composed of the multiple to-be-triggered home scenes with conflicting device control instructions cannot be loaded simultaneously. The priority of each to-be-triggered home scene in the conflict home scene group is determined according to the user data. The to-be-triggered home scene with the highest priority is the one preferred by the user. Therefore, the to-be-triggered home scene with the highest priority in the conflict home scene group and the to-be-triggered home scenes outside the conflict home scene group are determined as triggered home scenes. The device control instructions of all the triggered home scenes are sent, the loading of multiple triggered home scenes is realized, and the problem of instruction conflict is avoided. Of course, when there is one or multiple to-be-triggered home scenes, the device control instructions of the to-be-triggered home scenes do not conflict, and there is no problem of instruction conflict. Therefore, all the to-be-triggered home scenes can be directly loaded, and the problem of instruction conflict in the prior art is solved. BRIEF DESCRIPTION OF DRAWINGS
[0015] The accompanying drawings, which form a part of the specification, are included to provide a further understanding of the application and are incorporated herein in conjunction with the description of the application. The embodiments of the present application, together with its advantages, can best be understood by referring to the following description taken in conjunction with the accompanying drawings in which:
[0016] Figure 1 A hardware structure block diagram of a mobile terminal for executing a home scene control method is shown according to an embodiment of the present application;
[0017] Figure 2 A flowchart of a home scene control method is shown according to an embodiment of the present application;
[0018] Figure 3 A construction flowchart of a smart home app is shown according to an embodiment of the present application;
[0019] Figure 4 A structure block diagram of a home scene control device is shown according to an embodiment of the present application.
[0020] In the above-mentioned drawings, the following reference signs are used:
[0021] 102, processor; 104, memory; 106, transmission device; 108, input / output device. DETAILED DESCRIPTION
[0022] It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
[0023] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.
[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0025] As introduced in the background technology, in the prior art, there are conflicts in loading instructions for multiple home scenes. To solve this technical problem, the embodiments of the present application provide a home scene control method, device, and home appliance central control system.
[0026] The technical solutions in the embodiments of the present invention will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present invention.
[0027] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a hardware structure block diagram of a mobile terminal of a home scene control method according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown) a processor 102 (the processor 102 may include but is not limited to a microprocessor MCU or a programmable logic device FPGA and other processing devices) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input and output device 108 for communication functions. It will be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components than shown, or with Figure 1 Different configurations shown.
[0028] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the home scene control method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, implementing the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned networks include but are not limited to the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. The transmission device 106 is used to receive or send data via a network. Specific examples of the above-mentioned networks may include a wireless network provided by the communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0029] In this embodiment, a home scene control method running on a mobile terminal, a computer terminal or a similar computing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0030] Figure 2 This is a flow chart of a home scene control method according to an embodiment of the present application. Figure 2 As shown, the method includes the following steps:
[0031] Step S201: Acquire user data, environmental data, and home scene data for the target area. The user data includes the user's preferred home scene, user behavior priority, and user location. The environmental data includes time, temperature, humidity, and brightness. The home scene data includes device control instructions and trigger conditions for each home scene.
[0032] Specifically, if Figure 3As shown, build a control system: use sensors such as temperature and humidity, infrared, door magnets, and light to collect user and environmental data; establish an intelligent recognition engine, use cloud servers to analyze user behavior, determine scenarios, and schedule scenarios, and transmit the analyzed data to the smart home app for display. Users can view the current scene, set preferences, and change its content data; prepare execution devices, such as air conditioners, lights, curtains, and other smart home terminal devices. Scene configuration and automatic recognition: users can create scenes through the app, such as turning on the air conditioner when returning home. After creating a scene, each scene must have its name, unique identifier, trigger condition, device control instruction (scene action), and scene priority. The system will continuously count and analyze user behavior data. The intelligent recognition engine will compare the data collected by the current device with the created scene data, and then evaluate the scenarios that the user may currently execute, and help users intelligently modify scene data, such as scene priority.
[0033] Step S202: if the environmental data satisfies the triggering condition of the target home scene, determining the target home scene as the home scene to be triggered, where the target home scene is any one of the home scenes;
[0034] Specifically, if the environmental data meets the above-mentioned triggering conditions of the target home scene, the target home scene will be triggered, that is, the home scene to be triggered.
[0035] Step S203: When there are multiple home scenes to be triggered and at least two of them have conflicting device control instructions, the multiple home scenes to be triggered with conflicting device control instructions are determined as a conflicting home scene group, and the priorities of the multiple home scenes to be triggered in the conflicting home scene group are determined according to the user data. The home scene to be triggered with the highest priority in the conflicting home scene group and the home scenes to be triggered outside the conflicting home scene group are determined as triggered home scenes, and the device control instructions of all the triggered home scenes are sent to run the corresponding triggered home scenes.
[0036] Specifically, if Figure 3 As shown in the figure, if multiple scenarios in the current home meet the trigger conditions simultaneously, the conflict judgment rule will be triggered. At this time, the server will use the algorithm to determine which scenario to execute first. First, it will evaluate based on user data. If the evaluation shows that multiple scenarios have similar priorities, the scenario will be merged and the highest priority scenario will be executed.
[0037] In the above household scene control method, when the environmental data meets the triggering condition of the target household scene, the target household scene is determined as a to-be-triggered household scene. The to-be-triggered household scene can have one or more. If the device control instructions of at least two to-be-triggered household scenes conflict, the to-be-triggered household scenes in the conflict household scene group cannot be loaded simultaneously. The priority of each to-be-triggered household scene in the conflict household scene group is determined according to the user data. The to-be-triggered household scene with the highest priority is the one preferred by the user. Therefore, the to-be-triggered household scene with the highest priority in the conflict household scene group and the to-be-triggered household scene outside the conflict household scene group are determined as triggered household scenes. The device control instructions of all triggered household scenes are sent, the loading of multiple triggered household scenes is realized, and the problem of instruction conflict is avoided. Of course, if the device control instructions of the to-be-triggered household scene or the to-be-triggered household scenes do not conflict, there is no problem of instruction conflict, and all to-be-triggered household scenes can be directly loaded. The problem of instruction conflict in the prior art in the loading of multiple household scenes is solved.
[0038] It should be noted that, as shown in Figure 3 User interaction and App feedback mechanism: the App end displays the scene log. In addition, the user can confirm, stop or switch the execution of the scene. The system records these operations of the user and optimizes the model learning based on these data. Spatial partition identification and local scene control: the system determines the current position of the user based on sensors and other devices. Each room can independently trigger and execute a scene. The central control system controls the range based on the current position of the smart home device to prevent global broadcast from affecting other devices. Identity recognition and scene specialization: when the user enters the smart home area, the system can identify the user through App login ID, family voice recognition, face recognition, fingerprint recognition and other technologies. According to different users, the preference model and historical scene are loaded to customize the exclusive scene for the user.
[0039] In order to confirm whether the scenes conflict, in an optional implementation, in the case where the above environmental data meets the above triggering condition of the target household scene, after the above target household scene is determined as a to-be-triggered household scene, before the multiple to-be-triggered household scenes with the above device control instruction conflict are determined as a conflict household scene group, the method further includes:
[0040] Step S301, determining whether there are multiple to-be-triggered household scenes;
[0041] Step S302, in the case where there are multiple to-be-triggered household scenes, determining whether the control objects of the multiple to-be-triggered household scenes have the same household device;
[0042] Step S303: if the control objects of the plurality of home scenes to be triggered are the same home device, determining whether the actions corresponding to the plurality of device control instructions for controlling the same home device cannot be executed simultaneously;
[0043] Step S304: if the actions corresponding to at least two of the device control instructions for controlling the same home device cannot be executed simultaneously, determining that the device control instructions for at least two of the home scenes to be triggered conflict;
[0044] Step S305: When all actions corresponding to the device control instructions for controlling the same home appliance can be executed simultaneously, it is determined that the device control instructions for the plurality of home scenes to be triggered do not conflict with each other.
[0045] In the above implementation, the system determines whether the control objects are the same device or the same functional module, and handles it according to the following standards: when there is no device conflict, the scenes can be directly merged; when there is a minor device conflict, try to adjust the control parameters for fusion (such as the temperature difference is not large), such as setting the air-conditioning temperature to 24°C and 26°C, then use the fusion algorithm (average value, preference model, scene weight) to merge the parameters and generate an intermediate control solution, which is considered to be the actions corresponding to the device control instructions that can be executed simultaneously; in the event of a serious control conflict, such as one scene closes the curtains and the other fully opens them, the priority evaluation mechanism is enabled and direct merging is not performed.
[0046] In order to determine the priority of the home scene to be triggered, in an optional implementation, the above step S203 can be implemented by the following steps:
[0047] Step S2031, determining the user whose location is within the target area as a target user;
[0048] Step S2032: Determine the minimum value of the active triggering frequencies corresponding to the plurality of preferred home scenes of the target user as the predetermined frequency, and determine the user preference for the home scene to be triggered as the ratio of the active triggering frequency of the home scene to be triggered to the predetermined frequency, where the active triggering frequency is the frequency at which the user controls the scene to be triggered;
[0049] Step S2033: Rank the priorities of the user behaviors from high to low to obtain a priority number for each of the user behaviors, and determine the reciprocal of the priority number of the user behavior bound to the home scene to be triggered as the importance of the home scene to be triggered. The priority number is the number ranked from high to low in terms of priority of the user behaviors, and the user behaviors include doing housework, eating, sleeping, studying, relaxing, and working.
[0050] Step S2034, the user preference degree and the importance degree are weighted and summed according to the weight of the user preference degree and the weight of the importance degree, to obtain a priority coefficient of each of the to-be-triggered home scenes of the conflict home scene group;
[0051] Step S2035, the to-be-triggered home scenes of the conflict home scene group are prioritized according to the priority coefficient, to obtain a priority of each of the to-be-triggered home scenes of the conflict home scene group, and the to-be-triggered home scene with the largest priority coefficient has the highest priority.
[0052] In the above embodiment, the total priority value is evaluated according to the following factors to select one scene as the “main scene”. The user preference degree, i.e. the ratio of the active triggering frequency of the to-be-triggered home scene to the predetermined frequency; the importance degree, i.e. the reciprocal of the priority number of the user behavior bound to the to-be-triggered home scene, the priority of the user behavior such as sleep / work is higher. The user preference degree and the importance degree are weighted and summed according to the weight of the user preference degree and the weight of the importance degree, to obtain a priority coefficient of each of the to-be-triggered home scenes of the conflict home scene group. The priority of the to-be-triggered home scene can be determined according to the size of the priority coefficient, and the to-be-triggered home scene with the highest priority is the “main scene”. Other compatible scenes will be auxiliary scenes, and only their non-conflicting or mergable device control actions are added to the main scene action set. The frequency and time period of the user manually starting, confirming or switching a certain scene are counted, and the frequently used scene is automatically promoted in priority. Each user interaction behavior is counted as once weight adjustment basis to form a long-term preference model. After different users log in or are recognized, the system loads their exclusive preference and historical behavior model to promote the priority of the scenes commonly used by the user.
[0053] In order to determine the priority user, in an optional embodiment, the step S2031 can be implemented by the following steps:
[0054] Step S20311, in the case that the user positions of multiple users are in the target area, the user in the target area with the highest use priority of the target area is determined as the target user;
[0055] Step S20312, in the case that the user position of one user is in the target area, the user in the target area is determined as the target user.
[0056] In the above embodiment, if multiple family members (such as parents and children) are detected to be present at the same time, the system constructs a weight model for each member and integrates the control strategy: adults are prioritized by default (customizable settings). If there is a "child priority area" (such as a children's room), children's preferences are prioritized. When family members enter different areas, the scene system is executed according to the personal priority strategy.
[0057] In order to adjust the priority of the home scene, in an optional implementation, before determining the to-be-triggered home scene with the highest priority in the conflicting home scene group and the to-be-triggered home scene outside the conflicting home scene group as the triggering home scene, the method further includes:
[0058] Step S401: when the triggering condition of the home scene to be triggered includes a time window condition, raising the priority of the home scene to be triggered, the time window condition being that the current time is within the predetermined time window of the home scene to be triggered;
[0059] Step S402: When the environmental data satisfies the matching conditions of the home scene to be triggered, the priority of the home scene to be triggered is increased, and the interval of the environmental data corresponding to the matching conditions is a sub-interval of the interval of the environmental data corresponding to the triggering conditions.
[0060] In the above implementation, time-sensitive weights are assigned to each scene. For example, for the waking scene, priority is increased by 3 between 6:00 AM and 7:30 AM daily; for the sleeping scene, priority is increased by 5 after 10:00 PM. Outside of these time ranges, the triggering priority of the scene is automatically lowered. The system dynamically adjusts the priority based on the degree of match between sensor data such as temperature, humidity, light, and infrared, and the scene conditions. The higher the match, the greater the increase in priority.
[0061] In order to load a single or multiple scenes, in an optional embodiment, when the environmental data satisfies the triggering condition of the target home scene, after determining that the target home scene is the home scene to be triggered, the method further includes:
[0062] Step S501: When there is one or more of the above-mentioned home scenes to be triggered and the above-mentioned device control instructions for the above-mentioned home scenes to be triggered do not conflict, all of the above-mentioned home scenes to be triggered are determined as the above-mentioned triggered home scenes, and the above-mentioned device control instructions for all the above-mentioned triggered home scenes are sent to run the corresponding above-mentioned triggered home scenes.
[0063] In the above implementation, a single home scene to be triggered is directly loaded, and when there is no scene conflict between multiple home scenes to be triggered, the scenes to be triggered can be directly merged.
[0064] In order to achieve scene merging, in an optional implementation, the above step S203 can be implemented by the following steps:
[0065] Step S2036: Merge the triggered home scenes to obtain a merged home scene, where the merged home scene does not include repeated device control instructions.
[0066] Step S2037: Arrange the execution order of the device control instructions of the merged home scene to obtain the instruction execution order of the merged home scene;
[0067] Step S2038: Send the above-mentioned device control instructions of the merged home scene in sequence according to the above-mentioned instruction execution order to load the corresponding merged home scene.
[0068] In the above implementation, actions are deduplicated and sorted: the merged action set is deduplicated and optimized; it is sorted in the order of device dependency (such as: turn on the lights first, then draw the curtains, and then start the TV); short delay execution is introduced (such as turning on multiple lights gradually) to improve the user experience.
[0069] To accommodate user-initiated actions, merged scenes are displayed in the app as "Merged Scene + Timestamp." The system also stores the merge source, conflict resolution path, and user confirmation. User Visual Feedback: When users open the app to view the merged scene, they will be presented with: the currently executing scene and its merge source; the reason for each action (e.g., "Because you prefer warm light, I'm turning it on just for you"); and buttons such as "One-click Split" and "Keep Only the Main Scene."
[0070] To facilitate scene merging, in an optional implementation, step S2037 may be implemented by the following steps:
[0071] Step S20371: Obtain the labels of each of the above-mentioned triggered home scenes, wherein the above-mentioned labels include quiet, bright, and energy-saving;
[0072] Step S20372: Arrange the execution order of the device control instructions for triggering the home scene with the same label to obtain a partial instruction execution order;
[0073] Step S20373: Incorporate the remaining device control instructions into the partial instruction execution sequence to obtain the instruction execution sequence.
[0074] In the above implementation, a label system (such as "quiet", "bright", and "energy-saving") is introduced into the scene configuration. If multiple scene labels overlap, they are considered to have similar intentions and are merged first.
[0075] The embodiment of the present application also provides a home scene control device. It should be noted that the home scene control device of the embodiment of the present application can be used to execute the home scene control method provided by the embodiment of the present application. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and the details that have been explained will not be repeated here. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0076] The following is an introduction to the home scene control device provided in the embodiments of the present application.
[0077] Figure 4 Schematic diagram of a home scene control device according to an embodiment of the present application. Figure 4 As shown, the device includes:
[0078] An acquisition unit 10 is configured to acquire user data, environmental data, and home scene data of a target area. The user data includes the user's preferred home scene, user behavior priority, and user location. The environmental data includes time, temperature, humidity, and brightness. The home scene data includes device control instructions and trigger conditions for each home scene.
[0079] Specifically, if Figure 3 As shown, build a control system: use sensors such as temperature and humidity, infrared, door magnets, and light to collect user and environmental data; establish an intelligent recognition engine, use cloud servers to analyze user behavior, determine scenarios, and schedule scenarios, and transmit the analyzed data to the smart home app for display. Users can view the current scene, set preferences, and change its content data; prepare execution devices, such as air conditioners, lights, curtains, and other smart home terminal devices. Scene configuration and automatic recognition: users can create scenes through the app, such as turning on the air conditioner when returning home. After creating a scene, each scene must have its name, unique identifier, trigger condition, device control instruction (scene action), and scene priority. The system will continuously count and analyze user behavior data. The intelligent recognition engine will compare the data collected by the current device with the created scene data, and then evaluate the scenarios that the user may currently execute, and help users intelligently modify scene data, such as scene priority.
[0080] A first determining unit 20 is configured to determine, when the environmental data satisfies the triggering condition of the target home scene, the target home scene as a home scene to be triggered, where the target home scene is any one of the home scenes;
[0081] Specifically, if the environmental data meets the above-mentioned triggering conditions of the target home scene, the target home scene will be triggered, that is, the home scene to be triggered.
[0082] The sending unit 30 is used to determine the multiple home scenes to be triggered with conflicting device control instructions as a conflicting home scene group when there are multiple home scenes to be triggered and at least two of the device control instructions of the home scenes to be triggered conflict, determine the priorities of the multiple home scenes to be triggered in the conflicting home scene group according to the user data, determine the home scene to be triggered with the highest priority in the conflicting home scene group and the home scenes to be triggered outside the conflicting home scene group as triggered home scenes, and send the device control instructions of all the triggered home scenes to run the corresponding triggered home scenes.
[0083] Specifically, if Figure 3 As shown in the figure, if multiple scenarios in the current home meet the trigger conditions simultaneously, the conflict judgment rule will be triggered. At this time, the server will use the algorithm to determine which scenario to execute first. First, it will evaluate based on user data. If the evaluation shows that multiple scenarios have similar priorities, the scenario will be merged and the highest priority scenario will be executed.
[0084] In the above-mentioned home scene control device, when the environmental data meets the triggering conditions of the target home scene, the target home scene is determined to be the home scene to be triggered. There can be one or more home scenes to be triggered. If there are multiple home scenes to be triggered, if the device control instructions of at least two home scenes to be triggered conflict, then the conflicting home scene group composed of multiple home scenes to be triggered with conflicting device control instructions cannot be loaded at the same time. The priority of each home scene to be triggered in the conflicting home scene group is determined according to user data. The home scene to be triggered with the highest priority is the one that the user prefers more. Therefore, the home scene to be triggered with the highest priority in the conflicting home scene group and the home scenes to be triggered outside the conflicting home scene group are determined as the triggering home scenes, and all the device control instructions for triggering the home scenes are sent to realize the loading of multiple triggering home scenes to avoid the problem of instruction conflict. Of course, if the device control instructions of one or more home scenes to be triggered do not conflict, there is no problem of instruction conflict. All the home scenes to be triggered can be directly loaded, which solves the problem of instruction conflict in loading multiple home scenes in the prior art.
[0085] It should be noted that if Figure 3As shown, user interaction and App feedback mechanism: the App displays the scene log, in addition, the user can also confirm, stop or switch the execution of the scene, the system will record the user's operation and optimize the model learning with these data. Spatial partition identification and local scene control: the system will determine the user's current location according to the sensor and other devices; Each room can trigger and execute the scene independently; The central control system controls the range according to the current location of the smart home device, preventing global broadcast from affecting other devices. Identity recognition and scene specialization: when the user enters the smart home area, the system can identify the user through App login ID, home voice recognition, face recognition, fingerprint recognition and other technologies, and load the preference model and historical scene according to different users to customize the exclusive scene for the user.
[0086] In order to confirm whether the scene conflicts, in an optional implementation, the above device further comprises:
[0087] The second determination unit is configured to, after determining that the target home scene is the to-be-triggered home scene when the environment data meets the trigger condition of the target home scene, determine whether there are multiple to-be-triggered home scenes before determining the multiple to-be-triggered home scenes with the device control instruction conflict as the conflict home scene group.
[0088] The third determination unit is configured to, when there are multiple to-be-triggered home scenes, determine whether the control objects of the multiple to-be-triggered home scenes exist the same home device.
[0089] The fourth determination unit is configured to, when the control objects of the multiple to-be-triggered home scenes exist the same home device, determine whether the actions corresponding to the multiple device control instructions for controlling the same home device cannot be executed simultaneously.
[0090] The fifth determination unit is configured to, when the actions corresponding to the at least two device control instructions for controlling the same home device cannot be executed simultaneously, determine that the device control instructions of the at least two to-be-triggered home scenes conflict.
[0091] The sixth determination unit is configured to, when the actions corresponding to all the device control instructions for controlling the same home device can be executed simultaneously, determine that the device control instructions of the multiple to-be-triggered home scenes do not conflict.
[0092] In the above implementation, the system determines whether the control objects are the same device or the same functional module, and handles it according to the following standards: when there is no device conflict, the scenes can be directly merged; when there is a minor device conflict, try to adjust the control parameters for fusion (such as the temperature difference is not large), such as setting the air-conditioning temperature to 24°C and 26°C, then use the fusion algorithm (average value, preference model, scene weight) to merge the parameters and generate an intermediate control solution, which is considered to be the actions corresponding to the device control instructions that can be executed simultaneously; in the event of a serious control conflict, such as one scene closes the curtains and the other fully opens them, the priority evaluation mechanism is enabled and direct merging is not performed.
[0093] In order to determine the priority of the home scene to be triggered, in an optional implementation, the sending unit includes:
[0094] A first determining module is configured to determine the user whose location is within the target area as a target user;
[0095] a second determining module configured to determine the minimum value of the active triggering frequencies corresponding to the plurality of preferred home scenes of the target user as the predetermined frequency, and to determine the user preference for the home scene to be triggered by calculating the ratio of the active triggering frequency of the home scene to be triggered to the predetermined frequency, wherein the active triggering frequency is the frequency at which the user controls the execution of the scene;
[0096] a third determining module, configured to obtain a priority number for each of the user behaviors by sorting the priorities of the user behaviors from high to low, and determine the importance of the home scene to be triggered as the reciprocal of the priority number of the user behavior bound to the home scene to be triggered, the priority number being the number obtained by sorting the priorities of the user behaviors from high to low, the user behaviors including doing housework, eating, sleeping, studying, relaxing, and working;
[0097] a calculation module, configured to perform a weighted summation of the user preference and the importance according to the weight of the user preference and the weight of the importance, to obtain a priority coefficient of each of the to-be-triggered home scenes in the conflicting home scene group;
[0098] The sorting module is used to prioritize the above-mentioned home scenes to be triggered in the above-mentioned conflicting home scene group according to the above-mentioned priority coefficient, and obtain the priority of each of the above-mentioned home scenes to be triggered in the above-mentioned conflicting home scene group. The above-mentioned home scene to be triggered with the largest priority coefficient has the highest priority.
[0099] In the above embodiment, the total priority value is evaluated according to the following factors to select one scene as the "main scene": a user preference degree, i.e., a ratio of a frequency of active triggering of the to-be-triggered home scene to the predetermined frequency; an importance degree, i.e., a reciprocal of the priority sequence number of the user behavior bound to the to-be-triggered home scene, the priority of the user behavior such as sleep / work is higher, the user preference degree and the importance degree are weighted and summed according to a weight of the user preference degree and a weight of the importance degree to obtain a priority coefficient of each to-be-triggered home scene in the conflict home scene group, the priority of the to-be-triggered home scene can be determined according to the size of the priority coefficient, and the to-be-triggered home scene with the highest priority is the "main scene". Other compatible scenes will be auxiliary scenes, and only their non-conflicting or fusable device control actions are added to the main scene action set. The frequency and time period of the user manually starting, confirming or switching a certain scene are counted, and the frequently used scene is automatically promoted in priority. Each user interaction behavior is counted as a weight adjustment basis to form a long-term preference model. After different users log in or are recognized, the system loads the exclusive preference and historical behavior model of the user to promote the priority of the commonly used scene of the user.
[0100] In order to determine the priority user, in an optional embodiment, the first determining module comprises:
[0101] A first determining sub-module is configured to, in a case where user positions of multiple users are in the target area, determine a user in the target area with the highest use priority of the target area as the target user.
[0102] A second determining sub-module is configured to, in a case where a user position of one user is in the target area, determine the user in the target area as the target user.
[0103] In the above embodiment, if multiple family members (such as parents and children) are detected to be present at the same time, the system constructs a weight model for each member and fuses a control strategy: the default is that adults are given priority (which can be customized), if there is a "child priority area" (such as a children's room), the preference of children is given priority, and when the family members enter different areas, the scene system executes the person priority strategy.
[0104] In order to adjust the priority of the home scene, in an optional embodiment, the device further comprises:
[0105] a first control unit, configured to, before determining the to-be-triggered home scene with the highest priority in the conflicting home scene group and the to-be-triggered home scene outside the conflicting home scene group as the triggering home scene, increase the priority of the to-be-triggered home scene if the triggering condition of the to-be-triggered home scene includes a time window condition, wherein the time window condition is that the current time is within a predetermined time window of the to-be-triggered home scene;
[0106] The second control unit is used to increase the priority of the above-mentioned home scene to be triggered when the above-mentioned environmental data meets the matching conditions of the above-mentioned home scene to be triggered, and the interval of the above-mentioned environmental data corresponding to the above-mentioned matching conditions is a sub-interval of the interval of the above-mentioned environmental data corresponding to the above-mentioned triggering conditions.
[0107] In the above implementation, time-sensitive weights are assigned to each scene. For example, for the waking scene, priority is increased by 3 between 6:00 AM and 7:30 AM daily; for the sleeping scene, priority is increased by 5 after 10:00 PM. Outside of these time ranges, the triggering priority of the scene is automatically lowered. The system dynamically adjusts the priority based on the degree of match between sensor data such as temperature, humidity, light, and infrared, and the scene conditions. The higher the match, the greater the increase in priority.
[0108] In order to load a single or multiple scenes, in an optional implementation, the apparatus further includes:
[0109] The seventh determination unit is used to determine that the above-mentioned target home scene is the home scene to be triggered when the above-mentioned environmental data meets the above-mentioned triggering conditions of the target home scene. When the above-mentioned home scene to be triggered has one or more of the above-mentioned device control instructions of the above-mentioned home scene to be triggered and do not conflict with each other, all the above-mentioned home scenes to be triggered are determined as the above-mentioned triggering home scenes, and the above-mentioned device control instructions of all the above-mentioned triggering home scenes are sent to run the corresponding above-mentioned triggering home scenes.
[0110] In the above implementation, a single home scene to be triggered is directly loaded, and when there is no scene conflict between multiple home scenes to be triggered, the scenes to be triggered can be directly merged.
[0111] In order to achieve scene merging, in an optional implementation, the sending unit includes:
[0112] a merging module, configured to merge the triggered home scenes to obtain a merged home scene, wherein the merged home scene does not include repeated device control instructions;
[0113] An arrangement module, configured to arrange the execution order of the device control instructions of the merged home scene to obtain the instruction execution order of the merged home scene;
[0114] The sending module is used to send the above-mentioned device control instructions of the merged home scene in sequence according to the execution order of the above-mentioned instructions to load the corresponding merged home scene.
[0115] In the above implementation, actions are deduplicated and sorted: the merged action set is deduplicated and optimized; it is sorted in the order of device dependency (such as: turn on the lights first, then draw the curtains, and then start the TV); short delay execution is introduced (such as turning on multiple lights gradually) to improve the user experience.
[0116] To accommodate user-initiated actions, merged scenes are displayed in the app as "Merged Scene + Timestamp." The system also stores the merge source, conflict resolution path, and user confirmation. User Visual Feedback: When users open the app to view the merged scene, they will be presented with: the currently executing scene and its merge source; the reason for each action (e.g., "Because you prefer warm light, I'm turning it on just for you"); and buttons such as "One-click Split" and "Keep Only the Main Scene."
[0117] To facilitate scene merging, in an optional implementation, the above-mentioned arrangement module includes:
[0118] An acquisition submodule is used to acquire the labels of each of the above-mentioned triggered home scenes, wherein the above-mentioned labels include quiet, bright and energy-saving;
[0119] A first arrangement submodule is configured to arrange the execution order of the device control instructions for triggering the home scene with the same label to obtain a partial instruction execution order;
[0120] The second arrangement submodule is used to arrange the remaining device control instructions into the partial instruction execution sequence to obtain the instruction execution sequence.
[0121] In the above implementation, a label system (such as "quiet", "bright", and "energy-saving") is introduced into the scene configuration. If multiple scene labels overlap, they are considered to have similar intentions and are merged first.
[0122] The above-mentioned home scene control device includes a processor and a memory. The acquisition unit, the first determination unit, and the sending unit are all stored as program units in the memory. The processor executes the program units stored in the memory to implement the corresponding functions. The above-mentioned modules are all located in the same processor; alternatively, the above-mentioned modules can be located in different processors in any combination.
[0123] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the problem of conflicting instructions for loading multiple home scenes in the existing technology can be solved by adjusting kernel parameters.
[0124] The memory can include non-persistent memory in a computer readable medium, random access memory (RAM) and / or non-volatile memory such as read-only memory (ROM) or flash memory, and the memory includes at least one memory chip.
[0125] The embodiment of the present application provides a computer readable storage medium, the computer readable storage medium comprises a stored program, wherein the program controls a device where the computer readable storage medium is located to execute the home scene control method when the program runs.
[0126] Specifically, the home scene control method comprises:
[0127] In step S201, user data, environment data and home scene data of a target area are acquired, the user data comprises a preferred home scene of a user, a priority of a user behavior and a user position, the environment data comprises time, temperature, humidity and brightness, and the home scene data comprises device control instructions and trigger conditions of each home scene.
[0128] In step S202, in a case where the environment data satisfies the trigger condition of a target home scene, the target home scene is determined as a to-be-triggered home scene, and the target home scene is any one of the home scenes.
[0129] In step S203, in a case where there are multiple to-be-triggered home scenes and the device control instructions of at least two to-be-triggered home scenes conflict, multiple to-be-triggered home scenes with the device control instructions conflicting are determined as a conflict home scene group, priorities of the multiple to-be-triggered home scenes in the conflict home scene group are determined according to the user data, a to-be-triggered home scene with the highest priority in the conflict home scene group and a to-be-triggered home scene outside the conflict home scene group are determined as a trigger home scene, and the device control instructions of all the trigger home scenes are sent to run the corresponding trigger home scenes.
[0130] The embodiment of the present application provides a processor, the processor is used for running a program, wherein the program executes the home scene control method when the program runs.
[0131] Specifically, the home scene control method comprises:
[0132] In step S201, user data, environment data and home scene data of a target area are acquired, the user data comprises a preferred home scene of a user, a priority of a user behavior and a user position, the environment data comprises time, temperature, humidity and brightness, and the home scene data comprises device control instructions and trigger conditions of each home scene.
[0133] Step S202, in the case where the environment data meets the trigger condition of the target home scene, determining the target home scene as a to-be-triggered home scene, and the target home scene is any one of the home scenes;
[0134] Step S203, in the case where there are multiple to-be-triggered home scenes and the device control instructions of at least two to-be-triggered home scenes conflict, determining the multiple to-be-triggered home scenes with the device control instruction conflict as a conflict home scene group, determining the priority of the multiple to-be-triggered home scenes in the conflict home scene group according to the user data, determining the to-be-triggered home scene with the highest priority in the conflict home scene group and the to-be-triggered home scene outside the conflict home scene group as a triggered home scene, and sending the device control instructions of all the triggered home scenes to run the corresponding triggered home scene.
[0135] The embodiment of the present application provides a home device central control system, which is characterized by comprising: a central control device, home devices, one or more processors, a memory, and one or more programs, wherein the central control device is in communication connection with each home device, the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the processor implements at least the following steps when executing the program:
[0136] Step S201, obtaining user data, environment data and home scene data of a target area, wherein the user data includes a preferred home scene of a user, a priority of a user behavior and a user position, the environment data includes time, temperature, humidity and brightness, and the home scene data includes device control instructions and trigger conditions of each home scene;
[0137] Step S202, in the case where the environment data meets the trigger condition of the target home scene, determining the target home scene as a to-be-triggered home scene, and the target home scene is any one of the home scenes;
[0138] Step S203, in the case where there are multiple to-be-triggered home scenes and the device control instructions of at least two to-be-triggered home scenes conflict, determining the multiple to-be-triggered home scenes with the device control instruction conflict as a conflict home scene group, determining the priority of the multiple to-be-triggered home scenes in the conflict home scene group according to the user data, determining the to-be-triggered home scene with the highest priority in the conflict home scene group and the to-be-triggered home scene outside the conflict home scene group as a triggered home scene, and sending the device control instructions of all the triggered home scenes to run the corresponding triggered home scene.
[0139] The application also provides a computer program product, which is suitable for executing the program of the following method steps when executed on a data processing device:
[0140] In step S201, user data, environment data and home scene data of a target region are acquired, the user data including a preferred home scene of a user, a priority of user behavior and a user location, the environment data including time, temperature, humidity and brightness, and the home scene data including device control instructions and trigger conditions of each home scene.
[0141] In step S202, in a case where the environment data satisfies the trigger condition of a target home scene, the target home scene is determined as a to-be-triggered home scene, and the target home scene is any one of the home scenes.
[0142] In step S203, in a case where there are multiple to-be-triggered home scenes and the device control instructions of at least two to-be-triggered home scenes conflict, the to-be-triggered home scenes with the conflicting device control instructions are determined as a conflict home scene group, the priority of the to-be-triggered home scenes in the conflict home scene group is determined according to the user data, the to-be-triggered home scene with the highest priority in the conflict home scene group and the to-be-triggered home scenes outside the conflict home scene group are determined as trigger home scenes, and the device control instructions of all the trigger home scenes are sent to run the corresponding trigger home scenes.
[0143] Obviously, those skilled in the art should understand that each module or step of the application can be realized by a general computing device, which can be centralized on a single computing device or distributed on a network composed of multiple computing devices, and can be realized by program codes executable by a computing device, so that they can be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described can be executed in different sequences, or they can be respectively manufactured into each integrated circuit module, or multiple modules or steps can be manufactured into a single integrated circuit module. Therefore, the application is not limited to any specific combination of hardware and software.
[0144] Those skilled in the art should understand that the embodiments of the application can be provided as a method, a system or a computer program product. Therefore, the application can be in the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Moreover, the application can be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0145] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flow or blocks Figure 1 means for functionally implementing the steps listed in the flowchart block or blocks.
[0146] These computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions which implement the function specified in the flowchart block or blocks. Figure 1 one or more flow or blocks Figure 1 means for functionally implementing the steps listed in the flowchart block or blocks.
[0147] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flow or blocks Figure 1 means for functionally implementing the steps listed in the flowchart block or blocks.
[0148] In one typical configuration, the computing device includes one or more processors (CPU's), input / output interfaces, network interfaces, and memory.
[0149] The memory can include non-persistent memory and / or persistent memory, such as flash memory, read-only memory (ROM), and / or volatile or non-volatile random access memory (RAM), among others. The memory is an example of computer readable media.
[0150] Computer-readable media includes permanent and non-permanent, movable and non-movable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible by a computing device. According to the definition herein, computer-readable media does not include transitory media such as modulated data signals and carriers.
[0151] The technical features of the above-described embodiments can be combined in any manner. In order to make the description concise, not all possible combinations of the technical features in the above-described embodiments are described, but as long as the combinations of the technical features do not exist contradictions, it should be considered as the scope of the present disclosure.
[0152] It should also be noted that the terms "comprising", "including", or any other variant thereof are intended to cover non-exclusive inclusion, so that processes, methods, articles or devices including a series of elements not only include those elements, but also include other elements not explicitly listed, or inherent to such processes, methods, articles or devices. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0153] From the above description, it can be seen that the above-described embodiments of the present application achieve the following technical effects:
[0154] 1)、In the home scene control method of the present application, when the environmental data meets the triggering condition of the target home scene, the target home scene is determined as a to-be-triggered home scene, which can be one or multiple. When there are multiple to-be-triggered home scenes, if the device control instructions of at least two to-be-triggered home scenes conflict, the conflict home scene group composed of the multiple to-be-triggered home scenes with conflicting device control instructions cannot be loaded simultaneously. The priority of each to-be-triggered home scene in the conflict home scene group is determined according to the user data. The to-be-triggered home scene with the highest priority is the one preferred by the user. Therefore, the to-be-triggered home scene with the highest priority in the conflict home scene group and the to-be-triggered home scenes outside the conflict home scene group are determined as triggered home scenes. The device control instructions of all the triggered home scenes are sent, the loading of multiple triggered home scenes is realized, and the problem of instruction conflict is avoided. Of course, when there is one or multiple to-be-triggered home scenes, the device control instructions of the to-be-triggered home scenes do not conflict, and there is no problem of instruction conflict. In this case, all the to-be-triggered home scenes can be directly loaded, and the problem of instruction conflict in the loading of multiple home scenes in the prior art is solved.
[0155] 2)、In the home scene control device of the present application, when the environmental data meets the triggering condition of the target home scene, the target home scene is determined as a to-be-triggered home scene, which can be one or multiple. When there are multiple to-be-triggered home scenes, if the device control instructions of at least two to-be-triggered home scenes conflict, the conflict home scene group composed of the multiple to-be-triggered home scenes with conflicting device control instructions cannot be loaded simultaneously. The priority of each to-be-triggered home scene in the conflict home scene group is determined according to the user data. The to-be-triggered home scene with the highest priority is the one preferred by the user. Therefore, the to-be-triggered home scene with the highest priority in the conflict home scene group and the to-be-triggered home scenes outside the conflict home scene group are determined as triggered home scenes. The device control instructions of all the triggered home scenes are sent, the loading of multiple triggered home scenes is realized, and the problem of instruction conflict is avoided. Of course, when there is one or multiple to-be-triggered home scenes, the device control instructions of the to-be-triggered home scenes do not conflict, and there is no problem of instruction conflict. In this case, all the to-be-triggered home scenes can be directly loaded, and the problem of instruction conflict in the loading of multiple home scenes in the prior art is solved.
[0156] The above only describes the preferred embodiments of the present application and is not intended to limit the present application. Those skilled in the art can make various changes and modifications to the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A home scene control method, characterized in that: include: Obtain user data, environmental data, and home scene data for the target area. The user data includes the user's preferred home scene, user behavior priority, and user location. The environmental data includes time, temperature, humidity, and brightness. The home scene data includes device control instructions and trigger conditions for each home scene. In a case where the environmental data meets the triggering condition of the target home scene, determining the target home scene as the home scene to be triggered, the target home scene being any one of the home scenes; In the case that there are multiple home scenes to be triggered and the device control instructions of at least two of the home scenes to be triggered conflict, the multiple home scenes to be triggered with the device control instructions conflict are determined as a conflicting home scene group, the priorities of the multiple home scenes to be triggered in the conflicting home scene group are determined according to the user data, the home scene to be triggered with the highest priority in the conflicting home scene group and the home scenes to be triggered outside the conflicting home scene group are determined as triggered home scenes, and the device control instructions of all the triggered home scenes are sent to run the corresponding triggered home scenes.
2. The method according to claim 1, characterized in that When the environmental data satisfies the triggering condition of the target home scene, after determining that the target home scene is a home scene to be triggered, and before determining a plurality of home scenes to be triggered that have conflicting device control instructions as a conflicting home scene group, the method further includes: Determine whether there are multiple home scenes to be triggered; In the case where there are multiple home scenes to be triggered, determining whether the control objects of the multiple home scenes to be triggered are the same home device; In the case where the control objects of multiple home scenes to be triggered are the same home device, determining whether the actions corresponding to the multiple device control instructions for controlling the same home device cannot be executed simultaneously; When actions corresponding to at least two device control instructions for controlling the same home device cannot be executed simultaneously, determining that at least two device control instructions for the home scenes to be triggered conflict with each other; When the actions corresponding to all the device control instructions for controlling the same home device can be executed simultaneously, it is determined that the device control instructions for multiple home scenes to be triggered do not conflict.
3. The method according to claim 1, characterized in that Determining the priorities of the plurality of to-be-triggered home scenes in the conflicting home scene group according to the user data includes: Determine the user whose user location is within the target area as a target user; Determining the minimum value of the active triggering frequencies corresponding to the plurality of preferred home scenes of the target user as the predetermined frequency, and determining the ratio of the active triggering frequency of the home scene to be triggered to the predetermined frequency as the user preference for the home scene to be triggered, where the active triggering frequency is the frequency at which the user controls the scene to be run; The priorities of the user behaviors are sorted from high to low to obtain a priority number for each user behavior, and the reciprocal of the priority number of the user behavior bound to the home scene to be triggered is determined as the importance of the home scene to be triggered, where the priority number is a number obtained by sorting the priorities of the user behaviors from high to low, and the user behaviors include doing housework, eating, sleeping, studying, relaxing, and working; Performing a weighted summation of the user preference and the importance according to the weight of the user preference and the weight of the importance, to obtain a priority coefficient of each of the to-be-triggered home scenes in the conflicting home scene group; The priority of each home scene to be triggered in the conflicting home scene group is sorted according to the priority coefficient to obtain the priority of each home scene to be triggered in the conflicting home scene group, and the home scene to be triggered with the largest priority coefficient has the highest priority.
4. The method according to claim 3, characterized in that Determining the user whose user location is within the target area as a target user includes: In a case where the user locations of multiple users are within the target area, determining the user within the target area with the highest usage priority of the target area as the target user; When the user location of a user is within the target area, the user within the target area is determined as the target user.
5. The method according to claim 1, wherein Before determining the to-be-triggered home scene with the highest priority in the conflicting home scene group and the to-be-triggered home scenes outside the conflicting home scene group as triggering home scenes, the method further includes: In the case where the triggering condition of the home scene to be triggered includes a time window condition, increasing the priority of the home scene to be triggered, the time window condition being that the current time is within a predetermined time window of the home scene to be triggered; When the environmental data satisfies the matching conditions of the home scene to be triggered, the priority of the home scene to be triggered is increased, and the interval of the environmental data corresponding to the matching conditions is a sub-interval of the interval of the environmental data corresponding to the triggering conditions.
6. The method according to claim 1, characterized in that When the environmental data satisfies the triggering condition of the target home scene, after determining that the target home scene is the home scene to be triggered, the method further includes: When the device control instructions for one or more home scenes to be triggered do not conflict with each other, all the home scenes to be triggered are determined as the triggered home scenes, and the device control instructions for all the triggered home scenes are sent to run the corresponding triggered home scenes.
7. The method according to any one of claims 1 to 6, characterized in that Sending all the device control instructions for triggering the home scene to run the corresponding triggered home scene includes: Merging the triggered home scenes to obtain a merged home scene, where the merged home scene does not include repeated device control instructions; Arranging the execution order of the device control instructions of the merged home scene to obtain the instruction execution order of the merged home scene; The device control instructions of the merged home scene are sent in sequence according to the instruction execution order to load the corresponding merged home scene.
8. The method according to claim 7, characterized in that Arranging the execution order of the device control instructions of the merged home scene to obtain the instruction execution order of the merged home scene includes: Obtaining a label for each of the triggered home scenes, the labels including quiet, bright, and energy-saving; Arranging the execution order of the device control instructions for triggering the home scene with the same label to obtain a partial instruction execution order; The remaining device control instructions are compiled into the partial instruction execution sequence to obtain the instruction execution sequence.
9. A home scene control device, characterized in that: include: an acquisition unit, configured to acquire user data, environmental data, and home scene data of a target area, wherein the user data includes the user's preferred home scene, the priority of the user's behavior, and the user's location; the environmental data includes time, temperature, humidity, and brightness; and the home scene data includes device control instructions and trigger conditions for each home scene; a first determining unit, configured to determine, when the environmental data satisfies the triggering condition of the target home scene, the target home scene as a home scene to be triggered, wherein the target home scene is any one of the home scenes; A sending unit is used to determine the multiple home scenes to be triggered with conflicting device control instructions as a conflicting home scene group when there are multiple home scenes to be triggered and at least two of the home scenes to be triggered have conflicting device control instructions, determine the priorities of the multiple home scenes to be triggered in the conflicting home scene group according to the user data, determine the home scene to be triggered with the highest priority in the conflicting home scene group and the home scenes to be triggered outside the conflicting home scene group as triggered home scenes, and send the device control instructions of all the triggered home scenes to run the corresponding triggered home scenes.
10. A home appliance central control system, characterized in that: include: A central control device, home appliances, one or more processors, a memory, and one or more programs, wherein the central control device is communicatively connected to each of the home appliances respectively, the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of claims 1 to 8.
Citation Information
Cited By
Multi-stage wake-up method and system based on low-power-consumption wake-up protocol, medium and product
CN121054003A
Smart home equipment control method and device, equipment and medium
CN121091708A
A smart home device control method, apparatus, device and medium
CN121091708B
Household scene control method, ternary architecture system and electronic equipment
CN121918437A
