Smart home control method, device and system based on dual-mode switch panel

By adopting a dual-mode switch panel in the smart home system, the problem of user misoperation causing smart lights to fail to work properly is solved, improving user experience, reducing the cost and complexity of smart home implementation, and supporting the intelligence of original lights. Convert.

CN115524986BActive Publication Date: 2024-09-24QINGDAO HAIER INTELLIGENT HOME APPLIANCE TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111654096.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-30
Publication Date
2024-09-24
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

In smart home systems, when users mistakenly operate smart lights, it is easy for the smart lights to fail to work properly, affecting the user experience.

Method used

Adopt a smart home control method based on a dual-mode switch panel. By setting the switch mode and smart mode on the switch panel, it ensures that even if the user misoperates, it will not directly cause a power outage to the smart home appliances. It provides basic switching functions and performs intelligent operation in the smart home. In mode, key operations are matched with action instructions of smart home appliances.

Benefits of technology

It improves the user experience, prevents smart home appliances from malfunctioning due to misoperation, and reduces the cost and complexity of implementing smart homes. There is no need to replace the original ordinary lamps, and it supports the intelligent conversion of the original lamps.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115524986B
    Figure CN115524986B
Patent Text Reader

Abstract

The present application relates to the field of smart home technology, and discloses a smart home control method based on a dual-mode switch panel. The smart home control method based on the dual-mode switch panel includes: obtaining the working mode of the switch panel; when the switch panel is in the smart mode, obtaining the key operation, and obtaining the action instruction of the home appliance corresponding to the key operation, so that the home appliance performs the corresponding action; when the switch panel is in the switch mode, marking the switch panel as inoperable. With the smart home control method based on the dual-mode switch panel, even if the user makes an error operation, it will not directly cause the smart home appliance to be powered off and unable to work normally, thereby improving the user experience. The present application also discloses a smart home control device and a smart home system based on the dual-mode switch panel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart home technology, for example, to a smart home control method, device and system based on a dual-mode switch panel. Background Art

[0002] At present, more and more families are choosing smart home systems. Under the control of smart home systems, scene control can be realized to provide users with a better user experience. For example, smart home systems can realize homecoming scenes, sleeping scenes, and waking up scenes. When users get home from get off work at night, they can start the homecoming scene, and at this time, the smart lights in the living room can be lit; at the time when users are accustomed to falling asleep, the sleeping scene can be started, the smart curtains can be controlled to close automatically, the smart lights in the bedroom can be started, and the smart lights in the living room can be turned off after detecting that the user has entered the bedroom. After detecting that the user has fallen asleep, the smart lights can be turned off; at the time when users are accustomed to getting up, the waking up scene can be started, the smart fresh air fan can be started for ventilation to provide fresh air to users, and the smart curtains can be controlled to open automatically.

[0003] To realize a smart home, it is usually necessary to replace ordinary home appliances in the home with smart home appliances, such as replacing ordinary lights with smart lights, so that a smart home control center can communicate with the smart lights and control the smart lights.

[0004] In the process of implementing the embodiments of the present application, it is found that there are at least the following problems in the related technology:

[0005] Taking smart lights as an example, in order to realize smart home, ordinary lights in the home need to be replaced with smart lights. During the replacement process, the original switch panel is usually retained. This way of realizing smart home requires the original switch panel to always maintain the load-connected state. If the user operates it incorrectly (for example, switching the switch panel to the load-powered state due to habit), the smart light will not work properly, and the user experience will be poor. Summary of the invention

[0006] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.

[0007] The embodiments of the present application provide a smart home control method, device and system based on a dual-mode switch panel, so as to reduce the adverse effects of user misoperation on smart home appliances and improve the user experience after the home appliances corresponding to the switch panel are replaced with smart home appliances.

[0008] In some embodiments, the working modes of the switch panel include a switch mode and a smart mode. The smart home control method based on the dual-mode switch panel includes: obtaining the working mode of the switch panel; when the switch panel is in the smart mode, obtaining a key operation, and obtaining an action instruction of a home appliance corresponding to the key operation, so that the home appliance performs a corresponding action; when the switch panel is in the switch mode, marking the switch panel as inoperable.

[0009] Optionally, obtaining an action instruction for the household appliance corresponding to the key operation includes: obtaining the type of the household appliance and a device action instruction set corresponding to the type of the household appliance; obtaining a current scene and a scene action instruction set corresponding to the current scene in the device action instruction set; and determining, in the scene action instruction set, the action instruction for the household appliance corresponding to the key operation.

[0010] Optionally, in the scene action instruction set, determining the action instructions for the household appliance corresponding to the key operation includes: obtaining the triggering conditions and execution order of each action instruction in the scene action instruction set; obtaining the device parameters of each household appliance in the current scene and / or the environmental parameters of the current environment; determining in the scene action instruction set a first action instruction corresponding to the device parameters and / or the environmental parameters; determining one or more action instructions whose execution order is after the first action instruction as a candidate action instruction set; and determining in the candidate action instruction set the action instructions for the household appliance corresponding to the key operation.

[0011] Optionally, making the household appliance perform a corresponding action includes: sending an action instruction of the household appliance to the household appliance, so that the household appliance performs the corresponding action; or sending the action instruction of the household appliance to the switch panel, so that the switch panel controls the household appliance to perform the corresponding action.

[0012] Optionally, marking the switch panel as inoperable includes: not sending an action instruction of the home appliance to the smart switch, or not sending an action instruction of the home appliance to the home appliance.

[0013] Optionally, obtaining an action instruction for the household appliance corresponding to a key operation includes: obtaining a first triggering number of the first key operation within a first set time period before the current moment, a second triggering number of the second key operation, and a third triggering number of the first key operation and the second key operation being continuously triggered within a second set time period; when a first ratio of the third triggering number to the first triggering number is greater than or equal to a first preset threshold, and a second ratio of the third triggering number to the second triggering number is greater than or equal to a second preset threshold, corresponding the second action instruction originally corresponding to the first key operation to the second key operation; and corresponding the third action instruction originally corresponding to the second key operation to the first key operation.

[0014] Optionally, obtaining a first triggering number of a first key operation within a first set time before the current moment, a second triggering number of a second key operation, and a third triggering number of the first key operation and the second key operation being continuously triggered within a second set time includes: obtaining a first time interval between the triggering moment of each first key operation and the current moment, and determining a first weight of each first key operation according to the first time interval; the first weight is inversely correlated with the first time interval; obtaining a second time interval between the triggering moment of each second key operation and the current moment, and determining a second weight of each second key operation according to the second time interval; the second weight is inversely correlated with the second time interval; determining the sum of all the first weights as the first triggering number, and determining the sum of all the second weights as the second triggering number; determining the sum of all the third weights as the third triggering number; the third weight is the first weight of the first key operation in the first key operation and the second key operation that are continuously triggered in the second set time, or the third weight is the second weight of the second key operation in the first key operation and the second key operation that are continuously triggered in the second set time, or the third weight is the average of the first weight of the first key operation and the second weight of the second key operation that are continuously triggered in the second set time.

[0015] In some embodiments, the working mode of the switch panel includes a switch mode and a smart mode. The smart home control device based on the dual-mode switch panel includes an acquisition module, a first control module and a second control module. The acquisition module is used to obtain the working mode of the switch panel; the first control module is used to obtain key operations when the switch panel is in the smart mode, and obtain action instructions of the home appliance corresponding to the key operations, so that the home appliance performs corresponding actions; the second control module is used to mark the switch panel as inoperable when the switch panel is in the switch mode.

[0016] In some embodiments, a smart home control device based on a dual-mode switch panel includes a processor and a memory storing program instructions, and the processor is configured to execute the smart home control method based on the dual-mode switch panel provided in the aforementioned embodiment when executing the program instructions.

[0017] In some embodiments, the smart home system includes a smart home control device based on a dual-mode switch panel provided in the aforementioned embodiments.

[0018] The smart home control method, device and system based on the dual-mode switch panel provided in the embodiments of the present application can achieve the following technical effects:

[0019] When the switch panel is in switch mode, the switch panel is marked as inoperable. At this time, the switch panel can realize basic switch functions. When the switch panel is in smart mode, the button operations on the switch panel correspond to the action instructions of the smart home appliance, rather than directly corresponding to the power on and off status of the smart home appliance. In this way, even if the user operates it incorrectly, it will not directly cause the smart home appliance to lose power and fail to work normally, thereby improving the user experience.

[0020] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] One or more embodiments are exemplarily described by corresponding drawings, and these exemplary descriptions and drawings do not limit the embodiments. Elements with the same reference numerals in the drawings are regarded as similar elements, and wherein:

[0022] Figure 1 is a schematic diagram of a smart home system provided by an embodiment of the present application;

[0023] Figure 2 is a schematic diagram of a dual-mode switch surface provided in an embodiment of the present application;

[0024] Figure 3 is a schematic diagram of a smart home control method based on a dual-mode switch panel provided in an embodiment of the present application;

[0025] Figure 4 It is a schematic diagram of a process of obtaining an action instruction of a household appliance corresponding to a key operation provided by an embodiment of the present application;

[0026] Figure 5 It is a schematic diagram of a process of obtaining an action instruction of a household appliance corresponding to a key operation provided by an embodiment of the present application;

[0027] Figure 6It is a schematic diagram of a smart home control device based on a dual-mode switch panel provided in an embodiment of the present application;

[0028] Figure 7 It is a schematic diagram of a smart home control device based on a dual-mode switch panel provided in an embodiment of the present application. DETAILED DESCRIPTION

[0029] In order to be able to understand the features and technical contents of the embodiments of the present application in more detail, the implementation of the embodiments of the present application is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present application. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, in the absence of these details, one or more embodiments can still be implemented. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.

[0030] The terms "first", "second", etc. in the specification and claims of the embodiments 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 numbers used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present application described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.

[0031] Unless otherwise stated, the term "plurality" means more than two.

[0032] In the embodiment of the present application, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B means: A or B.

[0033] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.

[0034] Figure 1 1 is a schematic diagram of a smart home system provided in an embodiment of the present application. The smart home system includes a cloud control center 10, smart home appliances 20, a dual-mode switch panel 30 and a smart terminal 40.

[0035] The cloud control center 10 here can be an independent server or a distributed server; the cloud control center 10 can be set in a home local area network or a wide area network.

[0036] The smart home appliance 20 can be home appliances such as smart lights, smart curtains, smart air conditioners, smart refrigerators, smart washing machines, smart fresh air fans, smart access control, smart sensors, smart cameras, etc., but is not limited to these.

[0037] The dual-mode switch panel 30 is provided with a touch screen, and the touch screen can virtually display virtual buttons, which can be operated and triggered by the user.

[0038] The smart terminal 40 may be a terminal device such as a smart phone, a tablet computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc., but is not limited thereto. An application program (APP) may be installed on the smart terminal 40 .

[0039] The cloud control center 10 can be connected to the smart home appliance 20, the dual-mode switch panel 30 and the smart terminal 40. The smart terminal 40 can be installed with an APP corresponding to the smart home appliance 20 (or an APP of a smart home system), and an APP corresponding to the dual-mode switch panel 30 (the smart home appliance 20 and the dual-mode switch panel 30 can correspond to one APP or different APPs respectively). The APP can send information to the cloud control center 10 through the smart terminal 40, and the cloud control center 10 can send relevant information to the smart home appliance 20 or the dual-mode switch panel 30 according to the information sent by the APP; after receiving the relevant information sent by the cloud control center 10, the smart home appliance 20 and the dual-mode switch panel 30 can perform relevant actions corresponding to the relevant information.

[0040] It is a prior art that the smart terminal 40 sends information to the cloud control center 10, the cloud control center 10 sends relevant information to the smart home appliance 20, and the smart home appliance 20 performs relevant actions corresponding to the relevant information, which will not be described in detail here.

[0041] In the embodiment of the present application, the dual-mode switch panel 30 includes two working modes. In the switch mode, the dual-mode switch panel 30 can directly control the power supply of the smart home appliance 20 to realize the conversion of the smart home appliance 20 between the power-on state and the power-off state. At this time, the dual-mode switch panel 20 has a conventional switch function; in the smart mode, the dual-mode switch panel 30 sends the user's operation of the button to the cloud control center 10, the cloud control center 10 analyzes the button operation, and directly sends the signal corresponding to the button operation to the smart home appliance 20 to realize the control of the smart home appliance. The cloud control center 10 can also feedback the signal corresponding to the button operation to the dual-mode switch panel 30, so that the dual-mode switch panel 30 performs the corresponding action. At this time, the button of the dual-mode switch panel 30 will not directly control the power-on and power-off state of the smart home appliance 20, which can avoid the phenomenon that the smart home appliance 20 cannot work normally due to the user's misoperation. Among them, the user's misoperation refers to the user's habit of operating the ordinary switch panel, such as realizing the power-on and power-off control of the home appliance through the switch panel.

[0042] In specific applications, users can edit the instructions corresponding to the key operations through the APP on the smart terminal 40, and upload the edited key operations and their corresponding instructions to the cloud control center 10. The cloud control center 10 stores the key operations and their corresponding instructions. After receiving the key operations sent by the dual-mode switch panel 30, the instructions corresponding to the key operations can be obtained.

[0043] Figure 2 is a schematic diagram of a dual-mode switch surface provided in an embodiment of the present application. Figure 2 As shown, the dual-mode switch panel includes a button 310, a path selection module 320, a first communication module 330 and a load relay 340, wherein the input end 321 of the path selection module 320 is connected to the output end of the button 310; the first communication module 330 is connected to the first communication end 323 of the path selection module 320; the control coil of the load relay 340 is connected to the output end 322 of the path selection module 320; wherein the path selection module 320 includes a first connection path 325 and a second connection path 326, wherein the first connection path 325 connects the input end 321 of the path selection module 320 to the output end 322; the second connection path 326 sequentially connects the input end 321, the first communication end 323 and the output end 322 of the path selection module 320.

[0044] The button 310 may be operated by a user, and after the button 310 is operated by the user, the button 310 may output a signal corresponding to the user operation.

[0045] The key 310 may be a mechanical key or a virtual key. In the case where the key 310 is a mechanical key 310, the key 310 has two corresponding contacts, and the key 310 includes a first trigger state and a second trigger state. In the first trigger state, the two contacts are connected, and in the second trigger state, the two contacts are disconnected; one contact is grounded or connected to a power source, and the other contact is connected to an input terminal 321 of a path selection module 320; if one of the above contacts is grounded, when the key 310 is in the first trigger state, the input terminal 321 of the path selection module 320 is pulled down to a low level, and when the key 310 is in the second trigger state, the input terminal 321 of the path selection module 320 is empty (usually regarded as a low level); if one of the above contacts is connected to a power source, when the key 310 is in the first trigger state, the input terminal 321 of the path selection module 320 is a high level, and when the key 310 is in the second trigger state, the input terminal 321 of the path selection module 320 is empty (usually regarded as a low level).

[0046] In the case where the key 310 is a virtual key, for example, the virtual key is a virtual key on a touch screen, the virtual key includes a first trigger state and a second trigger state, and the touch screen can be configured so that when the virtual key is in the first trigger state, the touch screen outputs a high level, and when the virtual key is in the second trigger state, the touch screen outputs a low level; or, when the virtual key is in the first trigger state, the touch screen outputs a low level, and when the virtual key is in the second trigger state, the touch screen outputs a high level.

[0047] The path selection module 320 is either in the first connection path 325 or in the second connection path 326, and cannot be in both connection paths at the same time. The first connection path 325 connects the input end 321 of the path selection module 320 with the output end, which means that the signal received by the input end 321 of the path selection module 320 can be directly output at the output end 322 of the path selection module 320; the second connection path 326 sequentially connects the input end 321, the first communication end 323 and the output end 322 of the path selection module 320, which means that the signal received by the input end 321 of the path selection module 320 can be sent to the cloud control center 10 through the first communication end 323, and the signal received by the first communication module 330 can be output through the output end 322 of the path selection module 320.

[0048] The first communication module 330 refers to a module with communication function, which can be a wireless communication module or a wired communication module, for example, a wireless communication module such as a WiFi module, a Bluetooth module, a ZigBee module, etc., or a wired communication module such as an Ethernet communication module represented by an RJ45 interface, a serial communication module represented by an RS485, etc. The embodiment of the present application does not limit the specific type of the first communication module 330, and those skilled in the art can select it according to the actual situation, as long as it can communicate with the cloud control center 10.

[0049] The contacts of the load relay 340 are used to control the connection state between the home appliance and the power grid. When the contacts of the load relay 340 are closed, the home appliance is connected to the power grid; when the contacts of the load relay 340 are open, the home appliance is disconnected from the power grid.

[0050] The dual-mode switch panel 30 has two working modes: switch mode and intelligent mode. When the path selection module 320 of the dual-mode switch panel 30 is in the first connection path 325, the dual-mode switch panel 30 is in the switch mode, and the button 310 can directly control the load relay 340. At this time, the dual-mode switch panel 30 has the basic functions of an ordinary switch panel; when the path selection module 320 of the dual-mode switch panel 30 is in the second connection path 326, the dual-mode switch panel 30 is in the intelligent mode, and the dual-mode switch panel 30 can upload the button operation to the cloud control center 10 through the first communication module 330, and then control the load relay 340 according to the command fed back to the dual-mode switch panel 30 by the cloud control center 10 through the first communication module 330. In this way, when the path selection module 320 of the dual-mode switch panel 30 is in the first connection path 325, the dual-mode switch panel 30 meets the user's need to control ordinary lamps. When the path selection module 320 of the dual-mode switch panel 30 is in the second connection path 326, even if the dual-mode switch panel 30 is misoperated due to habitual reasons (such as the habit of using the dual-mode switch panel 30 to control ordinary lamps), it will not directly cause the smart lamp to fail to work normally due to power outage (except when the button operation corresponds to the light-off command), thereby improving the user experience.

[0051] In addition, the dual-mode switch panel 30 can also realize smart home on the basis of the original ordinary lamp, without replacing the original ordinary lamp, reducing the cost and complexity of realizing smart home, and improving the user experience. When the path selection module 320 of the dual-mode switch panel 30 is in the second connection path 326, the dual-mode switch panel 30 can send the key operation to the cloud control center 10 of the smart home system through the first communication module 330, and then the cloud control center 10 of the smart home system parses the ordinary lamp action (such as opening or closing) corresponding to the key operation, and feeds back the signal corresponding to the ordinary lamp action to the dual-mode switch panel 30, and the dual-mode switch panel 30 can make the load relay 340 perform the action corresponding to the signal, thereby realizing the control of the smart lamp. In this way, it meets the user's habit of controlling lamps through the dual-mode switch panel 30, and improves the user's experience.

[0052] Of course, the dual-mode switch panel 30 can also directly receive the signal corresponding to the action of the ordinary lamp sent by the cloud control center 10 of the smart home system through the first communication module 330, and make the load relay 340 perform the action corresponding to the signal to realize the control of the smart switch. In this way, the dual-mode switch panel 30 can make the ordinary lamp directly participate in the scene control of the smart home system.

[0053] After replacing the ordinary lamp with the smart lamp, the path selection module 320 of the dual-mode switch panel 30 can be in the second connection path 326. When the cloud control center 10 of the smart home system directly controls the smart lamp (that is, the cloud control center 10 of the smart home system directly sends a control signal to the smart lamp), even if the load relay 340 of the dual-mode switch panel 30 is in the disconnected state, the cloud control center 10 of the smart home control system can also send a signal to the dual-mode switch panel 30 through the first communication module 330, so that the dual-mode switch panel 30 turns on the load relay 340 to ensure that the smart lamp is in the power-on state, thereby enabling the cloud control center 10 of the smart home system to directly control the smart lamp.

[0054] Figure 3 Schematic diagram of a smart home control method based on a dual-mode switch panel provided in an embodiment of the present application. Figure 1 The cloud control center shown is used for exemplary purposes.

[0055] Combination Figure 3 As shown, the smart home control method includes:

[0056] S301, obtaining the working mode of the switch panel.

[0057] The working modes of the switch panel (short for dual-mode switch panel) here include switch mode and intelligent mode.

[0058] For example, the switch panel may be provided with a second communication module, and the switch panel may send its working mode to the second communication module, and then the second communication module sends the working mode to the cloud control center, so that the cloud control center can obtain the working status of the switch panel.

[0059] S302: When the switch panel is in the smart mode, obtain a key operation and an action instruction of the home appliance corresponding to the key operation, so that the home appliance performs a corresponding action.

[0060] When the switch panel is in smart mode, the key operation of the switch panel does not directly correspond to the contact state of the load relay of the switch panel. For example, the switch panel sends the key operation to the cloud control center of the smart home system. After the cloud control center obtains the key operation, it obtains the action instruction of the home appliance corresponding to the key operation, so that the home appliance performs the corresponding action.

[0061] The home appliance can be made to perform corresponding actions in the following ways: an action instruction of the home appliance is sent to the home appliance so that the home appliance performs the corresponding action; or, an action instruction of the home appliance is sent to a switch panel so that the switch panel controls the home appliance to perform the corresponding action.

[0062] The action instructions of the household appliance correspond to the type of the household appliance. For example, when the household appliance is a lamp, the action instructions of the household appliance may be turning on the light, turning off the light, increasing the brightness or decreasing the brightness, etc.; when the household appliance is an air conditioner, the action instructions of the household appliance may be entering a heating mode, entering a cooling mode, increasing the operating frequency of the compressor, decreasing the operating frequency of the compressor, increasing the fan speed of the indoor unit or decreasing the fan speed of the indoor unit, etc.

[0063] The home appliance here can be a smart home appliance or a common home appliance. In the case where the home appliance is a smart home appliance, the cloud control center can send the action instruction of the home appliance to the home appliance, and the home appliance executes the action instruction to achieve the corresponding action. Alternatively, the cloud control center can also send the action instruction of the home appliance to the switch panel, and the switch panel executes the action instruction and controls the home appliance to achieve the corresponding action, for example, the switch panel turns off the power of the home appliance to put it in a non-working state, or the switch panel turns on the power of the home appliance to put it in a working state.

[0064] When the home appliance is an ordinary home appliance, the cloud control center can send the action instructions of the home appliance to the switch panel, and the switch panel executes the action instructions and controls the home appliance to implement the corresponding instructions, for example, making an ordinary light turn on or off.

[0065] S303: When the switch panel is in the switch mode, mark the switch panel as inoperable.

[0066] When the switch panel is in the switch mode, the button operation of the switch panel directly corresponds to the state of the contacts of the load relay of the switch panel. For example, the contacts of the load relay of the switch panel have two states: on and off. When the contacts of the load relay are in the on state, the user operates the button of the switch panel once, and the contacts of the load relay are switched to the off state; when the contacts of the load relay are in the off state, the user operates the button of the switch panel once, and the contacts of the load relay are switched to the on state.

[0067] Marking the switch panel as inoperable may specifically include: no longer sending action instructions of the home appliance to the smart switch, or no longer sending action instructions of the home appliance to the home appliance. In this way, even if the cloud control center performs scene control, the user can personalize the home appliance through the switch panel, thereby improving the user experience.

[0068] The scene control here refers to the scene control in the form of if TTT then TTTT, where TTT is the trigger condition of the scene, that is, the scene starts to be executed when TTT is met; TTTT is the action of each home appliance in the scene, and executing the scene means making each home appliance perform corresponding actions according to TTTT.

[0069] The following is an example of scene control using the homecoming scene: the triggering conditions of the homecoming scene (i.e., the aforementioned TTT) may be: 7:00-9:00 pm, unlocking detected, and people detected in the corridor; the actions of each home appliance included in the homecoming scene (i.e., the aforementioned TTTT) may be: the living room lights are on, the curtains are closed, the anti-theft system is turned off, etc. The triggering conditions of different scenes and the actions of each home appliance included may be different, so they will not be described one by one here.

[0070] In some application scenarios, for example, the homecoming scenario includes controlling the air conditioner to adjust the indoor temperature to 26°C. However, if the user can accept the current indoor temperature, for energy-saving reasons, the user can adjust the switch panel corresponding to the air conditioner to the switch mode. At this time, even if there is control of the air conditioner in the scene, since the switch panel corresponding to the air conditioner is in the switch mode and is marked as inoperable, the cloud control center will no longer send action instructions to the air conditioner or switch panel. The user can adjust the air conditioner to the power-off state through the switch panel to achieve personalized adjustment, which improves the user experience.

[0071] When the switch panel is in switch mode, the switch panel is marked as inoperable. At this time, the switch panel can realize basic switch functions. When the switch panel is in smart mode, the button operations on the switch panel correspond to the action instructions of the smart home appliance, rather than directly corresponding to the power on and off status of the smart home appliance. In this way, even if the user operates it incorrectly, it will not directly cause the smart home appliance to lose power and fail to work normally, thereby improving the user experience.

[0072] In the aforementioned embodiment, the control process of the two working modes of the switch panel is described as a whole, and when the switch panel is in the smart mode, the cloud control center needs to obtain the action instructions of the home appliance corresponding to the button operation. The following describes in detail how to obtain the action instructions of the home appliance corresponding to the button operation.

[0073] The database of the cloud control center stores key operations and their corresponding action instructions for home appliances. After obtaining the key operations, the action instructions for the home appliances corresponding to the key operations can be obtained by searching the database.

[0074] The following describes in detail the process of obtaining the action instruction of the home appliance corresponding to the key operation in terms of the type of action instruction.

[0075] Combination Figure 4 As shown, the process of obtaining the action instruction of the home appliance corresponding to the key operation may include:

[0076] S401: Obtain the type of the household electrical appliance and a device action instruction set corresponding to the type of the household electrical appliance.

[0077] When the type of household appliance is an air conditioner, the device action instruction set corresponding to the air conditioner may include the following instructions: shutdown instruction, power on instruction, set temperature instruction, increase temperature instruction, decrease temperature instruction, set indoor fan speed instruction, increase indoor fan speed instruction, decrease indoor temperature speed instruction, set compressor operating frequency instruction, increase compressor operating frequency instruction and decrease compressor operating frequency instruction, etc.

[0078] When the type of household appliance is a lamp, the device action instruction set corresponding to the lamp may include the following instructions: light on instruction, light off instruction, light brightness setting instruction, light brightness increase instruction, light brightness decrease instruction, and light off delay after light on instruction, etc.

[0079] Here, the types of household appliances include air conditioners and lamps, and this step is exemplified. It does not constitute a specific limitation on the types of household appliances and the device action instruction sets corresponding to the types of household appliances. Those skilled in the art can determine the types of household appliances and the device action instruction sets corresponding to the types of household appliances according to actual conditions.

[0080] S402: Obtain the current scene and the scene action instruction set corresponding to the current scene in the device action instruction set.

[0081] A scene may include actions (instructions) of multiple home appliances, and the action instructions of each home appliance in the scene are a subset of the device action instruction set of the home appliance.

[0082] For example, the instruction set of the device corresponding to the air conditioner may include a shutdown instruction, a power-on instruction, a set temperature instruction, a set temperature increase instruction, a set temperature decrease instruction, a set indoor fan speed instruction, a set indoor fan speed increase instruction, a set indoor temperature speed decrease instruction, a set compressor operating frequency instruction, a compressor operating frequency increase instruction, and a compressor operating frequency decrease instruction, etc. The action instructions of the air conditioner in the homecoming scene may include: a power-on instruction and a set temperature instruction. For the air conditioner, the scene action instruction set in the homecoming scene includes a power-on instruction and a set temperature instruction.

[0083] S403: Determine the action instruction of the home appliance corresponding to the key operation in the scene action instruction set.

[0084] In this way, the button operation can be combined with the scene control, and the user can realize the personalized setting of the scene through the switch panel, which improves the user experience. In addition, there are many action instructions in the device action instruction set of household appliances, while the button operations are usually limited to a few, such as: single-click operation, double-click operation (for example, the time interval between two single clicks is less than 0.5s, and the two single-click operations are regarded as a double-click operation), triple-click operation (for example, three single clicks, the time interval between each two clicks is less than 0.5s, and the three single-click operations are regarded as a triple-click operation), long press operation (for example, the continuous pressing time exceeds 3s or 4s) and short press operation (for example, the continuous pressing time exceeds 1s). The above technical solution solves the correspondence problem between the numerous action instructions and the limited button operations at the same time. For example, for the switch panel of the air conditioner, in the return In the home scene, a single-click operation can correspond to a power-on command, a double-click operation can correspond to a command to increase the set temperature, and a triple-click operation can correspond to a command to reduce the set temperature; in the waking-up scene, in addition to adjusting the indoor temperature, another major function of the air conditioner is to change the indoor wind speed to adjust the indoor air circulation and create a waking-up scene. Then, the scene instruction set of the air conditioner in the waking-up scene may include a power-on instruction, a set temperature setting instruction, and a set indoor fan speed instruction. In this case, a single-click operation can correspond to a power-on instruction, a double-click operation can correspond to a command to increase the indoor unit speed, a triple-click operation can correspond to a command to reduce the indoor fan speed, a long press operation can correspond to a command to increase the set temperature, and a short press operation can correspond to a command to reduce the set temperature. In this way, the double-click operation and triple-click operation of the switch panel of the same air conditioner correspond to different action instructions of the air conditioner in different scenes. The device action instruction set is divided based on the scene, and the correspondence between numerous action instructions and limited button operations is realized.

[0085] Furthermore, in the scene action instruction set, action instructions for household appliances corresponding to the key operation are determined, including: obtaining trigger conditions and execution order of each action instruction in the scene action instruction set; obtaining each device parameter in the current scene and / or environmental parameters of the current environment; determining a first action instruction corresponding to the device parameters and / or environmental parameters in the scene action instruction set; determining one or more action instructions whose execution order is after the first action instruction as a candidate action instruction set; and determining the action instructions for household appliances corresponding to the key operation in the candidate action instruction set.

[0086] The above-mentioned device parameters include the device parameters of each household appliance involved in the scene, and the above-mentioned environmental parameters of the current environment include but are not limited to temperature, humidity, brightness and time.

[0087] Obtaining each device parameter in the current scene and / or the environmental parameters of the current environment, and determining a first action instruction corresponding to the device parameters and / or the environmental parameters in a scene action instruction set, including: obtaining each device parameter in the current scene, and determining a first action instruction corresponding to the device parameters in a scene action instruction set; or, obtaining the environmental parameters of the current environment, and determining a first action instruction corresponding to the environmental parameters in a scene action instruction set; or, obtaining each device parameter in the current scene and the environmental parameters of the current environment, and determining a first action instruction corresponding to the device parameters and the environmental parameters in a scene action instruction set.

[0088] The following is an example of the triggering condition for each action:

[0089] In some scenarios in the smart home system, under different trigger conditions (different from the trigger conditions of the scene), the devices involved in the scene perform different actions. For example, in the sleep scene, the lights and curtains of the whole house are automatically turned off, the night light is turned on, and the preset soft background sound source slowly sounds, and then automatically turns off after falling asleep. Among them, the trigger condition for the background music to sound is to start the sleep scene, or the trigger condition is that the night light is turned on, and the trigger condition for the background music to turn off is after entering sleep for a certain period of time, for example, after entering sleep mode for 1 hour, 1.5 hours, 2 hours or 2.5 hours, the background music is turned off. Similarly, in the sleep scene, different temperatures and different fresh air volumes can be set for the bedroom at different time periods to allow users to get a better sleep experience.

[0090] The following takes the sleeping scenario as an example to explain the above solution in detail:

[0091] In the above scenario, the scene action instructions of the night light include a background music on instruction and a background music off instruction. Thus, the execution order of the scene action instructions of the night light is background music on instruction→background music off instruction.

[0092] In the case where the trigger condition for background music to sound is to start the sleep scene, if it is detected that the device parameter of the background music player is playing, and the duration of entering the sleep scene is less than the aforementioned certain duration, then the first action instruction corresponding to the device parameter and the environmental parameter is the background music on instruction, and the action instruction after the first action instruction is the background music off instruction, which is the candidate instruction set, and the action instruction corresponding to the key operation is the background music off instruction. Here, the switch panel of the night light is used as an example for illustrative explanation. At this time, any key operation can correspond to the background music off instruction. Then, no matter how the user operates the buttons on the switch panel, the background music will be turned off.

[0093] The trigger condition for the background music to play is when the night light is on. If the device parameter for detecting the night light is that it is not on, the first action instruction corresponding to the device parameter is empty. The action instructions after the first action instruction include: a background music on instruction and a background music off instruction. At this time, the action instruction corresponding to the key operation can be a background music on instruction or a background music off instruction (the background music on instruction and the background music off instruction are the candidate instruction set). For example, a double-click operation corresponds to a background music on instruction, and a triple-click operation corresponds to a background music off instruction (which can indicate that background music will no longer play regardless of whether the night light is on).

[0094] By adopting the above technical solution, it is possible to more deeply combine button operation and scene control, so that the button operation is adapted to the scene creation process. During the scene creation process, the user can timely fine-tune the scene through the switch panel corresponding to the home appliance to achieve personalized scene control, which is conducive to improving the user experience.

[0095] In addition, different users have different operating habits. The following is an exemplary description of the process of obtaining an action instruction of a home appliance corresponding to a key operation in accordance with the user's operating habits.

[0096] Combination Figure 5 As shown, obtaining the action instruction of the home appliance corresponding to the key operation may include:

[0097] S501, obtaining a first triggering number of a first key operation within a first set time period before a current moment, a second triggering number of a second key operation, and a third triggering number of consecutive triggering of the first key operation and the second key operation within a second set time period.

[0098] The first set duration here can be one week, half a month or one month; or, the time required from the start of counting to the time when the first trigger number of the first button reaches a certain number, for example, the first trigger number reaches 10 times or 15 times, and the second trigger number of the second button operation reaches a certain number, for example, the second trigger number reaches 10 times or 15 times.

[0099] The second set time length here can be 1s, 1.5s, 2s or 3s.

[0100] The first key operation here may be any one of the key operations listed above, and the second key operation may also be any one of the key operations listed above.

[0101] In some application scenarios, the user intends to trigger the instruction corresponding to the second button operation, but due to operating habits or forgetting the set operation method, the first button operation is mistakenly triggered. Usually, after the user triggers the first button operation, he or she will usually realize the error within a short time (such as the second set time length) and make adjustments immediately. The second button operation can be triggered twice in a row. Such a series of operations means that the first button operation and the second button operation are triggered continuously within the second set time length.

[0102] S502. When a first ratio of the third trigger number to the first trigger number is greater than or equal to a first preset threshold, and a second ratio of the third trigger number to the second trigger number is greater than or equal to a second preset threshold, the second action instruction originally corresponding to the first button operation is matched to the second button operation; the third action instruction originally corresponding to the second button operation is matched to the first button operation.

[0103] The first preset threshold and the second preset threshold are both values ​​greater than 0 and less than 1, and the first preset threshold and the second preset threshold may be equal or unequal. The larger the first preset threshold and the second preset threshold, the stronger the correspondence between the first button operation and the second action instruction, and the stronger the correspondence between the second button operation and the third action instruction, that is, the second action instruction originally corresponding to the first button operation is less likely to be swapped with the third action instruction originally corresponding to the second button operation. In the case where the first preset threshold and the second preset threshold are too large, it will cause the user to try wrong operations more times, which is not conducive to improving the user experience; the smaller the first preset threshold and the second preset threshold, the easier it is to swap the second action instruction originally corresponding to the first button operation with the original third action instruction of the second button operation. In the case where the first preset threshold and the second preset threshold are too small, it is not conducive to statistics of accurate user operation habits. The premature swapping of the first button operation and the second button operation's original corresponding action instructions makes it easy for the user to be unable to more accurately identify the first button operation and the action instruction actually corresponding to the second button operation. The embodiment of the present application does not specifically limit the values ​​of the first preset threshold and the second preset threshold. Those skilled in the art can determine the first preset threshold and the second preset threshold that meet the requirements based on the impact of the first preset threshold and the second preset threshold on the user experience.

[0104] In some application scenarios, the types of all key operations are first key operations and second key operations. At this time, the first preset threshold and the second preset threshold may be greater than or equal to 50%. For example, the first preset threshold and the second preset threshold may both be 50%, 60%, 70% or 80%.

[0105] When the total types of all key operations are greater than two, the first preset threshold and the second preset threshold need to be appropriately reduced, and the more the total types of all key operations are, the smaller the first preset threshold and the second preset threshold are.

[0106] The above swapping of the action instructions corresponding to the first key operation and the second key operation refers to corresponding the second action instruction originally corresponding to the first key operation to the second key operation; and corresponding the third action instruction originally corresponding to the second key operation to the first key operation.

[0107] For example, when the first ratio is less than the first preset threshold, or the second ratio is less than the second threshold, the first button operation corresponds to the second action instruction, and the second button operation corresponds to the third action instruction; when the first ratio is greater than or equal to the first preset threshold, and the second ratio is greater than or equal to the second preset threshold, the first button operation corresponds to the third action instruction, and the second button operation corresponds to the second action instruction.

[0108] The second action instruction may be any one of the multiple action instructions listed in the above embodiment, and the third action instruction may be any one of the multiple action instructions listed in the above embodiment, without specific limitation.

[0109] By adopting the above technical solution, the correspondence between key operations and action instructions can be more in line with the user's usage habits, thereby improving the user's usage experience.

[0110] Further, obtaining the first triggering number of the first key operation within the first set time before the current moment, the second triggering number of the second key operation, and the third triggering number of the first key operation and the second key operation being continuously triggered within the second set time may include: obtaining the first time interval between the triggering moment of each first key operation and the current moment, and determining the first weight of each first key operation according to the first time interval; obtaining the second time interval between the triggering moment of each second key operation and the current moment, and determining the second weight of each second key operation according to the second time interval; determining the sum of all first weights as the first triggering number, and determining the sum of all second weights as the second triggering number; and determining the sum of all third weights as the third triggering number. Among them, the first weight is anti-correlated with the first time interval, and the second weight is anti-correlated with the second time interval. The third weight is the first weight of the first key operation in the first key operation and the second key operation that are continuously triggered for the second set time, or the third weight is the second weight of the second key operation in the first key operation and the second key operation that are continuously triggered for the second set time, or the third weight is the average of the first weight of the first key operation and the second weight of the second key operation that are continuously triggered for the second set time.

[0111] The process of users using the switch panel (the switch panel in smart mode) is essentially a process in which users memorize the correspondence between key operations and action instructions and adjust their habits based on the correspondence. This will lead to two results. One result is that the user successfully adjusts his habits based on the correspondence between key operations and action instructions. The other result is that the user sticks to his habits and feels that the correspondence between key operations and action instructions is "unconventional."

[0112] In the above technical solution, instead of simply counting the number of "correct operations" (the difference between the first trigger number and the third trigger number, the difference between the second trigger number and the third trigger number) and the number of "wrong operations" (the third trigger number), the first trigger number, the second trigger number and the third trigger number are counted based on the interaction time between the user and the switch panel. In the above technical solution, the first weight is anti-correlated with the first time interval, and the second weight is anti-correlated with the second time interval, indicating that the shorter the time interval between a certain key operation and the current moment, the stronger the representativeness of the key operation for the interaction result between the user and the switch panel (the user is accustomed to the correspondence between the key operation and the action instruction, or the user sticks to his own habit), and the first trigger number, the second trigger number and the third trigger number are counted accordingly, and then it is determined whether to swap the action instructions corresponding to the first key operation and the second key operation based on the first trigger number, the second trigger number and the third trigger number thus counted. In this way, the adjustment process of the correspondence between the key operation and the action instruction is more in line with the user's learning process, reducing the phenomenon that the user swaps the action instructions of the first key operation and the second key operation when he is about to get used to the correspondence between the key operation and the action instruction, thereby improving the user's use experience.

[0113] Specifically, the first triggering number, the second triggering number, and the third triggering number can be obtained in the following manner:

[0114] According to the order of the first time interval and the second time interval from large to small, the plurality of first key operations and the second key operations are sorted to form a key operation sequence; according to the order of the weight from small to large, a weight is assigned to each key operation in the sequence from first to last; as shown in Table 1:

[0115] Table 1 Key operation and weight comparison table

[0116] Key operation 1 Key operation 2 Key operation 3 ··· Key operationN type A1 A2 A1 ··· A1 Time interval <![CDATA[T1]]> <![CDATA[T2]]> <![CDATA[T3]]> ··· <![CDATA[T n ]]> Weight <![CDATA[w1]]> <![CDATA[w2]]> <![CDATA[w3]]> ··· <![CDATA[w n ]]>

[0117] Among them, A1 is the first key operation, A2 is the second key operation; the time intervals between key operation 1 to key operation n and the current moment are getting shorter and shorter, T1>T2>T3>…>T n ;w1<w2<w3<…<w n , specifically:

[0118]

[0119] or,

[0120] Or, w1=1; w2=2; w3=3; ...; w n =n;

[0121] or,

[0122] According to the above method, a corresponding weight may be assigned to each first key operation A1 and each second key operation A2.

[0123] The weights w1, w3, ..., w2 corresponding to the first key operation A1 n are all first weights; the weights w2, ... corresponding to the second key operation A2 are all second weights.

[0124] The third weight is described in detail below:

[0125] For example, when T3-T2 in Table 1 is less than or equal to the second set duration, key operation 2 and key operation 3 are the first key operation and the second key operation that are triggered continuously. In this case, the first weight w3 corresponding to the first key operation A1 can be determined as the third weight, or the second weight w2 corresponding to the second key operation A2 can be determined as the third weight, or the average value (w2+w3) / 2 of the first weight w3 of the first key operation and the second weight w2 of the second key operation can be determined as the third weight.

[0126] Then, the sum of all first weights is determined as the first triggering number, the sum of all second weights is determined as the second triggering number, and the sum of all third weights is determined as the third triggering number.

[0127] In some application scenarios, multiple key operations are sequentially shown in Table 2 in order of time from far to near:

[0128] Table 2-1 Multiple key operations recorded in sequence

[0129]

[0130] Table 2-2 Multiple key operations recorded in sequence

[0131]

[0132] The larger the sequence number is, the shorter the time interval between the key operation and the current moment is.

[0133] According to the conventional method, the first trigger number, the second trigger number and the third trigger number are counted, then: the first trigger number (the number of times A1 appears) is 23 times, the second trigger number (the number of times A2 appears) is 25 times, the third trigger number is 13 times, the first ratio is 13 / 23, the second ratio is 13 / 25, and when the first preset threshold and the second preset threshold are both 50%, the first ratio is greater than the first preset threshold, and the second ratio is greater than the second preset threshold. At this time, the action instruction corresponding to the first button operation A1 is swapped with the action instruction corresponding to the second button operation A2.

[0134] According to the optimized method, the first triggering number, the second triggering number and the third triggering number are counted (with w1=1; w2=2; w3=3; ...; w n =n, the average value of the first weight w3 of the first key operation and the second weight w2 of the second key operation (w2+w3) / 2 is determined as the third weight for exemplary description), the weight of each key press and the third weight of the first key operation and the second key operation triggered continuously are as shown in Table 3:

[0135] Table 3-1 Button operations and their corresponding weights

[0136] Serial number 1 2 3 4 5 6 7 8 9 10 11 12 13 operate A1 A1 A1 A1 A1 A2 A2 A1 A2 A2 A2 A2 A2 Operation Weight 1 2 3 5 7 9 10 11 13 14 15 16 18 operate A2 A2 A2 A2 A1 A1 Operation Weight 4 6 8 12 17 19 The third weight 3.5 5.5 7.5 11.5 16.5 18.5

[0137] Table 3-2 Key operations and their corresponding weights

[0138] Serial number 14 15 16 17 18 19 20 21 22 23 24 operate A1 A1 A2 A2 A2 A2 A2 A1 A1 A1 A1 Operation Weight 20 22 24 25 26 27 29 31 32 33 35 operate A2 A2 A1 A1 A2 A2 Operation Weight 21 23 28 30 34 36 The third weight 20.5 22.5 27.5 29.5 33.5 35.5

[0139] Table 3-3 Key operations and their corresponding weights

[0140] Serial number 25 26 27 28 29 30 31 32 33 34 35 operate A2 A2 A2 A1 A1 A1 A1 A2 A2 A1 A1 Operation Weight 37 38 39 41 42 43 44 45 46 47 48 operate A1 Operation Weight 40 The third weight 39.5

[0141] Then: the first trigger number is: 601; the second trigger number is: 575; the third trigger number is: 255; the first ratio is: 255 / 601; the second ratio is: 255 / 575; obviously, the first ratio is less than the first preset threshold (50%), and the second ratio is less than the second preset threshold (50%), at this time, the action instructions corresponding to the first key operation and the second key operation are not adjusted. It can be seen from Table 3 that the phenomenon of the first key operation and the second key operation being continuously triggered mainly occurs when the sequence number is relatively low. As the sequence number increases, the phenomenon of the first key operation and the second key operation being continuously triggered decreases, indicating that the user has begun to get used to the correspondence between the key operation and the action instruction. Obviously, at this time, not adjusting the action instructions corresponding to the first key operation and the second key operation is more conducive to improving the user experience.

[0142] Figure 6It is a schematic diagram of a smart home control device based on a dual-mode switch panel provided in an embodiment of the present application. The smart home control device can be implemented through software, hardware, or a combination of software and hardware.

[0143] Combination Figure 6 As shown, the smart home control device includes an acquisition module 61, a first control module 62 and a second control module 63; the acquisition module 61 is used to obtain the working mode of the switch panel; wherein the working mode of the switch panel includes a switch mode and a smart mode, and the first control module 62 is used to obtain key operations when the switch panel is in the smart mode, and obtain action instructions of the home appliance corresponding to the key operations, so that the home appliance performs corresponding actions; the second control module 63 is used to mark the switch panel as inoperable when the switch panel is in the switch mode.

[0144] Optionally, the first control module 62 includes a first obtaining unit, a second obtaining unit and a determining unit, the first obtaining unit being used to obtain the type of household appliance and a device action instruction set corresponding to the type of household appliance; the second obtaining unit being used to obtain the current scene and a scene action instruction set corresponding to the current scene in the device action instruction set; and the determining unit being used to determine the action instruction of the household appliance corresponding to the key operation in the scene action instruction set.

[0145] Optionally, the first determination unit is specifically used to: obtain the trigger conditions and execution order of each action instruction in the scene action instruction set; obtain the device parameters of each household appliance in the current scene and / or the environmental parameters of the current environment; determine the first action instruction corresponding to the device parameters and / or environmental parameters in the scene action instruction set; determine one or more action instructions whose execution order is after the first action instruction as a candidate action instruction set; and determine the action instructions of the household appliance corresponding to the key operation in the candidate action instruction set.

[0146] Optionally, causing the home appliance to perform a corresponding action includes: sending an action instruction of the home appliance to the home appliance, causing the home appliance to perform the corresponding action; or sending the action instruction of the home appliance to a switch panel, and the switch panel controlling the home appliance to perform the corresponding action.

[0147] Optionally, the second control module 63 includes a first control unit or a second control unit; the first control unit is used for not sending an action instruction of the home appliance to the smart switch; the second control unit is used for not sending an action instruction of the home appliance to the home appliance.

[0148] Optionally, the first control module 62 includes a third acquisition unit and an adjustment unit, the third acquisition unit is used to obtain the first trigger number of the first button operation within a first set time period before the current moment, the second trigger number of the second button operation, and the third trigger number of the first button operation and the second button operation being continuously triggered within a second set time period; the adjustment unit is used to correspond the second action instruction originally corresponding to the first button operation to the second button operation when a first ratio of the third trigger number to the first trigger number is greater than or equal to a first preset threshold and a second ratio of the third trigger number to the second trigger number is greater than or equal to a second preset threshold; and correspond the third action instruction originally corresponding to the second button operation to the first button operation.

[0149] Optionally, the third acquisition unit is specifically used to obtain a first time interval between the triggering moment of each first key operation and the current moment, and determine a first weight of each first key operation based on the first time interval; the first weight is inversely correlated with the first time interval; obtain a second time interval between the triggering moment of each second key operation and the current moment, and determine a second weight of each second key operation based on the second time interval; the second weight is inversely correlated with the second time interval; determine the sum of all first weights as the first triggering number, and determine the sum of all second weights as the second triggering number; determine the sum of all third weights as the third triggering number; the third weight is the first weight of the first key operation in the first key operation and the second key operation that are continuously triggered for a second set time length, or the third weight is the second weight of the second key operation in the first key operation and the second key operation that are continuously triggered for a second set time length, or the third weight is the average of the first weight of the first key operation and the second weight of the second key operation that are continuously triggered for a second set time length.

[0150] In some embodiments, a smart home control device based on a dual-mode switch panel includes a processor and a memory storing program instructions, and the processor is configured to execute the smart home control method based on the dual-mode switch panel provided in the aforementioned embodiment when executing the program instructions.

[0151] Figure 7 Schematic diagram of a smart home control device based on a dual-mode switch panel provided in an embodiment of the present application. Figure 7 As shown, the smart home control device based on the dual-mode switch panel includes:

[0152] The processor 71 and the memory 72 may also include a communication interface 73 and a bus 74. The processor 71, the communication interface 73, and the memory 72 may communicate with each other through the bus 74. The communication interface 73 may be used for information transmission. The processor 71 may call the logic instructions in the memory 72 to execute the smart home control method based on the dual-mode switch panel provided in the aforementioned embodiment.

[0153] In addition, the logic instructions in the above-mentioned memory 72 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.

[0154] The memory 72 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the methods in the embodiments of the present application. The processor 71 executes functional applications and data processing by running the software programs, instructions, and modules stored in the memory 72, that is, implementing the methods in the above method embodiments.

[0155] The memory 72 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 72 may include a high-speed random access memory and may also include a non-volatile memory.

[0156] An embodiment of the present application provides a smart home system, comprising a smart home control device based on a dual-mode switch panel provided in the aforementioned embodiment.

[0157] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the smart home control method based on the dual-mode switch panel provided in the aforementioned embodiment.

[0158] An embodiment of the present application provides a computer program product, which includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the smart home control method based on the dual-mode switch panel provided in the aforementioned embodiment.

[0159] The computer-readable storage medium mentioned above may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.

[0160] The technical solution of the embodiment of the present application can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method in the embodiment of the present application. The aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes, or a transient storage medium.

[0161] The above description and the accompanying drawings fully illustrate the embodiments of the present application so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, individual components and functions are optional, and the order of operations may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates otherwise, the singular forms of "a", "an" and "the" are intended to include plural forms as well. In addition, when used in this application, the term "comprise" and its variants "comprises" and / or including (comprising) refer to the existence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the existence or addition of one or more other features, wholes, steps, operations, elements, components and / or these groups. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same or similar parts between the embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.

[0162] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. Technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments of the present application. Technicians can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0163] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units can be only a logical function division, and there can be other division methods in actual implementation, 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 or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present application can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit.

[0164] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present application. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or code, and a part of a module, program segment or code includes one or more executable instructions for realizing the logical function of the specification. In some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can also be executed in the opposite order sometimes, which can depend on the functions involved. Each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be realized by a dedicated hardware-based system that performs the function or action of the specification, or can be realized by a combination of special-purpose hardware and computer instructions.

Claims

1. A smart home control method based on a dual-mode switch panel, characterized in that: The working modes of the switch panel include a switch mode and a smart mode, and the smart home control method includes: Obtaining the working mode of the switch panel; When the switch panel is in the smart mode, a key operation is obtained, and an action instruction of a home appliance corresponding to the key operation is obtained, so that the home appliance performs a corresponding action; In case the switch panel is in the switch mode, the switch panel is marked as inoperable.

2. The smart home control method according to claim 1, characterized in that: Obtaining an action instruction of the home appliance corresponding to the key operation, including: Obtaining the type of the household appliance and a device action instruction set corresponding to the type of the household appliance; Obtaining a current scene and a scene action instruction set corresponding to the current scene in the device action instruction set; In the scene action instruction set, an action instruction of the home appliance corresponding to the key operation is determined.

3. The smart home control method according to claim 2, characterized in that: In the scene action instruction set, determining the action instruction of the home appliance corresponding to the key operation includes: Obtaining the triggering condition and execution order of each action instruction in the scene action instruction set; Obtaining device parameters of each household appliance in the current scene and / or environmental parameters of the current environment; Determine a first action instruction corresponding to the device parameter and / or the environment parameter in the scene action instruction set; Determine one or more action instructions whose execution order is after the first action instruction as a candidate action instruction set; An action instruction for the home appliance corresponding to the key operation is determined from the candidate action instruction set.

4. The smart home control method according to claim 1, characterized in that: The home appliance is enabled to perform corresponding actions, including: Sending an action instruction of the home appliance to the home appliance, so that the home appliance performs a corresponding action; Alternatively, the action instruction of the household appliance is sent to the switch panel, and the switch panel controls the household appliance to realize the corresponding action.

5. The smart home control method according to claim 1, characterized in that: Marking the switch panel as inoperable includes: The operation instruction of the home appliance is not sent to the switch panel, or the operation instruction of the home appliance is not sent to the home appliance.

6. The smart home control method according to any one of claims 1 to 5, characterized in that: Get the action instructions of the home appliance corresponding to the key operation, including: Obtain a first triggering number of the first key operation within a first set time period before the current moment, a second triggering number of the second key operation, and a third triggering number of the first key operation and the second key operation being continuously triggered within a second set time period; When the first ratio of the third trigger number to the first trigger number is greater than or equal to the first preset threshold, and the second ratio of the third trigger number to the second trigger number is greater than or equal to the second preset threshold, the second action instruction originally corresponding to the first key operation is corresponded to the second key operation; the third action instruction originally corresponding to the second key operation is corresponded to the first key operation.

7. The smart home control method according to claim 6, characterized in that: Obtaining a first triggering number of a first key operation within a first set time period before a current moment, a second triggering number of a second key operation, and a third triggering number of the first key operation and the second key operation being continuously triggered within a second set time period, including: Obtaining a first time interval between the triggering moment of each first key operation and the current moment, and determining a first weight of each first key operation according to the first time interval; the first weight is inversely correlated with the first time interval; Obtaining a second time interval between the triggering moment of each second key operation and the current moment, and determining a second weight of each second key operation according to the second time interval; the second weight is inversely correlated with the second time interval; Determine the sum of all the first weights as the first triggering number, and determine the sum of all the second weights as the second triggering number; The sum of all third weights is determined as the third trigger count; the third weight is the first weight of the first key operation among the first key operation and the second key operation that are continuously triggered within the second set time duration, or the third weight is the second weight of the second key operation among the first key operation and the second key operation that are continuously triggered within the second set time duration, or the third weight is the average of the first weight of the first key operation and the second weight of the second key operation that are continuously triggered within the second set time duration.

8. A smart home control device based on a dual-mode switch panel, characterized in that: The working modes of the switch panel include switch mode and smart mode. The smart home control device includes: An obtaining module, used for obtaining the working mode of the switch panel; A first control module is used to obtain a key operation when the switch panel is in the smart mode, and obtain an action instruction of the home appliance corresponding to the key operation, so that the home appliance performs a corresponding action; The second control module is configured to mark the switch panel as inoperable when the switch panel is in the switch mode.

9. A smart home control device based on a dual-mode switch panel, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the smart home control method based on the dual-mode switch panel as described in any one of claims 1 to 7 when executing the program instructions.

10. A smart home system, characterized in that: It comprises a smart home control device based on a dual-mode switch panel as described in claim 8 or 9.