Device control method, system, electronic device, and readable storage medium

By displaying the recommended page layout for the number of controlled objects and configuring the target control page, the problem of poor user convenience in controlling multiple devices is solved, and unified control and convenient operation of multiple devices are achieved.

CN122152188APending Publication Date: 2026-06-05SHENZHEN LUMIUNITED TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN LUMIUNITED TECH CO LTD
Filing Date
2026-02-27
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

When users control multiple devices, they need to go to each device's location to operate them, resulting in poor control convenience. Existing device control solutions cannot adapt to user needs, leading to configuration burdens and unattractive visuals.

Method used

The first electronic device responds to the configuration operation, displays the associated controlled objects, recommends a page layout based on the number of target controlled objects, and configures the target control page after confirmation, including control components for each target controlled object, so as to achieve unified control of multiple devices.

Benefits of technology

It improves the ease of user control over devices, enabling flexible control of multiple devices through a single control page, reducing user configuration burden and visual interference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122152188A_ABST
    Figure CN122152188A_ABST
Patent Text Reader

Abstract

The application relates to a device control method, system, electronic device and readable storage medium, and relates to the technical field of device control. The method comprises the following steps: in response to a configuration operation of a control page of a second electronic device, at least one controlled object associated with the second electronic device is displayed; at least one recommended page layout is displayed according to the number of target controlled objects selected from the controlled objects; the target controlled objects are at least one of the controlled objects; in response to a confirmation operation on any one of the recommended page layouts, a target page layout is obtained, a target control page corresponding to the target page layout is configured for the second electronic device according to the target page layout, and control operations on the target controlled objects are realized through the target control page in the second electronic device; and the target control page comprises control components of the target controlled objects. The method can enhance the control convenience of the user for the device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of equipment control technology, and in particular to an equipment control method, apparatus, system, electronic device, computer-readable storage medium, and computer program product. Background Technology

[0002] With the development of IoT technology, more and more devices are being used in production and daily life. Since different devices are usually located in different places, if a user wants to control multiple devices, they need to go to the corresponding location of each device separately. Even if the devices can be remotely controlled through a terminal, since each device has its own device page, the user still needs to operate on each device's page separately. In summary, this results in poor convenience for users to control the devices. Summary of the Invention

[0003] Therefore, it is necessary to provide a device control method, apparatus, system, electronic device, computer-readable storage medium, and computer program product that can enhance the ease of user control of the device, addressing the aforementioned technical problem of poor user control of the device.

[0004] In a first aspect, a device control method is provided, applied to a first electronic device, comprising:

[0005] In response to a configuration operation on the control page of the second electronic device, at least one controlled object associated with the second electronic device is displayed;

[0006] Based on the number of objects in the selected target controlled object, display at least one recommended page layout; the target controlled object is at least one of the controlled objects.

[0007] In response to a confirmation operation on any of the recommended page layouts, a target page layout is obtained. Based on the target page layout, a target control page corresponding to the target page layout is configured for the second electronic device, so that control operations on each of the target controlled objects can be implemented in the second electronic device through the target control page; the target control page includes control components for each of the target controlled objects.

[0008] Secondly, another device control method is also provided, applied to a second electronic device, including:

[0009] A target control page generated by a first electronic device is obtained; the first electronic device generates the target control page according to a device control method applied to the first electronic device; the target control page includes at least one control component for a target controlled object;

[0010] The target control page is displayed, and in response to the control operation of the target control component, a corresponding control command is issued to the target controlled object corresponding to the target control component; the target control component is any one of the control components.

[0011] Thirdly, this application also provides a device control apparatus, comprising:

[0012] The object display module is used to display at least one controlled object associated with the second electronic device in response to configuration operations on the control page of the second electronic device;

[0013] The layout recommendation module is used to display at least one recommended page layout based on the number of objects of the selected target controlled object; the target controlled object is at least one of the controlled objects.

[0014] A page generation module is used to obtain a target page layout in response to a confirmation operation on any of the recommended page layouts, and to configure a target control page corresponding to the target page layout for the second electronic device, so as to realize the control operation of each target controlled object in the second electronic device through the target control page; the target control page includes control components for each target controlled object.

[0015] Fourthly, this application also provides another device control apparatus, including:

[0016] A page acquisition module is used to acquire a target control page generated by a first electronic device; the first electronic device generates the target control page according to a device control method applied to the first electronic device; the target control page includes at least one control component for a target controlled object;

[0017] The object control module is used to display the target control page and, in response to the control operation of the target control component, issue corresponding control commands to the target controlled object corresponding to the target control component; the target control component is any one of the control components.

[0018] Fifthly, this application also provides an equipment control system, the system comprising a first electronic device, a second electronic device, and at least one target controlled object;

[0019] The first electronic device is configured to, in response to a configuration operation of a control page for the second electronic device, display at least one controlled object associated with the second electronic device; display at least one recommended page layout based on the number of objects of the selected target controlled object; wherein the target controlled object is at least one of the controlled objects; and, in response to a confirmation operation of any of the recommended page layouts, obtain a target page layout, and configure a target control page corresponding to the target page layout for the second electronic device based on the target page layout, so as to realize control operations on each of the target controlled objects in the second electronic device through the target control page.

[0020] The second electronic device is used to display the target control page and, in response to a control operation on the target control component, to issue a corresponding control command to the target controlled object corresponding to the target control component; the target control component is any one of the control components.

[0021] Sixthly, this application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0022] In response to a configuration operation on the control page of the second electronic device, at least one controlled object associated with the second electronic device is displayed;

[0023] Based on the number of objects in the selected target controlled object, display at least one recommended page layout; the target controlled object is at least one of the controlled objects.

[0024] In response to a confirmation operation on any of the recommended page layouts, a target page layout is obtained. Based on the target page layout, a target control page corresponding to the target page layout is configured for the second electronic device, so that control operations on each of the target controlled objects can be implemented in the second electronic device through the target control page; the target control page includes control components for each of the target controlled objects.

[0025] Seventhly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:

[0026] In response to a configuration operation on the control page of the second electronic device, at least one controlled object associated with the second electronic device is displayed;

[0027] Based on the number of objects in the selected target controlled object, display at least one recommended page layout; the target controlled object is at least one of the controlled objects.

[0028] In response to a confirmation operation on any of the recommended page layouts, a target page layout is obtained. Based on the target page layout, a target control page corresponding to the target page layout is configured for the second electronic device, so that control operations on each of the target controlled objects can be implemented in the second electronic device through the target control page; the target control page includes control components for each of the target controlled objects.

[0029] Eighthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:

[0030] In response to a configuration operation on the control page of the second electronic device, at least one controlled object associated with the second electronic device is displayed;

[0031] Based on the number of objects in the selected target controlled object, display at least one recommended page layout; the target controlled object is at least one of the controlled objects.

[0032] In response to a confirmation operation on any of the recommended page layouts, a target page layout is obtained. Based on the target page layout, a target control page corresponding to the target page layout is configured for the second electronic device, so that control operations on each of the target controlled objects can be implemented in the second electronic device through the target control page; the target control page includes control components for each of the target controlled objects.

[0033] The aforementioned device control method, apparatus, system, electronic device, computer-readable storage medium, and computer program product, firstly, in response to a configuration operation of a control page for a second electronic device, a first electronic device displays at least one controlled object associated with the second electronic device; then, the first electronic device displays at least one recommended page layout based on the number of objects of the selected target controlled objects; the target controlled objects are at least one of the controlled objects; next, in response to a confirmation operation of any recommended page layout, the first electronic device obtains a target page layout, and configures a target control page corresponding to the target page layout for the second electronic device, so as to realize control operations on each target controlled object in the second electronic device through the target control page; the target control page includes control components for each target controlled object. Based on this application, based on the number of objects of each selected target controlled object, at least one recommended page layout can be determined and displayed, the confirmed recommended page layout can obtain a target page layout, and based on the target page layout, a target control page including control components for each target controlled object can be configured for the second electronic device, thereby realizing control of each target controlled object through a single target control page, thereby enhancing the user's convenience in controlling the device. Attached Figure Description

[0034] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0035] Figure 1 This is an application environment diagram of the device control method in one embodiment;

[0036] Figure 2 This is a flowchart illustrating a device control method in one embodiment;

[0037] Figure 3 This is a schematic diagram of a smart switch with a screen in one embodiment;

[0038] Figure 4 This is a schematic diagram showing each controlled object in response to a configuration operation on a control page, as shown in one embodiment.

[0039] Figure 5 This is a schematic diagram illustrating the layout of each recommended page based on the number of objects of the selected target controlled object in one embodiment;

[0040] Figure 6 This is a schematic diagram of a smart switch with a screen displaying a target control page in one embodiment;

[0041] Figure 7 This is a schematic diagram of the preset page layout corresponding to the preset number of objects from 1 to 4 in one embodiment;

[0042] Figure 8 This is a schematic diagram of four installation directions for a smart switch with a screen in one embodiment;

[0043] Figure 9 This is a schematic diagram of how preset page layouts corresponding to different preset installation directions are applied to a smart switch with a screen in one embodiment.

[0044] Figure 10 This is a schematic diagram showing a preview of the layout of each recommended page in one embodiment;

[0045] Figure 11 This is a schematic diagram illustrating how, in one embodiment, in a layout selection page, in response to the selection of a preview image of any recommended page layout, the selected recommended page layout is determined as the new target recommended page layout, and the preview image of the new target recommended page layout is highlighted.

[0046] Figure 12This is a schematic diagram of determining a first controlled scheme for a physical switchgear in response to a controlled scheme configuration operation for the physical switchgear in one embodiment.

[0047] Figure 13 This is a schematic diagram of the target control page displayed by a smart switch with a screen in one embodiment;

[0048] Figure 14 This is a schematic diagram illustrating multiple control strategies in one embodiment for a user to select a target control strategy;

[0049] Figure 15 Another embodiment is a flowchart illustrating the device control method;

[0050] Figure 16 This is a schematic diagram showing the component area of ​​the control component of the smart lighting fixture on the target control page when the control component of the smart lighting fixture is triggered in one embodiment.

[0051] Figure 17 This is a schematic diagram showing the component area of ​​the control component of the second controlled scheme in the target control page when the control component of the second controlled scheme is triggered in one embodiment.

[0052] Figure 18 This is a schematic diagram of the component area of ​​the smart curtain control component displayed on the target control page when the control component of the smart curtain is triggered in one embodiment.

[0053] Figure 19 This is a schematic diagram showing the component area of ​​the control component of the smart door lock on the target control page when the control component of the smart door lock is triggered in one embodiment.

[0054] Figure 20 This is a schematic diagram illustrating the display of an error message when a smart door lock malfunctions, as shown in one embodiment.

[0055] Figure 21 This is a schematic diagram of the screen display direction corresponding to each preset installation direction in one embodiment;

[0056] Figure 22 This is a schematic diagram illustrating the process of obtaining a target screen display orientation in response to a user's screen display orientation adjustment operation in one embodiment.

[0057] Figure 23 This is a schematic diagram of a smart home system in one embodiment;

[0058] Figure 24 This is a structural block diagram of the device control apparatus in one embodiment;

[0059] Figure 25 This is a structural block diagram of the device control apparatus in another embodiment;

[0060] Figure 26 This is a schematic diagram of the device control system in one embodiment;

[0061] Figure 27 This is a diagram of the internal structure of an electronic device in one embodiment. Detailed Implementation

[0062] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0063] It should be noted that the terms "first," "second," etc., used in this application can be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from the second element. The terms "comprising" and "having," and any variations thereof, used in this application, are intended to cover non-exclusive inclusion. The term "multiple" used in this application refers to two or more. The term "and / or" used in this application refers to one of the embodiments, or any combination of multiple embodiments.

[0064] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0065] With the development of IoT technology, more and more devices are being used in production and daily life. Since different devices are typically located in different places, if a user wants to control multiple devices, they need to go to the corresponding location of each device. For example, to control the air conditioner in the living room, the user needs to go to the living room; to control the water heater in the bathroom, the user needs to go to the bathroom. Even with remote control via a terminal, each device has its own interface, requiring the user to operate on each interface separately. For example, to control the air conditioner in the living room, the user needs to open the air conditioner's interface; to control the water heater in the bathroom, the user needs to switch to the water heater's interface. In summary, this results in poor convenience for users controlling the devices.

[0066] Furthermore, some related technologies integrate the control of multiple devices into a single page; however, these solutions either limit the number of devices that can be configured on each page, failing to adapt to user needs (e.g., requiring users to configure four devices on a single page, potentially leading to unnecessary configurations and increased user burden, while also interfering with device control), or divide each page into a fixed number of areas for device control. When a page cannot be fully configured, empty areas appear, which is visually unappealing and also hinders user control. In conclusion, these technologies still result in relatively poor user convenience in controlling devices.

[0067] To address the aforementioned issues, this application proposes that, in response to a configuration operation on a control page of a second electronic device, a first electronic device displays at least one controlled object associated with the second electronic device; the first electronic device displays at least one recommended page layout based on the number of objects of the selected target controlled objects; the target controlled objects are at least one of the controlled objects; in response to a confirmation operation on any recommended page layout, the first electronic device obtains a target page layout, and configures a target control page corresponding to the target page layout for the second electronic device, so that control operations on each target controlled object can be implemented in the second electronic device through the target control page; the target control page includes control components for each target controlled object. Based on this application, at least one recommended page layout can be determined and displayed based on the number of objects of each selected target controlled object; the confirmed recommended page layout can yield a target page layout; and based on the target page layout, a target control page including control components for each target controlled object can be configured for the second electronic device, thereby enabling control of each target controlled object through a single target control page, thus enhancing the user's convenience in controlling the device.

[0068] The device control method provided in this application embodiment can be applied to, for example, Figure 1 The application environment shown includes a terminal device 102 and a smart device 104 communicatively connected to the terminal device 102. The number of terminal devices 102 and smart devices 104 can be at least one. In specific applications, such as... Figure 1 The application environments shown can be, but are not limited to, smart home systems or industrial IoT systems.

[0069] The following explanation uses an application in a smart home system as an example.

[0070] Among them, terminal device 102 refers to the terminal used by the user, which may include smart interactive terminals such as smartphones, large screens, TVs, central control screens, personal computers (PCs), tablets, and personal digital assistants (PDAs).

[0071] Among them, smart devices 104 may include various smart home devices installed in indoor spaces, including but not limited to smart switches with screens, smart door locks, smart windows, smart curtains, smart lights, smart clothes racks, smart TVs, smart speakers, smart air conditioners, smart fans, smart refrigerators, smart sockets, smart switches, smart sensor devices, etc. The smart sensor devices include but are not limited to light sensors, temperature and humidity sensors, sound sensors, infrared sensors, door magnetic sensors, PM2.5 sensors, gas concentration sensors, human body sensors, millimeter-wave radar, etc.

[0072] Optionally, the terminal device 102 runs an application (App) for a smart home system. This application provides an intuitive visual interface, allowing users to view and controllable smart devices 104. For example, a user can quickly and accurately select the smart device 104 to be controlled and perform control operations on it. Based on the user's selection and control operations, the terminal device 102 controls the selected smart device 104 through a communication connection.

[0073] In this embodiment, the smart home system may further include a gateway 106 that is communicatively connected to the terminal device 102 and the smart device 104. The number of gateways 106 may be at least one.

[0074] In some implementations, gateway 106 can be an intelligent gateway capable of controlling intelligent device 104, enabling functions such as system information collection, information input, information output, centralized control, remote control, and linkage control. Gateway 106 can be responsible for specific security alarms, home appliance control, and electricity consumption information collection. Gateway 106 can also wirelessly interact with products such as intelligent interactive terminals. Gateway 106 also possesses wireless routing capabilities, excellent wireless performance, network security, and coverage.

[0075] In some implementations, the smart device 104 connected to the gateway 106 can interact with the gateway 106 to exchange information and commands. The gateway 106 and the smart device 104 can be connected via communication methods such as Bluetooth, WiFi (Wireless-Fidelity), and ZigBee. Of course, the connection method between the gateway 106 and the smart device 104 is not specifically limited in this embodiment.

[0076] In this embodiment, the smart home system may further include a server 108 that is communicatively connected to the gateway 106. The server 108 may be a local server, a cloud server, or other server. The server 108 may be implemented using a standalone server or a server cluster composed of multiple servers. The specific type of server is not limited in this embodiment.

[0077] In some implementations, the server 108 connected to the gateway 106 can exchange information with the gateway 106 wirelessly. Gateways 106 located in different indoor spaces can all communicate with the same server 108 via a network to exchange information between the server 108 and the gateway 106.

[0078] In some implementations, the terminal device 102 can interact with the server 108 via wireless methods such as 2G / 3G / 4G / 5G / WiFi. Of course, the connection method between the terminal device 102 and the server 108 is not limited in this embodiment.

[0079] In this embodiment of the application, the smart home system may further include a router 110 that is communicatively connected to the gateway 106.

[0080] In some implementations, terminal device 102 can also be used to interact with users, facilitating wireless communication between users and gateway 106 via router 110. Additionally, users can add account information to both gateway 106 and terminal device 102, enabling information synchronization between the two devices.

[0081] In one embodiment, a user can set different control schemes through an application of the smart home system running on the terminal device 102. These control schemes include scene control schemes and automation control schemes. As one approach, the terminal device 102 can upload the control scheme to the server 108, so that when the triggering conditions of the control scheme are met, the server 108 notifies the execution device in the control scheme to execute the actions in the scene control scheme to achieve the corresponding execution result. Alternatively, the server 108 can also send the control scheme to the gateway 106, which then notifies the execution device in the control scheme to execute the actions in the control scheme. Simultaneously, the gateway 106 can feed back the execution status of the execution device to the server 108.

[0082] For example, such as Figure 1 The LAN path shown indicates that terminal device 102 is in the same LAN as router 110 and gateway 106, while the WAN path indicates that terminal device 102 is not in the same LAN as router 110 and gateway 106. Specifically, when terminal device 102 is in the same LAN as router 110 and gateway 106, terminal device 102 can access the WAN path as shown below. Figure 1 The local area network path shown interacts with gateway 106 and smart device 104 connected to gateway 106; it can also be used through, for example... Figure 1 The wide area network path shown interacts with gateway 106 and smart device 104 connected to gateway 106. When terminal device 102 is not in the same local area network as router 110 and gateway 106, terminal device 102 can interact via, as shown in... Figure 1 The wide area network path shown interacts with gateway 106 and smart device 104 connected to gateway 106.

[0083] In another implementation, the smart device 104 may not be connected to the gateway 106, but can directly establish a connection with the terminal device 102 via wireless communication (such as ZigBee or Bluetooth) to transmit data. It should be noted that in the embodiments of this application, the terminal device 102 can send control commands to the smart device 104, thereby controlling the operation of the smart device 104.

[0084] In another implementation, the smart devices 104 can communicate with each other directly via wireless communication methods (such as ZigBee or Bluetooth) instead of through the gateway 106. It should be noted that in the embodiments of this application, the smart devices 104 can send control commands to each other to control each other's operation.

[0085] For example, such as Figure 1The application environment shown includes a first electronic device and a second electronic device. Both the first electronic device and the second electronic device can be terminal device 102, smart device 104, gateway 106, or server 108, etc.; further, the first electronic device is terminal device 102 and the second electronic device is smart device 104.

[0086] In some embodiments, firstly, in response to a configuration operation of a control page for a second electronic device, the first electronic device displays at least one controlled object associated with the second electronic device; then, the first electronic device displays at least one recommended page layout based on the number of objects of the selected target controlled objects; the target controlled objects are at least one of the controlled objects; next, in response to a confirmation operation of any recommended page layout, the first electronic device obtains a target page layout, and configures a target control page corresponding to the target page layout for the second electronic device, so as to realize control operations on each target controlled object in the second electronic device through the target control page; the target control page includes control components for each target controlled object.

[0087] In some other embodiments, firstly, the second electronic device acquires a target control page generated by the first electronic device; the target control page includes a control component for at least one target controlled object; then, the second electronic device displays the target control page and, in response to a control operation on the target control component, issues a corresponding control command to the target controlled object corresponding to the target control component; the target control component is any one of the control components.

[0088] In one embodiment, such as Figure 2 As shown, a device control method is provided. This method is applicable to a first electronic device, which may be as follows: Figure 1 The system shown includes terminal devices, smart devices, gateways, or servers, with the first electronic device used to demonstrate, for example... Figure 1 The system shown illustrates the device pages for each device (terminal device, smart device, gateway, or server). The first electronic device integrates a display screen, which displays the device pages of each device to allow the user to navigate to them. Figure 1 The system described above manages and configures various devices within it. In some embodiments, a device page includes at least one page, such as a main page and subpages. By triggering operations on various components within the device page, the device page can navigate between its included pages. In this application, triggering operations on components within a page include, but are not limited to, clicking, long-pressing, swiping, and selecting. Navigation between pages can be either opening a new page or covering a portion of an already opened page to display a new page. See also... Figure 2 In this embodiment, the method includes the following steps:

[0089] Step S202, in response to the configuration operation of the control page for the second electronic device, displays at least one controlled object associated with the second electronic device.

[0090] The second electronic device can be, for example, Figure 1 The system shown includes intelligent devices, terminal devices, gateways, or servers, and further, the second electronic device integrates a display screen; in some embodiments, the first electronic device and the second electronic device are different electronic devices; in other embodiments, the first electronic device and the second electronic device are the same electronic device; in practical applications, the first electronic device is as follows: Figure 1 The terminal device in the system shown, the second electronic device is as follows Figure 1 The intelligent devices in the system shown.

[0091] The control page for the second electronic device refers to the control page that needs to be displayed on the screen of the second electronic device.

[0092] The second electronic device is associated with at least one controlled object. The controlled object refers to an object that can be controlled by the second electronic device. The controlled object can be a controlled device or a controlled scheme; the controlled device refers to an electronic device that can be controlled by the second electronic device, and can be, for example... Figure 1 The intelligent devices, gateways, or servers in the system shown may include, in practical applications, intelligent screen switches, intelligent door locks, intelligent windows, intelligent curtains, intelligent lights, intelligent clothes racks, intelligent TVs, intelligent speakers, intelligent air conditioners, intelligent fans, intelligent refrigerators, intelligent sockets, and intelligent switches, etc.; the controlled scheme refers to a control scheme that can be controlled by a second electronic device. The controlled scheme is configured with triggering conditions, execution devices, and execution actions. When the triggering conditions in the controlled scheme are triggered, the execution devices in the controlled scheme will execute the execution actions in the controlled scheme.

[0093] The controlled schemes are categorized into scene control schemes and automation control schemes based on their triggering methods. The triggering condition for a scene control scheme is "user-controlled execution of the scene control scheme." When a user controls the execution of the scene control scheme, the triggering condition is triggered, and the execution device within the scene control scheme performs the actions specified in the scheme. For example, if the scene control scheme is "when the user controls the execution of the scene control scheme, the smart door lock of the main gate performs the locking action," then the smart door lock will automatically perform the locking action when the user controls the execution of the scene control scheme. The triggering condition for an automation control scheme is a "preset condition." When the preset condition corresponding to the automation control scheme is met, the triggering condition is triggered, and the execution device within the automation control scheme performs the actions specified in the scheme. For example... The automated control scheme is defined as "when the time reaches 7 PM, the smart water heater in the bathroom will turn on its heating function." Therefore, when the time reaches 7 PM, the smart water heater in the bathroom will automatically turn on its heating function. When the automated control scheme is used as a controlled scheme, the triggering conditions in the scheme, in addition to "preset conditions," also include "user control to execute the automated control scheme." When either of these two types of conditions is met, the execution device in the automated control scheme will execute the action specified in the scheme, allowing the user to flexibly control whether the scheme is executed. That is, when the preset conditions corresponding to the automated control scheme are met, or when the user controls the execution of the scheme, the triggering conditions in the scheme are triggered, and the execution device executes the action specified in the scheme.

[0094] In this step, the first electronic device displays the device page of the second electronic device. The device page of the second electronic device includes a control page configuration entry component. When the user triggers the control page configuration entry component, the first electronic device determines that the user needs to configure the control page of the second electronic device. In response to the user's configuration operation on the control page of the second electronic device, the device page of the second electronic device redirects to an object selection page. The first electronic device displays the various controlled objects of the second electronic device on the object selection page. Furthermore, the device page of the second electronic device can also display control pages that have already been configured for the second electronic device. Taking a smart switch with a screen as an example, if... Figure 3 The diagram shows a smart switch with a display screen 302 and two switches 304. In some embodiments, the smart switch with a display screen can be installed on a wall; for example... Figure 4 The diagram shown illustrates the controlled objects in response to configuration operations on the control page. For example, Figure 4 (a) shows the device page of the smart switch with screen, as follows: Figure 4(b) shows the object selection page; see below. Figure 4 (a) The device page of the smart switch with screen includes a control page configuration entry component 402. When the user triggers the control page configuration entry component 402, the device page of the smart switch with screen jumps to, for example, Figure 4 (b) shows the object selection page, on which the first electronic device displays each controlled object of the smart screen switch.

[0095] In some embodiments, the object selection page includes a device entry component and a solution entry component. Users can select to view a controlled device or a controlled solution by triggering either the device entry component or the solution entry component. Taking a smart switch with a screen as an example, see [reference needed]. Figure 4 (b) The object selection page includes a device entry component 404 and a solution entry component 406. When the user triggers the device entry component 404, the first electronic device only displays the controlled device. When the user triggers the solution entry component 406, the first electronic device only displays the controlled solution.

[0096] In some embodiments, the object selection page includes a controlled object filtering component. Users can filter for corresponding controlled objects using this component. In practical applications, the controlled object filtering component includes a region filtering component and a type filtering component. The region filtering component includes multiple region sub-components, each corresponding to a different region. The type filtering component includes multiple type sub-components, each corresponding to a different type. Users can select and view controlled objects within a corresponding region and / or under a corresponding type by triggering different region sub-components and / or different type sub-components. Furthermore, users can trigger multiple region sub-components and / or type sub-components. Taking a smart screen switch as an example of a second electronic device, see [reference needed]. Figure 4 (b) The object selection page includes a region filter component 408 and a type filter component 410. When the user triggers any region sub-component under the region filter component 408 and / or any type sub-component under the type filter component 410, the first electronic device displays the controlled object in the region corresponding to the triggered region sub-component and / or the controlled object in the type corresponding to the triggered type sub-component. For example, when the user selects the region sub-component "living room" and the type sub-component "dimming lighting", the first electronic device displays the controlled object located in the living room for dimming lighting.

[0097] In some embodiments, the object selection page includes a controlled object search component. Users can use this component to find corresponding controlled objects. In practical applications, the controlled object search component is a text input box, where users can enter keywords for the controlled object they wish to find. Taking a smart screen switch as an example of a second electronic device, see [reference needed]. Figure 4 (b) The object selection page includes an object search component 412. When a user enters a keyword for a controlled object, the first electronic device will search for controlled objects that match the keyword entered by the user among the controlled objects associated with the smart screen switch and display them. For example, when a user enters the keyword "lamp" in the object search component 412, the first electronic device will display various smart lamps associated with the smart screen switch.

[0098] In some embodiments, the device page of the second electronic device further includes a configuration guidance entry component. When the user triggers the configuration guidance entry component, the device page of the second electronic device will jump to a configuration guidance prompt page. The first electronic device displays configuration guidance information for the control page in the configuration guidance prompt page to guide the user in configuring the control page. The configuration guidance prompt page includes a guidance information confirmation component. When the user triggers the guidance information confirmation component, the device page of the second electronic device jumps to an object selection page. Further, the configuration guidance information of the control page includes the maximum number of control pages that can be configured for the second electronic device, and the maximum number of target controlled objects that can be configured in each control page. For example, taking the second electronic device as a smart screen switch, the smart screen switch can be configured with a maximum of 6 control pages, and each control page can be configured with a maximum of 4 target controlled objects. In some embodiments, if the number of control pages that can be configured for the second electronic device has an upper limit, then when the number of control pages that can be configured for the second electronic device reaches the upper limit, the first electronic device hides the control page configuration entry component in the device page of the second electronic device.

[0099] In some embodiments, when a user triggers the configuration guidance entry component for the first time, the first electronic device first redirects to the configuration guidance prompt page on the device page of the second electronic device, and then, in response to the user's triggering operation of the confirmation component for the guidance information, redirects to the object selection page. Taking a smart switch with a screen as an example, if the second electronic device is a smart switch with a screen... Figure 4 (c) shows the configuration guidance prompt page; see below. Figure 4 (a) The device page of the smart switch with screen also includes a configuration guide entry component 414. When the user triggers the configuration guide entry component 414, the device page of the smart switch with screen jumps to, as shown below. Figure 4 (c) shows the configuration guidance prompt page, which displays configuration guidance information 416 for the control page to guide the user in performing control operations on the control page. See also Figure 4 (c) The configuration guidance prompt page includes a guidance information confirmation component 418. When the user triggers the guidance information confirmation component 418, the device page of the smart switch with screen jumps to, for example, Figure 4 (b) shows the object selection page.

[0100] Step S204: Display at least one recommended page layout based on the number of objects in the selected target controlled object.

[0101] Among them, the target controlled object is the selected controlled object among all controlled objects; the target controlled object is at least one of the controlled objects.

[0102] The recommended page layout is the page layout recommended by the first electronic device to the user; the page layout is used to characterize the arrangement of the control components of each target controlled object on a page, for example, the specific position of the control components of each target controlled object on a page.

[0103] In this step, in response to the user's selection of any controlled object, the first electronic device identifies the selected controlled object as the target controlled object. Then, based on the number of target controlled objects, the first electronic device determines the recommended page layouts to be presented to the user. After obtaining the recommended page layouts, the device page of the second electronic device redirects to the layout selection page, where the first electronic device displays the recommended page layouts. Taking a smart switch with a screen as an example, for instance... Figure 5 The diagram shows the layout of each recommendation page based on the number of objects in the selected target controlled object. For example, Figure 5 (a) and Figure 5 (b) shows the object selection page, as follows: Figure 5 (c) shows the layout selection page; see below. Figure 5 (a) or Figure 5 (b) Users can, for example, Figure 5 (a) or Figure 5 (b) In the object selection page shown, any controlled object can be selected by the user. The first electronic device will determine the controlled object selected by the user as the target controlled object. If the number of target controlled objects selected by the user is 3, the first electronic device will determine the layout of each recommended page according to the number of objects "3", and the device page of the smart screen switch will jump to the following. Figure 5 (c) shows the layout selection page, and previews of the recommended page layouts are displayed on the layout selection page.

[0104] Step S206: In response to the confirmation operation of any recommended page layout, a target page layout is obtained. Based on the target page layout, a target control page corresponding to the target page layout is configured for the second electronic device, so that control operations on each target controlled object can be realized in the second electronic device through the target control page.

[0105] The target control page includes control components for each target controlled object. Control operations on the target controlled object are implemented based on triggering operations on the control components of the target controlled object. For example, if the control component triggered by the user is the control component of a controlled device, the second electronic device sends a control command to the controlled device, and the controlled device responds to the control command by executing the corresponding action. As another example, in practical applications, if a scene control scheme is the target controlled object, the user triggers the trigger condition "user controls execution of scene control scheme" in the scene control scheme by triggering the control component of the scene control scheme on the target control page. If an automation control scheme is the target controlled object, the user triggers the trigger condition "user controls automation scene control scheme" in the automation control scheme by triggering the control component of the automation control scheme on the target control page. Therefore, if the control component triggered by the user is the control component of a controlled scheme, the second electronic device determines that the trigger condition in the controlled scheme has been triggered and sends a control command to the execution device in the controlled scheme. The execution device responds to the control command by executing the execution action in the controlled scheme.

[0106] In this step, the layout selection page includes a page layout confirmation component. When the user selects any recommended page layout and triggers the page layout confirmation component, the first electronic device determines that the user has confirmed the selected recommended page layout. In response to the user's confirmation operation, the first electronic device identifies the confirmed recommended page layout as the target page layout and generates a target control page based on the target page layout and the control components of each target controlled object. The generated target control page is then sent to the second electronic device. The second electronic device locally stores the target control page sent by the first electronic device and then displays the target control page, allowing the user to control each target controlled object based on the target control page displayed by the second electronic device. For example, if the second electronic device is a smart switch with a screen, please refer to [link to relevant documentation]. Figure 5 (c) The layout selection page includes a page layout confirmation component 504. When the user selects any recommended page layout and triggers the page layout confirmation component 504, the first electronic device generates a target control page for the smart screen switch based on the recommended page layout confirmed by the user and sends it to the smart screen switch for display; for example, such as Figure 6 The diagram shows a smart switch with a screen displaying the target control page. Assuming the controlled objects are the bedroom light, the living room air conditioner, and the living room switch, then... Figure 6 As shown, the smart switch with screen displays the target control page 602 corresponding to the bedroom lights, living room air conditioner, and living room switches.

[0107] In some embodiments, the target controlled object has at least one function; for example, taking the target controlled object as a smart lamp, the function of the smart lamp includes at least a switch function, and may also include a brightness adjustment function, a color temperature adjustment function, etc.; for another example, taking the target controlled object as a smart water heater, the function of the smart water heater includes at least a switch function, and may also include a temperature adjustment function, etc.; for yet another example, taking the target controlled object as a smart air conditioner, the function of the smart air conditioner includes at least a switch function, and may also include a temperature adjustment function and a mode switching function that switches between cooling mode, heating mode, and dehumidification mode; for yet another example, taking the target controlled object as a smart curtain, the function of the smart curtain includes at least a curtain opening and closing start / stop function, and may also include a curtain opening degree adjustment function; for yet another example, taking the target controlled object as a smart door lock, the function of the smart door lock includes at least a locking function and an unlocking function. The first electronic device generates control components for the target controlled object based on the target function of the target controlled object. The target function is at least one of the functions of the target controlled object. For example, different target functions correspond to different component operation methods, and different component operation methods correspond to different component styles. For instance, if the target function is a switch function, the component operation method can be clicking or long-pressing; therefore, the control component needs to be clickable or long-pressable. Or, if the target function is the brightness adjustment function of a smart light fixture, the component operation method can be clicking or swiping; therefore, the control component needs to be clickable or swiping. Another example is if the target function is the temperature adjustment function of a smart water heater. To precisely adjust the temperature, the preferred operation method for the component is clicking. Therefore, the target control component needs to be clickable. For example, if the target function is the intelligent curtain opening and closing / starting / stopping function, then to facilitate the control of the curtain's opening and closing, the control operation method is clicking, and the clicking control component can enter multiple states such as fully open / pause / fully closed. Therefore, the first electronic device determines the corresponding component operation method based on the target function of the target controlled object, and then determines the corresponding component style. Then, it generates the corresponding control component based on the object identification information of the target controlled object and the corresponding component style. The object identification information is used to represent the target controlled object and includes icons and / or characters.

[0108] In the aforementioned device control method, firstly, in response to a configuration operation on the control page of the second electronic device, the first electronic device displays at least one controlled object associated with the second electronic device; then, the first electronic device displays at least one recommended page layout based on the number of objects of the selected target controlled objects; the target controlled objects are at least one of the controlled objects; next, in response to a confirmation operation on any recommended page layout, the first electronic device obtains a target page layout, and configures a target control page corresponding to the target page layout for the second electronic device, so that control operations on each target controlled object can be realized in the second electronic device through the target control page; the target control page includes control components for each target controlled object. Based on this application, at least one recommended page layout can be determined and displayed based on the number of objects of each selected target controlled object, and a target page layout can be obtained from the confirmed recommended page layout. Based on the target page layout, a target control page including control components for each target controlled object can be configured for the second electronic device, thereby realizing control of each target controlled object through a single target control page, thus enhancing the user's convenience in controlling the device.

[0109] In one embodiment, step S204 above, which displays at least one recommended page layout based on the number of objects of the selected target controlled objects, includes the following steps: determining at least one preset page layout that matches the number of objects to obtain at least one recommended page layout; determining a target recommended page layout in each recommended page layout according to the recommendation priority of each recommended page layout, and displaying a preview image of the target recommended page layout; and displaying a preview image of each recommended page layout in response to the confirmation operation of each target controlled object.

[0110] The first electronic device is pre-configured with corresponding preset page layouts for different preset object numbers. In practical applications, for the preset object number N, the first electronic device configures a corresponding preset page layout in an N-grid format, for example, as shown below. Figure 7 The diagram illustrates the preset page layouts corresponding to a preset number of objects ranging from 1 to 4. Furthermore, for each preset page layout corresponding to each preset number of objects, the first electronic device also configures a corresponding recommendation priority for each preset page layout. In some embodiments, the first electronic device configures a corresponding recommendation priority for each preset page layout based on the user's usage of each preset page layout, such as the number of times it is used. For example, the more times a preset page layout is used by the user, the higher its corresponding recommendation priority.

[0111] Among them, the target recommendation page layout is the recommendation page layout with the highest recommendation priority among all recommendation page layouts.

[0112] In this embodiment, while the user selects a target controlled object, the first electronic device, based on the number of objects, determines from a pre-configured set of preset page layouts that matches the number of objects in each of the currently selected target controlled objects as the recommended page layout. Then, the recommended page layout with the highest recommendation priority among all recommended page layouts is determined as the target recommended page layout, and a preview of the target recommended page layout is simultaneously displayed on the object selection page for the user to preview. The object selection page includes an object confirmation component. When the user triggers the object confirmation component, the first electronic device determines that the user has confirmed the currently selected target controlled objects. In response to the user's confirmation operation, the device page of the second electronic device jumps to the layout selection page, where the first electronic device displays previews of each recommended page layout for the user to preview. Taking a smart screen switch as an example, see [reference needed]. Figure 5 (a) and Figure 5 (b) While the user selects the target controlled object, the first electronic device simultaneously displays a preview image 506 of the target recommendation page layout on the object selection page, for example, such as... Figure 5 As shown in (a), when the number of controlled objects selected by the user is 2, the first electronic device displays a preview image 506 of the two-grid target recommendation page layout, as follows. Figure 5 As shown in (b), when the number of target controlled objects selected by the user is 3, the first electronic device displays a preview image 506 of the three-grid target recommendation page layout; in addition, see also Figure 5 (b) The object selection page includes an object confirmation component 508. When the user triggers the object confirmation component 508, the device page of the smart screen switch redirects to the following... Figure 5 (c) shows the layout selection page, and previews of the recommended page layouts are displayed on the layout selection page.

[0113] In this embodiment, the first electronic device can determine a recommended page layout from a set of pre-configured page layouts based on the number of objects in the target controlled object. Furthermore, based on the recommendation priority of each recommended page layout, it can determine a target recommended page layout. Displaying a preview of the target recommended page layout facilitates user previewing. Displaying previews of each recommended page layout after the user confirms the target controlled object further facilitates user previewing. Moreover, in related technologies, when configuring control pages for controlling other electronic devices on a screen-equipped electronic device, the layout of each control page is fixed. When a control page cannot be fully configured, an empty area may occur, resulting in low space utilization and an unattractive appearance. In this embodiment, however, by adaptively determining the recommended page layout based on the number of objects in the target controlled object, the situation of empty areas can be avoided, improving the space utilization of the generated control page and making it more aesthetically pleasing.

[0114] In one embodiment, the above steps, determining at least one preset page layout matching the number of objects and obtaining at least one recommended page layout, include the following steps: determining at least one first preset page layout matching the number of objects; determining at least one second preset page layout matching the installation method of the second electronic device from each first preset page layout; and obtaining each recommended page layout based on each second preset page layout.

[0115] The installation method of the second electronic device is used to characterize its installation orientation. The installation orientation of the second electronic device can be any one of multiple preset orientations, and different preset orientations represent different rotation angles at which the second electronic device is installed. In practical applications, the preset installation orientations of the second electronic device sequentially include a first orientation, a second orientation, a third orientation, and a fourth orientation. The rotation angle difference between any two adjacent orientations is 90 degrees. For example, different installation orientations of the second electronic device include a first orientation with a corresponding rotation angle of 0°, a second orientation with a corresponding rotation angle of 90°, a third orientation with a corresponding rotation angle of 180°, and a fourth orientation with a corresponding rotation angle of 270°. Taking a smart switch with a screen as an example, such as... Figure 8 The diagram shows four installation directions for a smart switch with a screen.

[0116] Since the second electronic device integrates a display screen, and the installation direction of the second electronic device affects the display screen's orientation, the first electronic device configures a corresponding preset page layout based on the preset number of objects and each preset installation direction, for each preset number of objects. Taking an example where the second electronic device is a smart switch with a display screen, the preset number of objects is 2, and the preset installation directions include a first installation direction, a second installation direction, a third installation direction, and a fourth installation direction, as follows: Figure 9 The diagram shows the application of various preset page layouts corresponding to different preset installation orientations on a smart switch with a screen. Figure 9 (a) and Figure 9 (b) is the preset page layout for the first installation orientation. Figure 9 (c) and Figure 9 (d) is the preset page layout under the second installation direction. Figure 9 (e) and Figure 9 (f) is the preset page layout for the third installation direction. Figure 9 (g) and Figure 9 (h) is the preset page layout under the fourth installation direction.

[0117] In this embodiment, firstly, the first electronic device determines a preset page layout with the same number of preset objects as the number of objects, as the first preset page layout; then, the first electronic device determines a preset page layout for the installation direction of the second electronic device from each of the first preset page layouts, as the second preset page layout; next, the first electronic device determines each of the second preset page layouts as the recommended page layouts. Taking the second electronic device as a smart screen switch, the number of objects of each target controlled object as 2, the preset installation directions including the first installation direction, the second installation direction, the third installation direction and the fourth installation direction, and the installation direction of the smart screen switch as the first installation direction as an example, the first electronic device first determines as follows: Figure 9 The first preset page layout shown will then be as follows: Figure 9 (a) and Figure 9 (b) The first preset page layout shown is determined to be the second preset page layout.

[0118] In this embodiment, the first electronic device determines a preset page layout that matches the installation direction of the second electronic device as a recommended page layout based on the installation direction of the second electronic device, and can recommend a page layout that matches the display direction of the screen of the second electronic device to the user.

[0119] In one embodiment, on the layout selection page, each recommended page layout is displayed through a corresponding preview image; the preview image of the target recommended page layout is highlighted, for example, by enlarging or bolding the preview image of the target recommended page layout, etc., and the target recommended page layout is initialized as the recommended page layout with the highest recommendation priority. Figure 10 The image shown is a preview of the recommended page layouts displayed on the layout selection page. Figure 10 for Figure 5 (c) A partial enlarged view of the preview image 502 of the layout of each recommendation page, see reference. Figure 10 The first electronic device displays each recommended page layout through its corresponding preview image 1002, and highlights the preview image of the target recommended page layout in each recommended page layout, such as the enlarged preview image 1004, or the bolded preview image 1006.

[0120] Step 206 above, in response to the confirmation operation of any recommended page layout, obtains the target page layout, including the following steps: in response to the selection operation of the preview image of any recommended page layout, the selected recommended page layout is determined as the new target recommended page layout, and the highlighted preview image is updated; in response to the confirmation operation of the target recommended page layout, the target recommended page layout is determined as the target page layout.

[0121] In this embodiment, the user can select preview images of various recommended page layouts. When the user selects any preview image of a recommended page layout, the first electronic device, in response to the selection operation, determines the selected recommended page layout as the new target recommended page layout and highlights the preview image of the new target recommended page layout on the layout selection page. In response to the user's confirmation operation for the current target recommended page layout, the first electronic device determines the current target recommended page layout as the target page layout. Taking the second electronic device as a smart screen switch as an example, as... Figure 11 The diagram illustrates how, on the layout selection page, in response to selecting a preview image of any recommended page layout, the selected recommended page layout is designated as the new target recommended page layout, and the preview image of this new target recommended page layout is highlighted; see also Figure 11 On the layout selection page, whenever a user selects a preview image of a recommended page layout, the first electronic device will enlarge and display the preview image of the selected recommended page layout separately, and also make the preview image of the selected recommended page layout bold.

[0122] In some embodiments, for the preview image of the target recommended page layout that is displayed in a separate magnified view, the first electronic device may also display the control components of each target controlled object in the preview image of the target recommended page layout, so that the user can preview the target control page generated based on the target recommended page layout.

[0123] In this embodiment, the first electronic device highlights a preview of the target recommended page layout, making it easy for users to quickly locate the target recommended page layout among various recommended page layouts. By using the recommended page layout selected by the user as the target recommended page layout, the user can choose the recommended page layout as the target recommended page layout according to their needs, giving the user a degree of freedom in choosing the page layout.

[0124] In one embodiment, after configuring the target control page for the second electronic device, the user can also modify the page layout of the target control page.

[0125] In one embodiment, after step S202 above, which shows at least one controlled object associated with the second electronic device, the step further includes obtaining a target controlled object based on the selected controlled object.

[0126] In this embodiment, the first electronic device displays each controlled object of the second electronic device on the object selection page. In response to the user's selection operation on any controlled object, the first electronic device determines the controlled object selected by the user as the target controlled object.

[0127] In this embodiment, after obtaining the target controlled object in the above steps, the following steps are also included: if the target controlled object includes a physical switching device, then in response to the control scheme configuration operation of the physical switching device, a first control scheme of the physical switching device is determined.

[0128] In this context, "triggering a physical switch device" refers to the physical switch device itself being triggered. Physical switch devices include, but are not limited to, push-button switches, rocker switches, rotary switches, toggle switches, and slide switches. The triggering method of a physical switch device is related to its type. For example, for push-button switches, rocker switches, and toggle switches, triggering a physical switch device means that the corresponding switching mechanism is pressed; for rotary switches, triggering a physical switch device means that the corresponding switching mechanism is rotated; for toggle switches, triggering a physical switch device means that the corresponding switching mechanism is toggled; and for slide switches, triggering a physical switch device means that the corresponding switching mechanism is slid.

[0129] The physical switch device can be a physical switch device integrated with the second electronic device, such as the second electronic device being a smart switch with a screen and the physical switch device being the switching mechanism on the smart switch with a screen, or it can be a physical switch device independent of the second electronic device.

[0130] The first controlled scheme is configured with a first triggering condition, a first execution device, and a first execution action. When the first triggering condition is triggered, the first execution device executes the first execution action. The first triggering condition is triggered when the physical switch device is triggered or when the control component of the physical switch device in the target control page is triggered. In practical applications, the first controlled scheme is either a scene control scheme or an automation control scheme. If the first controlled scheme is a scene control scheme, i.e., the first triggering condition in the first controlled scheme is "user control execution scene control scheme", then the user triggers the first triggering condition "user control execution scene control scheme" by triggering the physical switch device itself or by triggering the control component of the physical switch device in the target control page. If the first controlled scheme is an automation control scheme, i.e., the first triggering condition in the first controlled scheme includes "preset condition" and "user control execution automation control scheme", then the user triggers the first triggering condition "user control automation scene control scheme" by triggering the physical switch device itself or by triggering the control component of the physical switch device in the target control page.

[0131] In this embodiment, when the user selects a target controlled device, if the user selects a physical switch device, the device page of the second electronic device will redirect to the controlled scheme configuration page. The user can configure a corresponding controlled scheme for the physical switch device on the controlled scheme configuration page. In response to the user's controlled scheme configuration operation for the physical switch device, the first electronic device obtains the first controlled scheme for the physical switch device. Furthermore, after redirecting to the controlled scheme configuration page, the user can also choose not to configure a first controlled scheme for the physical switch device. Taking an example where the second electronic device is a smart switch with a screen integrating two switches, and the physical switch device is a switch integrated into the second electronic device, as follows... Figure 12 The diagram illustrates the determination of a first controlled scheme for a physical switchgear in response to a controlled scheme configuration operation; see reference. Figure 12 (a) When the user selects the smart switch with screen itself as the target controlled object, the device page of the smart switch with screen will redirect to the following... Figure 12 (b) shows the switch configuration page, where the first electronic device displays two integrated smart screen switches; when the user selects either switch as the target controlled object on the switch configuration page, such as Figure 12As shown in (c), the first electronic device displays the controlled scheme configuration entry component 1202 on the switch configuration page; when the user triggers the controlled scheme configuration entry component 1202, the device page of the smart switch with screen jumps to the following... Figure 12 (d) shows the controlled scheme configuration page. Users can configure the corresponding controlled scheme for the selected switch as the target controlled object. After configuration, the smart switch with screen will redirect back to the page shown in (d). Figure 12 (f) shows the controlled scheme configuration page; assuming the user selects two switches of the smart switch with screen as the target controlled objects and generates the corresponding target control page, then the target control page displayed by the smart switch with screen is as follows: Figure 13 As shown.

[0132] In this embodiment, the first electronic device identifies the physical device switch as the target controlled object and can convert the physical device switch into a wireless switch that can be remotely controlled, making it convenient for users to remotely control the physical device switch; by configuring a controlled scheme for the physical device switch, the first electronic device can trigger the control scheme through the physical device switch.

[0133] In one embodiment, the physical switching device itself can be electrically connected to other electronic devices. The electronic devices electrically connected to the physical switching device are associated devices of the physical switching device. The associated devices can be, for example, Figure 1 The system shown includes intelligent devices, terminal devices, gateways, or servers. If a physical switch circuit is connected to an associated device and the physical switch is not configured with a first controlled scheme, then when the physical device is triggered, the physical switch circuit controls the associated device to perform a corresponding action. The action performed by the physical switch circuit is related to the function of the associated device. For example, if the associated device has a switching function, the physical switch circuit controls the associated device to perform a switching action; if the associated device has an adjustment function, the physical switch circuit controls the associated device to perform an adjustment action. In practical applications, the physical switch circuit controls the associated device to perform the corresponding switching action. In some embodiments, the user can customize the actions that the associated device needs to perform.

[0134] After determining the first controlled scheme for the physical switchgear in the above steps, the following steps are also included: if the physical switchgear circuit is connected to associated devices, then multiple control strategies for the physical switchgear are displayed; in response to the selection operation of any control strategy, the selected control strategy is determined as the target control strategy for the physical switchgear.

[0135] Among them, multiple control strategies are used to decide the control of associated equipment and the first controlled scheme by the physical switching equipment. These multiple control strategies include controlling the associated equipment through circuit control and / or controlling the first controlled scheme through wireless control. That is, the control strategies are divided into three types: one is controlling the associated equipment through circuit control, another is controlling the first controlled scheme through wireless control, and the third is controlling both the associated equipment and the first controlled scheme through wireless control. Specifically, controlling the associated equipment through circuit control means that the physical switching equipment uses its circuitry to control the associated equipment to execute a corresponding action; controlling the first controlled scheme through wireless control means that the physical switching equipment, upon triggering a first trigger condition, wirelessly controls the first executing device to execute a first execution action.

[0136] When the physical switch is triggered or the control component of the physical switch in the target control page is triggered, the physical switch, according to the target control strategy, circuit-controlled associated devices execute corresponding actions and / or wirelessly controls the first execution device to execute the first execution action. For example, if the target control strategy is to control associated devices via circuit control, then when the physical switch is triggered or the control component of the physical switch in the target control page is triggered, the physical switch circuit-controlled associated devices execute corresponding actions. Another example: if the controlled object in the target control strategy is to control the first controlled scheme via wireless control, then when the physical switch is triggered or the control component of the physical switch in the target control page is triggered, the first triggering condition in the first controlled scheme is triggered, and the physical switch sends a corresponding instruction to the first execution device to wirelessly control the first execution device to execute the first execution action. Yet another example: if the target control strategy controls associated devices via circuit control and controls the first controlled scheme via wireless control, then when the physical switch is triggered or the control component of the physical switch in the target control page is triggered... In the first controlled scheme, the first triggering condition is triggered, and the physical switch device sequentially or simultaneously controls the associated device to perform corresponding actions and sends corresponding instructions to the first execution device to wirelessly control the first execution device to perform the first execution action. For example, when the associated device performing the corresponding action and the first execution device performing the first execution action do not conflict, for example, the associated device is a smart light fixture in the bedroom, and the action that the associated device needs to perform is to turn on the light, and the first execution device in the first controlled scheme is a smart water heater in the bathroom, and the first execution action in the first controlled scheme is to turn on the heating function, the physical switch device simultaneously controls the associated device to perform the corresponding action and wirelessly controls the first execution device to perform the first execution action. When the associated device performing the corresponding action and the first execution device performing the first execution action conflict, for example, the associated device is a smart light fixture in the bedroom, and the action that the associated device needs to perform is to turn on the light, and the first execution device in the first controlled scheme is also a smart light fixture in the bedroom, and the first execution action in the first controlled scheme is to turn off the light, the physical switch device first controls the associated device to perform the corresponding action and then wirelessly controls the first execution device to perform the first execution action.

[0137] In this embodiment, if the physical switchgear circuit is connected to associated devices and a first controlled scheme is configured for the physical switchgear, the device page of the second electronic device jumps to a control strategy selection page. The first electronic device displays various control strategies for the physical switchgear on the control strategy selection page. The user can select any control strategy on the control strategy selection page. In response to the user's selection of any control strategy, the first electronic device determines the selected control strategy as the target control strategy for the physical switchgear. For example, ... Figure 14The diagram shows a variety of control strategies for users to select a target control strategy. The first electronic device displays various control strategies for the physical switch device. Users can select any control strategy on the control strategy selection page. When any control strategy is selected, the first electronic device can also provide prompts for the user's selection so that the user understands the meaning of the selected control strategy.

[0138] In this embodiment, the first electronic device can support users to flexibly customize the control of associated devices and the first controlled scheme by the physical switch device by displaying a variety of control strategies, giving users the freedom to customize the functions of the physical switch device.

[0139] In one embodiment, after configuring the target control page corresponding to the target page layout for the second electronic device in step S206 above, the following steps are also included: in response to the editing operation of the object to be edited, determining the editing result of the object to be edited; and synchronizing the editing result to the second electronic device.

[0140] The object to be edited includes at least one of the target control page and the target controlled object, and the editing operation includes at least one of adding, modifying and deleting.

[0141] In this embodiment, if a user adds a target control page to the second electronic device on the device page of the second electronic device displayed by the first electronic device, the first electronic device will synchronize the newly added target control page to the second electronic device; if a user modifies an existing target control page of the second electronic device on the device page of the second electronic device displayed by the first electronic device, such as modifying the page layout or modifying the target controlled object in the target control page, the first electronic device will synchronize the modified target control page to the second electronic device; if a user deletes any existing target control page of the second electronic device on the device page of the second electronic device displayed by the first electronic device, the first electronic device will notify the second electronic device to delete the deleted target control page locally.

[0142] In this embodiment, if a user adds a corresponding target controlled object to any existing target control page of the second electronic device on the device page displayed by the first electronic device, the user generates a new target control page based on the added target controlled object and synchronizes it to the second electronic device, while simultaneously notifying the second electronic device to replace the old target control page with the new one. If a user modifies a corresponding target controlled object to any existing target control page of the second electronic device on the device page displayed by the first electronic device, for example, replacing target controlled object 1 with target controlled object 2, the user generates a new target control page based on the modified target controlled object and synchronizes it to the second electronic device, while simultaneously notifying the second electronic device to replace the old target control page with the new one. If a user deletes a corresponding target controlled object to any existing target control page of the second electronic device on the device page displayed by the first electronic device, the user generates a new target control page based on the deleted target controlled object and synchronizes it to the second electronic device, while simultaneously notifying the second electronic device to replace the old target control page with the new one.

[0143] In this embodiment, the first electronic device supports user-defined editing of the target control page and / or the target controlled object, and can synchronize the user's editing of the target control page and the target controlled object to the second electronic device.

[0144] In one embodiment, such as Figure 15 As shown, another device control method is provided, which is applicable to a second electronic device. See also... Figure 15 In this embodiment, the method includes the following steps:

[0145] Step S1502: Obtain the target control page generated by the first electronic device.

[0146] The first electronic device generates a target control page according to a device control method applied to the first electronic device; the target control page includes a control component for at least one target controlled object.

[0147] In this step, each time the first electronic device generates a target control page, it sends the generated target control page to the second electronic device, which then locally saves the received target control page.

[0148] The target controlled object can be either a controlled device or a controlled scheme; the controlled device can be, for example, a controlled device ... Figure 1The intelligent devices, gateways, or servers in the system shown may include, in practical applications, intelligent screen switches, intelligent door locks, intelligent windows, intelligent curtains, intelligent lights, intelligent clothes racks, intelligent TVs, intelligent speakers, intelligent air conditioners, intelligent fans, intelligent refrigerators, intelligent sockets, and intelligent switches. The controlled scheme is configured with triggering conditions, execution devices, and execution actions. When the triggering conditions in the controlled scheme are triggered, the execution devices in the controlled scheme will execute the execution actions in the controlled scheme.

[0149] The controlled schemes are categorized into scene control schemes and automation control schemes based on their triggering methods. The triggering condition for a scene control scheme is "user-controlled execution of the scene control scheme." When a user controls the execution of the scene control scheme, the triggering condition is triggered, and the execution device within the scene control scheme performs the actions specified in the scheme. For example, if the scene control scheme is "when the user controls the execution of the scene control scheme, the smart door lock of the main gate performs the locking action," then the smart door lock will automatically perform the locking action when the user controls the execution of the scene control scheme. The triggering condition for an automation control scheme is a "preset condition." When the preset condition corresponding to the automation control scheme is met, the triggering condition is triggered, and the execution device within the automation control scheme performs the actions specified in the scheme. For example... The automated control scheme is defined as "when the time reaches 7 PM, the smart water heater in the bathroom will turn on its heating function." Therefore, when the time reaches 7 PM, the smart water heater in the bathroom will automatically turn on its heating function. When the automated control scheme is used as a controlled scheme, the triggering conditions in the scheme, in addition to "preset conditions," also include "user control to execute the automated control scheme." When either of these two types of conditions is met, the execution device in the automated control scheme will execute the action specified in the scheme, allowing the user to flexibly control whether the scheme is executed. That is, when the preset conditions corresponding to the automated control scheme are met, or when the user controls the execution of the scheme, the triggering conditions in the scheme are triggered, and the execution device executes the action specified in the scheme. In practical applications, if the scene control scheme is the target controlled object, the user triggers the trigger condition "user controls execution of scene control scheme" in the scene control scheme by triggering the control component of the scene control scheme in the target control page; if the automation control scheme is the target controlled object, the user triggers the trigger condition "user controls automation scene control scheme" in the automation control scheme by triggering the control component of the automation control scheme in the target control page.

[0150] Step S1504: Display the target control page and, in response to the control operation on the target control component, issue corresponding control commands to the target controlled object corresponding to the target control component.

[0151] Among them, the control operation of the target control component can be achieved by triggering the target control component.

[0152] Among them, the target control component is the control component that is triggered among all control components; the target control component is any one of the control components.

[0153] In this step, the second electronic device displays the target control page; in response to the user's control operation on the control component in the target control page, the second electronic device determines the control component corresponding to the control operation as the target control component, and then sends the control command corresponding to the control operation to the target controlled object to which the target control component belongs, so that the target controlled object to which the target control component belongs can perform the corresponding action.

[0154] In practical applications, if the target controlled object corresponding to the target control component is a controlled device, the second electronic device will send a control command to the controlled device, and the controlled device will respond to the control command and perform the corresponding action; if the target controlled object corresponding to the target control component is a controlled scheme, the second electronic device will determine that the triggering condition in the controlled scheme has been triggered, and send a control command to the execution device in the controlled scheme, and the execution device will respond to the control command and perform the execution action in the controlled scheme.

[0155] For example, suppose the target control component is the control component of a smart lamp. The control component of the smart lamp is used to control the smart lamp to turn on, turn off, and adjust the brightness. Then, when the user controls the smart lamp to turn on through the control component, the second electronic device sends an on command to the smart lamp. When the user controls the smart lamp to turn off through the control component, the second electronic device sends an off command to the smart lamp. When the user controls the adjustment of the smart lamp through the control component, the second electronic device sends a brightness adjustment command to the smart lamp.

[0156] In some embodiments, if there are multiple target control pages, the second electronic device displays one target control page at a time and can switch between multiple target control pages to display different target control pages. For example, if the display screen integrated by the second electronic device is a touch display screen, then when the user swipes left or right or up or down, the user can switch between multiple target control pages. Alternatively, the display screen of the second electronic device displays a page switching component, and in response to the user's triggering operation of the page switching component, the second electronic device switches between multiple target control pages. As another example, the second electronic device integrates a physical mechanism, such as a button or knob, that can be used to switch target control pages, and in response to the user's control of the physical mechanism, the second electronic device switches between multiple target control pages.

[0157] In this embodiment, firstly, the second electronic device acquires the target control page generated by the first electronic device; then, the second electronic device displays the target control page and, in response to the control operation on the target control component, issues corresponding control commands to the target controlled object corresponding to the target control component. Based on this application, the target control page includes the target control page of the control component of each target controlled object, thereby realizing the control of each target controlled object through a single target control page, thus enhancing the user's convenience in controlling the device.

[0158] In one embodiment, the target controlled object includes a physical switching device.

[0159] Step S1504 above, which sends a corresponding control command to the target controlled object corresponding to the target control component, includes the following steps: if the target controlled object corresponding to the target control component is a physical switch device, and if the physical switch device circuit is connected to an associated device, then a control command is sent to the physical switch device so that the physical switch device circuit controls the associated device to perform corresponding actions.

[0160] When the physical switch is triggered, the circuit of the physical switch controls the associated equipment to perform corresponding actions. That is, the control effect achieved by triggering the physical switch itself is the same as that achieved by triggering the control component of the physical switch.

[0161] In this embodiment, if the target controlled object to which the target control component belongs is a physical switch device, and the physical switch device is connected to an associated device via a circuit, then the second electronic device sends a control command to the physical switch device to cause the physical switch device circuit to control the associated device to perform a corresponding action. For example, assuming the physical switch device circuit is connected to a smart lamp, when the user triggers the control component of the physical switch device, the physical switch device circuit controls the smart lamp to perform an on or off action.

[0162] In this embodiment, when the control component of the physical switch device is triggered, the second electronic device sends a corresponding control command to the physical switch device, enabling the physical switch device to control the associated devices connected to the circuit to perform corresponding actions, thereby realizing the control of the associated devices connected to the circuit by the physical switch device.

[0163] In one embodiment, the target controlled object includes a physical switching device.

[0164] Step S1504 above, which sends a corresponding control command to the target controlled object corresponding to the target control component, includes the following steps: when the target controlled object corresponding to the target control component is a physical switch device, if the physical switch device is configured with a first control scheme, a control command is sent to the physical switch device so that the physical switch device wirelessly controls the first execution device in the first control scheme to execute the first execution action in the first control scheme.

[0165] In this first controlled scheme, in addition to a first execution device and a first execution action, a first trigger condition is also configured. When the first trigger condition is triggered, the first execution device executes the first execution action. The first trigger condition is triggered when the physical switch device is triggered or when the control component of the physical switch device in the target control page is triggered. The first trigger condition is triggered when the physical switch device is triggered or when the control component of the physical switch device in the target control page is triggered; that is, the control effect achieved by triggering the physical switch device itself and triggering its control component is the same. In practical applications, the first controlled scheme is either a scene control scheme or an automated control scheme. If the first controlled scheme is a scene control scheme, that is, the first triggering condition in the first controlled scheme is "user control executes scene control scheme", then the user triggers the first triggering condition "user control executes scene control scheme" by triggering the physical switch device itself or by triggering the control component of the physical switch device in the target control page. If the first controlled scheme is an automated control scheme, that is, the first triggering condition in the first controlled scheme includes "preset condition" and "user control executes automated control scheme", then the user triggers the first triggering condition "user control automated scene control scheme" by triggering the physical switch device itself or by triggering the control component of the physical switch device in the target control page.

[0166] In this embodiment, if the target controlled object to which the target control component belongs is a physical switch device, and the physical switch device is configured with a first controlled scheme, then the second electronic device determines that the first triggering condition in the first controlled scheme is triggered, and the second electronic device sends a control command to the physical switch device, so that the physical switch device sends a command to the first execution device in the first controlled scheme, so as to wirelessly control the first execution device to perform the first execution action in the first controlled scheme.

[0167] For example, if the first controlled scheme is a scene control scheme, then the first triggering condition in the first controlled scheme is "user controls the execution of the scene control scheme". Suppose the first controlled scheme is the scene control scheme "when the user controls the execution of the scene control scheme, turn on the smart lights in the bedroom". Then, when the user triggers the physical switch device or the control component of the physical switch device, the first triggering condition "user controls the execution of the scene control scheme" in the first controlled scheme is triggered. Therefore, the smart lights in the bedroom are wirelessly controlled to perform the action of turning on the lights.

[0168] To illustrate further, if the first controlled scheme is an automated control scheme, then the first triggering condition in the first controlled scheme includes a "preset condition" and a "user-controlled execution of the automated control scheme". Suppose the first controlled scheme is an automated control scheme that "when the time reaches 7 pm, the smart water heater in the bathroom turns on the heating function". Then, when the user triggers the physical switch device or the control component of the physical switch device, the first triggering condition "user-controlled execution of the automated control scheme" in the first controlled scheme is triggered. Therefore, the smart water heater in the bathroom is wirelessly controlled to turn on the heating function.

[0169] In this embodiment, when the control component of the physical switch device is triggered, the second electronic device sends a corresponding control command to the physical switch device, which enables the physical switch device to trigger the execution of the configured first controlled scheme.

[0170] In one embodiment, the target controlled object includes a physical switching device.

[0171] Step S1504 above, which sends a corresponding control command to the target controlled object corresponding to the target control component, includes the following steps: when the target controlled object corresponding to the target control component is a physical switch device, if the physical switch device is circuit-connected to an associated device and configured with a first controlled scheme, then the target control strategy of the physical switch device is determined; if the target control strategy is to control the associated device through circuit control, then a control command is sent to the physical switch device to make the physical switch device circuit-control the associated device to perform a corresponding action; if the target control strategy is to control the first controlled scheme through wireless control, then a control command is sent to the physical switch device to make the physical switch device wirelessly control the first execution device in the first controlled scheme to perform the first execution action in the first controlled scheme; if the target control strategy is to control the associated device through circuit control and control the first controlled scheme through wireless control, then a control command is sent to the physical switch device to make the physical switch device circuit-control the associated device to perform a corresponding action and wirelessly control the first execution device to perform the first execution action.

[0172] In this first controlled scheme, in addition to a first execution device and a first execution action, a first trigger condition is also configured. When the first trigger condition is triggered, the first execution device executes the first execution action. The first trigger condition is triggered when the physical switch device is triggered or when the control component of the physical switch device in the target control page is triggered. When the physical switch device is triggered or when the control component of the physical switch device in the target control page is triggered, the physical switch device, according to the target control strategy, controls the associated device to execute corresponding actions and / or triggers the first trigger condition. That is, the control effect achieved by triggering the physical switch device itself and triggering the control component of the physical switch device is the same.

[0173] In this embodiment, if the target controlled object to which the target control component belongs is a physical switch device, and the physical switch device is also connected to an associated device and configured with a first controlled scheme, then the second electronic device obtains the target control strategy of the physical switch device.

[0174] If the target control strategy is to control the associated device through circuit control, then the second electronic device sends a control command to the physical switching device so that the physical switching device can control the associated device to perform the corresponding action.

[0175] If the target control strategy is to control the first controlled scheme via wireless control, then when the control component of the physical switch device is triggered, the second electronic device determines that the first triggering condition in the first controlled scheme is triggered, and the second electronic device sends a control command to the physical switch device, so that the physical switch device sends a command to the first execution device in the first controlled scheme, so as to wirelessly control the first execution device to perform the first execution action in the first controlled scheme.

[0176] If the target control strategy is to control the associated device via circuit control and the first controlled scheme via wireless control, then when the control component of the physical switch device is triggered, the second electronic device determines that the first triggering condition in the first controlled scheme has been triggered. The second electronic device sends a control command to the physical switch device to cause the physical switch device to control the associated device to perform a corresponding action and sends a command to the first execution device in the first controlled scheme to wirelessly control the first execution device to perform the first execution action in the first controlled scheme. Furthermore, when the associated device performing a corresponding action does not conflict with the first execution device performing the first execution action, for example, if the associated device is a smart light fixture in a bedroom, the associated device needs to perform... The action is to turn on the light. The first execution device in the first controlled scheme is the smart water heater in the bathroom. The first execution action in the first controlled scheme is to turn on the heating function. Then, the physical switch device simultaneously controls the associated device to perform the corresponding action and wirelessly controls the first execution device to perform the first execution action. When the associated device's execution of the corresponding action conflicts with the first execution device's execution of the first execution action, for example, if the associated device is a smart light in the bedroom and the associated device needs to perform the action of turning on the light, and the first execution device in the first controlled scheme is also a smart light in the bedroom, and the first execution action in the first controlled scheme is to turn off the light, the physical switch device first controls the associated device to perform the corresponding action through the circuit and then wirelessly controls the first execution device to perform the first execution action.

[0177] In this embodiment, when the target controlled object corresponding to the target control component is a physical switching device, and the physical switching device is connected to an associated device and configured with a first controlled scheme, the second electronic device can accurately decide on the control logic for the associated device and the first controlled scheme according to the target control strategy of the physical switching device.

[0178] In one embodiment, the target controlled object includes a second controlled scheme; the second controlled scheme is configured with a second triggering condition, a second execution device, and a second execution action. When the second triggering condition is triggered, the second execution device executes the second execution action; when the control component of the second controlled scheme is triggered, the second triggering condition is triggered. In practical applications, the second controlled scheme is a scene control scheme or an automated control scheme; if the second controlled scheme is a scene control scheme, that is, the second triggering condition in the second controlled scheme is "user control execution of scene control scheme", then the user triggers the second triggering condition "user control execution of scene control scheme" by triggering the control component of the second controlled scheme in the target control page; if the second controlled scheme is an automated control scheme, that is, the second triggering condition in the second controlled scheme includes "preset condition" and "user control execution of automated control scheme", then the user triggers the second triggering condition "user control automated scene control scheme" by triggering the control component of the second controlled scheme in the target control page.

[0179] Step S1504 above, which sends a corresponding control command to the target controlled object corresponding to the target control component, includes the following steps: if the target controlled object corresponding to the target control component is the second controlled scheme, then it is determined that the second triggering condition is triggered, and a control command is sent to the second execution device so that the second execution device performs the second execution action.

[0180] In this embodiment, if the target controlled object to which the target control component belongs is the second controlled scheme, then the second electronic device determines that the second triggering condition has been triggered and sends a control command to the second execution device so that the second execution device performs the second execution action.

[0181] For example, if the second controlled scheme is a scene control scheme, then the second triggering condition in the second controlled scheme is "user controls the execution of the scene control scheme". Suppose the second controlled scheme is the scene control scheme "when the user controls the execution of the scene control scheme, the smart air conditioner in the bedroom turns on the cooling function". Then, when the user triggers the control component of the second controlled scheme, the second triggering condition "user controls the execution of the scene control scheme" in the second controlled scheme is triggered. Therefore, the smart air conditioner in the bedroom is controlled to turn on the cooling function.

[0182] To illustrate further, if the second controlled scheme is an automated control scheme, then the first triggering condition in the second controlled scheme includes a "preset condition" and a "user-controlled execution of the automated control scheme". Suppose the second controlled scheme is an automated control scheme that "when the time reaches 10:00 AM, the smart curtains in the bedroom are fully opened". Then, when the user triggers the control component of the second controlled scheme, the second triggering condition "user-controlled execution of the automated control scheme" in the second controlled scheme is triggered, and the smart curtains in the bedroom are controlled to fully open.

[0183] In this embodiment, when the target controlled object is the second controlled scheme, the second electronic device can trigger the second execution device to perform the second execution action by determining that the second triggering condition has been triggered and sending a control command to the second execution device, thereby realizing the execution of the second controlled scheme.

[0184] In one embodiment, after issuing the corresponding control command to the target controlled object corresponding to the target control component in step S1504, the following step is further included: based on the target controlled object corresponding to the target control component, displaying at least one of the command sending result, action execution progress, and action execution result on the target control page.

[0185] The second electronic device determines at least one type of information to be displayed from the instruction sending result, action execution progress, and action execution result, based on the type of the target controlled object corresponding to the target control component.

[0186] The instruction sending result is used to characterize the sending result of the control instruction, such as sending in progress, sending successfully, or sending failed. In practical applications, the instruction sending result can be represented by characters and / or icons (such as icons representing sending successfully and sending failed). Furthermore, the instruction sending result can change dynamically with the sending process of the control instruction, for example, changing from an instruction sending result representing "sending in progress" to an instruction sending result representing "sending successfully" or "sending failed".

[0187] Among them, the action execution progress is used to characterize the progress of the target controlled object corresponding to the target control component in executing the corresponding action in response to the control command. In practical applications, the action execution progress can be represented by characters and / or icons (such as linear progress bars or circular progress bars to represent progress).

[0188] Among them, the action execution result is used to characterize the result of the target controlled object corresponding to the target control component performing the corresponding action in response to the control command, such as execution in progress, execution successful, or execution failed. In practical applications, the action execution result can be represented by characters and / or icons (such as icons representing execution success and execution failure). Furthermore, the action execution result can dynamically change as the target controlled object performs the corresponding action, for example, changing from an action execution result representing "execution in progress" to an action execution result representing "execution successful" or "execution failed".

[0189] For example, such as Figure 16 The image shows a schematic diagram of the component area of ​​the smart lighting fixture's control component displayed on the target control page when the control component is triggered; see reference. Figure 16 By clicking the control component of the smart light fixture, you can control the light fixture to perform corresponding actions. After clicking the control component of the smart light fixture, if the smart light fixture successfully performs the action, the component area will be covered by a semi-transparent color to display the action execution result indicating "execution successful". If the smart light fixture fails to perform the action, the component area will display the action execution result indicating "execution failed".

[0190] For example, such as Figure 17 The diagram shows the component area of ​​the control component of the second controlled scheme displayed on the target control page when the control component of the second controlled scheme is triggered; see reference. Figure 17 By clicking the control component of the second controlled scheme, the execution of the second controlled scheme can be controlled. After clicking the control component of the second controlled scheme, if the control command is successfully issued, the command sending result indicating "successful sending" will be displayed in the component area.

[0191] For example, such as Figure 18The image shows a schematic diagram of the component area displaying the smart curtain's control components on the target control page when the control components are triggered; see reference. Figure 18 By clicking on the control components of the smart curtain, you can control the smart curtain to perform corresponding actions. After clicking on the control components, a progress bar and percentage representing the progress of the smart curtain's actions will be dynamically displayed in the component area to show the progress of the actions.

[0192] For example, such as Figure 19 The image shows a schematic diagram of the component area of ​​the smart lock's control component displayed on the target control page when the smart lock's control component is triggered; see reference. Figure 19 When the smart lock is unlocked, the device icon in the control component of the smart lock will show an unlocked icon. Clicking the control component will enable the smart lock to perform a locking action. After clicking the control component, a progress bar will be dynamically displayed in the component area to indicate the progress of the smart lock's action. If the smart lock successfully performs the action, the component area will display an action execution result indicating "execution successful," and the device icon in the control component will be updated to an icon indicating that the smart lock is locked. If the smart lock fails to perform the action, the component area will display an action execution result indicating "execution failed."

[0193] In this embodiment, the second electronic device determines at least one piece of information to be displayed based on the target controlled object corresponding to the target control component, the instruction sending result, the action execution progress, and the action execution result. Then, it displays the information to be displayed in the component area of ​​the target control component on the target control page.

[0194] In this embodiment, the second electronic device can determine at least one of the following by displaying the command sending result, the action execution progress, and the action execution result, so as to inform the user in a timely and intuitive manner the sending result of the control command, the progress of the target controlled object corresponding to the target control component in executing the corresponding action, and the result of the target controlled object corresponding to the target control component in executing the corresponding action.

[0195] In one embodiment, after displaying the target control page in step S1504, the following steps are also included: for each target controlled object in the target control page, if an abnormality is detected in the target controlled object, an abnormality prompt message for the target controlled object is displayed in the target control page.

[0196] Among them, the abnormality prompt message is used to indicate that the target controlled object is abnormal. In practical applications, the abnormality of the target controlled object includes, but is not limited to, the target controlled object being offline or other abnormalities.

[0197] In this embodiment, for each target controlled object in the target control page, if the second electronic device detects an abnormality in the target controlled object, a first abnormality prompt message is displayed in the component area of ​​the control component of the target controlled object in the target control page. In response to a trigger operation on the control component of the target controlled object, the second electronic device displays a second abnormality prompt message in the component area of ​​the control component of the target controlled object. The first abnormality prompt message includes an icon, and the second abnormality prompt message includes characters. Further, the second abnormality prompt message disappears after a certain period of time, and the second electronic device continues to display the first abnormality prompt message. Alternatively, in response to a trigger operation on the first abnormality prompt message of the target controlled object, the second electronic device continues to display the first abnormality prompt message until the target controlled object returns to normal.

[0198] For example, such as Figure 20 The image shows a diagram illustrating the error message displayed when a smart lock malfunctions; see reference. Figure 20 If the smart lock is offline, the second electronic device displays a first abnormality message 2002 in icon form in the component area of ​​the smart lock's control component to inform the user that the smart lock is offline. In response to a trigger operation on the smart lock's control component, the second electronic device displays a second abnormality message 2004 in character form in the component area of ​​the smart lock's control component to inform the user that the smart lock is offline. If the smart lock has other abnormalities, the second electronic device displays a first abnormality message 2006 in icon form in the component area of ​​the smart lock's control component to inform the user that the smart lock is abnormal. In response to a trigger operation on the smart lock's control component, the second electronic device displays a second abnormality message 2008 in character form in the component area of ​​the smart lock's control component to inform the user that the smart lock is abnormal.

[0199] In this embodiment, the second electronic device can promptly and intuitively inform the user that the target controlled object is in an abnormal state by displaying an abnormality prompt message.

[0200] In one embodiment, step S1504 above, displaying the target control page, includes the following steps: if a target monitoring object is detected in the wake-up area of ​​the second electronic device, the second electronic device is woken up and the target control page is displayed.

[0201] The wake-up area is determined according to a preset wake-up strategy. This strategy characterizes the method for waking up the second electronic device to display the target control page. The wake-up strategy includes a wake-up distance, which characterizes the distance between the edge of the wake-up area and the second electronic device. For example, the wake-up area can be a circular or fan-shaped area with the second electronic device as the center and the wake-up distance as the radius. The wake-up strategy is configured by the user. In some embodiments, the second electronic device provides multiple preset wake-up strategies by default, each with a different wake-up distance. The user can select any one of these preset strategies as the wake-up strategy. In other embodiments, the user can also customize the wake-up distance to configure a custom wake-up strategy.

[0202] Among them, the target monitoring object is a human-shaped object, and further, the second electronic device monitors the target monitoring object based on the radar sensor.

[0203] In this embodiment, if the second electronic device detects that the user has not operated on the second electronic device for a long time, or if it detects that there is no target monitoring object in the wake-up area of ​​the second electronic device for a long time, then the second electronic device turns off its integrated display screen. Then, when it detects that there is a target monitoring object in the wake-up area of ​​the second electronic device, it wakes up the second electronic device and displays the target control page through the integrated display screen.

[0204] In practical applications, the second electronic device is a smart switch with a screen, and the multiple preset wake-up strategies are as follows:

[0205] (1) Off: It will not wake up regardless of whether the target object is detected;

[0206] (2) Closer: If the target object is detected within 0.3 meters, the display screen will be automatically woken up. If the target object is detected beyond this distance, the display screen will not be automatically woken up.

[0207] (3) Medium: If the target object is detected within 0.6 meters, the display screen will be automatically woken up. If the target object is detected beyond this distance, the display screen will not be automatically woken up.

[0208] (4) Relatively far: If the target object is detected within 1.5 meters, the display screen will be automatically woken up. If the target object is detected beyond this distance, the display screen will not be automatically woken up.

[0209] (5) Maximum distance: If the target object is detected within 2.5 meters, the display screen will be automatically woken up. If the target object is detected beyond this distance, the display screen will not be automatically woken up.

[0210] In this embodiment, the second electronic device provides an intelligent wake-up function. By waking up the display screen to show the target control page when a target monitoring object is detected in the wake-up area, the display screen can be kept on all the time, thereby reducing the power consumption of the second electronic device.

[0211] In one embodiment, the second electronic device is configured with a display screen; the second electronic device displays a target control page on the display screen based on a target screen display orientation; the target screen display orientation is used to characterize the orientation of the content displayed on the display screen.

[0212] Before obtaining the target control page generated by the first electronic device in step S1502 above, the following steps are also included: detecting the installation method of the second electronic device, determining the screen display direction that matches the installation method, and obtaining the target screen display direction.

[0213] The installation method of the second electronic device is used to characterize the installation direction of the second electronic device. The installation direction of the second electronic device is any one of a plurality of preset installation directions. Different preset installation directions are used to characterize that the second electronic device is installed at different rotation angles. In practical applications, the preset installation directions of the second electronic device include a first installation direction, a second installation direction, a third installation direction, and a fourth installation direction in sequence. The rotation angle difference between two adjacent installation directions is ninety degrees. For example, the different installation directions of the second electronic device include a first installation direction with a corresponding rotation angle of 0°, a second installation direction with a corresponding rotation angle of 90°, a third installation direction with a corresponding rotation angle of 180°, and a fourth installation direction with a corresponding rotation angle of 270°.

[0214] In this embodiment, the second electronic device integrates a gyroscope and other mechanisms capable of automatically identifying the installation orientation, thereby intelligently detecting the installation orientation of the second electronic device. For each preset installation orientation, the second electronic device is pre-configured with a corresponding screen display orientation. Upon initial power-on, the second electronic device detects its installation orientation and then determines the screen display orientation that matches the installation orientation from among the preset screen display orientations, using this as the target screen display orientation. Taking a smart screen-equipped switch as an example, for instance... Figure 21 This is a schematic diagram of the screen display direction corresponding to each preset installation direction. Assuming that the second electronic device detects that the installation direction of the second electronic device is the first installation direction, the second electronic device will determine the first screen display direction as the target screen display direction. Assuming that the second electronic device detects that the installation direction of the second electronic device is the third installation direction, the second electronic device will determine the third screen display direction as the target screen display direction.

[0215] In this embodiment, the second electronic device determines the target screen display direction by intelligently detecting the installation direction, and displays the target control page in the direction that is convenient for the user to view.

[0216] In one embodiment, the second electronic device is configured with a screen; the second electronic device displays a target control page on the screen based on a target screen display orientation; the target screen display orientation is used to characterize the orientation of the content displayed on the display screen.

[0217] Before obtaining the target control page generated by the first electronic device in step S1502 above, the following steps are also included: in response to a screen display orientation adjustment operation triggered on the second electronic device, displaying a preview image of the current screen display orientation and an orientation adjustment component; in response to a trigger operation on the orientation adjustment component, adjusting the current screen display orientation to obtain a new current screen display orientation and updating the corresponding display orientation preview image; in response to a confirmation operation on the current screen display orientation, determining the current screen display orientation as the target screen display orientation.

[0218] The screen display orientation adjustment operation triggered on the second electronic device can be triggered through the display screen of the second electronic device, such as triggering the screen display orientation adjustment entry component displayed on the display screen of the second electronic device, or it can be triggered through a physical mechanism on the body of the second electronic device, such as short press, long press, or multiple consecutive presses of the "set" button on the body of the second electronic device.

[0219] Among them, the display direction preview image corresponding to the current screen display direction can be independent of the direction adjustment component, or it can be integrated with the direction adjustment component. That is, the display direction preview image corresponding to the current screen display direction is the direction adjustment component.

[0220] In this embodiment, the second electronic device supports user-defined target screen display orientation. When a user needs to customize the target screen display orientation, they can trigger a screen display orientation adjustment operation on the second electronic device. In response to the user's screen display orientation adjustment operation, the page displayed on the second electronic device's screen jumps to the display orientation adjustment page. The second electronic device displays a preview image of the current screen display orientation and an orientation adjustment component on the display orientation adjustment page. In response to the user's triggering operation on the orientation adjustment component, the second electronic device adjusts the current screen display orientation to obtain a new current screen display orientation and updates the corresponding display orientation preview image. The display orientation adjustment page also includes a display orientation confirmation component. When the user confirms the current screen display orientation by triggering the display orientation confirmation component, in response to the user's confirmation operation on the current screen display orientation, the second electronic device determines the current screen display orientation as the target screen display orientation. Taking a smart screen switch as an example, the second electronic device... Figure 22 The diagram illustrates the result of responding to a user's screen orientation adjustment. See attached image. Figure 22 The current screen display orientation preview image 2202 is integrated with the orientation adjustment component. When the user triggers the current screen display orientation preview image 2202, the smart screen switch will rotate the current screen display orientation and its corresponding preview image 2202 by 90 degrees to obtain a new current screen display orientation and its preview image. The display orientation adjustment page also includes a display orientation confirmation component 2204. When the user triggers the display orientation confirmation component 2204, the second electronic device will determine the current screen display orientation as the target screen display orientation.

[0221] In this embodiment, the second electronic device supports user-defined settings for the target screen display direction and displays the target control page according to the target screen display direction, which enables the target control page to be displayed in a direction that is convenient for the user to view.

[0222] In some embodiments, the second electronic device can adaptively adjust the display parameters of the display screen, such as brightness, according to the surrounding environment; in other embodiments, the second electronic device supports user-defined settings of the display screen parameters.

[0223] To more clearly illustrate the device control method provided in the embodiments of this application, a specific embodiment is given below for detailed description. However, it should be understood that the embodiments of this application are not limited thereto. In one embodiment, this application also provides a device control method based on screen adaptive adjustment, which is applied to devices such as… Figure 23The smart home system shown includes terminal devices, smart switches with screens, and multiple smart devices, specifically including the following:

[0224] In related technologies, most devices with screens, when configuring control pages for other devices, either allow only a fixed number of devices to be configured on each page, making it impossible to adapt to changes in user needs. For example, requiring users to configure four devices on a single page might force users to configure devices that don't require control, thus increasing the user's configuration burden; or each page is divided into a fixed number of areas for device control, resulting in empty areas when a page cannot be fully configured, which is also visually unappealing.

[0225] I. Structural Description of Intelligent Switches with Screens

[0226] In this embodiment, the intelligent screen switch is as follows: Figure 3 As shown, it can be installed on a wall; see reference. Figure 3 The smart switch with a screen consists of two modules: a display screen 302 and a switch 304. Users can select smart devices as target controlled devices via a terminal device. These target controlled devices are integrated into one or more control pages, which are displayed on the display screen 302, allowing users to control the target controlled devices through the smart switch. The switch 304 can be electrically connected to the smart device; pressing the switch 304 directly controls the connected smart device. Furthermore, when selecting a target controlled device, the switch 304 also functions as a wireless switch and is used as the target controlled device.

[0227] II. Installation of intelligent switches with screens.

[0228] like Figure 8 As shown, the smart switch with screen supports both horizontal and vertical mounting, such as... Figure 21 As shown, when installed in different orientations, the smart switch with screen will automatically match the screen display orientation. For example, when a user first turns on the smart switch with screen, it will automatically identify the installation orientation and match the screen display orientation using a gyroscope or similar structure. Users can also manually adjust the screen display orientation when first turning on the smart switch, or while using it. For example, see [link to relevant documentation]. Figure 22 During the adjustment of the screen display orientation, the screen display orientation will rotate 90° clockwise each time the user clicks the display screen 302.

[0229] III. Control page configuration.

[0230] 1. Configuration instructions.

[0231] (1) Users configure the control page for the smart switch with screen through the terminal device. The configured control page will be displayed on the display screen 302.

[0232] (2) Control pages are configured in units of "pages". After each control page is configured, the terminal device will upload the control page, the page layout of the control page, and the relevant information of the controlled objects in the control page to the server, and then the server will distribute them to the smart screen device. For example, if the terminal device is configured with 1 page, the display screen 302 will display 1 page; if the terminal device is configured with 6 pages, the display screen 302 will display 6 pages; a control page covers one screen area of ​​the display screen 302, and the displayed control page can be switched by swiping left and right on the display screen 302.

[0233] 2. Configuration process.

[0234] Specifically, see Figure 4 (a) When the user triggers the control page configuration entry component 402 in the device page of the smart screen switch, the terminal device jumps to, as shown in the image. Figure 4 (b) shows the object selection page for each controlled object of the smart switch with screen, and displays each controlled object of the smart switch with screen on the object selection page; the controlled object can be a smart device or a controlled solution.

[0235] See Figure 5 (b) When a user selects any controlled object on the object selection page, the terminal device determines the controlled object selected by the user as the target controlled object. At the same time, the terminal device adaptively determines at least one recommended page layout based on the number of objects of the target controlled object, and displays the target recommended page layout 506 with the highest recommendation priority among the recommended page layouts on the object selection page. For example, if the user selects 1 target controlled object, a 1-grid page layout is recommended to the user. If the user selects 2 target controlled objects, the layout automatically changes to a 2-grid page layout.

[0236] When the user triggers the object confirmation component 508 on the object selection page, the terminal device is redirected to the following... Figure 5 (c) shows the layout selection page, and displays preview images 502 of each recommended page layout, so that users can select and switch between the recommended page layouts corresponding to the number of objects of the target controlled object.

[0237] See Figure 11 On the layout selection page, whenever a user selects a preview image of a recommended page layout, the terminal device will enlarge and display the preview image of the selected recommended page layout separately, and also make the preview image of the selected recommended page layout bold.

[0238] See Figure 5 (c) The user triggers the page layout confirmation component 504 in the layout selection page. The terminal device generates a smart screen switch based on the recommended page layout confirmed by the user. Figure 6 The target control page shown is sent to the smart screen switch for display.

[0239] In practical applications, users can select a physical switch as the target controlled device. This physical switch can be a smart switch with a screen (e.g., switch 304) or another switch independent of the smart switch with a screen. The physical switch itself can be electrically connected to an associated device. When the physical switch is electrically connected to an associated device, pressing the physical switch will electrically control the associated device to perform the corresponding action. If the user selects a physical switch as the target controlled object and the physical switch is electrically connected to an associated device, pressing the physical switch or triggering the control component of the physical switch on the target control page will produce the same result.

[0240] like Figure 12 As shown, regardless of whether the physical switch device is electrically connected to an associated device, the user can select the physical switch device as the target controlled object. After the user selects the physical switch device as the target controlled object, the user can configure a first controlled scheme for the physical switch device. When the user presses the physical switch device or triggers the control component of the physical switch device in the target control page, the first trigger condition in the first controlled scheme is triggered, and the physical switch device will wirelessly control the first execution device in the first controlled scheme to execute the first execution action in the first controlled scheme.

[0241] If a physical switching device is simultaneously connected to related devices and configured with a first controlled scheme, then if Figure 14 As shown, users can customize the control logic between the associated device and the first controlled scheme. For example, when pressing the physical switch device or triggering the control component of the physical switch device in the target control page, can the associated device be controlled only by circuit, or can the first execution device be wirelessly controlled to perform the first execution action, or can the associated device be controlled by circuit and the first execution device be wirelessly controlled to perform the first execution action? After the user configures the control logic, when the user presses the physical switch device or triggers the control component of the physical switch device in the target control page, the physical switch device circuitically controls the associated device to perform the corresponding action and / or wirelessly controls the first execution device to perform the first execution action. Furthermore, if the user-configured control logic is to circuitically control the associated device and wirelessly control the first execution device to perform the first execution action, then when the action performed by the associated device conflicts with the action performed by the first execution device, the physical switch device will first circuitically control the associated device, and then wirelessly control the first execution device to perform the first execution action.

[0242] In practical applications, users can edit the configured target control page and the target controlled object through the terminal device, and the editing results will be synchronized to the smart screen switch.

[0243] In practical applications, the control component of the target controlled object is used to control the target function of the target controlled object. The target function includes at least a switch function. If the target controlled object also has other functions, such as an adjustment function, then the target function may also include other functions depending on the user's selection. The control component of the target controlled object includes sub-components corresponding to each target function. The trigger method for the sub-component of the switch function is click, and the trigger method for the sub-components of other functions may be click, swipe, etc., depending on the specific function. For a target control page, if there is only one target controlled object corresponding to the target control page, then the target function of the target controlled object includes at least a switch function, and the user may also select other functions as the target functions. If there are at least two target controlled objects corresponding to the target control page, to facilitate user operation on the display screen 302 of the smart switch with screen, the target function of each target controlled object is only a switch function. Furthermore, if the target function of the target controlled object corresponding to the target control page only includes a switch function, then the user can also choose between two identification strategies to identify the target controlled object: "display only icon" and "display icon and text".

[0244] III. Control based on intelligent screen switch.

[0245] The display screen 302 of the intelligent switch with screen shows the target control page; users can control the target controlled object to which each control component belongs through the control components in the target control page displayed by the intelligent switch with screen.

[0246] If the control component triggered by the user is the control component of the controlled device, the smart switch with screen will send control commands to the controlled device to control the controlled device to perform corresponding actions.

[0247] If the control component triggered by the user is the control component of a physical switch device, and the physical switch device is only electrically connected to the associated device, then the smart switch with screen sends a control command to the physical switch device to control the associated device to perform corresponding actions.

[0248] If the control component triggered by the user is the control component of the physical switch device, and the physical switch device is only configured with the first controlled scheme, then the smart switch with screen sends a control command to the physical switch device to control the physical switch device to wirelessly control the first execution device to perform the first execution action.

[0249] If the control component triggered by the user is the control component of a physical switch device, and the physical switch device is both circuit-connected to an associated device and configured with a first controlled scheme, then the smart switch with screen sends a control command to the physical switch device. The physical switch device controls the associated device to perform corresponding actions and wirelessly controls the first execution device to perform the first execution action according to the control logic circuit between the associated device and the first controlled scheme.

[0250] If the control component triggered by the user is the control component of the second controlled scheme, the smart screen switch determines that the second triggering condition in the second controlled scheme is triggered, and the smart screen switch sends a control command to the second execution device in the second controlled scheme to control the second execution device to perform the second execution action in the second controlled scheme.

[0251] In practical applications, such as Figure 16 , Figure 17 , Figure 18 , Figure 19 and Figure 20 As shown, the display screen 302 of the smart switch with screen can also display the command sending result, action execution progress, action execution result, and abnormal prompt message.

[0252] IV. Other settings for smart switches with screens.

[0253] In practical applications, the smart switch with screen has a smart wake-up function, allowing users to select or customize different wake-up distances. When a human-shaped object is detected within the wake-up area corresponding to the wake-up distance, the smart switch with screen wakes up the display screen 302 to display the target control page.

[0254] In practical applications, users can also set the brightness adjustment strategy of the smart screen switch. The brightness adjustment strategy includes automatic brightness adjustment and manual brightness adjustment. Under automatic brightness adjustment, the smart screen switch senses the ambient brightness based on the photosensor and automatically adjusts the screen brightness according to the set rules. Under manual brightness adjustment, the smart screen switch provides three levels: high, medium, and low. The smart screen switch will correspond to the three set brightness values, for example, high: 100% brightness, medium: 50% brightness, and low: 10% brightness. Users can select from the three levels, and the smart screen switch will display on the display screen 302 according to the selected level.

[0255] In this embodiment, more layouts are provided for the small screen, which can meet the usage needs of different users and different scenarios, greatly improving the playability and controllability of smart home devices; and the configuration process is more intelligent and flexible. Users only need to focus on adding devices to obtain the most suitable layout, which greatly simplifies the configuration process and improves usage efficiency.

[0256] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.

[0257] Based on the same inventive concept, this application also provides a device control apparatus for implementing the device control method for a first electronic device as described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in one or more device control apparatus embodiments provided below can be found in the above-described limitations regarding the device control method for a first electronic device, and will not be repeated here.

[0258] In one embodiment, such as Figure 24 As shown, a device control apparatus is provided, including: an object display module 2402, a layout recommendation module 2404, and a page generation module 2406, wherein:

[0259] The object display module 2402 is used to display at least one controlled object associated with the second electronic device in response to a configuration operation of the control page of the second electronic device.

[0260] The layout recommendation module 2404 is used to display at least one recommended page layout based on the number of objects of the selected target controlled object; the target controlled object is at least one of the controlled objects.

[0261] The page generation module 2406 is used to obtain a target page layout in response to a confirmation operation of any recommended page layout, and to configure a target control page corresponding to the target page layout for the second electronic device, so as to realize the control operation of each target controlled object in the second electronic device through the target control page; the target control page includes control components for each target controlled object.

[0262] In one embodiment, the layout recommendation module 2404 is further configured to determine at least one preset page layout matching the number of objects, thereby obtaining each recommended page layout; determine a target recommended page layout among the recommended page layouts according to the recommendation priority of each recommended page layout, and display a preview image of the target recommended page layout; the target recommended page layout is the recommended page layout with the highest recommendation priority; and display a preview image of each recommended page layout in response to the confirmation operation of each target controlled object.

[0263] In one embodiment, the layout recommendation module 2404 is further configured to determine at least one first preset page layout that matches the number of objects based on the number of objects; determine at least one second preset page layout that matches the installation method of the second electronic device from each of the first preset page layouts; and obtain each recommended page layout based on each of the second preset page layouts.

[0264] In one embodiment, each recommended page layout is displayed through a corresponding preview image; the preview image of the target recommended page layout in each recommended page layout is highlighted, and the target recommended page layout is initialized as the recommended page layout with the highest recommendation priority.

[0265] The page generation module 2406 is also used to, in response to the selection operation of any preview image of the recommended page layout, determine the selected recommended page layout as the new target recommended page layout and update the highlighted preview image; in response to the confirmation operation of the target recommended page layout, determine the target recommended page layout as the target page layout.

[0266] In one embodiment, the object display module 2402 is used to obtain the target controlled object based on the selected controlled object.

[0267] The equipment control device also includes a scheme configuration module, which, if the target controlled object includes a physical switch device, determines a first controlled scheme for the physical switch device in response to a controlled scheme configuration operation for the physical switch device; wherein, the first controlled scheme is configured with a first trigger condition, a first execution device, and a first execution action; when the first trigger condition is triggered, the first execution device executes the first execution action; the first trigger condition is triggered when the physical switch device is triggered or when the control component of the physical switch device in the target control page is triggered.

[0268] In one embodiment, the scheme configuration module is further configured to display multiple control strategies for the physical switch device if the physical switch device is circuit-connected to an associated device; the multiple control strategies include controlling the associated device through circuit control and / or controlling the first controlled scheme through wireless control; in response to the selection operation of any control strategy, the selected control strategy is determined as the target control strategy for the physical switch device; when the physical switch device is triggered or when the control component of the physical switch device in the target control page is triggered, the physical switch device, according to the target control strategy, circuit-controls the associated device to perform corresponding actions and / or wirelessly controls the first execution device to perform a first execution action.

[0269] In one embodiment, the device control apparatus further includes a configuration editing module for determining the editing result of the object to be edited in response to an editing operation on the object to be edited; the object to be edited includes at least one of a target control page and a target controlled object, and the editing operation includes at least one of adding, modifying, and deleting; and synchronizing the editing result to a second electronic device.

[0270] Based on the same inventive concept, this application also provides a device control apparatus for implementing the device control method for a second electronic device as described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in one or more device control apparatus embodiments provided below can be found in the above-described limitations regarding the device control method for a second electronic device, and will not be repeated here.

[0271] In one embodiment, such as Figure 25 As shown, a device control apparatus is provided, including: a page acquisition module 2502 and an object control module 2504, wherein:

[0272] The page acquisition module 2502 is used to acquire the target control page generated by the first electronic device; the first electronic device generates the target control page according to the device control method applied to the first electronic device; the target control page includes at least one control component of the target controlled object.

[0273] The object control module 2504 is used to display the target control page and, in response to the control operation of the target control component, issue corresponding control commands to the target controlled object corresponding to the target control component; the target control component can be any one of the control components.

[0274] In one embodiment, the target controlled object includes a physical switching device.

[0275] The object control module 2504 is also used to send control commands to the physical switch device when the target controlled object corresponding to the target control component is a physical switch device, and if the physical switch device circuit is connected to an associated device, so that the physical switch device circuit controls the associated device to perform corresponding actions; wherein, when the physical switch device is triggered, the physical switch device circuit controls the associated device to perform corresponding actions.

[0276] In one embodiment, the target controlled object includes a physical switching device.

[0277] The object control module 2504 is further configured to, when the target controlled object corresponding to the target control component is a physical switch device, if the physical switch device is configured with a first controlled scheme, send a control command to the physical switch device so that the physical switch device wirelessly controls the first execution device in the first controlled scheme to perform the first execution action in the first controlled scheme; the first controlled scheme is also configured with a first trigger condition, and when the first trigger condition is triggered, the first execution device performs the first execution action.

[0278] The first triggering condition is triggered when the physical switch device is triggered or when the control component of the physical switch device in the target control page is triggered.

[0279] In one embodiment, the target controlled object includes a physical switching device.

[0280] The object control module 2504 is further configured to, when the target controlled object corresponding to the target control component is a physical switch device, if the physical switch device is circuit-connected to an associated device and configured with a first controlled scheme, determine the target control strategy of the physical switch device; if the target control strategy is to control the associated device through circuit control, then send a control command to the physical switch device to cause the physical switch device to control the associated device to perform a corresponding action; if the target control strategy is to control the first controlled scheme through wireless control, then send a control command to the physical switch device to cause the physical switch device to wirelessly control the first execution device in the first controlled scheme to perform a first execution action in the first controlled scheme; if the target control strategy is to control the associated device through circuit control and control the first controlled scheme through wireless control, then send a control command to the physical switch device to cause the physical switch device to control the associated device to perform a corresponding action and wirelessly control the first execution device to perform a first execution action.

[0281] The first controlled scheme is also configured with a first triggering condition. When the first triggering condition is triggered, the first execution device performs a first execution action. The first triggering condition is triggered when the physical switch device is triggered or when the control component of the physical switch device in the target control page is triggered.

[0282] In one embodiment, the target controlled object includes a second controlled scheme; the second controlled scheme is configured with a second triggering condition, a second execution device, and a second execution action; when the second triggering condition is triggered, the second execution device executes the second execution action; when the control component of the second controlled scheme is triggered, the second triggering condition is triggered.

[0283] The object control module 2504 is further configured to determine that the second triggering condition is triggered if the target controlled object corresponding to the target control component is the second controlled scheme, and to issue a control command to the second execution device so that the second execution device performs the second execution action.

[0284] In one embodiment, the object control module 2504 is further configured to display at least one of the following on the target control page, namely, instruction sending result, action execution progress, and action execution result, according to the target controlled object corresponding to the target control component; wherein, the instruction sending result is used to characterize the result of sending the control instruction; the action execution progress is used to characterize the progress of the target controlled object corresponding to the target control component in performing the corresponding action in response to the control instruction; and the action execution result is used to characterize the result of the target controlled object corresponding to the target control component in performing the corresponding action in response to the control instruction.

[0285] In one embodiment, the object control module 2504 is further configured to wake up the second electronic device and display the target control page if a target monitoring object is detected in the wake-up area of ​​the second electronic device; the wake-up area is determined according to a preset wake-up strategy, the wake-up strategy including a wake-up distance, which is used to characterize the distance between the edge of the wake-up area and the second electronic device; the wake-up strategy is obtained through user configuration.

[0286] In one embodiment, the second electronic device is equipped with a display screen; the second electronic device displays a target control page on the display screen based on the target screen display orientation.

[0287] The equipment control device also includes a direction determination module, which is used to detect the installation method of the second electronic device, determine the screen display direction that matches the installation method, and obtain the target screen display direction.

[0288] The orientation determination module is also used to respond to a screen display orientation adjustment operation triggered on the second electronic device, display a preview image of the current screen display orientation and an orientation adjustment component; respond to a trigger operation on the orientation adjustment component, adjust the current screen display orientation to obtain a new current screen display orientation, and update the corresponding display orientation preview image; and respond to a confirmation operation on the current screen display orientation, determine the current screen display orientation as the target screen display orientation.

[0289] Each module in the aforementioned device control unit can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the electronic device in hardware form or independent of it, or stored in the memory of the electronic device in software form, so that the processor can call and execute the operations corresponding to each module.

[0290] Based on the same inventive concept, this application also provides a device control system for implementing the device control method described above. The solution provided by this system is similar to the implementation scheme described in the above method; therefore, the specific limitations in one or more device control system embodiments provided below can be found in the limitations of the device control method described above, and will not be repeated here.

[0291] In one embodiment, this application also provides a method such as Figure 26 The equipment control system shown includes a first electronic device, a second electronic device, and at least one target controlled object.

[0292] A first electronic device is configured to, in response to a configuration operation on a control page of a second electronic device, display at least one controlled object associated with the second electronic device; display at least one recommended page layout based on the number of objects of the selected target controlled object; the target controlled object is at least one of the controlled objects; in response to a confirmation operation on any recommended page layout, obtain the target page layout; and configure a target control page corresponding to the target page layout for the second electronic device based on the target page layout, so as to realize control operation on each target controlled object in the second electronic device through the target control page.

[0293] The second electronic device is used to display the target control page and, in response to the control operation of the target control component, to issue corresponding control commands to the target controlled object corresponding to the target control component; the target control component can be any one of the control components.

[0294] In one embodiment, the target controlled object includes a physical switch device, which is circuitically connected to an associated device and / or configured with a first controlled scheme. The first controlled scheme is configured with a first trigger condition, a first execution device, and a first execution action. When the first trigger condition is triggered, the first execution device is wirelessly controlled to execute the first execution action. When the physical switch device is triggered or when the control component of the physical switch device in the target control page is triggered, the physical switch device circuit controls the associated device to execute the corresponding action and / or wirelessly controls the first execution device to execute the first execution action according to the corresponding target control strategy.

[0295] In one embodiment, the physical switching device includes at least one of a first physical switching device and a second physical switching device, wherein the first physical switching device is a physical switch independent of the second electronic device, and the second physical switching device is a physical switch integrated with the second electronic device.

[0296] In one embodiment, an electronic device is provided, which may be a terminal, and its internal structure diagram may be as follows. Figure 27 As shown, this electronic device includes a processor, memory, input / output interface, communication interface, display unit, and 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 also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through WiFi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a device control method. The display unit 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 an LCD screen or an e-ink screen. The input device of the electronic device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the electronic device, or external keyboards, touchpads, or mice, etc.

[0297] Those skilled in the art will understand that Figure 27 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the electronic device to which the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0298] In one embodiment, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.

[0299] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above-described method embodiments.

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

[0301] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, 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 many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0302] The technical features of the above embodiments can be combined in any way. For the sake of brevity, 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.

[0303] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A device control method, characterized in that, Applied to a first electronic device, the method includes: In response to a configuration operation on the control page of the second electronic device, at least one controlled object associated with the second electronic device is displayed; Based on the number of objects in the selected target controlled object, display at least one recommended page layout; the target controlled object is at least one of the controlled objects. In response to a confirmation operation on any of the recommended page layouts, a target page layout is obtained. Based on the target page layout, a target control page corresponding to the target page layout is configured for the second electronic device, so that control operations on each of the target controlled objects can be implemented in the second electronic device through the target control page; the target control page includes control components for each of the target controlled objects.

2. The method according to claim 1, characterized in that, The step of displaying at least one recommended page layout based on the number of objects of the selected target controlled object includes: Based on the number of objects, determine at least one preset page layout that matches the number of objects, and obtain at least one recommended page layout; Based on the recommendation priority of each of the recommended page layouts, a target recommended page layout is determined from each of the recommended page layouts, and a preview image of the target recommended page layout is displayed; the target recommended page layout is the recommended page layout with the highest recommendation priority; in response to the confirmation operation of each of the target controlled objects, a preview image of each of the recommended page layouts is displayed.

3. The method according to claim 2, characterized in that, The step of determining at least one preset page layout matching the number of objects to obtain at least one recommended page layout includes: Based on the number of objects, determine at least one first preset page layout that matches the number of objects; From each of the first preset page layouts, at least one second preset page layout that matches the installation method of the second electronic device is determined; The recommended page layouts are obtained based on the second preset page layouts.

4. The method according to claim 1, characterized in that, Each of the recommended page layouts is displayed through a corresponding preview image; the preview image of the target recommended page layout in each of the recommended page layouts is highlighted, and the target recommended page layout is initialized to the recommended page layout with the highest recommendation priority; The step of obtaining the target page layout in response to a confirmation operation on any of the recommended page layouts includes: In response to the selection of any of the preview images of the recommended page layouts, the selected recommended page layout is determined as the new target recommended page layout, and the highlighted preview image is updated. In response to the confirmation operation of the target recommended page layout, the target recommended page layout is determined as the target page layout.

5. The method according to claim 1, characterized in that, After demonstrating that at least one controlled object is associated with the second electronic device, the method further includes: The target controlled object is obtained based on the selected controlled object; After obtaining the target controlled object, the process also includes: If the target controlled object includes a physical switching device, then in response to the control scheme configuration operation of the physical switching device, a first control scheme of the physical switching device is determined; The first controlled scheme is configured with a first triggering condition, a first execution device, and a first execution action. When the first triggering condition is triggered, the first execution device executes the first execution action. The first triggering condition is triggered when the physical switch device is triggered or when the control component of the physical switch device in the target control page is triggered.

6. The method according to claim 5, characterized in that, After determining the first controlled scheme for the physical switching device, the method further includes: If the physical switchgear circuit is connected to an associated device, then multiple control strategies for the physical switchgear are displayed; the multiple control strategies include controlling the associated device through circuit control and / or controlling the first controlled scheme through wireless control. In response to the selection of any of the control strategies, the selected control strategy is determined as the target control strategy of the physical switch device; when the physical switch device is triggered or when the control component of the physical switch device in the target control page is triggered, the physical switch device, according to the target control strategy, circuitically controls the associated device to perform corresponding actions and / or wirelessly controls the first execution device to perform the first execution action.

7. The method according to any one of claims 1 to 6, characterized in that, After configuring the target control page corresponding to the target page layout for the second electronic device, the method further includes: In response to an editing operation on an object to be edited, the editing result of the object to be edited is determined; the object to be edited includes at least one of the target control page and the target controlled object, and the editing operation includes at least one of adding, modifying, and deleting; The editing results are synchronized to the second electronic device.

8. A device control method, characterized in that, Applied to a second electronic device, the method includes: A target control page generated by a first electronic device is obtained; the first electronic device generates the target control page according to any one of claims 1 to 7; the target control page includes at least one control component for a target controlled object; The target control page is displayed, and in response to the control operation of the target control component, a corresponding control command is issued to the target controlled object corresponding to the target control component; the target control component is any one of the control components.

9. The method according to claim 8, characterized in that, The target controlled object includes physical switching equipment; The step of issuing corresponding control commands to the target controlled object corresponding to the target control component includes: When the target controlled object corresponding to the target control component is the physical switch device, if the physical switch device circuit is connected to an associated device, the control command is sent to the physical switch device so that the physical switch device circuit controls the associated device to perform a corresponding action; When the physical switch is triggered, the circuit of the physical switch controls the associated device to perform a corresponding action.

10. The method according to claim 8, characterized in that, The target controlled object includes physical switching equipment; The step of issuing corresponding control commands to the target controlled object corresponding to the target control component includes: When the target controlled object corresponding to the target control component is the physical switch device, if the physical switch device is configured with a first controlled scheme, the control command is sent to the physical switch device so that the physical switch device wirelessly controls the first execution device in the first controlled scheme to execute the first execution action in the first controlled scheme. The first controlled scheme is further configured with a first triggering condition. When the first triggering condition is triggered, the first execution device performs the first execution action. The first triggering condition is triggered when the physical switch device is triggered or when the control component of the physical switch device in the target control page is triggered.

11. The method according to claim 8, characterized in that, The target controlled object includes physical switching equipment; The step of issuing corresponding control commands to the target controlled object corresponding to the target control component includes: When the target controlled object corresponding to the target control component is the physical switch device, if the physical switch device is connected to an associated device and configured with a first controlled scheme, then the target control strategy of the physical switch device is determined. If the target control strategy is to control the associated device through circuit control, then the control command is sent to the physical switching device so that the physical switching device circuit controls the associated device to perform the corresponding action; If the target control strategy is to control the first controlled scheme through wireless control, then the control command is sent to the physical switch device so that the physical switch device wirelessly controls the first execution device in the first controlled scheme to perform the first execution action in the first controlled scheme. If the target control strategy is to control the associated device through circuit control and control the first controlled scheme through wireless control, then the control command is sent to the physical switch device so that the physical switch device circuit controls the associated device to perform corresponding actions and wirelessly controls the first execution device to perform the first execution action. The first controlled scheme is further configured with a first triggering condition. When the first triggering condition is triggered, the first execution device performs the first execution action. The first triggering condition is triggered when the physical switch device is triggered or when the control component of the physical switch device in the target control page is triggered.

12. The method according to claim 8, characterized in that, The target controlled object includes a second controlled scheme; the second controlled scheme is configured with a second triggering condition, a second execution device, and a second execution action; when the second triggering condition is triggered, the second execution device executes the second execution action; when the control component of the second controlled scheme is triggered, the second triggering condition is triggered. The step of issuing corresponding control commands to the target controlled object corresponding to the target control component includes: If the target controlled object corresponding to the target control component is the second controlled scheme, then it is determined that the second triggering condition has been triggered, and the control command is sent to the second execution device so that the second execution device performs the second execution action.

13. The method according to claim 8, characterized in that, After issuing the corresponding control command to the target controlled object corresponding to the target control component, the method further includes: Based on the target controlled object corresponding to the target control component, at least one of the following is displayed on the target control page: instruction sending result, action execution progress, and action execution result; Wherein, the instruction sending result is used to characterize the sending result of the control instruction; the action execution progress is used to characterize the progress of the target controlled object corresponding to the target control component in executing the corresponding action in response to the control instruction; and the action execution result is used to characterize the result of the target controlled object corresponding to the target control component in executing the corresponding action in response to the control instruction.

14. The method according to claim 8, characterized in that, The display of the target control page includes: If a target monitoring object is detected within the wake-up area of ​​the second electronic device, the second electronic device is woken up and the target control page is displayed; the wake-up area is determined according to a preset wake-up strategy, which includes a wake-up distance, which is used to characterize the distance between the edge of the wake-up area and the second electronic device; the wake-up strategy is obtained through user configuration.

15. The method according to any one of claims 8 to 14, characterized in that, The second electronic device is equipped with a display screen; the second electronic device displays the target control page on the display screen based on the target screen display orientation; Before acquiring the target control page generated by the first electronic device, the process also includes: The installation method of the second electronic device is detected, and the screen display orientation that matches the installation method is determined to obtain the target screen display orientation; Alternatively, before obtaining the target control page generated by the first electronic device, the process may include: In response to a screen display orientation adjustment operation triggered on the second electronic device, a preview image of the current screen display orientation and an orientation adjustment component are displayed. In response to a trigger operation on the orientation adjustment component, the current screen display orientation is adjusted to obtain a new current screen display orientation, and the corresponding display orientation preview image is updated. In response to the confirmation operation of the current screen display orientation, the current screen display orientation is determined as the target screen display orientation.

16. A device control system, characterized in that, The system includes a first electronic device, a second electronic device, and at least one target controlled object; The first electronic device is configured to, in response to a configuration operation of a control page for the second electronic device, display at least one controlled object associated with the second electronic device; display at least one recommended page layout based on the number of objects of the selected target controlled object; wherein the target controlled object is at least one of the controlled objects; and, in response to a confirmation operation of any of the recommended page layouts, obtain a target page layout, and configure a target control page corresponding to the target page layout for the second electronic device based on the target page layout, so as to realize control operations on each of the target controlled objects in the second electronic device through the target control page. The second electronic device is used to display the target control page and, in response to a control operation on the target control component, to issue a corresponding control command to the target controlled object corresponding to the target control component; the target control component is any one of the control components.

17. The system according to claim 16, characterized in that, The target controlled object includes a physical switching device, which is circuitically connected to an associated device and / or configured with a first controlled scheme. The first controlled scheme is configured with a first trigger condition, a first execution device, and a first execution action. When the first trigger condition is triggered, the first execution device executes the first execution action. When the physical switching device is triggered or when the control component of the physical switching device in the target control page is triggered, the circuit of the physical switching device controls the associated device to execute a corresponding action and / or wirelessly controls the first execution device to execute the first execution action according to the corresponding target control strategy.

18. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 15.

19. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 15.

20. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 15.