Custom control method, device and equipment for air conditioner and medium
Through the intelligent model in the server, custom voice needs are analyzed and control scripts are generated, which solves the problem that the existing air conditioning control system cannot meet users' personalized needs, realizes flexible and precise control of air conditioners, and improves user experience.
Patent Information
- Application Number
- CN202411168482.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-11-29
AI Technical Summary
The existing air conditioning control system cannot flexibly adapt to users' personalized needs and is difficult to realize complex air conditioning control logic, resulting in limited intelligence.
The user's custom voice needs are analyzed through the preset intelligent model in the server, and the control script is generated and sent to the air conditioner, which executes the script to realize the execution of complex control logic.
It improves the accuracy and effect of air conditioning control, so that air conditioning can be flexibly controlled according to users' custom voice needs, improving user experience and satisfaction.
Smart Images

Figure CN119042762A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of smart home control, and in particular to a method, device, equipment and medium for customizing air conditioning control. Background Art
[0002] With the rapid development of technology, air conditioners have quietly integrated into people's daily lives and become an indispensable and comfortable companion. The control of air conditioners mainly relies on remote controls and basic voice control, such as one-touch switching, temperature and wind speed adjustment. Although these methods are convenient, they are slightly monotonous. Some advanced air conditioning systems have taken an important step and introduced the function of remote control through mobile phone APP. This innovation not only breaks the limitations of physical space, allowing users to control the air conditioner through wireless networks anytime and anywhere, but also greatly improves the convenience of use. However, although the remote control function has broadened the operating boundaries, its service content is still mainly focused on the basic operation level, resulting in its limited intelligence, making it difficult to meet the growing personalized needs of users and unable to flexibly adapt to the unique preferences of each user. Summary of the invention
[0003] The embodiments of the present invention provide a method, device, equipment and medium for customizing air conditioner control, aiming to solve the problem that the air conditioner cannot be flexibly and personalized controlled in the prior art.
[0004] In a first aspect, an embodiment of the present invention provides a method for customized air-conditioning control, which is applied to an air conditioner, and the method comprises: receiving and storing a control script sent by a server, wherein the control script is a script generated by the server by parsing a customized voice demand input by a user through a preset intelligent model; calling the control script and executing control instructions in the control script to control the air conditioner.
[0005] In the second aspect, an embodiment of the present invention also provides a method for customized air-conditioning control, which is applied to a server, and the method includes: receiving a customized voice demand input by a user sent by a terminal; parsing the customized voice demand through a preset intelligent model to generate a corresponding control script; and sending the control script to the air conditioner.
[0006] In a third aspect, an embodiment of the present invention further provides an air-conditioning customized control device, which includes a unit for executing any method as described in the first aspect, or includes a unit for executing any method as described in the second aspect.
[0007] In a fourth aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above method when executing the computer program.
[0008] In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a computer program, wherein the computer program includes program instructions, and wherein the program instructions can implement the above method when executed by a processor.
[0009] The embodiments of the present invention provide a method, device, equipment and medium for customizing air conditioner control. When the method is applied to an air conditioner, a control script sent by a server is received and stored, wherein the control script is a script generated by the server by parsing the custom voice requirements input by the user through a preset intelligent model; the control script is called and the control instructions in the control script are executed to control the air conditioner. When the method is applied to a server, a custom voice requirement input by the user sent by a terminal is received; the custom voice requirement is parsed through a preset intelligent model to generate a corresponding control script; and the control script is sent to the air conditioner. The embodiment of the present invention parses the custom voice requirement through a preset intelligent model in the server to process complex user requirements, automatically generates an efficient control script, and sends the control script to the air conditioner. The control script is executed by the air conditioner so that the air conditioner can support the execution of complex control logic, improve the control accuracy and effect, and thus the air conditioner can be flexibly controlled according to the user's custom voice requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0011] Figure 1 A schematic diagram of a flow chart of an air conditioner customized control method provided by an embodiment of the present invention applied to an air conditioner;
[0012] Figure 2 A schematic diagram of a sub-process of applying the air conditioner custom control method provided by an embodiment of the present invention to an air conditioner;
[0013] Figure 3 A schematic diagram of a sub-process of applying the air conditioner custom control method provided by an embodiment of the present invention to an air conditioner;
[0014] Figure 4 A schematic diagram of a sub-process of applying the air conditioner custom control method provided by an embodiment of the present invention to an air conditioner;
[0015] Figure 5 A schematic diagram of a flow chart of the air conditioner custom control method provided by an embodiment of the present invention applied to a server;
[0016] Figure 6 A schematic diagram of a sub-process of applying the air-conditioning customized control method provided by an embodiment of the present invention to a server;
[0017] Figure 7 A schematic block diagram of an air conditioner customized control method provided by an embodiment of the present invention applied to an air conditioner;
[0018] Figure 8 A schematic block diagram of an air conditioner custom control device provided by an embodiment of the present invention applied to a server;
[0019] Fig. 9 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0020] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0021] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0022] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0023] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0024] See also Figure 1 , Figure 1A flow chart of a method for customizing air conditioning control provided by an embodiment of the present invention. The method for customizing air conditioning control in this embodiment can be applied to the control of air conditioning. The method of the present invention can be applied to air conditioners and servers, wherein the air conditioning voice board in the air conditioner has a preset script execution engine, which can execute the control script generated by the server according to the control voice input by the user. By adopting the method of the present invention, the user experience and satisfaction can be improved through customized, intelligent and flexible control methods.
[0025] Figure 1 1 is a flow chart of the air conditioner customized control method provided by the embodiment of the present invention when applied to an air conditioner. As shown in the figure, the method includes the following steps S110-S120.
[0026] S110. Receive and store a control script sent by the server, wherein the control script is a script generated by the server by parsing the custom voice requirements input by the user through a preset intelligent model.
[0027] In this embodiment, the air conditioner receives a control script sent by a server, wherein the control script is a script generated by the server after parsing the user-defined voice requirements input by the user through a preset intelligent model. Specifically, the preset intelligent model refers to an AI large model with ultra-large-scale parameters and ultra-powerful computing resources, for example, a GPT-4 (Generative Pre-trained Transformer4) model, which is a large-scale multimodal model that can process image and text input and generate text output. The custom voice requirement is the voice input by the user to control the operation of the air conditioner. The server parses the custom voice requirement through a preset intelligent model to generate a control script with control logic, and sends the control script to the air conditioner, wherein the air conditioner has an air conditioner voice board, which is an air conditioner control module or system with integrated voice control function, and the air conditioner voice board receives the control script through a network protocol (such as HTTP or MQTT) and stores it in a local memory. The air conditioner voice board receives and stores the control script generated by the server according to the user's needs, so as to ensure that the user's needs are realized in time according to the control script, and facilitate the user to remotely control the air conditioner.
[0028] S120, calling the control script and executing the control instructions in the control script to control the air conditioner.
[0029] In this embodiment, the control instruction is the instruction code carried in the control script, and the air conditioner voice board in the air conditioner calls the control script and controls the air conditioner according to the control instruction in the control script. For example, the control instruction in the control script received by the air conditioner voice board is to automatically adjust the air conditioner temperature to 25 degrees when the current air conditioner temperature is 16 degrees. The air conditioner voice board monitors whether the current temperature is 16 degrees, and if so, adjusts the air conditioner temperature to 25 degrees. By controlling the air conditioner according to the control instructions in the control script generated according to the user's voice needs, the flexibility and adaptability of air conditioner control can be enhanced.
[0030] In one embodiment, if Figure 2 As shown, the step S120 also includes steps S121-S122.
[0031] S121, checking whether the current air-conditioning operation state triggers the execution condition of the control script;
[0032] S122. If the execution condition is triggered, the control instructions in the control script are executed to control the air conditioner.
[0033] In this embodiment, the execution condition is a condition that triggers the execution of the control script. For example, the custom voice requirement corresponding to the control script is to adjust the air-conditioning temperature to 25 degrees when the air-conditioning temperature is 16 degrees, then the execution condition is that the air-conditioning temperature is 16 degrees. When the air conditioner voice board receives the control script, it checks whether the current air-conditioning operation status triggers the execution condition of the control script. If the execution condition is triggered, the control instructions in the control script are executed to control the air-conditioning. For example, if the current air-conditioning temperature is 16 degrees, the air-conditioning temperature is adjusted to 25 degrees. Among them, the control script is a Lua script, which is a lightweight scripting language designed to be embedded in applications to provide flexible expansion and customization functions. For example, if the user's custom voice requirement is for the user to set the temperature to 26 degrees through voice commands, the specific code for the air-conditioning voice board to call the function in the control script to adjust the temperature is:
[0034] --Simulate user voice control input
[0035] function uservoice control(inputtemp)
[0036] --Call the temperature adjustment function
[0037] adjusted temp=control temperature(input temp)
[0038] --Set the air conditioning temperature (call the air conditioning hardware interface here)
[0039] set air conditionertemperature(adjusted temp)
[0040] end
[0041] --Assume the user sets the temperature to 25 degrees through voice control
[0042] user_voice_control(25)
[0043] By checking whether the current operating status of the air conditioner triggers the execution conditions of the control script, if triggered, the control instructions in the control script are executed to control the air conditioner, so as to improve the control accuracy of the voice air conditioning board over the air conditioner, thereby improving the user experience and satisfaction.
[0044] In one embodiment, the step S120 further includes a step S123.
[0045] S123. Execute the control script according to a preset Lua script execution engine, wherein the control script is a Lua script.
[0046] In this embodiment, the Lua script execution engine is a software component or framework specifically used to execute Lua scripts, which can interpret Lua scripts and execute them in the running environment. The control script is a Lua script, which is a lightweight and extensible programming language to provide flexible expansion and customization functions for applications. The Lua script execution engine is pre-embedded in the air-conditioning voice board. After the air-conditioning voice board receives the control script, it executes the control script according to the preset Lua script execution engine. By executing the script through the Lua script execution engine, the air-conditioning voice board can support the execution of complex control logic, thereby improving the control accuracy and control effect of the air conditioner.
[0047] In one embodiment, if Figure 3 As shown, the step S120 also includes steps S124-S125.
[0048] S124, adjusting the control priority of the control script to the highest priority;
[0049] S125. Execute the control instructions in the control script first according to the highest priority to control the air conditioner.
[0050] In this embodiment, the air-conditioning voice board adjusts the control priority of the control script to the highest priority, that is, each time the user performs control, the control instructions in the control script will be executed first. Specifically, each time the user performs any external control, such as remote control, voice, APP, air-conditioning panel, etc., if the adjusted temperature meets the execution conditions in the control script, the control instructions in the control script will be called again to readjust the control logic this time, even if it is contrary to the external control logic. It should be noted that there is only one external control at the same time. By adjusting the control priority of the control script to the highest priority, the control instructions in the control script are executed first to ensure that the user's personalized needs are given the highest priority, thereby improving the user's usage experience and satisfaction.
[0051] In one embodiment, if Figure 4 As shown, step S120 also includes steps S1201-S1202.
[0052] S1201, if a new control script is detected, updating the stored control script according to the new control script;
[0053] S1202. Control the air conditioner according to the new control script.
[0054] In this embodiment, after the voice control board stores the control script in the local memory, the voice control board can execute the control script even in the case of network disconnection, restart, etc. Among them, if a new control script is detected, that is, a new control script generated according to the user's new customized voice requirements, the stored control script is updated according to the new control script, that is, the new control script is used to replace the original stored control script, and the new control script is stored, and the air conditioner is controlled according to the logic of the new control script. By detecting the new control script, the stored control script is updated to ensure that each control instruction for the air conditioner is the latest customized voice requirement input by the user.
[0055] Figure 5 1 is a flow chart of the air conditioner customized control method provided by the embodiment of the present invention when it is applied to a server. As shown in the figure, the method includes the following steps S210-S230.
[0056] S210: Receive a user-defined voice requirement input by a terminal.
[0057] In this embodiment, the custom voice demand is the voice input by the user through the terminal to control the operation of the air conditioner, wherein the user can send the custom voice demand through a terminal such as a mobile phone, a tablet, and a computer through a voice assistant or a dedicated application, and there is no limitation on this. For example, the voice demand may be to adjust the air-conditioning temperature to 25 degrees when the air-conditioning temperature is 16 degrees, or to adjust the air-conditioning temperature to 26 degrees at 10 o'clock in the evening. The server receives the custom voice demand input by the user sent from the terminal through an API interface (Application Programming Interface, which allows interaction between two software applications or systems). By timely receiving the custom voice demand sent by the user, it is convenient to remotely process the user's needs.
[0058] S220. Analyze the custom voice requirement through a preset intelligent model to generate a corresponding control script.
[0059] In this embodiment, the preset intelligent model refers to an AI large model with ultra-large-scale parameters and ultra-powerful computing resources, for example, the GPT-4 (Generative Pre-trained Transformer4) model. The GPT-4 model is a large-scale multimodal model that can process image and text input and generate text output. The server parses the custom voice demand through the preset intelligent model to generate a corresponding control script. Specifically, the server calls the AI large model (such as GPT-4) to parse the user's voice demand and generate a control script with corresponding control logic. For example, the user demand "I want to automatically adjust the temperature to 25 degrees when the air-conditioning temperature is 16 degrees" is parsed into the control rule of "If the air-conditioning temperature is 16 degrees, adjust the air-conditioning temperature to 25 degrees". By using the preset intelligent model to parse the custom voice demand to generate a corresponding control script, the system can handle complex user needs and automatically generate efficient control logic, thereby realizing intelligent user demand parsing and control script generation.
[0060] In one embodiment, if Figure 6 As shown, step S220 further includes steps S221-S222.
[0061] S221, parsing the custom voice requirement through the preset intelligent model to generate a control rule;
[0062] S222. Convert the control rules into control codes through the text-to-code model in the preset intelligent model to generate the control script.
[0063] In this embodiment, the preset intelligent model parses the custom voice demand and converts the user's voice command into text to obtain the corresponding control rules. For example, the user demand "When the air conditioning temperature is set to 16 degrees, it is automatically adjusted to 25 degrees" is parsed into a specific control rule. And the control rule is converted into a control code through a text-to-code model (a model that can automatically convert text or instructions described in natural language (such as Chinese, English, etc.) into program code) to generate the control script. Specifically, the code for generating a control script by parsing the custom voice demand through the preset intelligent model can be:
[0064] --User requirement: Adjust the air conditioner temperature to 25 degrees when the temperature is set to 16 degrees
[0065] function control temperature(temp)
[0066] if temp = 16 then
[0067] return 25
[0068] else
[0069] return temp
[0070] end
[0071] end
[0072] The preset intelligent model is used to parse the custom voice demand to generate control rules and then generate corresponding control scripts, so that the air conditioner can handle complex user needs and automatically generate efficient control logic.
[0073] S230: Send the control script to the air conditioner.
[0074] In this embodiment, the server pushes the control script to the air conditioner through a network protocol (such as HTTP (HyperText TransferProtocol) or MQTT (Message Queuing Telemetry Transport), and the air conditioner voice board receives the control script and executes the control script. By sending the control script to the air conditioner and executing the control script by the air conditioner voice board, the logic of the custom control script can be executed before the user's operation, ensuring that the user's needs are processed first.
[0075] To further understand the air conditioner customized control method of the present invention, the following is an explanation through a specific processing flow:
[0076] The user inputs the custom voice demand for adjusting the air conditioner through the terminal, and the terminal sends the custom voice demand to the server through the API interface. The server receives the custom voice demand sent by the terminal, and parses the custom voice demand through the preset intelligent model to generate a corresponding control script. And send the control script to the air conditioner. The air conditioning voice board in the air conditioner receives and stores the control script sent by the server, calls the control script and executes the control instructions in the control script to control the air conditioner. The custom voice demand is parsed by the preset intelligent model in the server to handle complex user needs, automatically generate an efficient control script, and send the control script to the air conditioner. The control script is executed by the air conditioning voice board, so that the air conditioner can support the execution of complex control logic, improve the control accuracy and effect, so that the air conditioner can be flexibly controlled according to the user's custom voice needs.
[0077] Corresponding to the above air conditioner customized control method, the present invention also provides an air conditioner customized control device. The air conditioner customized control device includes a unit for executing the above air conditioner customized control method, and the device can be configured in a desktop computer, tablet computer, laptop computer, etc. Figure 7 is a schematic block diagram 300 of an air conditioner custom control device provided by an embodiment of the present invention applied to an air conditioner. Figure 8 It is a schematic block diagram 400 of an air conditioner custom control device provided by an embodiment of the present invention applied to a server.
[0078] like Figure 7 As shown, the air-conditioning customized control device, when applied to an air conditioner, includes a receiving unit 310 and a calling unit 320 .
[0079] The receiving unit 310 is used to receive and store the control script sent by the server, wherein the control script is a script generated by the server by parsing the custom voice requirements input by the user through a preset intelligent model.
[0080] The calling unit 320 is used to call the control script and execute the control instructions in the control script to control the air conditioner.
[0081] In one embodiment, the calling unit 320 includes a checking unit and a control unit.
[0082] A checking unit, used to check whether the current air-conditioning operation state triggers the execution condition of the control script;
[0083] A control unit is used to execute the control instructions in the control script to control the air conditioner if the execution condition is triggered.
[0084] In one embodiment, the calling unit 320 includes an execution unit.
[0085] An execution unit is used to execute the control script according to a preset Lua script execution engine, wherein the control script is a Lua script.
[0086] In one embodiment, the calling unit 320 includes an adjustment unit and a priority unit.
[0087] An adjusting unit, used for adjusting the control priority of the control script to be the highest priority;
[0088] A priority unit is used to first execute the control instructions in the control script according to the highest priority to control the air conditioner.
[0089] In one embodiment, the calling unit 320 includes a monitoring unit and a new control unit.
[0090] A monitoring unit, configured to update the stored control script according to the new control script if a new control script is detected;
[0091] A new control unit is used to control the air conditioner according to the new control script.
[0092] like Figure 8 As shown, the air conditioner customized control device, when applied to a server, includes a receiving unit 410 , a generating unit 420 and a sending unit 430 .
[0093] The receiving unit 410 is configured to receive a user-defined voice requirement input by a terminal.
[0094] The generation unit 420 is used to parse the custom voice requirement through a preset intelligent model to generate a corresponding control script.
[0095] In one embodiment, the generating unit 420 includes a parsing unit and a converting unit.
[0096] A parsing unit, configured to parse the custom voice requirement through the preset intelligent model to generate a control rule;
[0097] A conversion unit is used to convert the control rules into control codes through a text-to-code model in the preset intelligent model to generate the control script.
[0098] The sending unit 430 is used to send the control script to the air conditioner.
[0099] It should be noted that technicians in the relevant field can clearly understand that the specific implementation process of the above-mentioned air-conditioning customized control device 300 or 400 and its corresponding units can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and conciseness of the description, it will not be repeated here.
[0100] The air conditioner custom control device can be implemented in the form of a computer program. The computer program can be used in Fig. 9 Runs on the computer device shown.
[0101] See also Fig. 9 , Fig. 9 5 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 500 may be a terminal or a server, wherein the terminal may be an electronic device with communication functions such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster composed of multiple servers.
[0102] See also Fig. 9 The computer device 500 includes a processor 502 , a memory and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile storage medium 503 and an internal memory 504 .
[0103] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions, and when the program instructions are executed, the processor 502 can execute an air conditioner customized control method.
[0104] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .
[0105] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a customized air conditioner control method.
[0106] The network interface 505 is used to communicate with other devices over the network. Fig. 9 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0107] The processor 502 is used to run a computer program 5032 stored in the memory to implement the steps of the above method.
[0108] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0109] It can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.
[0110] Therefore, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the processor executes the steps of the above method.
[0111] The storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.
[0112] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0113] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0114] The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0115] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.
[0116] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for customizing air conditioning control, characterized in that: The method is applied to an air conditioner, and the method comprises: Receive and store a control script sent by a server, wherein the control script is a script generated by the server by parsing a user-defined voice requirement input by a user through a preset intelligent model; The control script is called and the control instructions in the control script are executed to control the air conditioner.
2. The method according to claim 1, characterized in that The step of executing the control instructions in the control script to control the air conditioner includes: Check whether the current air conditioner operation state triggers the execution condition of the control script; If the execution condition is triggered, the control instructions in the control script are executed to control the air conditioner.
3. The method according to claim 2, characterized in that The step of executing the control instructions in the control script to control the air conditioner includes: The control script is executed according to a preset Lua script execution engine, wherein the control script is a Lua script.
4. The method according to claim 3, characterized in that The step of executing the control instructions in the control script to control the air conditioner also includes: Adjusting the control priority of the control script to the highest priority; The control instructions in the control script are executed first according to the highest priority to control the air conditioner.
5. The method according to claim 4, characterized in that After the step of executing the control instructions in the control script to control the air conditioner, the method further comprises: If a new control script is detected, the stored control script is updated according to the new control script; The air conditioner is controlled according to the new control script.
6. A method for customizing air conditioning control, characterized in that: The method is applied to a server, and the method comprises: Receiving the customized voice requirements input by the user sent by the terminal; The custom voice requirement is parsed through a preset intelligent model to generate a corresponding control script; The control script is sent to the air conditioner.
7. The method according to claim 6, characterized in that The step of parsing the custom voice requirement by a preset intelligent model to generate a corresponding control script includes: Analyze the custom voice requirements through the preset intelligent model to generate control rules; The control rules are converted into control codes through the text-to-code model in the preset intelligent model to generate the control script.
8. An air conditioner custom control device, characterized in that: It comprises a server and an air conditioner, wherein the air conditioner comprises a unit for executing the method as claimed in any one of claims 1 to 5, and the server end comprises a unit for executing the method as claimed in any one of claims 6 to 7.
9. A computer device, characterized in that: The computer device includes a memory and a processor connected to the memory; the memory is used to store a computer program; the processor is used to run the computer program stored in the memory to execute the steps of the method as described in any one of claims 1 to 5 or to execute the steps of the method as described in any one of claims 6 to 7.
10. A storage medium, characterized in that: The storage medium stores a computer program, which includes program instructions. When the program instructions are executed by a processor, they can implement the steps of the method as described in any one of claims 1 to 5, or implement the steps of the method as described in any one of claims 6 to 7.
