Smart home equipment control method and system and smart home equipment
Through the connection between mini programs and smart home devices and dynamic adjustment control interface, the unified control problem of different models of equipment is solved, fast device operation and adaptation is achieved, and user experience is improved.
Patent Information
- Application Number
- CN202410946227.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-11-05
AI Technical Summary
It is difficult for the prior art to achieve unified and quick control of different models of smart home devices, and the remote control is limited to single models of devices and cannot achieve remote control.
Establish a connection with smart home devices through mini programs, pre-compile query and control instructions, dynamically adjust the control interface to adapt to the functions of different models of devices, and use Bluetooth or MQTT protocol to achieve communication between devices.
It realizes unified control of different models of smart home devices, provides multiple control options, and improves user operation convenience and equipment adaptability.
Smart Images

Figure CN118900215A_ABST
Abstract
Description
Technical Field
[0001] One or more embodiments of the present invention relate to network communication technology, and more particularly, to a control method and system for smart home devices and smart home devices. Background Art
[0002] With the development of the Internet of Things, smart home devices have begun to be used. Smart home devices can communicate with servers to provide users with personalized and richer services. For example, smart refrigerators can communicate with servers on the network side to download online recipes in real time. Another example is that smart air conditioners can communicate with servers on the network side to provide users with personalized services, such as controlling smart air conditioners to turn on in advance before users get home, so that users can enjoy the cool indoor temperature without waiting when they get home.
[0003] Currently, smart home devices are usually controlled by remote controllers, but remote controllers have limitations, for example, a remote controller can only control one or the same type of smart home device, and the remote controller cannot allow users to remotely control the device.
[0004] Therefore, how to allow users to control smart home devices more conveniently and quickly has become an issue that needs to be urgently addressed. Summary of the invention
[0005] One or more embodiments of the present invention describe a control method, system, and smart home device for smart home devices, which can more conveniently and quickly control smart home devices of different models based on mini-programs.
[0006] According to a first aspect, a control system for smart home devices is provided, the system comprising: a mini-program and a plurality of smart home devices of at least two models, wherein:
[0007] The applet can be loaded into a user's terminal device. After being pre-compiled, the applet can issue query instructions for all functions of at least two models of smart home devices. After establishing a connection with a current model of smart home device according to a user instruction, the applet sends a query instruction to the current smart home device, wherein the query instruction includes: an instruction set of query instructions for each function of the at least two models of smart home devices pre-compiled in the applet; according to the function status values returned one by one by the query instructions for each function of the at least two models of smart home devices by the current smart home device, the applet sets a control interface corresponding to the current smart home device, so that the control interface does not include control buttons for functions not supported by the current smart home device, but includes control buttons for each function supported by the current smart home device.
[0008] Each model of smart home device can establish a connection with the mini-program loaded in the user terminal; receive the query instruction sent by the mini-program; for the query instruction of each function of at least two models of smart home devices described in the query instruction, the smart home device returns the function status value one by one according to all the functions it supports; wherein the function status value includes: a first status value indicating that the function is supported and a second status value indicating that the function is not supported.
[0009] After being pre-compiled, the applet can issue control instructions for all functions of at least two models of smart furniture devices;
[0010] The applet is further configured to provide the user with multiple control options corresponding to multiple smart home devices of at least two models; receive a current control option clicked by the user, display a control interface of the smart home device corresponding to the current control option to the user, generate a control instruction of the first function according to the user's click operation on the control interface of the smart home device, and send the control instruction to the connected smart home device;
[0011] The smart home device is further configured to complete the processing of the first function supported by itself after receiving the control instruction of the first function.
[0012] The smart home devices include: smart air conditioners;
[0013] and / or,
[0014] The applet establishes a connection with the smart home device via Bluetooth or MQTT protocol.
[0015] According to a second aspect, a control method for a smart home device is provided, wherein a mini-program is pre-compiled so that the mini-program can issue query instructions for all functions of at least two models of smart home devices; the method further comprises:
[0016] The smart home device establishes a connection with the applet loaded in the user terminal;
[0017] The smart home device receives the query instruction sent by the applet; wherein the query instruction includes: an instruction set of query instructions for each function of the at least two models of smart home devices pre-compiled in the applet;
[0018] For the query instruction of each function of the at least two models of smart furniture devices, the smart home device returns the function status value one by one according to all the functions it supports; wherein the function status value includes: a first status value representing that the function is supported and a second status value representing that the function is not supported.
[0019] The method further includes: compiling the applet in advance so that the applet can issue control instructions for all functions of at least two models of smart furniture devices;
[0020] After the smart home device returns function status values one by one according to all functions supported by the smart home device, the method further includes:
[0021] The smart home device receives a control instruction for a first function supported by the smart home device sent by the applet;
[0022] The smart home device performs corresponding processing of the first function according to the control instruction of the first function.
[0023] According to a third aspect, a method for controlling a smart home device is provided, wherein a mini-program is pre-compiled so that the mini-program supports query instructions for all functions of at least two models of smart home devices; the method further comprises:
[0024] The mini program establishes a connection with a current smart home device of a model according to the user's instructions;
[0025] The applet sends a query instruction to the current smart home device, wherein the query instruction includes: an instruction set of query instructions for each function of the at least two models of smart home devices pre-compiled in the applet;
[0026] According to the function status values returned one by one by the query instructions of the current smart home device for each function of the at least two models of smart home devices, the applet sets a control interface corresponding to the current smart home device, so that the control interface does not include control buttons for functions not supported by the current smart home device, but includes control buttons for functions supported by the current smart home device.
[0027] The method further comprises:
[0028] Compiling the applet in advance so that the applet can issue control instructions for all functions of at least two models of smart furniture devices;
[0029] The mini program provides the user with a plurality of control options corresponding to a plurality of smart home devices of at least two models;
[0030] The mini program receives the current control option clicked by the user, and displays the control interface of the smart home device corresponding to the current control option to the user;
[0031] The mini program generates a control instruction for the first function according to a click operation of the user on the control interface of the smart home device, and sends the control instruction for the first function to the connected smart home device.
[0032] According to a fourth aspect, a smart home device is provided, the smart home device comprising:
[0033] A mini-program connection module configured to establish a connection with a mini-program loaded in a user terminal;
[0034] An instruction receiving module is configured to receive a query instruction sent by the applet; wherein the query instruction includes: an instruction set of query instructions for each function of the at least two models of smart furniture devices pre-compiled in the applet;
[0035] The function status setting module is configured to query instructions for each function of the at least two models of smart furniture devices, and return function status values one by one according to all functions supported by the smart home devices; wherein the function status values include: a first status value representing support for the function and a second status value representing non-support for the function.
[0036] The mini-program connection module is configured to establish a connection with the mini-program loaded in the user terminal via Bluetooth or MQTT.
[0037] According to a fifth aspect, a computing device is provided, including a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the method described in any embodiment of the present invention is implemented.
[0038] The control method and system of smart home devices and the smart home devices provided by the embodiments of the present invention can establish connections with various models of smart home devices, such as different models of smart air conditioners and / or different models of smart refrigerators. The applet can learn which functions the smart home device supports, such as whether it supports the "air freshness" function, the "energy saving" function, etc., by communicating with a smart home device, so as to set up a control interface corresponding to the model of smart home device in itself. In this way, after the applet establishes connections with different models of smart home devices, various control interfaces corresponding to different models of smart home devices can be set up in the applet, that is, different models of smart home devices can be controlled through a small program. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1It is a schematic diagram of a system architecture applied in one embodiment of the present invention.
[0041] Figure 2 It is a schematic diagram of a control interface 1 of an intelligent air conditioner corresponding to model "Q7D" in one embodiment of the present invention.
[0042] Figure 3 It is a schematic diagram of the control interface 2 of the intelligent air conditioner corresponding to the model "Q7V wall mounted unit" in one embodiment of the present invention.
[0043] Figure 4 It is a flowchart of a control method of a smart home device based on a mini-program in one embodiment of the present invention.
[0044] Figure 5 It is a flowchart of a control method of a smart home device based on a mini-program in another embodiment of the present invention.
[0045] Figure 6 It is a schematic diagram of a control option list of various smart home devices generated in a mini program in one embodiment of the present invention.
[0046] Figure 7 It is a schematic diagram of the structure of a smart home device in one embodiment of the present invention. DETAILED DESCRIPTION
[0047] Currently, you can use software installed on your phone to control smart home devices. However, the development of such software is relatively complex, takes up a lot of resources, and generally one software is only applicable to one type of smart home device. For example, different models of smart refrigerators often require different mobile phone software to control, and it is difficult to achieve easy and fast control.
[0048] The present invention takes into account that, at present, with the continuous development of software development technology, mini programs have gradually entered the public eye due to their features such as speed and portability. Mini programs are applications that can be used without downloading and installing. As third-party software, mini programs generally need to be installed in a host program to run. The host program provides a business interface for the third-party mini program to implement various business functions. For example, there are currently Alipay mini programs, 360 mini programs, and WeChat mini programs. Therefore, in the present invention, it is considered to control smart home devices based on mini programs.
[0049] The solution provided by the present invention is described below in conjunction with the accompanying drawings.
[0050] First of all, it should be noted that the terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "the" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates otherwise.
[0051] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0052] In order to facilitate understanding of the method provided by the present invention, the system architecture involved and applicable to the present invention is first described. Figure 1 As shown in , the system includes a mini program in a host program (such as WeChat or Alipay) in a user's terminal device such as a mobile phone or a computer, and n smart home devices that can establish a connection with the mini program. Where n is a natural number greater than 1.
[0053] It should be understood that Figure 1 The number of mini-programs and smart home devices in the figure is only for reference. Any number can be selected and deployed according to the needs of implementation.
[0054] See also Figure 1 In one embodiment of the present invention, in a control system of a smart home device based on a mini-program,
[0055] The applet can be loaded into the user's terminal device. After being pre-compiled, the applet can issue query instructions for all functions of at least two models of smart home devices (the query instruction for one function is used to confirm whether the smart home device supports the function); after establishing a connection with a current smart home device of one model according to the user's instruction, the applet sends a query instruction to the current smart home device, wherein the query instruction includes: an instruction set of query instructions for each function of the at least two models of smart home devices pre-compiled in the applet; according to the function status values returned one by one by the query instructions for each function of the at least two models of smart home devices by the current smart home device, the applet sets a control interface corresponding to the current smart home device, so that the control interface does not include control buttons for functions not supported by the current smart home device, but includes control buttons for each function supported by the current smart home device;
[0056] Each model of smart home device can establish a connection with the mini-program loaded in the user terminal; receive the query instruction sent by the mini-program; for the query instruction of each function of at least two models of smart home devices described in the query instruction, the smart home device returns the function status value one by one according to all the functions it supports; wherein the function status value includes: a first status value representing support for a function and a second status value representing non-support for a function.
[0057] It can be seen that in the embodiment of the present invention, the applet can establish connections with various models of smart home devices, such as different models of smart air conditioners and / or different models of smart refrigerators. By communicating with a smart home device, the applet can learn which functions the smart home device supports, such as whether it supports the "air freshness" function, the "energy saving" function, etc., so as to set up a control interface corresponding to the model of smart home device in itself. In this way, after the applet establishes connections with different models of smart home devices, various control interfaces corresponding to different models of smart home devices can be set up in the applet. In other words, different models of smart home devices can be controlled through a small program. For example, see Figure 2 and Figure 3 Through a small program, you can set up the control interface 1 corresponding to the smart air conditioner model "Q7D" and the control interface 2 corresponding to the smart air conditioner model "Q7V wall-mounted". Based on the fast and lightweight characteristics of the small program, you can easily control smart home devices of different models.
[0058] For example, for air conditioners of different models with different functions, the embodiment of the present invention provides a solution for differential dynamic display of status and control entrances. It can automatically detect the functions supported by the air conditioner and dynamically display the corresponding control options and status on the mini program interface, so that the same mini program can be adapted to multiple air conditioners with different functions.
[0059] In one embodiment of the system of the present invention, the applet is pre-compiled and can issue control instructions for all functions of at least two models of smart home devices (a control instruction for one function is used to instruct the smart home device to perform the corresponding function);
[0060] The mini program is further used to provide the user with multiple control options corresponding to multiple smart home devices of at least two models (wherein each control option is used to trigger the display of a control interface of the corresponding smart home device); receive a current control option clicked by a user, display the control interface of the smart home device corresponding to the current control option to the user, generate a control instruction of a first function according to the user's click operation on the control interface of the smart home device, and send the control instruction of the first function to the connected smart home device;
[0061] The smart home device is further used to complete the processing of the first function supported by itself after receiving the control instruction of the first function.
[0062] In various embodiments of the present invention, smart home devices include any device that can communicate through the Internet of Things, such as smart air conditioners, smart refrigerators, smart TVs, smart curtains, smart wearable devices, etc.
[0063] In various embodiments of the present invention, the applet may establish a connection with a smart home device via Bluetooth or MQTT (Message Queuing Telemetry Transport) protocol.
[0064] Figure 4 1 is a flow chart of a method for controlling a smart home device based on a mini-program in one embodiment of the present invention. The method is executed by a smart home device. Figures 1 to 4 , the method comprising:
[0065] Step 401: pre-compile the applet so that the applet can issue query instructions for all functions of at least two models of smart furniture devices.
[0066] This step 401 is a pre-processing process, and the query instruction for a function is used to confirm whether the smart home device supports the function. For example, Figure 2 , Figure 3 Each small icon button displayed in the display, such as "dehumidification", "cooling", "heating", "timed shutdown", etc., corresponds to a function.
[0067] In various embodiments of the present invention, all functions supported by all smart home devices of various models can be collected, for example, a total of 100 functions. For each of all functions, a query instruction corresponding to the function is pre-compiled in the mini-program, which is similar to establishing a database in the mini-program, in which query instructions corresponding to all functions are stored.
[0068] In an embodiment of the present invention, the mini program may be a mini program in any host program, such as a WeChat mini program or an Alipay mini program.
[0069] Step 403: The smart home device establishes a connection with the mini-program loaded in the user terminal.
[0070] In an embodiment of the present invention, for example, after a user purchases a smart home device such as a smart air conditioner, when initially using the smart air conditioner, the user can click a related button of the mini-program to issue a connection request for the smart air conditioner, and the smart air conditioner will establish a connection with the mini-program loaded in the user terminal.
[0071] As mentioned earlier, mini programs can connect to smart home devices such as smart air conditioners via Bluetooth or MQTT protocol.
[0072] Step 405: The smart home device receives the query instruction sent by the applet; wherein the query instruction includes: an instruction set of query instructions for each function of the at least two models of smart home devices pre-compiled in the applet.
[0073] When the user uses the applet to connect to the smart home device for the first time, he does not know what functions the smart home device supports. Therefore, he needs to determine by sending a query instruction. The query instruction sent by the applet includes: an instruction set of query instructions for each function of the at least two models of smart home devices pre-compiled in the applet. For example, in step 401, the query instructions for the above 100 functions are pre-compiled in the applet, then the applet will combine the query instructions for the 100 functions into one instruction set and then send it to the smart home device.
[0074] Step 407: For the query instruction of each function of at least two models of smart home devices, the smart home devices return function status values one by one according to all the functions they support; wherein the function status values include: a first status value representing that the function is supported and a second status value representing that the function is not supported.
[0075] In this step 407, the query instruction received by the smart home device, such as the smart air conditioner, includes the query instructions of the above-mentioned 100 functions. The smart home device, such as the smart air conditioner with model Q7D, returns a function status value for each of the 100 functions. For example, for the first function "cooling", because the Q7D smart air conditioner supports this function, the first status value representing the support of the function is returned. For the second function "anti-direct blowing", because the Q7D smart air conditioner does not support this function, the second status value representing the non-support of the function is returned.
[0076] Figure 5FIG. 1 is a flow chart of a method for controlling a smart home device based on a mini-program in another embodiment of the present invention. The method is executed by a mini-program. Figures 1 to 5 , the method comprising:
[0077] Step 501: pre-compile the applet so that the applet can issue query instructions for all functions of at least two models of smart furniture devices.
[0078] Step 503: The applet establishes a connection with a current smart home device of a model according to the user instruction.
[0079] Step 505: The applet sends a query instruction to the current smart home device, wherein the query instruction includes: an instruction set of query instructions for each function of the at least two models of smart home devices pre-compiled in the applet.
[0080] Step 507: According to the function status values returned one by one by the query instructions of the current smart home device for each function of the at least two models of smart home devices, the applet sets a control interface corresponding to the current smart home device, so that the control interface does not include control buttons for functions not supported by the current smart home device, but includes control buttons for functions supported by the current smart home device.
[0081] For example, for the smart air conditioner model "Q7D", through the above Figure 4 , Figure 5 After the process shown in the figure is processed, the following can be generated in the applet: Figure 2 For the intelligent air conditioner model "Q7V wall mounted", through the above Figure 4 , Figure 5 After the process shown in the figure is processed, the following can be generated in the applet: Figure 3 The control interface shown.
[0082] In the applet and various models of smart home devices through the above Figure 4 , Figure 5 After the communication is performed according to the process shown in the figure, a control interface corresponding to various models of smart home devices can be generated, and a list of control options for various models of smart home devices can be generated, such as Figure 6 As shown, the list includes various control options. Each control option can trigger the control interface of the corresponding model of smart home device. For example, click Figure 6 If you select the "Air Conditioner Q7D" control option in the list shown in the figure, the mini program will be triggered to display the following Figure 2 The control interface shown.
[0083] After executing the above Figure 4 , Figure 5 After the process shown is processed, various control interfaces can be used to control various models of smart home devices. Specifically, in one embodiment of the present invention, the applet can be compiled in advance so that the applet can issue control instructions for all functions of at least two models of smart home devices;
[0084] The applet provides the user with multiple control options corresponding to multiple smart home devices of at least two models, such as Figure 6 As shown;
[0085] The applet receives the current control option clicked by the user and displays the control interface of the smart home device corresponding to the current control option to the user, such as displaying Figure 2 The control interface shown;
[0086] The applet generates a control instruction of the first function, such as a control instruction of the heating function, according to a click operation of the user on the control interface of the smart home device, and sends the control instruction of the first function to the connected smart home device;
[0087] The smart home device receives a control instruction for a first function supported by the smart home device from the applet;
[0088] The smart home device performs corresponding processing of the first function according to the control instruction of the first function, such as starting heating.
[0089] An embodiment of the present invention further provides a smart home device, see Figure 7 , the smart home device includes:
[0090] Mini-program connection module 701, configured to establish a connection with the mini-program loaded in the user terminal;
[0091] The instruction receiving module 702 is configured to receive a query instruction sent by the applet; wherein the query instruction includes: an instruction set of query instructions for each function of the at least two models of smart furniture devices pre-compiled in the applet;
[0092] The function status setting module 703 is configured to query instructions for each function of the at least two models of smart furniture devices, and return function status values one by one according to all functions supported by the smart home devices; wherein the function status values include: a first status value representing support for the function and a second status value representing non-support for the function.
[0093] Among them, the mini program connection module 701 is configured to establish a connection with the mini program loaded in the user terminal via Bluetooth or MQTT.
[0094] It can be seen that the embodiment of the present invention aims to provide a method for dynamically displaying the status and control entrances of smart home devices of different models with different functions, such as air conditioners, based on a mini-program and connected to the air conditioner via Bluetooth or MQTT. The method can automatically detect the functions supported by smart home devices, such as air conditioners, and dynamically display the corresponding control options and status on the mini-program interface, thereby realizing the same mini-program to adapt to multiple smart home devices with different functions, such as air conditioners.
[0095] It should be noted that the above-mentioned devices are usually implemented on the server side, and can be set on independent servers respectively, or the instruction sets of some or all of the devices can be set on the same server. The server can be a single server or a server cluster composed of multiple servers. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system. The above-mentioned devices can also be implemented on a computer terminal with strong computing power.
[0096] An embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed in a computer, the computer is caused to execute a method in any one of the embodiments in the specification.
[0097] An embodiment of the present invention provides a computing device, including a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the method in any embodiment of the specification is implemented.
[0098] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the device of the embodiment of the present invention. In other embodiments of the specification, the above-mentioned device may include more or fewer components than shown in the figure, or instructions to set certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented by hardware, software, or an instruction set of software and hardware.
[0099] The various embodiments of the present invention are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0100] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the present invention can be implemented by hardware, software, widgets, or any instruction set thereof. When implemented by software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium.
[0101] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solution of the present invention should be included in the scope of protection of the present invention.
Claims
1. A control system for smart home devices, characterized in that: The system includes: a mini program and multiple smart home devices of at least two models, wherein: The applet can be loaded into a user's terminal device. After being pre-compiled, the applet can issue query instructions for all functions of at least two models of smart home devices. After establishing a connection with a current model of smart home device according to a user instruction, the applet sends a query instruction to the current smart home device, wherein the query instruction includes: an instruction set of query instructions for each function of the at least two models of smart home devices pre-compiled in the applet; according to the function status values returned one by one by the query instructions for each function of the at least two models of smart home devices by the current smart home device, the applet sets a control interface corresponding to the current smart home device, so that the control interface does not include control buttons for functions not supported by the current smart home device, but includes control buttons for each function supported by the current smart home device. Each model of smart home device can establish a connection with the mini-program loaded in the user terminal; receive the query instruction sent by the mini-program; for the query instruction of each function of at least two models of smart home devices described in the query instruction, the smart home device returns the function status value one by one according to all the functions it supports; wherein the function status value includes: a first status value indicating that the function is supported and a second status value indicating that the function is not supported.
2. The system according to claim 1, characterized in that After being pre-compiled, the applet can issue control instructions for all functions of at least two models of smart furniture devices; The applet is further configured to provide the user with multiple control options corresponding to multiple smart home devices of at least two models; receive a current control option clicked by the user, display a control interface of the smart home device corresponding to the current control option to the user, generate a control instruction of the first function according to the user's click operation on the control interface of the smart home device, and send the control instruction to the connected smart home device; The smart home device is further configured to complete the processing of the first function supported by itself after receiving the control instruction of the first function.
3. The system according to claim 1, characterized in that The smart home devices include: smart air conditioners; and / or, The applet establishes a connection with the smart home device via Bluetooth or MQTT protocol.
4. A method for controlling a smart home device, characterized in that: The applet is pre-compiled so that the applet can issue query instructions for all functions of at least two models of smart furniture devices; the method also includes: The smart home device establishes a connection with the applet loaded in the user terminal; The smart home device receives the query instruction sent by the applet; wherein the query instruction includes: an instruction set of query instructions for each function of the at least two models of smart home devices pre-compiled in the applet; For the query instruction of each function of the at least two models of smart furniture devices, the smart home device returns the function status value one by one according to all the functions it supports; wherein the function status value includes: a first status value representing that the function is supported and a second status value representing that the function is not supported.
5. The method according to claim 4, characterized in that The method further includes: compiling the applet in advance so that the applet can issue control instructions for all functions of at least two models of smart furniture devices; After the smart home device returns function status values one by one according to all functions supported by the smart home device, the method further includes: The smart home device receives a control instruction for a first function supported by the smart home device sent by the applet; The smart home device performs corresponding processing of the first function according to the control instruction of the first function.
6. A method for controlling a smart home device, characterized in that: Precompiling the applet so that the applet supports query instructions for all functions of at least two models of smart furniture devices; the method also includes: The mini program establishes a connection with a current smart home device of a model according to the user's instructions; The applet sends a query instruction to the current smart home device, wherein the query instruction includes: an instruction set of query instructions for each function of the at least two models of smart home devices pre-compiled in the applet; According to the function status values returned one by one by the query instructions of the current smart home device for each function of the at least two models of smart home devices, the applet sets a control interface corresponding to the current smart home device, so that the control interface does not include control buttons for functions not supported by the current smart home device, but includes control buttons for functions supported by the current smart home device.
7. The method according to claim 6, characterized in that The method further comprises: Compiling the applet in advance so that the applet can issue control instructions for all functions of at least two models of smart furniture devices; The mini program provides the user with a plurality of control options corresponding to a plurality of smart home devices of at least two models; The mini program receives the current control option clicked by the user, and displays the control interface of the smart home device corresponding to the current control option to the user; The mini program generates a control instruction for the first function according to a click operation of the user on the control interface of the smart home device, and sends the control instruction for the first function to the connected smart home device.
8. Smart home devices are characterized by: The smart home devices include: A mini-program connection module configured to establish a connection with a mini-program loaded in a user terminal; An instruction receiving module is configured to receive a query instruction sent by the applet; wherein the query instruction includes: an instruction set of query instructions for each function of the at least two models of smart furniture devices pre-compiled in the applet; The function status setting module is configured to query instructions for each function of the at least two models of smart furniture devices, and return function status values one by one according to all functions supported by the smart home devices; wherein the function status values include: a first status value representing support for the function and a second status value representing non-support for the function.
9. The smart home device according to claim 8, characterized in that: The mini-program connection module is configured to establish a connection with the mini-program loaded in the user terminal via Bluetooth or MQTT.
10. A computing device, comprising a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the method according to any one of claims 4 to 7 is implemented.
