Program generation method for controlling household electrical appliance, storage medium and electronic device

By acquiring historical operating data and environmental information of home appliances, control programs can be automatically generated or optimized, solving the problem of user inconvenience caused by the complexity of home appliance programs and improving user convenience and satisfaction.

CN121879166APending Publication Date: 2026-04-17QINGDAO HAIER WASHING MASCH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
QINGDAO HAIER WASHING MASCH CO LTD
Filing Date
2024-10-17
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

The complexity of the control programs for home appliances leads to poor ease of operation for users.

Method used

By acquiring historical operating data of home appliances, and responding to user selections, control programs can be generated or optimized, including automatic setting of functions and parameters, combined with environmental information optimization and user preferences.

Benefits of technology

It improves user operation convenience, meets user preferences, optimizes program execution, avoids redundant operations, and enhances user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121879166A_ABST
    Figure CN121879166A_ABST
Patent Text Reader

Abstract

The invention discloses a program generation method for controlling a household appliance, a storage medium and an electronic device, and relates to the technical field of smart home / smart home, and the method comprises the steps: obtaining historical operation data of the household appliance; and in response to other programs except the preset program selected by the user, generating a program for controlling the household appliance based on the historical operation data or preset information of other programs. The preset program is set for the household appliance, and when the user selects other programs except the preset program, the program for controlling the household appliance is generated for the user according to the historical operation data or the preset information of other programs. The user is prevented from manually setting the complex program, the user operation convenience is improved, and the problem that the user operation convenience is affected by the complex household appliance program is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart home technology, and more specifically, to a method for generating a program to control home appliances, a storage medium, and an electronic device. Background Technology

[0002] With the development of home appliances, the programs for controlling them have become increasingly complex. Besides default settings, these programs include various selectable functions and adjustable parameters. After the appliance is started, users can set or modify the functions and parameters according to their needs to control the appliance to perform specific operations. Improving user convenience is an important direction for the improvement of home appliances.

[0003] Accordingly, there is a need in the art for a new program generation scheme for controlling household appliances to solve the above problems. Summary of the Invention

[0004] In order to overcome the above-mentioned shortcomings, this application is made to solve or at least partially solve the problem that the complexity of the procedures for controlling household appliances affects the ease of user operation.

[0005] In a first aspect, a method for generating a program to control a household appliance is provided, the method comprising: acquiring historical operating data of the household appliance; and generating a program to control the household appliance based on the historical operating data or preset information of the other program in response to a user selecting a program other than a preset program.

[0006] In one technical solution of the above-mentioned method for generating a program to control household appliances, the historical operating data includes historical operating programs, the functions and parameters of the historical operating programs, and the step of generating a program to control household appliances based on the historical operating data or the preset information of the other programs in response to the user selecting other programs other than the preset programs includes: generating a program to control household appliances according to the functions and parameters of the historical operating programs in response to the other programs belonging to the historical operating programs; or generating a program to control household appliances according to the preset information of the other programs in response to the other programs not belonging to the historical operating programs.

[0007] In one technical solution of the above-mentioned method for generating a program to control household appliances, the historical operating data further includes the activation frequency and activation time of the functions and parameters. The step of generating a program to control household appliances based on the functions and parameters of the historical operating program includes: generating a program to control household appliances based on the activation frequency or activation time of the functions and parameters.

[0008] In one technical solution of the above-mentioned method for generating a program to control household appliances, the historical operating data further includes environmental information of the historical operating program. The method further includes: acquiring the current environmental information and historical environmental information of the household appliance, wherein the historical environmental information is the environmental information of the historical operating program to which the other program belongs; and optimizing the functions and parameters of the program to control the household appliance in response to the similarity between the current environmental information and the historical environmental information being greater than a preset threshold.

[0009] In one technical solution of the above-mentioned method for generating a program to control household appliances, the program includes corresponding functions and parameters, and the method further includes: updating the program for controlling household appliances according to the modified functions and parameters in response to the user's modification operation of the functions and parameters.

[0010] In one technical solution of the above-mentioned method for generating a program to control home appliances, the method further includes: in response to the user not starting the program to control the home appliances within a preset time period, controlling the home appliances to turn off.

[0011] In one technical solution of the above-mentioned method for generating a program to control home appliances, the method further includes: in response to the user starting the program to control the home appliances, updating the start frequency and start time of the functions and parameters.

[0012] In one technical solution of the above-mentioned method for generating programs to control household appliances, the method further includes: updating the preset program based on the functions and parameters of the historical running program at the startup time closest to the current time.

[0013] In a second aspect, a computer-readable storage medium is provided, the computer-readable storage medium comprising a stored program, wherein the program, when executed, performs the program generation method for controlling household appliances as described in the first aspect or any corresponding technical solution.

[0014] In a third aspect, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute, through the computer program, the program generation method for controlling household appliances as described in the first aspect or any corresponding technical solution.

[0015] The above-described technical solutions of this application have at least one or more of the following beneficial effects:

[0016] In implementing the technical solution of this application, by setting preset programs for household appliances, when the user selects other programs besides the preset programs, a program to control the household appliances is generated for the user based on historical operating data or preset information from other programs. This avoids the user having to manually set complex programs, improves the convenience of user operation, and thus solves the problem that the complexity of household appliance programs affects the convenience of user operation.

[0017] In implementing the technical solution of this application, when the user selects other programs that are historical running programs, a program for controlling home appliances is generated based on the startup frequency or startup time of the corresponding functions and parameters of the historical running programs. This achieves the goal of generating programs for users based on their preferences and improving user satisfaction with the generated programs.

[0018] In implementing the technical solution of this application, by comparing the current environmental information with historical environmental information, when the similarity of the environmental information is greater than a preset threshold, the functions and parameters of the program are optimized, thereby achieving the purpose of avoiding redundant operations of the program and optimizing the user experience. Attached Figure Description

[0019] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0020] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 This is a schematic diagram of the hardware environment for an interaction method of a smart device according to an embodiment of this application;

[0022] Figure 2 This is a schematic flowchart of the main steps of a method for generating a program to control household appliances according to an embodiment of this application;

[0023] Figure 3 This is a schematic flowchart of a method for generating a program to control household appliances according to an embodiment of this application;

[0024] Figure 4 This is a schematic diagram showing the connection relationship between the processor and memory of an electronic device according to an embodiment of this application. Detailed Implementation

[0025] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0026] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; 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 explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices. The terms "installed," "connected," and "linked" should be interpreted broadly; for example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal connection of two elements; they can refer to a wireless connection or a wired connection.

[0027] Furthermore, "module" and "processor" can include hardware, software, or a combination of both. A module can include hardware circuitry, various suitable sensors, communication ports, and memory, and may also include software components such as program code, or a combination of software and hardware. A processor can be a central processing unit, microprocessor, image processor, digital signal processor, or any other suitable processor. A processor has data and / or signal processing capabilities. A processor can be implemented in software, in hardware, or a combination of both. Computer-readable storage media includes any suitable medium capable of storing program code, such as magnetic disks, hard disks, optical disks, flash memory, read-only memory, random access memory, etc.

[0028] Furthermore, if the term "and / or" appears in this application, it includes three parallel solutions. Taking "A and / or B" as an example, it includes solution A, solution B, or a solution that simultaneously satisfies A and B. Additionally, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of a person skilled in the art to implement them. When the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed in this application. The terms "at least one A or B" or "at least one of A and B" have a similar meaning to "A and / or B," and can include only A, only B, or A and B. The singular forms of the terms "a" and "this" can also include plural forms.

[0029] The relevant user personal information that may be involved in the various embodiments of this application is processed in strict accordance with the requirements of laws and regulations, following the principles of legality, legitimacy, and necessity, based on the reasonable purpose of the business scenario, and is personal information that users actively provide or that is generated due to the use of the product / service, as well as personal information obtained with user authorization.

[0030] This application attaches great importance to the security of users' personal information and has taken reasonable and feasible security protection measures that comply with industry standards to protect users' information and prevent unauthorized access, disclosure, use, modification, damage or loss of personal information.

[0031] According to one aspect of the embodiments of this application, an interaction method for smart home devices is provided. This interaction method for smart home devices is widely applicable to whole-house intelligent digital control application scenarios such as smart homes, smart home ecosystems, and intelligence house ecosystems. Optionally, in this embodiment, the above-mentioned interaction method for smart home devices can be applied to, for example... Figure 1 The hardware environment shown consists of terminal device 102 and server 104. For example... Figure 1 As shown, server 104 is connected to terminal device 102 via a network and can be used to provide services (such as application services) to the terminal or clients installed on the terminal. A database can be set up on the server or independently of the server to provide data storage services for server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data processing services for server 104.

[0032] The aforementioned network may include, but is not limited to, at least one of the following: wired network, wireless network. The aforementioned wired network may include, but is not limited to, at least one of the following: wide area network, metropolitan area network, local area network. The aforementioned wireless network may include, but is not limited to, at least one of the following: Wi-Fi (Wireless Fidelity), Bluetooth. The terminal device 102 may not be limited to PC, mobile phone, tablet computer, smart air conditioner, smart range hood, smart refrigerator, smart oven, smart stove, smart washing machine, smart water heater, smart washing equipment, smart dishwasher, smart projector, smart TV, smart clothes rack, smart curtains, smart audio-visual equipment, smart socket, smart speaker, smart speaker box, smart fresh air equipment, smart kitchen and bathroom equipment, smart bathroom equipment, smart robot vacuum cleaner, smart window cleaning robot, smart mopping robot, smart air purifier, smart steam oven, smart microwave oven, smart water heater, smart air purifier, smart water dispenser, smart door lock, etc.

[0033] With the advancement of technology and the improvement of people's living standards, the level of intelligence of home appliances is also constantly improving. How to enhance the ease of operation of home appliances has become an urgent problem to be solved. This embodiment provides a method for generating programs to control home appliances, see appendix. Figure 2 , Figure 2 This is a schematic flowchart illustrating the main steps of a program generation method for controlling household appliances according to an embodiment of this application. Figure 2 As shown, the method mainly includes the following steps S202 and S204:

[0034] Step S202: Obtain historical operating data of household appliances.

[0035] In this embodiment, historical operating data of household appliances is obtained to provide a reference for generating a program to control the household appliances. This historical operating data includes, but is not limited to: historical operating programs, their startup times, operating environments, functions and parameters, runtime, startup frequency, etc. This embodiment does not impose specific limitations on this.

[0036] In one implementation, to improve program generation efficiency, historical running data before a certain time can be deleted, and only historical running data with a preset time interval from the current time can be retained.

[0037] Step S204: In response to the user selecting a program other than the preset program, a program for controlling home appliances is generated based on historical operating data or preset information from other programs.

[0038] In this embodiment, the preset program is a program pre-set for the user to control home appliances. It can be a program the user has most recently used or a program the user uses most frequently. When the user turns on the home appliance, the preset program is displayed first. If the user selects a program other than the preset program, a program to control the home appliance can be generated based on the historical operating data listed in step S202. It should be noted that if the user selects a program they are using for the first time, meaning there is no reference data in the historical operating data, a program to control the home appliance can be generated based on the preset information corresponding to that program. The preset information refers to information that can be used to generate control programs, such as the program's default functions and parameters, which are pre-stored when the home appliance leaves the factory.

[0039] Based on steps S202 and S204 above, preset programs are set for home appliances. When the user selects a program other than the preset program, a program to control the home appliances is generated for the user based on historical operating data or preset information from other programs. This avoids the user having to manually set complex programs, improves the convenience of user operation, and thus solves the problem that the complexity of home appliance programs affects the convenience of user operation.

[0040] In one embodiment of this application, the historical running data includes the historical running program, the functions and parameters of the historical running program, and the above step S204 may further include the following steps S2042 or S2044:

[0041] Step S2042: In response to other programs belonging to the historical running programs, generate a program to control the home appliances based on the functions and parameters of the historical running programs.

[0042] In this embodiment, the program for controlling the household appliance can be generated based on its functions and parameters. As an example, assuming the appliance is a washing machine, the program controlling the washing machine is its washing cycle. Functions refer to washing modes, including standard wash, quick wash, and light wash; parameters include water temperature, water level, washing intensity, number of rinses, etc. When the user selects other programs that are historical running programs, the control program can be determined by combining the corresponding functions and parameters from the historical running data. Specifically, the program for controlling the household appliance can be generated based on the functions and parameters of the most frequently used or most recently used program from the historical running data.

[0043] In one implementation, the functions and parameters of the program that are closest to the current environment and time in historical operating data can be selected to generate a program for controlling home appliances.

[0044] In step S2044, in response to other programs not belonging to the historical running programs, a program for controlling home appliances is generated based on the preset information of other programs.

[0045] In this embodiment, when the user selects another program that is not part of the historical running programs, a program for controlling home appliances can be generated based on the preset information of the other programs. This preset information typically consists of information from highly versatile programs for controlling home appliances.

[0046] In one embodiment of this application, the historical operation data further includes the activation frequency and activation time of the function and parameters, and the above step S2042 may further include the following step S20422:

[0047] Step S20422: Generate a program to control home appliances based on the start frequency or start time of the functions and parameters.

[0048] In this embodiment, the activation frequency of a function and parameter refers to the number of times the function and parameter have been activated by the user, and the activation time refers to the time when the function and parameter were last activated by the user. When generating a program to control home appliances for the user, the program for generating functions and parameters with the most recent activation time can be selected, or the program for generating functions and parameters with the highest activation frequency can be used.

[0049] In one implementation, current environmental information can also be obtained, functions and parameters under historical environmental information that are most similar to the current environmental information can be selected, and a program for controlling home appliances can be generated based on the functions and parameters.

[0050] In one embodiment of this application, the historical running data further includes environmental information of the historical running program. After step S2042, the following steps S2046 and S2048 may be further included:

[0051] Step S2046: Obtain the current environmental information and historical environmental information of the household appliances. The historical environmental information is the environmental information of the historical running programs to which other programs belong.

[0052] In this embodiment, environmental information includes, but is not limited to, season, weather, temperature, humidity, time, etc. Environmental information can be collected by installing sensors, and the environmental information collected when the program starts can be stored together with the program in historical running data.

[0053] In step S2048, in response to the similarity between the current environmental information and the historical environmental information being greater than a preset threshold, the functions and parameters of the program controlling the household appliances are optimized.

[0054] In this embodiment, different environmental information may correspond to different functions and parameters. Taking an air conditioner as an example, when the temperature in the environmental information is high, the air conditioner's cooling mode is usually used; when the humidity in the environmental information is high, the air conditioner's dehumidification mode is usually used. It should be noted that the correspondence between environmental information and functions and parameters can be determined by methods such as training machine learning models using historical operating data. Furthermore, the similarity between current environmental information and historical environmental information can be calculated using conventional text similarity methods, and the preset threshold can be set according to specific needs.

[0055] As an example, suppose the household appliance is a washing machine. When the user selects a program other than the preset program, a program to control the appliance is generated based on the most recently started function and parameters. In this case, the most recently started function and parameters are "standard wash + dry," corresponding to historical environmental information of "rainy" and the current environmental information of "sunny." Text similarity calculation shows a similarity greater than a preset threshold. In this case, a machine learning model trained on the appliance's historical operating data can be used to optimize the most recently started function and parameters, removing the drying function, as drying is typically only needed in rainy or humid conditions. In another example, the most recently started function and parameters are "standard wash water temperature heated to 40 degrees Celsius," corresponding to historical environmental information of "cloudy, temperature 12 degrees Celsius," while the detected current environmental information is "sunny, temperature 30 degrees Celsius," with a similarity greater than a preset threshold. In this case, the most recently started function and parameters can be optimized, removing the water temperature heating to 40 degrees Celsius function. By optimizing the functions and parameters of the generated program, both tedious repetitive settings by the user are avoided, and energy savings are achieved.

[0056] In one embodiment of this application, step S206 may be further included after step S204:

[0057] Step S206: In response to the user's modification operation of functions and parameters, update the program for controlling home appliances according to the modified functions and parameters.

[0058] In this embodiment, the system can also respond to user modifications to functions and parameters by obtaining user-inputted modification information for functions and parameters, and update the program controlling the home appliances based on the modified functions and parameters.

[0059] In one embodiment of this application, after step S204 described above, the following step S208 may be further included:

[0060] Step S208: In response to the user not starting the program to control the home appliance within a preset time period, the home appliance is turned off.

[0061] In this embodiment, if the user does not start (enable) the program within a preset time period after the program for controlling home appliances is generated, the home appliances can be turned off, thereby achieving energy saving. The preset time period can be set according to specific circumstances, such as 20 minutes, 30 minutes, or 40 minutes.

[0062] In one embodiment of this application, after step S20422 described above, the following step S20424 may be further included:

[0063] Step S20424: In response to the user starting the program to control the home appliance, update the startup frequency and startup time of the functions and parameters.

[0064] In this embodiment, if a user launches the generated program, the launch frequency and launch time of the previously stored program's functions and parameters need to be updated. For example, the launch frequency is incremented by one each time a function or parameter is used, and the launch time is modified to the current launch time. If a program or its functions and parameters are being used for the first time, they can be stored and the number of uses can be counted.

[0065] In one embodiment of this application, after step S20422 described above, the following step S20426 may be further included:

[0066] Step S20426: Update the preset program based on the functions and parameters of the historical running program at the startup time closest to the current time.

[0067] In this embodiment, the preset programs of household appliances can be updated, for example, by updating the preset programs with the functions and parameters of historical running programs that are closest to the current time.

[0068] In one implementation, the preset program can be updated using the most frequently used functions and parameters.

[0069] In one implementation, the preset program can be updated using functions and parameters from historical environmental information that are most similar to the current environmental information.

[0070] In one application scenario example of this application, Figure 3 This is a schematic diagram of the overall flow of a program generation method for controlling household appliances according to an embodiment of this application. Figure 3 As shown, the method mainly includes the following steps S301 to S313:

[0071] Step S301: The household appliance is turned on. Optionally, after the household appliance is turned on, a preset program is displayed, and the preset program can be updated according to usage needs. For details about the preset program, please refer to other embodiments of this application, which will not be repeated here.

[0072] Step S302: Determine whether the user selects a program other than the preset program. If yes, proceed to step S303; otherwise, proceed to step S311.

[0073] Step S303: Determine whether other programs belong to the historical running programs. Optionally, historical running programs include programs that ran within a time period t1 before the current time. If other programs do not belong to the historical running programs, proceed to step S304; otherwise, proceed to step S305.

[0074] Step S304: Display the preset information for this program. Optionally, when the user selects another program that is not a previously run program, a program for controlling home appliances can be generated based on the preset information of other programs. For details, please refer to step S2044 of the above embodiment, which will not be repeated here.

[0075] Step S305: Read the functions, parameters, and historical environment information from the historical program. Optionally, when other programs belong to the historical running programs, the purpose of determining (generating) the control program can be achieved by combining the corresponding functions and parameters in the historical running data and combining them with the historical environment information. For details, please refer to step S2042 of the above embodiment, which will not be repeated here.

[0076] Step S306: Obtain current environmental information. Optionally, environmental information includes, but is not limited to, season, weather, temperature, humidity, and time; this embodiment does not impose specific limitations on this.

[0077] Step S307: Determine whether the current environmental information conflicts with historical environmental information. Optionally, machine learning models and algorithms can be used to determine whether the similarity between the current environmental information and historical environmental information is greater than a preset threshold. For details, please refer to step S2048 of the above embodiment, which will not be repeated here. If the current environmental information conflicts with historical environmental information, such as if the similarity is greater than the preset threshold, proceed to step S308; otherwise, proceed to step S309.

[0078] Step S308: Delete conflicting functions and parameters. For details, please refer to step S2048 of the above embodiment, which will not be repeated here.

[0079] Step S309: Determine whether the user has modified the generated program. If yes, proceed to step S310; otherwise, proceed to step S311.

[0080] Step S310: Update the program based on the user's modification information. Optionally, receive the user's modification information regarding the functions and parameters in the generated program, and then update the generated program based on the user's modification information.

[0081] Step S311: Determine whether the user starts the program within the preset time period. If not, proceed to step S312; if yes, proceed to step S313.

[0082] Step S312: Turn off the household appliances. Optionally, if the user does not start the appliances within a preset time after the program is generated, the appliances can be turned off to save energy.

[0083] Step S313: Store the program, its functions, and parameters, and update the startup frequency and startup time. Optionally, if the user starts the program after it is generated, update the startup frequency and startup time of the program, its functions, and parameters. If the program or its functions and parameters are used for the first time, they can also be stored.

[0084] Based on steps S301 to S313 above, preset programs are set for home appliances. When the user selects a program other than the preset program, a program to control the home appliance is generated for the user based on historical operating data or preset information from other programs. This avoids the user having to manually set complex programs, improves the convenience of user operation, and solves the problem that the complexity of home appliance programs affects the ease of user operation. When the user selects another program that is a historically running program, a program to control the home appliance is generated based on the start frequency or start time of the corresponding functions and parameters of the historically running program, achieving the goal of generating programs according to user preferences and improving user satisfaction with the generated programs. By comparing the current environmental information with historical environmental information, the functions and parameters of the program are optimized when the environmental information is inconsistent, achieving the goal of avoiding redundant operations in the program and optimizing the user experience. This method has strong versatility and practicality, and can avoid cumbersome operations when controlling home appliances, improving the user experience.

[0085] It should be noted that although the steps in the above embodiments are described in a specific order, those skilled in the art will understand that in order to achieve the effect of this application, different steps do not necessarily have to be executed in such an order. They can be executed simultaneously (in parallel) or in other orders. These adjusted solutions are equivalent to the technical solutions described in this application and therefore will also fall within the protection scope of this application.

[0086] Another aspect of this application provides a computer-readable storage medium.

[0087] In one embodiment of a computer-readable storage medium according to this application, the computer-readable storage medium can be configured to store a program for executing the program generation method for controlling household appliances in the above-described method embodiments. This program can be loaded and run by a processor to implement the program generation method for controlling household appliances in the first aspect or any corresponding technical solution described above. For ease of explanation, only the parts related to the embodiments of this application are shown; for specific technical details not disclosed, please refer to the method section of the embodiments of this application. The computer-readable storage medium can be a storage device comprising various electronic devices. Optionally, in the embodiments of this application, the computer-readable storage medium is a non-transitory computer-readable storage medium.

[0088] Another aspect of this application provides an electronic device.

[0089] In one embodiment of an electronic device according to this application, the electronic device may include at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program, which, when executed by the at least one processor, implements the program generation method for controlling household appliances as described in the first aspect or any corresponding technical solution above. (See appendix) Figure 4 , Figure 4 The example shows a memory 11 and a processor 12 connected via a bus communication connection.

[0090] In some embodiments of this application, the electronic device may further include at least one sensor for sensing information. The sensor is communicatively connected to any type of processor mentioned in this application. The electronic device described in this application may be, but is not limited to, a PC, mobile phone, tablet computer, smart air conditioner, smart range hood, smart refrigerator, smart oven, smart stove, smart washing machine, smart water heater, smart washing equipment, smart dishwasher, smart projector, smart TV, smart clothes rack, smart curtains, smart audio-visual equipment, smart socket, smart speaker, smart speaker box, smart fresh air system, smart kitchen and bathroom equipment, smart bathroom equipment, smart robot vacuum cleaner, smart window cleaning robot, smart mopping robot, smart air purifier, smart steam oven, smart microwave oven, smart water heater, smart air purifier, smart water dispenser, smart door lock, etc.

[0091] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A program generation method for controlling a home appliance, characterized by, The method includes: Obtain historical operating data of home appliances; In response to the user selecting a program other than the preset program, a program for controlling home appliances is generated based on the historical operating data or the preset information of the other program.

2. The method of claim 1, wherein, The historical operating data includes historical operating programs, the functions and parameters of the historical operating programs, and the process of generating a program to control home appliances based on the historical operating data or the preset information of the other programs in response to the user selecting a program other than the preset program includes: In response to the other programs belonging to the historical running programs, a program for controlling home appliances is generated based on the functions and parameters of the historical running programs; or In response to the fact that the other programs do not belong to the historical running programs, a program for controlling home appliances is generated based on the preset information of the other programs.

3. The method of claim 2, wherein, The historical operating data also includes the activation frequency and activation time of the functions and parameters. The process of generating a program to control home appliances based on the functions and parameters of the historical operating program includes: A program is generated to control home appliances based on the frequency or time of activation of the functions and parameters.

4. The method of claim 2, wherein, The historical running data also includes environmental information of the historical running programs, and the method further includes: Obtain the current environmental information and historical environmental information of the household appliances, wherein the historical environmental information is the environmental information of the historical running programs to which the other programs belong; In response to the fact that the similarity between the current environmental information and the historical environmental information is greater than a preset threshold, the functions and parameters of the program controlling the home appliances are optimized.

5. The method of claim 1, wherein, The program includes corresponding functions and parameters, and the method further includes: In response to the user's modification of the functions and parameters, the program for controlling the home appliances is updated according to the modified functions and parameters.

6. The method of claim 1, wherein, The method further includes: In response to the user not starting the program for controlling the home appliance within a preset time period, the home appliance is turned off.

7. The method of claim 3, wherein, The method further includes: In response to the user initiating the program for controlling the home appliance, update the activation frequency and activation time of the function and parameters.

8. The method of claim 3, wherein, The method further includes: The preset program is updated based on the functions and parameters of the historical running program at the startup time closest to the current time.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method of any one of claims 1 to 8. 10.An electronic device comprising a memory and a processor, the electronic device characterized by, The memory stores a computer program, and the processor is configured to execute the method of any one of claims 1 to 8 through the computer program.