Smart home equipment control method and device, equipment and medium
Through the smart home device control method based on environmental map, the complex problem of smart home device control in the existing technology is solved, and the rapid selection and efficient control of the device are realized.
Patent Information
- Application Number
- CN202311109618.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-30
- Publication Date
- 2025-02-28
AI Technical Summary
The control methods of existing smart home devices are complex, making it difficult to quickly select and control the required equipment, resulting in low control efficiency.
By determining the location information of the control device based on the pre-constructed environment map, the device to be controlled is determined based on the information and the location information of the smart home device, and its control interface is displayed.
It realizes the rapid selection and control of smart home devices, improves control efficiency, and avoids the tedious process of users manually finding the control interface.
Smart Images

Figure CN119536000A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart home technology, and specifically provides a control method, device, equipment and medium for smart home equipment. Background Art
[0002] Nowadays, there are more and more smart home devices in users' homes. If users want to operate smart home devices, they need to go to the smart home devices. If users want to control smart home devices intelligently, they must first bind the smart home devices in their homes one by one, then log in to the control device, and find the smart home device they want to operate on the interface of the control device. Finally, they can control the smart home devices.
[0003] However, such operation mode is relatively complicated, and it is impossible to quickly select the smart home device that the user wants, thereby reducing the control efficiency of the smart home device. Summary of the invention
[0004] In order to overcome the above-mentioned defects, the present invention is proposed to provide a control method, apparatus, device and medium for smart home devices that solve or at least partially solve the technical problem of low control efficiency of smart home devices.
[0005] In a first aspect, the present invention provides a control method for a smart home device, the control method for the smart home device comprising:
[0006] Determine the location information of the control device based on the pre-built environment map;
[0007] Determine at least one smart home device to be controlled according to the location information of the control device and the location information of at least one smart home device recorded in the environment map;
[0008] Display the control interface corresponding to the smart home device to be controlled.
[0009] Furthermore, in the above-mentioned method for controlling smart home devices, before determining at least one smart home device to be controlled according to the location information of the control device and the location information of at least one smart home device recorded in the environment map, the method further includes:
[0010] Collecting environmental information of the current environment through a mobile device, and constructing the environmental map based on the environmental information of the current environment; and / or
[0011] The environment map is constructed based on the positioning technology of the control device.
[0012] Furthermore, in the above-mentioned method for controlling smart home devices, determining at least one smart home device to be controlled according to the location information of the control device and the location information of at least one smart home device recorded in the environment map includes:
[0013] Determine a first distance between the control device and each of the smart home devices according to the location information of the control device and the location information of at least one smart home device recorded in the environment map;
[0014] At least one smart home device whose first distance is less than a distance threshold is used as the smart home device to be controlled.
[0015] Furthermore, in the above-mentioned method for controlling smart home devices, before taking at least one smart home device whose first distance is less than the distance threshold as the smart home device to be controlled, the method further includes:
[0016] Determining the environment space where the control device is located according to the location information of the control device;
[0017] The distance threshold is set based on the environment space.
[0018] Furthermore, the control method of the smart home device described above also includes:
[0019] Determine the historical smart home devices controlled by the control device within a preset time period; wherein the end time of the preset time period is the current time, and the end time of the preset time period is the difference between the current time and the preset duration;
[0020] If the second distance between the historical smart home device and the control device is greater than or equal to the distance threshold, determining whether the historical smart home device is a smart home device to be controlled according to the operation information of the historical smart home device;
[0021] If it is determined that the historical smart home device is the smart home device to be controlled, the control interface of the historical smart home device is displayed.
[0022] Furthermore, in the control method of the smart home device described above, determining whether the historical smart home device is a smart home device to be controlled according to the operation information of the historical smart home device includes:
[0023] If the operation information of the historical smart home device at the time of control is inconsistent with the operation information at the current time, determining that the historical smart home device is the smart home device to be controlled;
[0024] If the operation information of the historical smart home device at the control moment is consistent with the operation information at the current moment, it is determined that the historical smart home device is not the smart home device to be controlled.
[0025] Furthermore, the control method of the smart home device described above also includes:
[0026] If the second distance between the historical smart home device and the control device is less than the distance threshold, detecting whether there is an associated smart home device in the smart home device to be controlled that has a linkage relationship with the historical smart home device;
[0027] If there is an associated smart home device in the to-be-controlled smart home device that has a linkage relationship with the historical smart home device, select at least one associated smart home device, and display a control interface corresponding to the associated smart home device;
[0028] If there is no associated smart home device having a linkage relationship with the historical smart home device among the smart home devices to be controlled, the control interface corresponding to the smart home device to be controlled is maintained.
[0029] In a second aspect, the present invention provides a control device for a smart home device, the control device for the smart home device comprising:
[0030] A location determination module, used to determine the location information of the control device based on a pre-built environment map;
[0031] The control module is used to determine at least one smart home device to be controlled according to the location information of the control device and the location information of at least one smart home device recorded in the environment map; and display the control interface corresponding to the smart home device to be controlled.
[0032] In a third aspect, the present invention provides a control device for a smart home device, the control device for the smart home device comprising a processor and a storage device, the storage device being suitable for storing a plurality of program codes, the program codes being suitable for being loaded and run by the processor to execute any one of the control methods for the smart home device described above.
[0033] In a fourth aspect, a computer-readable storage medium is provided, in which a plurality of program codes are stored, wherein the program codes are suitable for being loaded and run by a processor to execute any of the above-described methods for controlling a smart home device.
[0034] The above one or more technical solutions of the present invention have at least one or more of the following beneficial effects:
[0035] In the technical solution for implementing the present invention, the location information of the control device is determined based on a pre-constructed environment map; according to the location information of the control device and the location information of at least one smart home device recorded in the environment map, at least one smart home device to be controlled is determined and the control interface corresponding to the smart home device to be controlled is displayed. In this way, the user can avoid manually searching for the control interface of the smart home device to be controlled, and the smart home device to be controlled can be quickly selected, thereby improving the control efficiency of the smart home devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The disclosure of the present invention will become more easily understood with reference to the accompanying drawings. It is easy for those skilled in the art to understand that these drawings are only for illustrative purposes and are not intended to limit the scope of protection of the present invention. In addition, similar numbers in the figures are used to represent similar components, among which:
[0037] Figure 1 is a flowchart of main steps of a method for controlling a smart home device according to an embodiment of the present invention;
[0038] Figure 2 is a flowchart of main steps of a method for controlling a smart home device according to another embodiment of the present invention;
[0039] Figure 3 is a main structural block diagram of a control device for a smart home device according to an embodiment of the present invention;
[0040] Figure 4 It is a main structural block diagram of a control device for a smart home device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0041] Some embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.
[0042] In the description of the present invention, "module" and "processor" may include hardware, software or a combination of the two. A module may include hardware circuits, various suitable sensors, communication ports, and memories, and may also include software parts, such as program codes, or a combination of software and hardware. The processor may be a central processing unit, a microprocessor, an image processor, a digital signal processor, or any other suitable processor. The processor has data and / or signal processing functions. The processor may be implemented in software, hardware, or a combination of the two. Non-temporary computer-readable storage media include any suitable medium that can store program codes, such as a magnetic disk, a hard disk, an optical disk, a flash memory, a read-only memory, a random access memory, and the like. The term "A and / or B" means all possible combinations of A and B, such as only A, only B, or A and B. The term "at least one A or B" or "at least one of A and B" has a similar meaning to "A and / or B", and may include only A, only B, or A and B. The singular terms "one" and "the" may also include plural forms.
[0043] As the number of smart home devices in users' homes increases, the process of users selecting target smart home devices in the control device becomes more and more troublesome, and it is difficult to accurately distinguish the names of various smart home devices, which makes selection difficult. Therefore, the process of selecting smart home devices when controlling smart home devices is cumbersome, which reduces the control efficiency of smart home devices.
[0044] Therefore, in order to solve the above technical problems, the present invention provides the following technical solutions:
[0045] See attached Figure 1 , Figure 1 FIG. 1 is a flow chart showing the main steps of a method for controlling a smart home device according to an embodiment of the present invention. Figure 1 As shown, the control method of the smart home device in the embodiment of the present invention mainly includes the following steps 101 to 103.
[0046] Step 101: Determine the location information of the control device based on a pre-built environment map;
[0047] In a specific implementation process, the user first needs to register and bind all the smart home devices in the home, and set the location according to the actual placement. For example, the washing machine is on the balcony, the refrigerator is in the kitchen, and the water heater is in the bathroom, and different smart home devices are set in different areas. Then, the environmental information of the current environment can be collected by a movable device, and the environmental map can be constructed based on the environmental information of the current environment; and / or, the environmental map can be constructed based on the positioning technology of the control device. Among them, the environmental map contains the location information of all smart home devices. The mobile device may include a sweeping robot, etc., and the control device may include a mobile phone, etc. The specific implementation method of constructing the environmental map can refer to the existing relevant technology, which will not be repeated here.
[0048] After the environment map is constructed, the positioning function can be enabled on the control device, so that the location information of the control device in the environment map can be obtained.
[0049] Step 102: determining at least one smart home device to be controlled according to the location information of the control device and the location information of at least one smart home device recorded in the environment map;
[0050] In a specific implementation process, the user will control the smart home device that is closer to him / her. Therefore, the location information of the control device and the location information of at least one smart home device recorded in the environment map can be calculated to determine the first distance between the control device and each of the smart home devices, and the first distance is compared with a distance threshold to obtain a comparison result, and at least one smart home device whose first distance in the comparison result is less than the distance threshold is used as the smart home device to be controlled.
[0051] In a specific implementation process, the distance threshold can be set by the user according to needs, or it can be automatically set as follows:
[0052] According to the location information of the control device, the environment space where the control device is located is determined; and based on the environment space, the distance threshold is set.
[0053] Specifically, the space of the entire room can be used as the environmental space and the distance threshold can be set. The entire room can also be divided into different areas, and the area where the control device is located can be set as the environmental wellhead. For example, when the kitchen is used as an environmental space, a smaller distance threshold can be set according to the area of the kitchen due to its relatively small area. When the living room is used as an environmental space, a larger distance threshold can be set according to the area of the living room due to its relatively large area.
[0054] Step 103: display the control interface corresponding to the smart home device to be controlled.
[0055] After determining at least one smart home device to be controlled, the control interface corresponding to the smart home device to be controlled may be displayed in the following manner but not limited to, so that the user can select the control interface corresponding to the required smart home device to be controlled to control the smart home device to be controlled:
[0056] The first one displays the smart home devices to be controlled in order of the distance between the smart home devices and the user from near to far.
[0057] The second type is to display the smart home devices to be controlled in order of priority from high to low.
[0058] The control method of the smart home device of the present embodiment determines the location information of the control device based on a pre-constructed environment map; determines at least one smart home device to be controlled according to the location information of the control device and the location information of at least one smart home device recorded in the environment map; and displays the control interface corresponding to the smart home device to be controlled. In this way, the user can avoid manually searching for the control interface of the smart home device to be controlled, realizes the quick selection of the smart home device to be controlled, and improves the control efficiency of the smart home devices.
[0059] See attached Figure 2 , Figure 2 FIG. 1 is a flow chart showing the main steps of a method for controlling a smart home device according to another embodiment of the present invention. Figure 2 As shown, the control method of the smart home device in the embodiment of the present invention mainly includes the following steps 201 to 103.
[0060] Step 201: Determine the location information of the control device based on the pre-built environment map;
[0061] Step 202: Determine a first distance between the control device and each of the smart home devices according to the location information of the control device and the location information of at least one smart home device recorded in the environment map;
[0062] Step 203: selecting at least one smart home device to be controlled whose first distance is less than a distance threshold, and displaying a control interface corresponding to the smart home device to be controlled;
[0063] Step 204: determining historical smart home devices that have been controlled by the control device within a preset time period;
[0064] In a specific implementation process, the historical smart home devices controlled by the control device within a preset time period can also be determined. The end time of the preset time period is the current time, and the end time of the preset time period is the difference between the current time and the preset duration. In other words, the preset duration is moved forward from the current time as the preset time period.
[0065] Step 205, detecting whether the second distance between the historical smart home device and the control device is less than the distance threshold; if so, executing step 208; if not, executing step 206;
[0066] Step 206: Determine whether the historical smart home device is a smart home device to be controlled based on the operation information of the historical smart home device; if so, execute step 207; if not, return to step 203;
[0067] In a specific implementation process, although the second distance between the historical smart home device and the control device is greater than or equal to the distance threshold, the user may actually further manipulate the historical smart home device. Therefore, it is possible to determine whether the historical smart home device is a smart home device to be controlled based on the operation information of the historical smart home device. For example, the user has manipulated the rice cooker in the kitchen, but the user is currently in the bathroom. The user may continue to manipulate the rice cooker, but because the rice cooker is far away from the user, if the control page of the rice cooker is not displayed, the user needs to walk from the bathroom to the kitchen to manipulate the rice cooker, which reduces the convenience of manipulation.
[0068] Normally, after a user operates a smart home device, the user will operate it again only when the operating information of the smart home device changes. Therefore, it is possible to determine whether the historical smart home device is the smart home device to be controlled based on the operating information of the historical smart home device.
[0069] Specifically, if the operating information of the historical smart home device at the time of control is inconsistent with the operating information at the current time, it is determined that the historical smart home device is the smart home device to be controlled, and step 207 is executed; if the operating information of the historical smart home device at the time of control is consistent with the operating information at the current time, it is determined that the historical smart home device is not the smart home device to be controlled, and the process returns to step 203.
[0070] It should be noted that the inconsistency of the operating information at the above two moments may be inconsistency in different operating modes, or it may be different operating monitoring results under the same operating mode, for example, normal operation and abnormal operation, that is, if abnormal operation of the smart home device is detected, it can be actively reported.
[0071] Step 207, displaying the control interface of the historical smart home device;
[0072] If it is determined that the historical smart home device is the smart home device to be controlled, the control interface of the historical smart home device can be displayed. In this way, the user can still control the historical smart home device that is far away from him / her at the current location, thereby improving the control convenience of the smart home device.
[0073] Step 208, detecting whether there is an associated smart home device in the smart home device to be controlled that has a linkage relationship with the historical smart home device; if so, executing step 209, if not, executing step 210;
[0074] In a specific implementation process, if the second distance between the historical smart home device and the control device is less than the distance threshold, it means that the control interface corresponding to the currently displayed smart home device to be controlled already includes the control interface of the historical smart home device, but the user may not control the historical smart home device, but only the associated smart home device that can have a linkage relationship with the historical smart home device. Therefore, the smart home device can be associated.
[0075] Step 209: selecting at least one associated smart home device, and displaying a control interface corresponding to the associated smart home device;
[0076] In a specific implementation process, if there is an associated smart home device having a linkage relationship with the historical smart home device among the smart home devices to be controlled, at least one associated smart home device may be selected, and a control interface corresponding to the associated smart home device may be displayed;
[0077] For example, for the kitchen system, the refrigerator, stove, dishwasher, etc. have a linkage relationship. The user has operated the refrigerator within a preset time period, and the user may only need to operate the stove and / or dishwasher afterwards. At this time, the control interface of the stove and / or dishwasher can be entered without displaying the control interface of the refrigerator and the control interface of other smart home devices that have no linkage relationship, such as not displaying the control interface of the water purifier that has no linkage relationship with the refrigerator.
[0078] Step 210: Maintain the control interface corresponding to the smart home device to be controlled.
[0079] If there is no associated smart home device in the to-be-controlled smart home device that has a linkage relationship with the historical smart home device, then the control interface corresponding to the to-be-controlled smart home device may be maintained.
[0080] It should be pointed out that although the various steps in the above embodiments are described in a specific order, those skilled in the art can understand that in order to achieve the effects of the present invention, different steps do not have to be performed in such an order. They can be performed simultaneously (in parallel) or in other orders. These changes are within the scope of protection of the present invention.
[0081] It is understood by those skilled in the art that the present invention implements all or part of the processes in the method of the above embodiment, and can also be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device, medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electric carrier signal, telecommunication signal and software distribution medium that can carry the computer program code. It should be noted that the content contained in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media do not include electric carrier signals and telecommunication signals.
[0082] Furthermore, the present invention also provides a control device for a smart home device.
[0083] See attached Figure 3 , Figure 3 FIG. 1 is a main structural block diagram of a control device for a smart home device according to an embodiment of the present invention. Figure 3 As shown, the control device of the smart home device in the embodiment of the present invention may include a position determination module 31 and a control module 32.
[0084] A location determination module 31, used to determine the location information of the control device based on a pre-built environment map;
[0085] In a specific implementation process, the environmental map can collect environmental information of the current environment through a removable device, and construct the environmental map based on the environmental information of the current environment; and / or construct the environmental map based on the positioning technology of the control device.
[0086] The control module 32 is used to determine at least one smart home device to be controlled according to the location information of the control device and the location information of at least one smart home device recorded in the environment map; and display the control interface corresponding to the smart home device to be controlled. Specifically, the first distance between the control device and each of the smart home devices can be determined according to the location information of the control device and the location information of at least one smart home device recorded in the environment map; at least one smart home device whose first distance is less than a distance threshold is used as the smart home device to be controlled, and the control interface corresponding to the smart home device to be controlled is displayed.
[0087] In a specific implementation process, the control module 32 can determine the environmental space where the control device is located based on the location information of the control device; based on the environmental space, set the distance threshold, and then select at least one smart home device to be controlled whose first distance is less than the distance threshold, and display the control interface corresponding to the smart home device to be controlled.
[0088] In a specific implementation process, the control module 32 is also used for:
[0089] Determine the historical smart home devices controlled by the control device within a preset time period; wherein the end time of the preset time period is the current time, and the end time of the preset time period is the difference between the current time and the preset duration;
[0090] If the second distance between the historical smart home device and the control device is greater than or equal to the distance threshold, determine whether the historical smart home device is a smart home device to be controlled based on the operating information of the historical smart home device; wherein, if the operating information of the historical smart home device at the time of control is inconsistent with the operating information at the current time, determine that the historical smart home device is the smart home device to be controlled; if the operating information of the historical smart home device at the time of control is consistent with the operating information at the current time, determine that the historical smart home device is not a smart home device to be controlled.
[0091] If it is determined that the historical smart home device is the smart home device to be controlled, the control interface of the historical smart home device is displayed.
[0092] In a specific implementation process, the control module 32 is also used for:
[0093] If the second distance between the historical smart home device and the control device is less than the distance threshold, detecting whether there is an associated smart home device in the smart home device to be controlled that has a linkage relationship with the historical smart home device;
[0094] If there is an associated smart home device that has a linkage relationship with the historical smart home device among the smart home devices to be controlled, select at least one associated smart home device and display the control interface corresponding to the associated smart home device; if there is no associated smart home device that has a linkage relationship with the historical smart home device among the smart home devices to be controlled, maintain the control interface corresponding to the smart home device to be controlled.
[0095] The control device of the above-mentioned smart home device is used to execute the control method embodiment of the smart home device shown in the above-mentioned embodiment. The technical principles, technical problems solved and technical effects produced by the two are similar. Technical personnel in this technical field can clearly understand that for the convenience and conciseness of description, the specific working process and related instructions of the control device of the smart home device can refer to the contents described in the embodiment of the control method of the smart home device, which will not be repeated here.
[0096] Furthermore, the present invention also provides a control device for a smart home device.
[0097] See attached Figure 4 , Figure 4 FIG. 1 is a main structural block diagram of a control device for a smart home device according to an embodiment of the present invention. Figure 4 As shown, the control device of the smart home device in the embodiment of the present invention may include a processor 41 and a storage device 42.
[0098] The storage device 42 may be configured to store a program for executing the control method of the smart home device of the above method embodiment, and the processor 41 may be configured to execute the program in the storage device 42, which includes but is not limited to the program for executing the control method of the smart home device of the above method embodiment. For ease of explanation, only the part related to the embodiment of the present invention is shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The control device of the smart home device may be a control device formed by various electronic devices.
[0099] In a specific implementation process, the number of the storage device 42 and the processor 41 can be multiple. The program for executing the control method of the smart home device of the above method embodiment can be divided into multiple subprograms, and each subprogram can be loaded and run by the processor 41 to execute different steps of the control method of the smart home device of the above method embodiment. Specifically, each subprogram can be stored in different storage devices 42 respectively, and each processor 41 can be configured to execute the program in one or more storage devices 42 to jointly implement the control method of the smart home device of the above method embodiment, that is, each processor 41 executes different steps of the control method of the smart home device of the above method embodiment respectively to jointly implement the control method of the smart home device of the above method embodiment.
[0100] The above-mentioned multiple processors 41 may be processors deployed on the same device. For example, the above-mentioned device may be a high-performance device composed of multiple processors, and the above-mentioned multiple processors 41 may be processors configured on the high-performance device. In addition, the above-mentioned multiple processors 41 may also be processors deployed on different devices. For example, the above-mentioned device may be a server cluster, and the above-mentioned multiple processors 41 may be processors on different servers in the server cluster.
[0101] Furthermore, the present invention also provides a computer-readable storage medium. In a computer-readable storage medium embodiment according to the present invention, the computer-readable storage medium can be configured to store a program for executing the control method of the smart home device of the above-mentioned method embodiment, and the program can be loaded and run by the processor to implement the control method of the above-mentioned smart home device. For ease of explanation, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The computer-readable storage medium can be a storage device formed by various electronic devices. Optionally, the computer-readable storage medium in the embodiment of the present invention is a non-temporary computer-readable storage medium.
[0102] Further, it should be understood that since the setting of each module is only for illustrating the functional units of the device of the present invention, the physical devices corresponding to these modules may be the processor itself, or a part of the software in the processor, a part of the hardware, or a part of the combination of software and hardware. Therefore, the number of each module in the figure is only schematic.
[0103] Those skilled in the art will appreciate that the modules in the device can be adaptively split or merged. Such splitting or merging of specific modules will not cause the technical solution to deviate from the principle of the present invention, and therefore, the technical solutions after splitting or merging will fall within the protection scope of the present invention.
[0104] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.
Claims
1. A control method for a smart home device, characterized in that: include: Determine the location information of the control device based on the pre-built environment map; Determine at least one smart home device to be controlled according to the location information of the control device and the location information of at least one smart home device recorded in the environment map; Display the control interface corresponding to the smart home device to be controlled.
2. The control method of the smart home device according to claim 1, characterized in that: Before determining at least one smart home device to be controlled according to the location information of the control device and the location information of at least one smart home device recorded in the environment map, the method further includes: Collecting environmental information of the current environment through a mobile device, and constructing the environmental map based on the environmental information of the current environment; and / or The environment map is constructed based on the positioning technology of the control device.
3. The control method of the smart home device according to claim 1, characterized in that: Determining at least one smart home device to be controlled according to the location information of the control device and the location information of at least one smart home device recorded in the environment map, comprising: Determine a first distance between the control device and each of the smart home devices according to the location information of the control device and the location information of at least one smart home device recorded in the environment map; At least one smart home device whose first distance is less than a distance threshold is used as the smart home device to be controlled.
4. The control method of the smart home device according to claim 3, characterized in that: Before taking at least one smart home device whose first distance is less than the distance threshold as the smart home device to be controlled, the method further includes: Determining the environment space where the control device is located according to the location information of the control device; The distance threshold is set based on the environment space.
5. The control method of the smart home device according to claim 1, characterized in that: Also includes: Determine the historical smart home devices controlled by the control device within a preset time period; wherein the end time of the preset time period is the current time, and the end time of the preset time period is the difference between the current time and the preset duration; If the second distance between the historical smart home device and the control device is greater than or equal to the distance threshold, determining whether the historical smart home device is a smart home device to be controlled according to the operation information of the historical smart home device; If it is determined that the historical smart home device is the smart home device to be controlled, the control interface of the historical smart home device is displayed.
6. The control method of the smart home device according to claim 5, characterized in that: Determining whether the historical smart home device is a smart home device to be controlled according to the operation information of the historical smart home device includes: If the operation information of the historical smart home device at the time of control is inconsistent with the operation information at the current time, determining that the historical smart home device is the smart home device to be controlled; If the operation information of the historical smart home device at the control moment is consistent with the operation information at the current moment, it is determined that the historical smart home device is not the smart home device to be controlled.
7. The control method of the smart home device according to claim 5, characterized in that: Also includes: If the second distance between the historical smart home device and the control device is less than the distance threshold, detecting whether there is an associated smart home device having a linkage relationship with the historical smart home device among the smart home devices to be controlled; If there is an associated smart home device in the to-be-controlled smart home device that has a linkage relationship with the historical smart home device, select at least one associated smart home device, and display a control interface corresponding to the associated smart home device; If there is no associated smart home device having a linkage relationship with the historical smart home device among the smart home devices to be controlled, the control interface corresponding to the smart home device to be controlled is maintained.
8. A control device for a smart home device, characterized in that: include: A location determination module, used to determine the location information of the control device based on a pre-built environment map; The control module is used to determine at least one smart home device to be controlled according to the location information of the control device and the location information of at least one smart home device recorded in the environment map, and display the control interface corresponding to the smart home device to be controlled.
9. A control device for a smart home device, characterized in that: The method comprises a processor and a storage device, wherein the storage device is suitable for storing a plurality of program codes, and the program codes are suitable for being loaded and run by the processor to execute the control method of the smart home device according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: A plurality of program codes are stored therein, and the program codes are suitable for being loaded and run by a processor to execute the control method of the smart home device according to any one of claims 1 to 7.