Interaction method of smart home control interface

By automatically matching and assigning device cards to target device spaces in the smart home control interface, the problem of complex operation of traditional platforms is solved, and the convenience and efficiency of device space allocation are improved.

CN120540552APending Publication Date: 2025-08-26GUANGDONG VANWARD NEW ELECTRIC CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510477278.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-16
Publication Date
2025-08-26

AI Technical Summary

Technical Problem

Traditional smart home control platforms require users to manually create and allocate device spaces and linkage scenes, which is time-consuming and complex.

Method used

By displaying device cards in the space configuration interface and responding to user proximity operations, the system automatically matches and assigns device cards from the device space library to the target device space based on the device type, thereby generating a linked scene.

Benefits of technology

It improves the convenience and efficiency of device space allocation and simplifies the user's operation process in the smart home control interface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120540552A_ABST
    Figure CN120540552A_ABST
Patent Text Reader

Abstract

The invention relates to an interaction method of a smart home control interface. The method comprises the following steps: displaying a first equipment card of a first equipment type and a second equipment card of a second equipment type on a space configuration interface; and in response to a control instruction for enabling the first equipment card to approach the second equipment card in the space configuration interface, if both the first equipment card and the second equipment card are not allocated, allocating the first equipment card and the second equipment card to the target equipment space according to the first equipment type and the second equipment type. The operation efficiency of the smart home control interface can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet of Things technology, and in particular to an interaction method for a smart home control interface. Background Art

[0002] With the rise of the smart home industry, many smart home control platforms have emerged for associating and managing smart devices, allowing users to easily set up and manage various types of smart devices on the terminal.

[0003] However, traditional smart home control platforms require users to first manually create device spaces and linkage scenarios for unassigned smart devices in the terminal's interactive interface, and then manually assign the device spaces and linkage scenarios to the smart devices associated with the terminal. The above operation process is time-consuming and complex. Summary of the Invention

[0004] Based on this, it is necessary to provide an interactive method for a smart home control interface that can conveniently allocate device space to address the above technical problems.

[0005] In one embodiment, the present application provides a method for interacting with a smart home control interface, the method comprising:

[0006] Displaying a first device card of a first device type and a second device card of a second device type on the space configuration interface;

[0007] In response to a control instruction in the space configuration interface to move the first device card close to the second device card, if the first device card and the second device card are not allocated, the first device card and the second device card are allocated to the target device space according to the first device type and the second device type.

[0008] In one embodiment, the step of allocating the first device card and the second device card to the target device space according to the first device type and the second device type includes:

[0009] Matching the first device type and the second device type in a device space library to obtain a space matching result; wherein the device space library includes a plurality of preset device spaces, and one preset device space corresponds to a plurality of device cards of different device types;

[0010] A target device space is determined based on the space matching result, and the first device card and the second device card are allocated to the target device space.

[0011] In one embodiment, the step of determining a target device space based on the space matching result and assigning the first device card and the second device card to the target device space includes:

[0012] If the space matching result is that there is a preset device space that includes both the first device type and the second device type, determining the target device space based on the preset device space;

[0013] If the space matching result is that there is no preset device space that includes both the first device type and the second device type, an unnamed device space is created as the target device space.

[0014] In one embodiment, the step of determining the target device space based on the preset device space includes:

[0015] The configured device space is obtained, and the target device space is determined according to a comparison result between the preset device space and the configured device space; wherein the configured device space is a device space that has been configured with at least one device card.

[0016] In one embodiment, the step of determining the target device space based on the preset device space includes:

[0017] Get the amount of preset device space;

[0018] If the number of preset device spaces is not greater than 1, then obtaining the configured device space, and determining the target device space based on the comparison result between the preset device space and the configured device space;

[0019] If the number of preset device spaces is greater than 1, the target device space is determined based on a comparison result of the plurality of preset device spaces and the configured device space.

[0020] In one embodiment, determining the target device space based on a comparison result between the preset device space and the configured device space includes:

[0021] If the configured device space does not contain a device space with the same name as the preset device space, a target device space with the same name as the preset device space is created;

[0022] If the configured device space includes a device space with the same name as the preset device space, the device space with the same name is determined as the target device space according to the input instruction, or a target device space associated with the name of the preset device space is created according to the input instruction.

[0023] In one embodiment, the step of determining the target device space based on the comparison results of the plurality of preset device spaces and the configured device space includes:

[0024] If there is at least one preset device space among all preset device spaces that has a name different from that of the configured device space, then a target device space with the same name as the preset device space with the least device types is created;

[0025] If all preset device spaces have configured device spaces with the same name, one of the configured device spaces is selected as the target device space according to the input command, or an unnamed device space is created as the target device space according to the input command.

[0026] In one embodiment, the interaction method further includes:

[0027] If the first device card has been assigned to the first device space and the second device card has not been assigned, or if the second device card has been assigned to the first device space and the first device card has not been assigned, assigning the first device card and the second device card to the first device space;

[0028] If the first device card has been assigned to the first device space and the second device card has been assigned to the second device space, the first device card is moved to the second device space.

[0029] In one embodiment, the interaction method further includes:

[0030] If the first device card and the second device card have been assigned to the same device space, a target linkage scenario for the first device type and the second device type is generated.

[0031] In one embodiment, the step of generating a target linkage scenario for a first device type and a second device type includes:

[0032] Matching the first device type and the second device type in a preset scene library to obtain a scene matching result; wherein the preset scene library includes multiple preset linkage scenes, and one preset linkage scene corresponds to multiple device cards of different device types;

[0033] If the scene matching result is that there is a preset linkage scene that includes both the first device type and the second device type, determining the preset linkage scene as the target linkage scene;

[0034] If the scene matching result is that there is no preset linkage scene including both the first device type and the second device type, the scene configuration interface is entered, and a target linkage scene is generated according to the input scene configuration instruction.

[0035] The interactive method of the above-mentioned smart home control interface displays a first device card of a first device type and a second device card of a second device type in the space configuration interface, and then responds to a control instruction in the space configuration interface to move the first device card close to the second device card. If neither the first device card nor the second device card has been assigned a device space, the first device card and the second device card can be assigned to a target device space based on the device type of the first device card and the second device card. In this way, the present application can conveniently assign the device cards displayed in the space configuration interface to the device space, thereby improving the user's operating efficiency on the smart home control interface. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following briefly introduces the drawings required for use in the embodiments of the present application or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying any creative work.

[0037] Figure 1 A diagram illustrating an application environment of an interactive method for a smart home control interface in one embodiment;

[0038] Figure 2 1 is a flow chart of an interactive method for a smart home control interface in one embodiment;

[0039] Figure 3 This is a schematic diagram of a space configuration interface in one embodiment;

[0040] Figure 4 A schematic diagram of an action of allocating device cards to the same device space in one embodiment;

[0041] Figure 5 A schematic diagram of a process for allocating a device card to a target device space in one embodiment;

[0042] Figure 6 A schematic diagram of a process for determining a target device space in one embodiment;

[0043] Figure 7 A schematic diagram of a process for determining a target device space in another embodiment;

[0044] Figure 8 A schematic diagram of a process for determining a target device space in another embodiment;

[0045] Figure 9 A schematic diagram of a process for determining a target device space in yet another embodiment;

[0046] Figure 10 FIG1 is a flow chart of allocating device cards to the same device space in one embodiment;

[0047] Figure 11 This is a schematic diagram of an action of allocating device cards to the same device space in another embodiment;

[0048] Figure 12 FIG. 1 is a schematic diagram of an action of allocating device cards to the same device space in another embodiment;

[0049] Figure 13 A schematic diagram of a process for obtaining a target linkage scenario in one embodiment;

[0050] Figure 14 FIG. 1 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0052] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application pertains. The terms used herein in the specification of this application are for the purpose of describing specific embodiments only and are not intended to limit this application.

[0053] It will be understood that the terms "first" and "second" used in this application are for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of such features. The terms "first", "second", etc. may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. In addition, in the description of this application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. In the description of this application, the meaning of "several" is at least one, such as one, two, etc., unless otherwise clearly and specifically defined.

[0054] The interactive method of the smart home control interface provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown in the figure, Figure 1As shown, a network system 10 provided in an embodiment of the present application includes: a terminal 102, one or more sub-devices 104, a gateway 106, a router 108, and a server 110. Terminal 102 can be any device with communication and storage capabilities, including, but not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart TVs, smart car devices, and projection devices. Portable wearable devices can include smart watches, smart bracelets, head-mounted devices, and the like. Head-mounted devices can include virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, and the like. Server 110 can be a network access server, a database server, a cloud server providing cloud computing services, and the like. Furthermore, server 110 can be a standalone physical server or a server cluster or distributed system consisting of multiple physical servers. Sub-device 104 can be a smart home device with Internet of Things functions. Sub-device 104 includes but is not limited to smart gas water heaters, smart exhaust fans, smart range hoods, smart wall-mounted boilers, smart electric water heaters, smart dishwashers, smart heat pumps, smart lighting, human body sensors, smart constant temperature indoor units, smart full heat exchange fresh air fans, smart environmental detectors, smart air conditioning water pumps, smart water mixing controllers, smart curtains, smart fresh air dehumidification machines, smart humidifiers, etc.

[0055] Optionally, gateway 106 can be an intelligent gateway for smart home control, enabling functions such as system information collection, information input and output, centralized control, remote control, and coordinated control. Gateway 106 can be responsible for specific functions such as security alarms, home appliance control, and electricity usage information collection. Gateway 106 can also wirelessly exchange information with products such as smart interactive terminals. Gateway 106 also features wireless routing, excellent wireless performance, network security, and coverage. For example, gateway 106 is built based on the ZigBee protocol, and sub-devices 104 can be pre-installed in gateway 106. For example, sub-devices 104 can be included in the gateway's factory-installed kit, or they can be subsequently connected to gateway 106 through user interaction. There can be at least one gateway 106.

[0056] Optionally, a smart home control platform client is installed on terminal 102 to manage sub-device 104. This client can be an application client (such as a mobile app) or a web client, without limitation. As a method, a user can add the same account information to terminal 102 and sub-device 104, and data synchronization between sub-device 104 and terminal 102 can be achieved through this account.

[0057] In one implementation, sub-devices 104 can connect to gateway 106. In this case, one or more sub-devices 104 can establish a network connection with gateway 106 based on the ZigBee protocol, thereby joining the ZigBee network. Gateway 106 and terminal 102 can both connect to router 108 and access the Ethernet network through router 108. Router 108 can access server 110 via 2G / 3G / 4G / 5G, Wi-Fi (Wireless Fidelity), or other means. For example, gateway 106 and terminal 102 can store acquired information on server 110. Optionally, terminal 102 can also establish a network connection with server 110 via 2G / 3G / 4G / 5G, Wi-Fi, or other means to acquire data sent by server 110.

[0058] Optional, such as Figure 1 The LAN path shown indicates that the terminal 102 is in the same LAN as the router 108 and the gateway 106. The WAN path indicates that the terminal 102 is not in the same LAN as the router 108 and the gateway 106. When the terminal 102 is in the same LAN as the router 108 and the gateway 106, the terminal 102 can connect to the WAN through the following methods: Figure 1 The local area network path shown interacts with the gateway 106 and the sub-device 104 connected to the gateway 106; Figure 1 The wide area network path shown interacts with the gateway 106 and the sub-device 104 connected to the gateway 106. When the terminal 102 is not in the same local area network as the router 108 and the gateway 106, the terminal 102 can communicate with the gateway 106 through the following methods: Figure 1 The WAN path shown interacts with the gateway 106 and the sub-device 104 connected to the gateway 106 .

[0059] In another implementation, the sub-device 104 may not be connected to the gateway 106 but may directly establish a connection with the terminal 102 via a wireless communication method (such as ZigBee or Bluetooth) for data transmission.

[0060] In an exemplary embodiment, Figure 2 As shown, a method for interacting with a smart home control interface is provided, and the method is applied to Figure 1 Taking the terminal 102 in FIG. 1 as an example, the method includes the following steps S202 to S206:

[0061] Step S202: Display a first device card of a first device type and a second device card of a second device type on the space configuration interface.

[0062] Among them, please refer to Figure 3The space configuration interface 30 may be a user operation interface displayed on the terminal 102 application client for performing space configuration operations on the device card. The device card may be a UI (User Interface Designer) element displayed on the space configuration interface 30 and associated with a sub-device, through which the user can perform human-computer interaction with the terminal 102. The device type is the specific device type corresponding to the sub-device 104 associated with the device card. For example, the first device type and the second device type may be a smart gas water heater, a smart range hood, a smart wall-mounted boiler, etc., which are not specifically limited in the embodiments of the present application.

[0063] Specifically, the terminal 102 can display a first device card 32 of a first device type and a second device card 34 of a second device type associated with the sub-device 104 through the space configuration interface 30, and the user can perform human-computer interaction operations on the first device card 32 and the second device card 34 on the space configuration interface 30.

[0064] For example, the user can select the device card by long pressing the first device card 32 on the space configuration interface 30. When the first device card 32 is selected, the user can change the display position of the first device card 32 on the space configuration interface 30 by dragging.

[0065] It should be noted that the aforementioned method of changing the display position of the first device card 32 by dragging is merely one exemplary implementation method. In some examples, after selecting the first device card 32, the user can directly click the desired target location to change the display position of the first device card 32. It is understood that the aforementioned method of changing the display position of the device card is not limited to the implementation methods mentioned in the above embodiments, and this application does not specifically limit the number of region divisions or the preset shapes.

[0066] Step S204, in response to the control instruction in the space configuration interface 30 to move the first device card 32 close to the second device card 34, if the first device card 32 and the second device card 34 are not allocated, the first device card 32 and the second device card 34 are allocated to the target device space according to the first device type and the second device type.

[0067] The device space can be used to divide the space configuration interface 30 into zones to categorize sub-devices associated with the terminal 102, thereby forming a customized grouping that facilitates device management for the user. It will be appreciated that after assigning the first device card 32 and the second device card 34 to the target device space, the user can conveniently retrieve and manage the sub-devices associated with the first device card 32 and the second device card 34 through the target device space.

[0068] Specifically, if Figure 4 As shown, when the user brings the first device card 32 close to the second device card 34 through the space configuration interface 30, the corresponding control instruction can be triggered. After responding to the control instruction, the terminal 102 determines whether the first device card 32 and the second device card 34 have been allocated. If it is determined that the first device card 32 and the second device card 34 have not been allocated, the terminal 102 can allocate the first device card 32 and the second device card 34 to the target device space according to the device type of the first device card 32 and the second device card 34.

[0069] Optionally, the target device space can be named the default unnamed space or a device space with a preset name. For example, when a user places a first device card 32 with a first device type of "smart gas water heater" close to a second device card 34 with a second device type of "smart exhaust fan," the target device space can be named the preset "smart bathroom." When a user places a first device card 32 with a first device type of "smart gas water heater" close to a second device card 34 with a second device type of "smart curtains," the target device space can be named the default "unnamed space."

[0070] The interactive method of the smart home control interface of the present application displays a first device card 32 of a first device type and a second device card 34 of a second device type on the space configuration interface 30. When the user brings the first device card 32 close to the second device card 34 through the space configuration interface 30, if neither the first device card 32 nor the second device card 34 is assigned a device space, the first device card 32 and the second device card 34 can be assigned to the target device space according to the device type of the first device card 32 and the second device card 34. In this way, the present application can conveniently assign different device cards to the same device space according to the device type corresponding to the device card, thereby improving the user's operating efficiency on the smart home control interface.

[0071] In one embodiment, Figure 5 As shown, the step of allocating the first device card 32 and the second device card 34 to the target device space according to the first device type and the second device type includes the following steps S502 to S504:

[0072] Step S502: Matching is performed in a device space library based on the first device type and the second device type to obtain a space matching result.

[0073] Specifically, the device space library may include multiple preset device spaces, each of which may correspond to multiple device cards of different device types. It should be noted that the data in the device space library may be stored in the memory of the terminal 102 and / or the server. When the user uses the space configuration interface 30 to bring the first device card 32 close to the second device card 34, the terminal 102 performs a matching operation based on the device space library according to the device types of the first device card 32 and the second device card 34 to obtain a corresponding space matching result.

[0074] Step S504 : determining a target device space based on the space matching result, and allocating the first device card 32 and the second device card 34 to the target device space.

[0075] Specifically, the spatial matching result can be used to determine whether there is a device space in the device space library that includes both the first device type and the second device type. Terminal 102 can determine the target device space based on the spatial matching result and assign the first device card 32 and the second device card 34 to the target device space.

[0076] In some possible implementations, based on the space matching results, the terminal 102 can determine whether to create a target device space with the same name as the device space of the device space library in the space configuration interface 30, or directly create an unnamed space as the target device space in the space configuration interface 30 to assign the first device card 32 and the second device card 34 to the target device space.

[0077] In one embodiment, Figure 6 As shown, the step of determining the target device space based on the space matching result and allocating the first device card 32 and the second device card 34 to the target device space includes the following steps S602 to S604:

[0078] Step S602: If the space matching result indicates that there is a preset device space that includes both the first device type and the second device type, a target device space is determined based on the preset device space.

[0079] Specifically, if it is determined based on the space matching result that there is a preset device space in the device space library that includes both the first device type and the second device type, the terminal 102 will create a target device space with the same name as the preset device space in the space configuration interface 30, and assign the first device card 32 and the second device card 34 to the target device space.

[0080] For further explanation, taking the first device type as "smart gas water heater" and the second device type as "smart exhaust fan" as an example, when it is determined based on the space matching results that there is a preset device space named "smart bathroom" in the device space library that includes both "smart gas water heater" and "smart exhaust fan", a target device space with the same name of "smart bathroom" is created in the space configuration interface 30, and the first device card 32 and the second device card 34 are assigned to the target device space named "smart bathroom".

[0081] Step S604: If the space matching result is that there is no preset device space that includes both the first device type and the second device type, an unnamed device space is created as the target device space.

[0082] Specifically, if it is determined based on the space matching result that there is no device space in the device space library that includes both the first device type and the second device type, the terminal 102 will create a default unnamed space as the target device space in the space configuration interface 30, and assign the first device card 32 and the second device card 34 to the target device space.

[0083] For further explanation, taking the first device type as "smart gas water heater" and the second device type as "smart curtains" as an example, when it is determined based on the space matching results that there is no preset device space named "smart curtains" in the device space library that includes both "smart gas water heater" and "smart exhaust fan", a target device space named "unnamed space" is created in the space configuration interface 30, and the first device card 32 and the second device card 34 are assigned to the target device space named "unnamed space".

[0084] In one embodiment, the step of determining the target device space based on the preset device space includes the following steps:

[0085] Obtain the configured device space, and determine the target device space based on the comparison result between the preset device space and the configured device space.

[0086] The configured device space may be a device space that has at least one device card configured therein. The comparison result between the preset device space and the configured device space may indicate whether all configured device spaces displayed on the current space configuration interface 30 include a device space with the same name as the preset device space that includes both the first device type and the second device type.

[0087] Specifically, the terminal 102 obtains all configured device spaces currently displayed in the space configuration interface 30, and then determines the target device space based on whether all configured device spaces contain a configured device space with the same name as the preset device space that contains both the first device type and the second device type.

[0088] In one possible implementation, if all configured device spaces contain one or more configured devices with the same name as a preset device space that contains both the first device type and the second device type, one of these configured devices can be selected as the target device space, and the first device card 32 and the second device card 34 can be assigned to the target device space.

[0089] Furthermore, if all configured device spaces do not include one or more configured device spaces with the same name as the preset device space that includes both the first device type and the second device type, one of the above preset device spaces can be selected, and a target device space with the same name as the preset device space can be created in the space configuration interface 30, and the first device card 32 and the second device card 34 can be assigned to the target device space.

[0090] In one embodiment, Figure 7 As shown, the step of determining the target device space based on the preset device space includes the following steps S702 to S706:

[0091] Step S702: Obtain the amount of preset device space.

[0092] It can be understood that the device space library may include one or more preset device spaces that are the same as the preset device spaces of the first device type and the second device type.

[0093] Specifically, the terminal 102 may obtain the number of preset device spaces in the device space library that include both the first device type and the second device type.

[0094] For example, taking the first device type as "human body sensor" and the second device type as "smart exhaust fan", the device space library may include three preset device spaces that include both "human body sensor" and "smart lighting" device types. These three preset device spaces are as follows: "Space Name: Smart Living Room; Device Type: Human Body Sensor, Smart Lighting", "Space Name: Smart Bathroom; Device Type: Human Body Sensor, Smart Lighting, Smart Gas Water Heater", and "Space Name: Smart Living Room; Device Type: Human Body Sensor, Smart Lighting, Smart Curtain". It should be noted that the above-mentioned device space library and preset device spaces are merely exemplary implementations. The embodiments of this application do not specifically limit the types of preset device spaces stored in the device space library or the data structures of the preset device spaces.

[0095] Step S704: If the number of preset device spaces is not greater than 1, the configured device space is obtained, and the target device space is determined based on the comparison result between the preset device space and the configured device space.

[0096] Specifically, when the number of preset device spaces that include both the first device type and the second device type in the device space library is no more than 1, the terminal 102 obtains all configured device spaces currently displayed on the space configuration interface 30, and then determines the target device space based on whether all configured device spaces contain a configured device space with the same name as the preset device space that includes both the first device type and the second device type.

[0097] In one possible implementation, when the number of preset device spaces that include both the first device type and the second device type in the device space library is no more than 1, if all configured device spaces include one or more configured device spaces with the same name as the preset device space that includes both the first device type and the second device type, one of these configured devices can be selected as the target device space, and the first device card 32 and the second device card 34 can be assigned to the target device space.

[0098] Furthermore, when the number of preset device spaces that include both the first device type and the second device type in the device space library is no more than 1, if all configured device spaces do not include one or more configured device spaces with the same name as the preset device space that includes both the first device type and the second device type, one of the above preset device spaces can be selected, and a target device space with the same name as the preset device space can be created in the space configuration interface 30, and the first device card 32 and the second device card 34 can be assigned to the target device space.

[0099] Step S706: If the number of preset device spaces is greater than 1, a target device space is determined based on a comparison result of the plurality of preset device spaces and the configured device space.

[0100] It can be understood that if the number of preset device spaces is greater than 1, it means that the device space library contains multiple preset device spaces that include both the first device type and the second device type.

[0101] Specifically, when the device space library contains multiple preset device spaces that include both the first device type and the second device type, the terminal 102 can determine the target device space based on the comparison results of the above multiple preset device spaces and the configured device space displayed on the space configuration interface 30.

[0102] In one possible implementation, when it is determined based on the comparison results of the above-mentioned multiple preset device spaces and configured device spaces that the space configuration interface 30 includes a configured device space with the same name as the above-mentioned preset device space, the configured device space is used as the target device space, and the first device card 32 and the second device card 34 are assigned to the target device space.

[0103] Furthermore, when it is determined based on the comparison results of the above-mentioned multiple preset device spaces and the configured device spaces that the space configuration interface 30 includes multiple configured device spaces with the same name as the above-mentioned preset device spaces, a configured device space list can be displayed on the space configuration interface 30. The configured device space list contains all configured device spaces with the same name as the above-mentioned preset device space. The user can independently select one of the configured device spaces as the target device space through the configured device space list to assign the first device card 32 and the second device card 34 to the target device space.

[0104] In some examples, when it is determined on the space configuration interface 30 based on the comparison results of the above-mentioned multiple preset device spaces and the configured device spaces that there is no configured device space with the same name as the above-mentioned multiple preset device spaces, a preset device space list can be displayed on the space configuration interface 30, and the preset device space list includes all preset device spaces that include both the first device type and the second device type. The user can independently select the name of one of the preset device spaces through the preset device space list, and the terminal 102 creates a target device space with the same name on the space configuration interface 30 based on the name of the preset device space selected by the user, and assigns the first device card 32 and the second device card 34 to the target device space.

[0105] In one embodiment, Figure 8As shown, according to the comparison result of the preset device space and the configured device space, determining the target device space includes the following steps S802 to S804:

[0106] Step S802: If the configured device space does not include a device space with the same name as the preset device space, then a target device space with the same name as the preset device space is created.

[0107] The device space with the same name is a configured device space with the same name as a preset device space including both the first device type and the second device type.

[0108] Specifically, when the configured device space does not contain a configured device space with the same name as the preset device space that includes both the first device type and the second device type, the terminal 102 can create a target device space with the same name as the preset device space in the space configuration interface 30 to assign the first device card 32 and the second device card 34 to the target device space.

[0109] Step S804: If the configured device space includes a device space with the same name as the preset device space, determine the device space with the same name as the target device space according to the input instruction, or create a target device space associated with the name of the preset device space according to the input instruction.

[0110] Specifically, when all configured device spaces displayed on the space configuration interface 30 already include a configured device space with the same name as a preset device space that includes both the first device type and the second device type, the terminal 102 can determine the device space with the same name as the target device space based on the user's input instructions, or create a target device space associated with the name of the preset device space based on the user's input instructions.

[0111] For example, taking the name of the above-mentioned preset device space as "smart bathroom", the name associated with the name of the preset device space can be "smart bathroom (1)", "smart bathroom 1", "smart bathroom a", etc., to distinguish it from the name of the currently configured device space.

[0112] In one embodiment, Figure 9 As shown, the step of determining the target device space according to the comparison results of the plurality of preset device spaces and the configured device space includes the following steps S902 to S904:

[0113] Step S902: If there is at least one preset device space in all preset device spaces that has a name different from that of the configured device space, then a target device space with the same name as the preset device space with the least device types is created;

[0114] The above-mentioned all preset device spaces refer to all preset device spaces in the device space library that contain both the first device type and the second device type.

[0115] Specifically, when there is at least one preset device space with a name different from that of the configured device space among all preset device spaces that include both the first device type and the second device type, the terminal 102 will create a target device space with the same name as the preset device space with the least device types in the space configuration interface 30 to assign the first device card 32 and the second device card 34 to the target device space.

[0116] For example, taking the first device type as "human body sensor" and the second device type as "smart lighting" as an example, if the device space library includes the following preset device spaces with names different from those of the configured device spaces: "Space name: smart room; device type: human body sensor, smart lighting", "Space name: smart living room; device type: human body sensor, smart lighting, smart curtains", "Space name: smart kitchen; device type: human body sensor, smart lighting, smart heat pump, smart wall-mounted boiler", the terminal 102 will create a target device space with the same name as the preset device space named "smart room" in the space configuration interface 30 to assign the first device card 32 and the second device card 34 to the target device space named "smart room".

[0117] Step S904 : If all preset device spaces have configured device spaces with the same name, one of the configured device spaces is selected as the target device space according to the input instruction, or an unnamed device space is created as the target device space according to the input instruction.

[0118] Specifically, when all preset device spaces that include both the first device type and the second device type have configured device spaces with the same name in the space configuration interface 30, the terminal 102 will attempt to obtain the user's input instructions and select one of the configured device spaces as the target device space based on the user's input instructions. Alternatively, an unnamed device space can be directly created as the target device space in the space configuration interface 30 based on the user's input instructions, so that the first device card 32 and the second device card 34 can be assigned to the above-mentioned target device space.

[0119] In one embodiment, Figure 10 As shown, the interaction method further includes the following steps S206 to S208:

[0120] Step S206 , if the first device card 32 has been allocated to the first device space and the second device card 34 has not been allocated, or if the second device card 34 has been allocated to the first device space and the first device card 32 has not been allocated, allocate the first device card 32 and the second device card 34 to the first device space.

[0121] The first device space is a configured device space displayed on the space configuration interface 30 and to which the first device card 32 or the second device card 34 is allocated.

[0122] For details, please refer to Figure 11 For example, if the second device card 34 has been assigned to the first device space and the first device card 32 has not yet been assigned, when the user brings the first device card 32 close to the second device card 34 in the space configuration interface 30, the first device card 32 and the second device card 34 can be assigned to the first device space. In some examples, when the user brings the first device card 32 into contact with the edge of the first device space or moves it into the first device space in the space configuration interface 30, the first device card 32 and the second device card 34 can also be assigned to the first device space.

[0123] In step S208 , if the first device card 32 has been allocated to the first device space and the second device card 34 has been allocated to the second device space, the first device card 32 is moved to the second device space.

[0124] The first device space is a configured device space displayed on the space configuration interface 30 and to which the second device card 34 is allocated.

[0125] Specifically, please refer to Figure 12 When the first device card 32 is assigned to the first device space and the second device card 34 is assigned to the second device space, the terminal 102 moves the first device card 32 originally in the first device space to the second device space where the second device card 34 is located.

[0126] In one embodiment, the interaction method further includes the following steps S210:

[0127] Step S210 : If the first device card 32 and the second device card 34 have been assigned to the same device space, a target linkage scenario for the first device type and the second device type is generated.

[0128] A scenario on a smart home control platform refers to a smart device linkage operation mode set according to user needs. In actual applications, a scenario on a smart home control platform can consist of a set of specific actions or states. When a user triggers a scenario, multiple sub-devices associated with the scenario will operate according to the preset actions or states. A target linkage scenario refers to a smart device linkage operation mode for a first device type and a second device type.

[0129] Specifically, when the first device card 32 and the second device card 34 are assigned to the same device space, the terminal 102 will automatically generate a target linkage scene for the first device type and the second device type, so that the user can automatically configure the action or status of the sub-device associated with the first device card 32 and the second device card 34 through the target linkage scene.

[0130] In one embodiment, Figure 13 As shown, the step of generating a target linkage scene for a target device space includes the following steps S132 to S136:

[0131] Step S132: Matching is performed in a preset scene library based on the first device type and the second device type to obtain a scene matching result.

[0132] The preset scene library includes multiple preset linkage scenes, and one preset linkage scene corresponds to multiple device cards of different device types. It should be noted that the data of the preset scene library can be stored in the memory of the terminal 102 and / or the server.

[0133] Specifically, when the first device card 32 and the second device card 34 are assigned to the same device space, the terminal 102 will match the first device type and the second device type in the preset scene library to obtain a scene matching result. The scene matching result can be used to determine whether there is a preset linkage scene in the preset scene library that includes both the first device type and the second device type.

[0134] Step S134: If the scene matching result shows that there is a preset linkage scene including both the first device type and the second device type, the preset linkage scene is determined as the target linkage scene.

[0135] Specifically, when it is determined according to the scene matching result that there is a preset linkage scene in the preset scene library that includes both the first device type and the second device type, the terminal 102 will determine the preset linkage scene as the target linkage scene.

[0136] In some examples, when there are multiple preset linkage scenes containing both the first device type and the second device type in the preset scene library, the terminal 102 selects one of the preset linkage scenes as the target linkage scene according to the user's input instruction.

[0137] Step S136: If the scene matching result is that there is no preset linkage scene including both the first device type and the second device type, then enter the scene configuration interface and generate a target linkage scene according to the input scene configuration instruction.

[0138] Specifically, if the preset scene library determines, based on the scene matching results, that no preset linkage scene exists that includes both the first device type and the second device type, terminal 102 automatically switches from space configuration interface 30 to the scene configuration interface, and generates the corresponding target linkage scene in accordance with the scene configuration instructions input by the user. Furthermore, the scene configuration interface allows configuration of the scene execution conditions and scene execution tasks for the target linkage scene; the scene execution tasks include device execution actions and device operating status.

[0139] For example, take the first device type as "smart electric water heater" and the second device type as "smart lighting" as an example. When it is determined based on the scene matching result that there is no preset linkage scene in the preset scene library that includes both "smart electric water heater" and "smart lighting", the terminal 102 can automatically generate a target linkage scene for the sub-devices associated with the first device card 32 and the second device card 34 in the scene configuration interface. The user can name the target linkage scene "bathing scene", and the scene execution condition of the target linkage scene can be set to "manual trigger", and the scene execution task can include two subtasks: the first subtask can be set to "smart electric water heater: switch on, target temperature 40°C, bathing mode half-tank", and the second subtask can be set to "smart lighting: switch on".

[0140] It can be understood that this application automatically generates linkage scenes or automatically enters the scene configuration interface after the space configuration is completed through the above method, which can simplify the user's operations on the smart home control platform, thereby effectively reducing the user's operating costs for scene configuration.

[0141] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.

[0142] In an exemplary embodiment, an electronic device is provided. The electronic device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 14 As shown. The electronic device includes a processor, memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are connected to the system bus via the input / output interface. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The input / output interface of the electronic device is used to exchange information between the processor and external devices. The communication interface of the electronic device is used to communicate with external terminals via wired or wireless means, and the wireless means can be implemented via Wi-Fi, a mobile cellular network, near-field communication (NFC), or other technologies. When executed by the processor, the computer program implements a method for interacting with a smart home control interface. The display unit of the electronic device is used to form a visually visible image, and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the electronic device casing, or an external keyboard, touchpad or mouse.

[0143] Those skilled in the art will understand that Figure 14 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0144] In one embodiment, an electronic device is further provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above method embodiments when executing the computer program.

[0145] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0146] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0147] Those skilled in the art will understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. In particular, any reference to memory, database, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The databases involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the various embodiments provided herein may be, but are not limited to, general-purpose processors, central processing units (CPUs), graphics processing units (GPUs), digital signal processors (DSPs), programmable logic devices (PLDs), quantum computing-based data processing logic devices, artificial intelligence (AI) processors, and the like.

[0148] The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0149] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.

Claims

1. A method for interacting with a smart home control interface, characterized in that: The method comprises: Displaying a first device card of a first device type and a second device card of a second device type on the space configuration interface; In response to a control instruction in the space configuration interface to move the first device card close to the second device card, if the first device card and the second device card are not allocated, the first device card and the second device card are allocated to the target device space according to the first device type and the second device type.

2. The interactive method according to claim 1, characterized in that The step of allocating the first device card and the second device card to the target device space according to the first device type and the second device type includes: Matching the first device type and the second device type in a device space library to obtain a space matching result; wherein the device space library includes a plurality of preset device spaces, and one of the preset device spaces corresponds to a plurality of device cards of different device types; The target device space is determined based on the space matching result, and the first device card and the second device card are allocated to the target device space.

3. The interactive method according to claim 2, characterized in that: The step of determining the target device space based on the space matching result and allocating the first device card and the second device card to the target device space includes: If the space matching result is that there is a preset device space that includes both the first device type and the second device type, determining the target device space based on the preset device space; If the space matching result is that there is no preset device space containing both the first device type and the second device type, an unnamed device space is created as the target device space.

4. The interactive method according to claim 3, characterized in that: The step of determining the target device space based on the preset device space includes: Acquire a configured device space, and determine the target device space according to a comparison result between the preset device space and the configured device space; wherein the configured device space is a device space that has been configured with at least one device card.

5. The interactive method according to claim 3, characterized in that: The step of determining the target device space based on the preset device space includes: Obtaining the amount of the preset device space; If the number of the preset device spaces is not greater than 1, obtaining the configured device space, and determining the target device space according to a comparison result between the preset device space and the configured device space; If the number of the preset device spaces is greater than 1, the target device space is determined according to a comparison result of the plurality of the preset device spaces and the configured device space.

6. The interactive method according to claim 4 or 5, characterized in that: Determining the target device space according to a comparison result between the preset device space and the configured device space includes: If the configured device space does not include a device space with the same name as the preset device space, creating the target device space with the same name as the preset device space; If the configured device space includes a device space with the same name as the preset device space, the device space with the same name is determined as the target device space according to the input instruction, or the target device space associated with the name of the preset device space is created according to the input instruction.

7. The interactive method according to claim 5, characterized in that: The step of determining the target device space according to the comparison results of the plurality of preset device spaces and the configured device space comprises: If there is at least one preset device space in all the preset device spaces that has a name different from that of the configured device space, creating the target device space having the same name as that of the preset device space with the least device types; If all the preset device spaces have the configured device space with the same name, one of the configured device spaces is selected as the target device space according to the input instruction, or an unnamed device space is created as the target device space according to the input instruction.

8. The interactive method according to claim 1, characterized in that: Interaction methods also include: If the first device card has been assigned to the first device space and the second device card has not been assigned, or if the second device card has been assigned to the first device space and the first device card has not been assigned, assigning the first device card and the second device card to the first device space; If the first device card has been assigned to the first device space and the second device card has been assigned to the second device space, the first device card is moved to the second device space.

9. The interactive method according to claim 1, characterized in that: Interaction methods also include: If the first device card and the second device card have been assigned to the same device space, a target linkage scenario for the first device type and the second device type is generated.

10. The interactive method according to claim 9, characterized in that: The step of generating a target linkage scenario for the first device type and the second device type includes: Obtaining a scene matching result based on matching the first device type and the second device type in a preset scene library; wherein the preset scene library includes a plurality of preset linkage scenes, and one of the preset linkage scenes corresponds to a plurality of device cards of different device types; If the scene matching result is that there is a preset linkage scene including both the first device type and the second device type, determining the preset linkage scene as the target linkage scene; If the scene matching result is that there is no preset linkage scene including both the first device type and the second device type, then entering a scene configuration interface, and generating the target linkage scene according to the input scene configuration instruction.