A device control method, apparatus, device, and storage medium

By displaying the power supply area and device controls in the device control interface, users can quickly power on or off multiple devices by triggering operations, which solves the problem of cumbersome operation in the existing technology, provides real-time power consumption information, and improves operating efficiency and energy saving effect.

CN117008510BActive Publication Date: 2026-06-09GREE ELECTRIC APPLIANCE INC OF ZHUHAI

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GREE ELECTRIC APPLIANCE INC OF ZHUHAI
Filing Date
2023-07-31
Publication Date
2026-06-09

AI Technical Summary

Technical Problem

Existing technologies involve cumbersome power-off operations for multiple devices and lack real-time power consumption statistics, resulting in complex and time-consuming operations.

Method used

By displaying the power supply area and associated device controls in the device control interface, users can change the positional relationship between the controls and the power supply area by triggering operations, thereby enabling power supply or power cut-off operations on the devices. The system also displays power consumption and energy intensity in real time, supporting rapid control of multiple devices.

Benefits of technology

It simplifies the control of multiple devices, allowing users to quickly power on or off devices within the same interface, avoiding omissions of devices, saving energy, and providing intuitive power consumption information, thereby raising users' awareness of energy conservation and emission reduction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117008510B_ABST
    Figure CN117008510B_ABST
Patent Text Reader

Abstract

The application provides a device control method and device, equipment and storage medium, and belongs to the technical field of smart home. The method comprises the following steps: displaying a device control interface; in response to a triggering operation on a target device control, determining the positional relationship between the target device control and a power supply area after the triggering operation; and based on the positional relationship, powering off or powering on a target associated device corresponding to the target device control. By displaying the power supply area and the device control of the associated device on the device control interface, the user can change the relative position between the device control and the power supply area in the interface through a triggering operation, thereby realizing the power-on or power-off operation of the associated device. The user can quickly power on and power off multiple devices in the same interface without having to find the controller or main card of each device, thereby simplifying the control operation of multiple devices. In addition, all powered-on devices and powered-off devices can be intuitively viewed, preventing the omission of devices that need to be powered off and saving energy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart home technology, and in particular to a device control method, apparatus, device and storage medium. Background Technology

[0002] With the continuous development of smart home systems, the connectivity of devices throughout the house has made great progress. However, the power supply and power-off operations for individual products still involve multiple steps, and there is no real-time statistical feedback on information such as the power consumption of individual devices.

[0003] Currently, common methods for powering off devices include directly operating the power on / off buttons on individual devices or their remote controls, or powering off individual devices via a main card displayed on a mobile terminal associated with the device. When powering off multiple devices, it is necessary to access the corresponding card for each device or find the control button for each device separately, and simultaneous operation is not possible, making the process quite cumbersome. Summary of the Invention

[0004] This application provides a device control method, apparatus, device, and storage medium, which simplifies the control operation of multiple devices. The technical solution is as follows:

[0005] On one hand, embodiments of this application provide a device control method, including:

[0006] The device control interface includes a power supply area and at least one device control corresponding to an associated device.

[0007] In response to a trigger operation on a target device control, the positional relationship between the target device control and the power supply area after the trigger operation is determined;

[0008] Based on the positional relationship, the target associated device corresponding to the target device control is powered off or powered on.

[0009] Optionally, determining the positional relationship between the target device control and the power supply area after the triggering operation in response to a triggering operation on the target device control includes:

[0010] In response to a first trigger operation on the target device control, the display state of the target device control is switched from the default state to the selected state;

[0011] In response to the second trigger operation on the target device control in the selected state, the positional relationship between the target device control and the power supply area after the second trigger operation is determined based on the second trigger operation.

[0012] Optionally, the step of responding to the second trigger operation on the target device control in the selected state, and determining the positional relationship between the target device control and the power supply area after the trigger operation based on the second trigger operation, includes:

[0013] In response to the start of the second triggering operation, the target device control is moved and displayed based on the operation point position of the second triggering operation;

[0014] In response to the end of the second triggering operation, the target device control is displayed based on the end position of the second triggering operation, and the positional relationship between the target device control and the power supply area after the second triggering operation is determined.

[0015] Optionally, the step of powering off or powering on the target associated device corresponding to the target device control based on the positional relationship includes:

[0016] In response to the triggering operation, when the target device control is located within the power supply area, power is supplied to the target associated device;

[0017] In response to the target device control being located outside the power supply area after the triggering operation, the power is cut off to the target associated device.

[0018] Optionally, the method further includes:

[0019] Obtain the real-time power consumption of each associated device under power supply conditions;

[0020] The real-time power consumption is displayed through the corresponding device control within the power supply area.

[0021] Optionally, the method further includes:

[0022] Based on the real-time power consumption and power supply duration of the associated devices, the energy consumption intensity of the associated devices is sorted to obtain the sorting results;

[0023] The display size of the device control corresponding to the associated device is determined based on the sorting result, wherein the display size corresponding to the high-energy-consuming device is larger than the display size corresponding to the low-energy-consuming device;

[0024] The device controls within the power supply area are updated based on the display size.

[0025] Optionally, after obtaining the real-time power consumption of each associated device under power supply conditions, the method further includes:

[0026] In response to the real-time power consumption reaching the power consumption threshold of the associated device, a prompt message indicating that the associated device should be powered off is displayed through the device control interface. The power consumption threshold is a preset value or a value obtained based on a threshold setting operation.

[0027] Optionally, the method further includes:

[0028] The remaining stored energy of the energy storage device is obtained, and the energy storage device is used to supply power to the associated device;

[0029] The remaining stored energy is displayed through the power supply area.

[0030] On the other hand, embodiments of this application provide a device control apparatus, including:

[0031] The display module is used to display the device control interface, which includes a power supply area and at least one device control corresponding to an associated device.

[0032] A determination module is used to determine the positional relationship between the target device control and the power supply area after the triggering operation in response to a triggering operation on the target device control;

[0033] The control module is used to power off or power on the target associated device corresponding to the target device control based on the positional relationship.

[0034] On the other hand, embodiments of this application provide an electronic device, including a memory and a processor; the memory stores a computer program, which, when executed by the processor, implements the methods described above.

[0035] On the other hand, embodiments of this application provide a home appliance controller, which is used for:

[0036] The device control interface includes a power supply area and at least one device control corresponding to an associated device.

[0037] In response to a trigger operation on a target device control, the positional relationship between the target device control and the power supply area after the trigger operation is determined;

[0038] Based on the positional relationship, the target associated device corresponding to the target device control is powered off or powered on.

[0039] On the other hand, embodiments of this application provide a computer-readable storage medium storing a computer program that is loaded and executed by a processor to implement the methods described above.

[0040] The technical solution provided in this application includes at least the following beneficial effects:

[0041] This application provides a device control method, apparatus, equipment, and storage medium. The device control interface displays the power supply area and associated device controls. Users can change the relative position of the device controls and the power supply area by triggering operations within the interface, thereby enabling power supply or power-off operations on the associated devices. Furthermore, users can quickly power on and off multiple devices within the same interface, eliminating the need to search for individual device controllers or main cards, simplifying the control of multiple devices. It also allows for a clear view of all powered and de-powered devices, preventing the omission of devices to be de-powered and saving energy. Attached Figure Description

[0042] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below.

[0043] Figure 1 This is a flowchart of a device control method provided in an exemplary embodiment of this application;

[0044] Figure 2 This is a schematic diagram of a device control interface provided in an exemplary embodiment of this application;

[0045] Figure 3 This is a flowchart of a device control method provided in another exemplary embodiment of this application;

[0046] Figure 4 This is a schematic diagram of a device control interface provided in another exemplary embodiment of this application;

[0047] Figure 5 This is a schematic diagram of a device control interface provided in another exemplary embodiment of this application;

[0048] Figure 6 This is a flowchart of a device control method provided in another exemplary embodiment of this application;

[0049] Figure 7 This is a schematic diagram of a device control interface provided in another exemplary embodiment of this application;

[0050] Figure 8 This is a structural block diagram of a device control apparatus provided in an exemplary embodiment of this application;

[0051] Figure 9 This is a structural block diagram of an electronic device provided in an exemplary embodiment of this application. Detailed Implementation

[0052] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0053] Please refer to Figure 1 The diagram illustrates a flowchart of a device control method provided in an exemplary embodiment of this application. The method includes the following steps:

[0054] Step 101: Display the device control interface, which includes a power supply area and device controls corresponding to at least one associated device.

[0055] In one possible implementation, after an electronic device is associated with a home appliance, device controls corresponding to each home appliance can be generated, and each device control can be displayed when the device control interface is displayed.

[0056] The device control interface also displays a power supply area. Devices associated with device controls located within this area are powered on, while devices associated with device controls located outside this area are powered off.

[0057] Indicative Figure 2 A device control interface is shown. The device control interface includes a power supply area 201 and device controls 202a for a refrigerator, 202b for a washing machine, 202c for a humidifier, and 202d for a water heater.

[0058] Step 102: In response to the trigger operation on the target device control, determine the positional relationship between the target device control and the power supply area after the trigger operation.

[0059] Users can select the corresponding device control through the device control interface to trigger operations, and control the associated device by changing the position of the device control. After receiving a trigger operation on the target device control, the electronic device confirms the positional relationship between the target device control and the power supply area when the operation ends.

[0060] Optionally, the electronic device can also acquire the positional relationship between the target device control and the power supply area before and after the trigger operation, and perform corresponding control operations on the device based on the changes in the positional relationship. If the positional relationship remains unchanged before and after the operation, the operation is ignored.

[0061] Step 103: Based on the positional relationship, power off or power on the target associated device corresponding to the target device control.

[0062] The electronic device powers off (shut down) or powers on (power on) the target associated device based on the positional relationship between the target device control and the power supply area. Optionally, if the target device control is outside the power supply area, the electronic device powers off the target associated device; if the target device control is within the power supply area, the electronic device powers on the target associated device. Further, if the target device control was within the power supply area before the triggering operation and is outside the power supply area after the triggering operation, the electronic device powers off the target associated device; if the target device control was outside the power supply area before the triggering operation and is within the power supply area after the triggering operation, the electronic device powers on the target associated device.

[0063] In summary, the method provided in this application displays the power supply area and device controls of associated devices through a device control interface. Users can change the relative position between the device controls and the power supply area by triggering operations in the interface, thereby enabling power supply or power-off operations on associated devices. Furthermore, users can quickly power supply and power off multiple devices within the same interface without having to search for the controller or main card of each individual device, simplifying the control operations of multiple devices. In addition, all powered and de-powered devices can be viewed intuitively, preventing the omission of devices that need to be de-powered and saving energy.

[0064] Please refer to Figure 3 The diagram illustrates a flowchart of a device control method provided in another exemplary embodiment of this application. The method includes the following steps:

[0065] Step 301: Display the device control interface, which includes a power supply area and device controls corresponding to at least one associated device.

[0066] The specific implementation of step 301 can be referred to step 101 above, and will not be repeated here in the embodiments of this application.

[0067] Step 302: In response to the first trigger operation on the target device control, switch the display state of the target device control from the default state to the selected state.

[0068] In one possible implementation, the triggering operation of the device control includes two phases: a first triggering operation and a second triggering operation. When the first triggering operation is received for the target device control, the electronic device switches the display state of the target device control from the default state to the selected state. When the second triggering operation is received for the target device control in the selected state, the electronic device moves the target device control based on the second triggering operation.

[0069] Optionally, the first and second trigger operations can be of different types. For example, the first trigger operation can be a long press, and the second trigger operation can be a drag-and-drop operation. To illustrate, a user can long press to select the target device control, drag it into the power supply area, and then release the button to power the associated device.

[0070] Optionally, the first trigger operation and the second trigger operation can be of the same type; for example, both the first and second trigger operations can be single-click operations. Illustratively, a user can click to select a target device control, and then perform a single click within the power supply area to move the target device control from outside the power supply area to within the power supply area, thus supplying power to the target associated device.

[0071] Indicative, such as Figure 4 As shown, users can long-press the device control corresponding to the refrigerator to perform the first trigger operation and switch it to the selected state.

[0072] Step 303: In response to the second trigger operation on the target device control in the selected state, determine the positional relationship between the target device control and the power supply area after the second trigger operation based on the second trigger operation.

[0073] In one possible implementation, the target device control in the selected state is attached to the touch point that triggers the operation and moves with the movement of the touch point, so that the user can intuitively view the real-time position of the target device control and complete the operation. Step 303 specifically includes the following steps:

[0074] Step 303a: In response to the start of the second trigger operation, the target device control is moved and displayed based on the operation point position of the second trigger operation.

[0075] After the user selects the target device control and holds it, the next operation stage, namely the second trigger operation, is entered. The electronic device moves and displays the target device control based on the operation point position of the second trigger operation.

[0076] This is illustrative; please refer to it. Figure 5 It shows the process by which a user moves the device control corresponding to the refrigerator through a second trigger operation.

[0077] Step 303b: In response to the end of the second trigger operation, display the target device control based on the end position of the second trigger operation, and determine the positional relationship between the target device control and the power supply area after the second trigger operation.

[0078] When the second trigger operation ends, the electronic device determines the area where the end position of the second trigger operation is located as the display area of ​​the target device control. That is, if the end position of the second trigger operation is within the power supply area, the display position of the target device control is within the power supply area; if the end position of the second trigger operation is outside the power supply area, the display position of the target device control is outside the power supply area.

[0079] Step 304: Based on the positional relationship, power off or power on the target associated device corresponding to the target device control.

[0080] The specific implementation of step 304 can be referred to step 103 above, and will not be repeated here in the embodiments of this application.

[0081] In this embodiment of the application, by simplifying a single home appliance into a graphic, the user can select and drag it to the power supply area by long-pressing the control to quickly power the single home appliance. Similarly, dragging it out will quickly cut off the power. The user can intuitively see all the powered-on and powered-off devices.

[0082] In one possible implementation, in addition to enabling rapid control of a batch of devices, the electronic device can also intuitively display the stored energy and the energy consumption of the devices, allowing users to clearly and intuitively understand the energy consumption of each related device. This function can also be used to identify high-energy-consuming devices or devices with abnormal power consumption in the home, thereby raising awareness of energy conservation and emission reduction.

[0083] Please refer to Figure 6 This illustrates a flowchart of a device control method provided in another exemplary embodiment of this application. Figure 1 and Figure 3 Based on the process shown, this method may further include the following steps:

[0084] Step 601: Obtain the real-time power consumption of each associated device under power supply conditions.

[0085] Step 602: Display real-time power consumption through the corresponding device controls within the power supply area.

[0086] In one possible implementation, after being powered on, each home appliance calculates its real-time power consumption based on its own operating power, operating time, and other information, and sends the real-time power consumption data to the electronic device. The electronic device receives the real-time power consumption data sent by each associated device and updates the display of the real-time power consumption data through the corresponding device controls, so that the user can monitor the power consumption of each device.

[0087] Optionally, the electronic device can also display the power supply duration of each powered device through the device control.

[0088] Indicative, such as Figure 7As shown, the refrigerator's device control 701 displays the refrigerator's real-time power consumption from the last power supply to the present.

[0089] Step 603: Based on the real-time power consumption and power supply duration of the associated devices, sort the energy consumption intensity of the associated devices to obtain the sorting results.

[0090] Electronic devices can sort the energy intensity of associated devices (from largest to smallest or from smallest to largest) based on the real-time power consumption and power supply duration of associated devices, that is, sort the actual power of associated devices to obtain the sorting result.

[0091] Step 604: Determine the display size of the device control corresponding to the associated device based on the sorting result, wherein the display size corresponding to the high-energy-consuming device is larger than the display size corresponding to the low-energy-consuming device.

[0092] Step 605: Update the device controls within the power supply area based on the display size.

[0093] When there are many power supply devices, electronic devices can distinguish between devices with high and low power consumption by the size of the control display, helping users to intuitively identify high-power devices.

[0094] In another possible implementation, the electronic device can also display the power consumption of associated devices through elements such as color and shape. For example, the device control of a high-power-consuming device may be a darker color than that of a low-power-consuming device, or the device control of a low-power-consuming device may have a default shape, while the device control of a high-power-consuming device may have a special shape. This application does not limit this aspect.

[0095] Step 606: In response to the real-time power consumption reaching the power consumption threshold of the associated device, a prompt message indicating that the associated device should be powered off is displayed through the device control interface. The power consumption threshold is a preset value or a value obtained based on the threshold setting operation.

[0096] In one possible implementation, the electronic device can set a power consumption limit for a single use or a unit of time (e.g., daily) for associated devices. When the power consumption threshold is reached, the electronic device displays a prompt message through the device control interface to indicate that the associated device should be powered off, such as "Daily power consumption limit has been reached. Should the power be cut off or automatically adjusted?" The user can choose to perform a power-off operation or adjust the power consumption threshold of the device.

[0097] Optionally, electronic devices can determine their corresponding power consumption thresholds based on the category of associated devices, or users can set their own power consumption thresholds based on their own device usage.

[0098] In this way, devices with abnormal power consumption can be identified, and alerts can be issued when devices consume more power than normal or when there are abnormal connections.

[0099] In one possible implementation, when the associated device is powered by an energy storage device (e.g., a solar-powered device), the electronic device can also display the remaining energy stored in the energy storage device, so that the user can control the on / off of home appliances based on the remaining energy. The method provided in this application embodiment further includes the following steps:

[0100] Step 1: Obtain the remaining energy stored in the energy storage device, which is used to supply power to associated devices.

[0101] Step 2: Display the remaining energy storage in the power supply area.

[0102] Indicative, such as Figure 7 As shown, the electronic device displays the remaining stored energy through the power supply area 702.

[0103] Optionally, in addition to directly displaying the remaining energy storage through text, electronic devices can also reflect the amount of remaining energy storage by changing the display color of the power supply area, dynamic effects, etc.

[0104] In this embodiment, the information of the power supply equipment (total energy storage) and related equipment is integrated into the electronic device interface, which intuitively displays the total energy storage, allows for quick power supply and power-off operations, and combines usage time and energy consumption. This effectively optimizes the user's operating experience, improves user efficiency, and more intuitively displays household electricity data information to the user. Users can clearly understand the energy consumption of each device, thereby enhancing their awareness of energy conservation and emission reduction.

[0105] Please refer to Figure 8 This illustration shows a structural block diagram of a device control apparatus provided in an exemplary embodiment of this application. The apparatus includes:

[0106] Display module 801 is used to display a device control interface, the device control interface including a power supply area and at least one device control corresponding to an associated device.

[0107] The determination module 802 is used to determine the positional relationship between the target device control and the power supply area after the triggering operation in response to a triggering operation on the target device control;

[0108] The control module 803 is used to power off or power on the target associated device corresponding to the target device control based on the positional relationship.

[0109] Optionally, the determining module 802 is further configured to:

[0110] In response to a first trigger operation on the target device control, the display state of the target device control is switched from the default state to the selected state;

[0111] In response to the second trigger operation on the target device control in the selected state, the positional relationship between the target device control and the power supply area after the second trigger operation is determined based on the second trigger operation.

[0112] Optionally, the determining module 802 is further configured to:

[0113] In response to the start of the second triggering operation, the target device control is moved and displayed based on the operation point position of the second triggering operation;

[0114] In response to the end of the second triggering operation, the target device control is displayed based on the end position of the second triggering operation, and the positional relationship between the target device control and the power supply area after the second triggering operation is determined.

[0115] Optionally, the control module 803 is further configured to:

[0116] In response to the triggering operation, when the target device control is located within the power supply area, power is supplied to the target associated device;

[0117] In response to the target device control being located outside the power supply area after the triggering operation, the power is cut off to the target associated device.

[0118] Optionally, the device further includes an acquisition module for acquiring the real-time power consumption of each associated device under power supply conditions;

[0119] The display module 801 is also used to display the real-time power consumption through the corresponding device control within the power supply area.

[0120] Optionally, the determining module 802 is further configured to:

[0121] Based on the real-time power consumption and power supply duration of the associated devices, the energy consumption intensity of the associated devices is sorted to obtain the sorting results;

[0122] The display size of the device control corresponding to the associated device is determined based on the sorting result, wherein the display size corresponding to the high-energy-consuming device is larger than the display size corresponding to the low-energy-consuming device;

[0123] The display module 801 is also used for:

[0124] The device controls within the power supply area are updated based on the display size.

[0125] Optionally, the display module 801 is further configured to:

[0126] In response to the real-time power consumption reaching the power consumption threshold of the associated device, a prompt message indicating that the associated device should be powered off is displayed through the device control interface. The power consumption threshold is a preset value or a value obtained based on a threshold setting operation.

[0127] Optionally, the acquisition module is further configured to:

[0128] The remaining stored energy of the energy storage device is obtained, and the energy storage device is used to supply power to the associated device;

[0129] The display module 801 is also used to display the remaining stored energy through the power supply area.

[0130] This application provides an electronic device; Figure 9 This is a schematic diagram of the composition structure of the electronic device provided in the embodiments of this application, such as... Figure 4 As shown, the electronic device 900 includes: a processor 901, at least one communication bus 902, a user interface 903, at least one external communication interface 904, and a memory 905. The communication bus 902 is configured to enable communication between these components. The user interface 903 may include a display screen, and the external communication interface 904 may include standard wired and wireless interfaces. The processor 901 is configured to execute a program stored in the memory for an auxiliary device installation method, to implement the steps of the method provided in the above embodiments.

[0131] This application also provides a computer-readable storage medium storing a computer program, which is loaded and executed by a processor to implement the methods described in the above embodiments.

[0132] This application also provides a computer program product that runs on a processor of a computer device, causing the computer device to perform the methods described in the above embodiments.

[0133] This application embodiment also provides a home appliance controller, the home appliance controller being used for:

[0134] The device control interface includes a power supply area and at least one device control corresponding to an associated device.

[0135] In response to a trigger operation on a target device control, the positional relationship between the target device control and the power supply area after the trigger operation is determined;

[0136] Based on the positional relationship, the target associated device corresponding to the target device control is powered off or powered on.

[0137] It should be noted that the descriptions of the storage medium, electronic device, and home appliance controller embodiments above are similar to the descriptions of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0138] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely descriptive and do not represent the superiority or inferiority of the embodiments.

[0139] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, object, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, object, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, object, or apparatus that includes that element.

[0140] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.

[0141] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.

[0142] In addition, each functional unit in the various embodiments of this application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.

[0143] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.

[0144] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a controller to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0145] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A device control method, characterized in that, include: The device control interface includes a power supply area and at least one device control corresponding to an associated device. In response to a trigger operation on a target device control, the positional relationship between the target device control and the power supply area after the trigger operation is determined; Based on the positional relationship, the target associated device corresponding to the target device control is powered off or powered on. The method further includes: Obtain the real-time power consumption of each associated device under power supply conditions; The real-time power consumption is displayed through the corresponding device control within the power supply area; Based on the real-time power consumption and power supply duration of the associated devices, the energy consumption intensity of the associated devices is sorted to obtain the sorting results; The display size of the device control corresponding to the associated device is determined based on the sorting result, wherein the display size corresponding to the high-energy-consuming device is larger than the display size corresponding to the low-energy-consuming device; The device controls within the power supply area are updated based on the display size.

2. The method according to claim 1, characterized in that, The step of determining the positional relationship between the target device control and the power supply area after the triggering operation in response to a triggering operation of the target device control includes: In response to a first trigger operation on the target device control, the display state of the target device control is switched from the default state to the selected state; In response to a second trigger operation on the target device control in the selected state, the positional relationship between the target device control and the power supply area after the second trigger operation is determined based on the second trigger operation.

3. The method according to claim 2, characterized in that, The step of responding to a second trigger operation on the target device control in the selected state, and determining the positional relationship between the target device control and the power supply area after the second trigger operation based on the second trigger operation, includes: In response to the start of the second triggering operation, the target device control is moved and displayed based on the operation point position of the second triggering operation; In response to the end of the second triggering operation, the target device control is displayed based on the end position of the second triggering operation, and the positional relationship between the target device control and the power supply area after the second triggering operation is determined.

4. The method according to claim 1, characterized in that, The step of powering off or on the target associated device corresponding to the target device control based on the positional relationship includes: In response to the triggering operation, when the target device control is located within the power supply area, power is supplied to the target associated device; In response to the target device control being located outside the power supply area after the triggering operation, the power is cut off to the target associated device.

5. The method according to claim 1, characterized in that, After obtaining the real-time power consumption of each associated device under power supply conditions, the method further includes: In response to the real-time power consumption reaching the power consumption threshold of the associated device, a prompt message indicating that the associated device should be powered off is displayed through the device control interface. The power consumption threshold is a preset value or a value obtained based on a threshold setting operation.

6. The method according to any one of claims 1 to 4, characterized in that, The method further includes: The remaining stored energy of the energy storage device is obtained, and the energy storage device is used to supply power to the associated device; The remaining stored energy is displayed through the power supply area.

7. A device control apparatus, characterized in that, include: The display module is used to display the device control interface, which includes a power supply area and at least one device control corresponding to an associated device. A determination module is used to determine the positional relationship between the target device control and the power supply area after the triggering operation in response to a triggering operation on the target device control; The control module is used to power off or power on the target associated device corresponding to the target device control based on the positional relationship. The acquisition module is used to acquire the real-time power consumption of each associated device under power supply conditions; The display module is further configured to display the real-time power consumption through the corresponding device control within the power supply area; the determining module is further configured to: sort the energy consumption intensity of the associated devices based on the real-time power consumption and power supply duration of the associated devices, and obtain a sorting result; determine the display size of the device control corresponding to the associated devices based on the sorting result, wherein the display size corresponding to high-energy-consuming devices is larger than the display size corresponding to low-energy-consuming devices; the display module is further configured to: update the device control within the power supply area based on the display size.

8. An electronic device, characterized in that, It includes a memory and a processor; the memory stores a computer program that, when executed by the processor, implements the method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The system contains a computer program that is loaded and executed by a processor to implement the method as described in any one of claims 1 to 6.