State page updating method and device, storage medium and electronic device
By querying and verifying the device status in the smart home control panel and updating the interface to reflect the actual status, the problem of feedback delay and inconsistent status during batch control is solved, and the user experience and system performance are improved.
Patent Information
- Application Number
- CN202411116348.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-11-01
AI Technical Summary
When users batch control smart home devices, the feedback delay and status reporting mechanism are incomplete, resulting in the status of the interface display inconsistent with the actual device status, and users cannot obtain operation feedback in time.
After receiving the batch control command, query the device status and perform verification. If the status is inconsistent, update the status page to display accurate information to ensure that the interface is synchronized with the actual device status.
It solves the problem that users cannot obtain timely operation feedback when batch control equipment, ensures that the interface display is consistent with the actual device status, and improves user experience and system performance.
Smart Images

Figure CN118885495A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home technology, and more specifically, to a method and device for updating a status page, a storage medium, and an electronic device. Background Art
[0002] With the popularization of smart home technology, the types and number of smart devices in users' homes are increasing, such as air conditioners, curtains, lights, etc. Users need to manage and control these devices through smart home control panels. However, when users control devices in batches through smart home control panels, due to feedback delays and imperfect status reporting mechanisms, it is difficult for users to confirm whether the operation is successful, and the status displayed on the interface may be inconsistent with the actual device status.
[0003] Regarding the related technology, when users control devices in batches, users cannot obtain operation feedback in time, resulting in the interface display status being out of sync with the actual device status, and other problems. No effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present application provide a status page update method and device, storage medium and electronic device to at least solve the problem in the prior art that when users control devices in batches, users cannot obtain operation feedback in time, resulting in the interface display status being out of sync with the actual device status.
[0005] According to an embodiment of the present application, a method for updating a status page is provided, comprising: in a case where a batch control instruction for a plurality of first household appliances is received through a first status page, updating the first status page according to a target device status indicated by the batch control instruction, wherein the device categories of the plurality of first household appliances are all target device categories, the batch control instruction is used to control the plurality of first household appliances, and the first status page is used to display the device status of the household appliances of the target device category; querying the actual device status of the plurality of first household appliances within a preset time period, and verifying the plurality of actual device statuses according to the target device status; in a case where it is determined that an actual device status among the plurality of actual device statuses fails the verification, updating the first status page and a second status page according to the plurality of actual device statuses, wherein the second status page is used to display the device status of the plurality of first household appliances, and the second status page is a lower-level page of the first status page.
[0006] In an exemplary embodiment, before updating the first status page according to the target device status indicated by the batch control instruction, the method further includes: obtaining device information of multiple second home devices in the target area, wherein the multiple second home devices include the multiple first home devices, and the device information is at least used to indicate the device status of the multiple second home devices; classifying the multiple second home devices according to device categories of the multiple second home devices to obtain second home devices of multiple device categories, wherein the multiple device categories include the target device category; and generating the first status page and the second status page for the second home devices of each device category.
[0007] In an exemplary embodiment, querying the actual device status of the plurality of first home appliances within a preset time period includes: determining device identifiers of the first home appliances to be controlled by the batch control instructions; and querying the actual device status of the plurality of first home appliances according to the plurality of device identifiers.
[0008] In an exemplary embodiment, before updating the first status page and the second status page according to the multiple actual device statuses, the method further includes: verifying whether the actual device status of each of the multiple first home devices has been acquired according to the multiple device identifiers; if it is determined that the actual device status of the target home device among the multiple first home devices has not been acquired, prohibiting the updating of the first status page according to the multiple actual device statuses; if it is determined that the actual device status of each first home device has been acquired, updating the first status page and the second status page according to the multiple actual device statuses.
[0009] In an exemplary embodiment, when it is determined that there is an actual device status that fails to pass the verification among the multiple actual device statuses, the first status page and the second status page are updated according to the multiple actual device statuses, including: when it is determined that there is an actual device status that fails to pass the verification among the multiple actual device statuses and there is an actual device status that passes the verification, the second status page is updated according to the multiple actual device statuses, and prompt information is displayed in the first status page, wherein the prompt information is used to prompt the target object to open the second status page; when it is determined that none of the multiple actual device statuses pass the verification, the first status page is updated according to the initial status of the multiple first home appliances, and the second status page is updated according to the multiple actual device statuses, wherein the initial status is the status of the multiple first home appliances before executing the batch control instruction.
[0010] In an exemplary embodiment, the method further includes: a determination step: when the control panel has displayed the first status page and received the first device status reported by the third home device, determining whether a second device status reported by a fourth home device is received within a preset time interval, wherein the multiple first home devices include the third home device and the fourth home device; when the second device status is received within the preset time interval, looping the determination step until the second device status is not received within the preset time interval; determining a third device status based on at least one of the second device statuses finally received, and updating the first status page based on the third device status.
[0011] In an exemplary embodiment, updating the first status page according to the third device status includes: determining the fourth device status indicated by the first status page; verifying whether the third device status is consistent with the fourth device status; in a case where the third device status is inconsistent with the fourth device status, updating the first status page according to the third device status; in a case where the third device status is consistent with the fourth device status, prohibiting updating of the first status page according to the third device status.
[0012] According to another embodiment of the embodiment of the present application, a status page updating device is further provided, including: a first updating module, for, when a batch control instruction for a plurality of first household appliances is received through a first status page, updating the first status page according to a target device status indicated by the batch control instruction, wherein the device categories of the plurality of first household appliances are all target device categories, the batch control instruction is used to control the plurality of first household appliances, and the first status page is used to display the device status of the household appliances of the target device category; a verification module, for querying the actual device status of the plurality of first household appliances within a preset time period, and verifying the plurality of actual device statuses according to the target device status; a second updating module, for, when it is determined that there is an actual device status among the plurality of actual device statuses that fails the verification, updating the first status page and the second status page according to the plurality of actual device statuses, wherein the second status page is used to display the device status of the plurality of first household appliances, and the second status page is a lower-level page of the first status page.
[0013] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned status page update method when running.
[0014] According to another aspect of an embodiment of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the status page update method through the computer program.
[0015] According to another aspect of the embodiments of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps of the method described in each embodiment of the present application are implemented.
[0016] In an embodiment of the present application, if a user issues a batch control instruction on a first status page, the first status page is first updated according to the target device status indicated by the batch control instruction; then, the actual device status of multiple first home appliances is queried within a preset time period, and the actual device status of multiple first home appliances is verified according to the target device status; if the verification fails, the first status page and the second status page are updated according to the multiple actual device statuses, and the second status page is used to display the device status of multiple first home appliances, and the second status page is a lower-level page of the first status page; the above solution is adopted to solve the problem in the related art that when a user controls devices in batches, the user cannot obtain operation feedback in time, resulting in the interface display status being out of sync with the actual device status. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0019] Figure 1 is a hardware environment diagram of an optional status page update method according to an embodiment of the present application;
[0020] Figure 2 is a flowchart of an optional status page update method according to an embodiment of the present application;
[0021] Figure 3 is a structural block diagram of an optional status page updating device according to an embodiment of the present application (I);
[0022] Figure 4 This is a structural block diagram (II) of an optional status page updating device according to an embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0025] According to one aspect of an embodiment of the present application, a method for updating a status page is provided. The method for updating the status page is widely used in smart home, smart home, smart home device ecology, smart residential (Intelligence House) ecology and other whole-house intelligent digital control application scenarios. Optionally, in this embodiment, the above-mentioned method for updating the status page can be applied to Figure 1 In the hardware environment composed of the terminal device 102 and the server 104 shown in FIG. Figure 1 As shown, the server 104 is connected to the terminal device 102 via a network, and can be used to provide services (such as application services, etc.) for the terminal or a client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data computing services for the server 104.
[0026] The network may include but is not limited to at least one of the following: wired network, wireless network. The wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal device 102 may be but is not limited to a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing equipment, a smart dishwasher, a smart projection equipment, a smart TV, a smart clothes drying rack, a smart curtain, a smart audio and video, a smart socket, a smart speaker, a smart fresh air equipment, a smart kitchen and bathroom equipment, a smart bathroom equipment, a smart sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purification equipment, a smart steamer, a smart microwave oven, a smart kitchen treasure, a smart purifier, a smart water dispenser, a smart door lock, etc.
[0027] In this embodiment, a method for updating a status page is provided, which is applied to a control panel. Figure 2 : is a flowchart of an optional method for updating a status page according to an embodiment of the present application, the process comprising the following steps:
[0028] Step S202, in the case where a batch control instruction for a plurality of first household appliances is received through a first status page, the first status page is updated according to the target device status indicated by the batch control instruction, wherein the device categories of the plurality of first household appliances are all target device categories, the batch control instruction is used to control the plurality of first household appliances, and the first status page is used to display the device status of the household appliances of the target device category;
[0029] Step S204, querying the actual device states of the plurality of first home devices within a preset time period, and verifying the plurality of actual device states according to the target device state;
[0030] Step S206, when it is determined that there is an actual device status among the multiple actual device statuses that fails the verification, the first status page and the second status page are updated according to the multiple actual device statuses, wherein the second status page is used to display the device status of the multiple first home devices, and the second status page is the next level page of the first status page.
[0031] In an embodiment of the present application, if a user issues a batch control instruction on a first status page, the first status page is first updated according to the target device status indicated by the batch control instruction; then, the actual device status of multiple first home appliances is queried within a preset time period, and the actual device status of multiple first home appliances is verified according to the target device status; if the verification fails, the first status page and the second status page are updated according to the multiple actual device statuses, and the second status page is used to display the device status of multiple first home appliances, and the second status page is a lower-level page of the first status page; the above solution is adopted to solve the problem in the related art that when a user controls devices in batches, the user cannot obtain operation feedback in time, resulting in the interface display status being out of sync with the actual device status.
[0032] Optionally, before executing step S202 above: updating the first status page according to the target device status indicated by the batch control instruction, the method further includes: acquiring device information of multiple second home devices in the target area, wherein the multiple second home devices include the multiple first home devices, and the device information is at least used to indicate the device status of the multiple second home devices; classifying the multiple second home devices according to device categories of the multiple second home devices to obtain second home devices of multiple device categories, wherein the multiple device categories include the target device category; and generating the first status page and the second status page for the second home devices of each device category.
[0033] The control panel can display the smart devices in the user's house in a visual way through pictures, including air conditioners, curtains, lights, etc.; each type of device can have multiple instances, for example, a user can purchase multiple air conditioners at home. In the first-level interface (i.e. the first status page mentioned above), only a representative picture of the same type of device is displayed, and the detailed device status of different devices in different locations is displayed in detail in the second-level interface (i.e. the second status page mentioned above). The following is an introduction to the generation process of the control panel display interface:
[0034] First, obtain the device information of all home appliances in the home area (i.e., the target area mentioned above), the device information includes the device's own parameter information, function information, installation location information, etc., classify the home appliances, and create a first status page for each type of home appliance to display the overall status of this type of home appliance; then for each type of home appliance, create a second status page to display the individual status of each home appliance. Users can enter the second status page by long pressing, clicking, etc. on the first status page.
[0035] Optionally, querying the actual device states of the plurality of first household appliances within a preset time period includes: determining device identifiers of the first household appliances to be controlled by the batch control instructions; and querying the actual device states of the plurality of first household appliances according to the plurality of device identifiers.
[0036] The devices to be controlled by the user can be determined based on the batch control instructions issued by the user on the control panel, and the device ID (device identification) can be recorded, so as to obtain the status based on the device ID to query the actual device status of the home devices to be controlled after the batch control instructions are issued.
[0037] Optionally, before updating the first status page and the second status page according to the multiple actual device statuses, the method further includes: verifying whether the actual device status of each of the multiple first home devices has been acquired according to the multiple device identifiers; if it is determined that the actual device status of the target home device among the multiple first home devices has not been acquired, prohibiting updating the first status page according to the multiple actual device statuses; if it is determined that the actual device status of each first home device has been acquired, updating the first status page and the second status page according to the multiple actual device statuses.
[0038] The control panel will record the device IDs operated by the user on the panel, and perform status reporting and monitoring on these devices. After obtaining the actual device status, it will immediately update the corresponding second status page based on the actual device status. At the same time, it will check whether the actual device status of all controlled devices has been obtained based on the device ID. If the actual device status of all devices has been obtained, the first status interface will be updated; if the actual device status of some devices has not been obtained, the first status interface will not be updated.
[0039] Optionally, when it is determined that there is an actual device status that fails to pass the verification among the multiple actual device statuses, the first status page and the second status page are updated according to the multiple actual device statuses, including: when it is determined that there is an actual device status that fails to pass the verification among the multiple actual device statuses and there is an actual device status that passes the verification, the second status page is updated according to the multiple actual device statuses, and prompt information is displayed in the first status page, wherein the prompt information is used to prompt the target object to open the second status page; when it is determined that none of the multiple actual device statuses pass the verification, the first status page is updated according to the initial status of the multiple first household devices, and the second status page is updated according to the multiple actual device statuses, wherein the initial status is the status of the multiple first household devices before executing the batch control instruction.
[0040] The first status page displays the overall status of a type of equipment and cannot accurately represent the status of individual equipment. An optional implementation example is that there are air-conditioning equipment A, B, and C in the home; after the user controls to turn on air-conditioning A and B in batches, the first status page corresponding to the air-conditioning equipment will show that the air-conditioning equipment is turned on; while the second status page only shows that air-conditioning A and air-conditioning B are turned on, and air-conditioning C is in the off state; only when air-conditioning A, B, and C are all turned off, the first status page will show that the air-conditioning is turned off; therefore, before updating the first status page and the second status page, it is necessary to determine whether the batch-controlled devices have all successfully executed the instructions. If some of the executions are successful and some fail, the second status page needs to be updated according to the actual status of the devices, and a prompt message indicating that some of the devices failed to execute is displayed in the first status page, so as to prompt the user to open the second status page to view the specific status of each device; if the batch-controlled devices have not successfully executed the instructions, the first status page needs to be updated according to the initial status of the devices, and the second status page needs to be updated according to the actual status of the devices.
[0041] Optionally, the embodiment of the present application is not only applicable to the scenario where the user sends batch control instructions, but the user can also send control instructions for a single device only. For example, there are air-conditioning devices A, B, and C in the home. Initially, A, B, and C are all in the off state, and the first status page is displayed as the off state; after the user controls to turn on device A, the first status page will be updated to the on state. Correspondingly, the second status page of device A will also be updated to the on state, but the second status pages of devices B and C will still be in the off state.
[0042] Optionally, the method further includes: a determination step: when the control panel has displayed the first status page and received the first device status reported by the third home device, determining whether the second device status reported by the fourth home device is received within a preset time interval, wherein the multiple first home devices include the third home device and the fourth home device; when the second device status is received within the preset time interval, looping the determination step until the second device status is not received within the preset time interval; determining the third device status based on at least one of the second device statuses finally received, and updating the first status page based on the third device status.
[0043] After the control panel receives the status reported by the device, it is necessary to first determine whether status information reported by devices of the same type (including this device) is received within a preset time interval (for example, 1 second). If received, continue to make a time waiting judgment and do not refresh the interface until the waiting time exceeds the preset time interval. Then, the first status page is updated once according to the received status information; thereby avoiding frequent refreshing of the status page due to status reports from multiple devices, which wastes resources.
[0044] For example, if there are devices of the same type (such as air conditioners) A, B, and C; after device A reports its status, the timer is started to count down for 1 second. If the reported status of device B is received during the countdown, the timer is restarted to continue the countdown for 1 second. If no status information reported by other devices is received at the end of the countdown, the first status page corresponding to the air conditioner device is updated according to the status information of devices A and B received during this period.
[0045] Further, updating the first status page according to the third device status includes: determining the fourth device status indicated by the first status page; verifying whether the third device status is consistent with the fourth device status; in a case where the third device status is inconsistent with the fourth device status, updating the first status page according to the third device status; in a case where the third device status is consistent with the fourth device status, prohibiting updating of the first status page according to the third device status.
[0046] First, determine the fourth device status currently indicated by the first status page, and then check whether the third device status is consistent with the fourth device status. Since the third device status may include multiple second device statuses, for multiple second device statuses of the same device, the second device status received latest will be used to cover other second device statuses of the device. For the second device statuses of different devices, for example, there are three devices A, B, and C, and the second device statuses of these three devices are on, off, and off, respectively; since the first status page only displays the overall status of the same type of devices, when one device is in the on state, the first status page will display the on state; through the above scheme, the third device status is determined according to at least one second device status, and then the third device status is compared with the fourth device status. If they are consistent, the first status page will no longer be refreshed, and if they are inconsistent, it will be refreshed.
[0047] Through the above embodiments, a status reporting throttling mechanism is proposed, which reduces the frequent refresh of the interface, thereby improving system performance and user experience.
[0048] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.
[0049] In this embodiment, a device for updating the status page is also provided, and the device for updating the status page is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions thereof will not be repeated. As used below, the term "module" may be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0050] Figure 3 is a structural block diagram of an optional status page updating device according to an embodiment of the present application; Figure 3 As shown, including:
[0051] A first updating module 32 is configured to update the first status page according to the target device status indicated by the batch control instruction when a batch control instruction for a plurality of first household appliances is received through the first status page, wherein the device categories of the plurality of first household appliances are all target device categories, the batch control instruction is used to control the plurality of first household appliances, and the first status page is used to display the device status of the household appliances of the target device category;
[0052] A verification module 34, configured to query the actual device states of the plurality of first household devices within a preset time period, and verify the plurality of actual device states according to the target device state;
[0053] The second update module 36 is used to update the first status page and the second status page according to the multiple actual device states when it is determined that there is an actual device state that fails to pass the verification among the multiple actual device states, wherein the second status page is used to display the device states of the multiple first home devices, and the second status page is a lower-level page of the first status page.
[0054] Through the above device, if the user issues a batch control instruction on the first status page, the first status page is first updated according to the target device status indicated by the batch control instruction; then the actual device status of multiple first home appliances is queried within a preset time period, and the actual device status of multiple first home appliances is verified according to the target device status; if the verification fails, the first status page and the second status page are updated according to the multiple actual device statuses, and the second status page is used to display the device status of multiple first home appliances, and the second status page is the next level page of the first status page; the above solution is adopted to solve the problem in the related art that when the user controls the devices in batches, the user cannot obtain operation feedback in time, resulting in the interface display status being out of sync with the actual device status.
[0055] Optionally, the first update module 32 is further used to obtain device information of multiple second household devices in the target area, wherein the multiple second household devices include the multiple first household devices, and the device information is at least used to indicate device status of the multiple second household devices; classify the multiple second household devices according to device categories of the multiple second household devices to obtain second household devices of multiple device categories, wherein the multiple device categories include the target device category; and generate the first status page and the second status page for the second household devices of each device category.
[0056] The control panel can display the smart devices in the user's house in a visual way through pictures, including air conditioners, curtains, lights, etc.; each type of device can have multiple instances, for example, a user can purchase multiple air conditioners at home. In the first-level interface (i.e. the first status page mentioned above), only a representative picture of the same type of device is displayed, and the detailed device status of different devices in different locations is displayed in detail in the second-level interface (i.e. the second status page mentioned above). The following is an introduction to the generation process of the control panel display interface:
[0057] First, obtain the device information of all home appliances in the home area (i.e., the target area mentioned above), the device information includes the device's own parameter information, function information, installation location information, etc., classify the home appliances, and create a first status page for each type of home appliance to display the overall status of this type of home appliance; then for each type of home appliance, create a second status page to display the individual status of each home appliance. Users can enter the second status page by long pressing, clicking, etc. on the first status page.
[0058] Optionally, the above-mentioned status page updating device further includes: a query module 38, such as Figure 4As shown, the query module 38 is used to determine the device identification of the first household device to be controlled by the batch control instruction; and query the actual device status of the multiple first household devices according to the multiple device identifications.
[0059] The devices to be controlled by the user can be determined based on the batch control instructions issued by the user on the control panel, and the device ID (device identification) can be recorded, so as to obtain the status based on the device ID to query the actual device status of the home devices to be controlled after the batch control instructions are issued.
[0060] Optionally, the second update module 36 is further configured to verify whether the actual device status of each of the multiple first household devices has been acquired according to the multiple device identifiers; if it is determined that the actual device status of the target household device among the multiple first household devices has not been acquired, prohibiting updating the first status page according to the multiple actual device statuses; if it is determined that the actual device status of each first household device has been acquired, updating the first status page and the second status page according to the multiple actual device statuses.
[0061] The control panel will record the device IDs operated by the user on the panel, and perform status reporting and monitoring on these devices. After obtaining the actual device status, it will immediately update the corresponding second status page based on the actual device status. At the same time, it will check whether the actual device status of all controlled devices has been obtained based on the device ID. If the actual device status of all devices has been obtained, the first status interface will be updated; if the actual device status of some devices has not been obtained, the first status interface will not be updated.
[0062] Optionally, the second update module 36 is further configured to update the second status page according to the plurality of actual device statuses and display prompt information in the first status page when it is determined that there are actual device statuses that have failed verification and there are actual device statuses that have passed verification, wherein the prompt information is used to prompt the target object to open the second status page; and to update the first status page according to the initial status of the plurality of first household appliances when it is determined that none of the plurality of actual device statuses have passed verification, and to update the second status page according to the plurality of actual device statuses, wherein the initial status is the status of the plurality of first household appliances before executing the batch control instruction.
[0063] The first status page displays the overall status of a type of equipment and cannot accurately represent the status of individual equipment. An optional implementation example is that there are air-conditioning equipment A, B, and C in the home; after the user controls to turn on air-conditioning A and B in batches, the first status page corresponding to the air-conditioning equipment will show that the air-conditioning equipment is turned on; while the second status page only shows that air-conditioning A and air-conditioning B are turned on, and air-conditioning C is in the off state; only when air-conditioning A, B, and C are all turned off, the first status page will show that the air-conditioning is turned off; therefore, before updating the first status page and the second status page, it is necessary to determine whether the batch-controlled devices have all successfully executed the instructions. If some of the executions are successful and some fail, the second status page needs to be updated according to the actual status of the devices, and a prompt message indicating that some of the devices failed to execute is displayed in the first status page, so as to prompt the user to open the second status page to view the specific status of each device; if the batch-controlled devices have not successfully executed the instructions, the first status page needs to be updated according to the initial status of the devices, and the second status page needs to be updated according to the actual status of the devices.
[0064] Optionally, the embodiment of the present application is not only applicable to the scenario where the user sends batch control instructions, but the user can also send control instructions for a single device only. For example, there are air-conditioning devices A, B, and C in the home. Initially, A, B, and C are all in the off state, and the first status page is displayed as the off state; after the user controls to turn on device A, the first status page will be updated to the on state. Correspondingly, the second status page of device A will also be updated to the on state, but the second status pages of devices B and C will still be in the off state.
[0065] Optionally, the second update module 36 is further configured to execute a determination step: when the control panel has displayed the first status page and received the first device status reported by the third home device, determine whether the second device status reported by the fourth home device is received within a preset time interval, wherein the multiple first home devices include the third home device and the fourth home device; when the second device status is received within the preset time interval, repeatedly execute the determination step until the second device status is not received within the preset time interval; determine the third device status based on at least one second device status finally received, and update the first status page based on the third device status.
[0066] After the control panel receives the status reported by the device, it is necessary to first determine whether status information reported by devices of the same type (including this device) is received within a preset time interval (for example, 1 second). If received, continue to make a time waiting judgment and do not refresh the interface until the waiting time exceeds the preset time interval. Then, the first status page is updated once according to the received status information; thereby avoiding frequent refreshing of the status page due to status reports from multiple devices, which wastes resources.
[0067] For example, if there are devices of the same type (such as air conditioners) A, B, and C; after device A reports its status, the timer is started to count down for 1 second. If the reported status of device B is received during the countdown, the timer is restarted to continue the countdown for 1 second. If no status information reported by other devices is received at the end of the countdown, the first status page corresponding to the air conditioner device is updated according to the status information of devices A and B received during this period.
[0068] Optionally, the second update module 36 is further used to determine the fourth device status indicated by the first status page; verify whether the third device status is consistent with the fourth device status; if the third device status is inconsistent with the fourth device status, update the first status page according to the third device status; if the third device status is consistent with the fourth device status, prohibit updating the first status page according to the third device status.
[0069] First, determine the fourth device status currently indicated by the first status page, and then check whether the third device status is consistent with the fourth device status. Since the third device status may include multiple second device statuses, for multiple second device statuses of the same device, the second device status received latest will be used to cover other second device statuses of the device. For the second device statuses of different devices, for example, there are three devices A, B, and C, and the second device statuses of these three devices are on, off, and off, respectively; since the first status page only displays the overall status of the same type of devices, when one device is in the on state, the first status page will display the on state; through the above scheme, the third device status is determined according to at least one second device status, and then the third device status is compared with the fourth device status. If they are consistent, the first status page will no longer be refreshed, and if they are inconsistent, it will be refreshed.
[0070] Through the above embodiments, a status reporting throttling mechanism is proposed, which reduces the frequent refresh of the interface, thereby improving system performance and user experience.
[0071] An embodiment of the present application further provides a storage medium, which includes a stored program, wherein the program executes any of the above methods when it is run.
[0072] Optionally, in this embodiment, the storage medium may be configured to store program codes for executing the following steps:
[0073] S1, in the case where a batch control instruction for a plurality of first household appliances is received through a first status page, the first status page is updated according to the target device status indicated by the batch control instruction, wherein the device categories of the plurality of first household appliances are all target device categories, the batch control instruction is used to control the plurality of first household appliances, and the first status page is used to display the device status of the household appliances of the target device category;
[0074] S2, querying the actual device states of the plurality of first household devices within a preset time period, and verifying the plurality of actual device states according to the target device state;
[0075] S3. When it is determined that an actual device status among the multiple actual device statuses fails the verification, the first status page and the second status page are updated according to the multiple actual device statuses, wherein the second status page is used to display the device status of the multiple first home devices, and the second status page is a lower-level page of the first status page.
[0076] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.
[0077] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0078] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0079] S1, in the case where a batch control instruction for a plurality of first household appliances is received through a first status page, the first status page is updated according to the target device status indicated by the batch control instruction, wherein the device categories of the plurality of first household appliances are all target device categories, the batch control instruction is used to control the plurality of first household appliances, and the first status page is used to display the device status of the household appliances of the target device category;
[0080] S2, querying the actual device states of the plurality of first household devices within a preset time period, and verifying the plurality of actual device states according to the target device state;
[0081] S3. When it is determined that an actual device status among the multiple actual device statuses fails the verification, the first status page and the second status page are updated according to the multiple actual device statuses, wherein the second status page is used to display the device status of the multiple first home devices, and the second status page is a lower-level page of the first status page.
[0082] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0083] An embodiment of the present application further provides a computer program product, comprising a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program product, and when the computer program is executed by a processor, the steps of the method described in each embodiment of the present application are implemented.
[0084] Optionally, in this embodiment, the above computer program may be configured to implement the following steps when executed by a processor:
[0085] S1, in the case where a batch control instruction for a plurality of first household appliances is received through a first status page, the first status page is updated according to the target device status indicated by the batch control instruction, wherein the device categories of the plurality of first household appliances are all target device categories, the batch control instruction is used to control the plurality of first household appliances, and the first status page is used to display the device status of the household appliances of the target device category;
[0086] S2, querying the actual device states of the plurality of first household devices within a preset time period, and verifying the plurality of actual device states according to the target device state;
[0087] S3. When it is determined that an actual device status among the multiple actual device statuses fails the verification, the first status page and the second status page are updated according to the multiple actual device statuses, wherein the second status page is used to display the device status of the multiple first home devices, and the second status page is a lower-level page of the first status page.
[0088] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0089] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0090] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for updating a status page, characterized in that: Applicable to control panels, including: In the case where a batch control instruction for a plurality of first household appliances is received through a first status page, the first status page is updated according to the target device status indicated by the batch control instruction, wherein the device categories of the plurality of first household appliances are all target device categories, the batch control instruction is used to control the plurality of first household appliances, and the first status page is used to display the device status of the household appliances of the target device category; Inquiring the actual device states of the plurality of first household devices within a preset time period, and verifying the plurality of actual device states according to the target device state; When it is determined that there is an actual device status among the multiple actual device statuses that fails the verification, the first status page and the second status page are updated according to the multiple actual device statuses, wherein the second status page is used to display the device status of the multiple first home devices, and the second status page is a lower-level page of the first status page.
2. The method for updating a status page according to claim 1, characterized in that: Before updating the first status page according to the target device status indicated by the batch control instruction, the method further includes: Acquire device information of a plurality of second home devices in a target area, wherein the plurality of second home devices include the plurality of first home devices, and the device information is at least used to indicate device states of the plurality of second home devices; Classifying the plurality of second household devices according to the device categories of the plurality of second household devices to obtain second household devices of a plurality of device categories, wherein the plurality of device categories include the target device category; The first status page and the second status page are generated for a second home device of each device category.
3. The method for updating a status page according to claim 1, characterized in that: Querying the actual device states of the plurality of first home devices within a preset time period includes: Determine the device identifier of the first household device to be controlled by the batch control instruction; The actual device states of the plurality of first household devices are queried according to the plurality of device identifiers.
4. The method for updating a status page according to claim 3, characterized in that: Before updating the first status page and the second status page according to the plurality of actual device states, the method further comprises: checking whether the actual device state of each of the plurality of first home devices has been acquired according to the plurality of device identifiers; When it is determined that the actual device status of the target home device among the multiple first home devices has not been obtained, it is prohibited to update the first status page according to the multiple actual device statuses; when it is determined that the actual device status of each first home device has been obtained, the first status page and the second status page are updated according to the multiple actual device statuses.
5. The method for updating a status page according to claim 3, characterized in that: When it is determined that one of the actual device states fails the verification, updating the first status page and the second status page according to the multiple actual device states includes: When it is determined that there is an actual device state that fails to pass the verification among the multiple actual device states, and there is an actual device state that passes the verification, the second status page is updated according to the multiple actual device states, and prompt information is displayed in the first status page, wherein the prompt information is used to prompt the target object to open the second status page; When it is determined that none of the multiple actual device states have passed the verification, the first status page is updated according to the initial status of the multiple first home appliances, and the second status page is updated according to the multiple actual device states, wherein the initial status is the status of the multiple first home appliances before executing the batch control instruction.
6. The method for updating a status page according to claim 1, characterized in that: The method further includes: a determining step: when the control panel has displayed the first status page and received the first device status reported by the third home device, determining whether a second device status reported by a fourth home device is received within a preset time interval, wherein the plurality of first home devices include the third home device and the fourth home device; In the case where the second device status is received within the preset time interval, the determining step is executed repeatedly until the second device status is not received within the preset time interval; A third device state is determined according to at least one of the second device states finally received, and the first state page is updated according to the third device state.
7. The method for updating a status page according to claim 6, characterized in that: Updating the first status page according to the third device status includes: determining a fourth device status indicated by the first status page; Verifying whether the third device state is consistent with the fourth device state; When the third device status is inconsistent with the fourth device status, updating the first status page according to the third device status; When the third device status is consistent with the fourth device status, updating the first status page according to the third device status is prohibited.
8. A device for updating a status page, characterized in that: include: A first updating module is configured to update the first status page according to the target device status indicated by the batch control instruction when a batch control instruction for a plurality of first household appliances is received through the first status page, wherein the device categories of the plurality of first household appliances are all target device categories, the batch control instruction is used to control the plurality of first household appliances, and the first status page is used to display the device status of the household appliances of the target device category; A verification module, used for querying the actual device states of the plurality of first household devices within a preset time period, and verifying the plurality of actual device states according to the target device state; The second update module is used to update the first status page and the second status page according to the multiple actual device states when it is determined that there is an actual device state that fails to pass the verification among the multiple actual device states, wherein the second status page is used to display the device states of the multiple first home devices, and the second status page is a lower-level page of the first status page.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 7 when executed.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
