Search

CN-114079443-B - Control method and device of intelligent switch, intelligent switch and storage medium

CN114079443BCN 114079443 BCN114079443 BCN 114079443BCN-114079443-B

Abstract

The embodiment of the application provides a control method, a device, an intelligent switch and a storage medium of the intelligent switch, wherein the intelligent switch is configured to work in at least two working modes, the at least two working modes comprise a single control mode, the single control mode is used for controlling the on-off of a power supply loop of intelligent equipment according to a clicking action by the intelligent switch, the method comprises the steps of obtaining a mode switching instruction, the mode switching instruction comprises target working mode information, judging whether the current working mode of the intelligent switch is the same as the target working mode, and switching the current working mode into the target working mode if the current working mode is different from the target working mode, so that the intelligent switch works in the target working mode. The control method of the intelligent switch provided by the embodiment of the application can solve the problem of delay of the intelligent switch in the use process, improve the control speed of the intelligent device and improve the user experience.

Inventors

  • ZHAO CHENGHAN

Assignees

  • 深圳绿米联创科技有限公司
  • 深圳绿米联创科技有限公司

Dates

Publication Date
20260421
Application Date
20200817
Priority Date
20200817

Claims (10)

  1. 1. The intelligent switch control method is characterized in that the intelligent switch is configured to work in at least two working modes, the at least two working modes comprise a single control mode and an intelligent mode, the single control mode is that the intelligent switch controls the on-off of a power supply loop of an intelligent device according to a single click action, the intelligent switch does not need to wait for a subsequent trigger action after detecting the single click action and executes the on-off operation of the power supply loop, the intelligent mode is that the intelligent switch performs intelligent control on the intelligent device through diversified trigger actions, in the intelligent mode, the intelligent switch needs to wait for a preset time period after detecting the trigger action to judge whether the subsequent trigger action exists or not, and a corresponding control function is executed according to the combination of the trigger actions, and the method comprises the following steps of: The method comprises the steps of acquiring a mode switching instruction, wherein the mode switching instruction comprises target working mode information, and the mode switching instruction comprises at least one of the mode switching instruction acquired in response to a triggering instruction of the intelligent switch and within a polling time of the intelligent switch, wherein the target working mode to be switched is determined to be a single control mode according to a first touch control action when the current working mode is the intelligent mode, the target working mode to be switched is determined to be the intelligent mode according to a second touch control action when the current working mode is the single control mode, and the first touch control action is a device control touch control action in the single control mode and the second touch control action is a device control touch control action in the intelligent mode; judging whether the current working mode is the same as a target working mode or not; If the current working mode is different from the target working mode, switching the current working mode into the target working mode, reporting the switched working mode information to a server, enabling the server to send the switched working mode information to a mobile terminal, and checking whether the current working mode of an intelligent switch displayed in the mobile terminal is consistent with the current working mode of the intelligent switch or not based on the changed associated information reported by the mobile terminal; And under the condition that the current working mode is switched to the single control mode, canceling the delay judging function of the intelligent switch.
  2. 2. The method for controlling an intelligent switch according to claim 1, wherein the acquiring the mode switching instruction includes: And acquiring the mode switching instruction sent by the server, wherein the mode switching instruction is generated by the server according to a first mode switching request sent by the mobile terminal.
  3. 3. The method for controlling an intelligent switch according to claim 1, wherein before the mode switching instruction is acquired, the method further comprises: When a touch action is received, generating a second mode switching request according to the touch action, wherein the second mode switching request comprises current touch information of the intelligent switch, and And sending the second mode switching request to a server so that the server generates the mode switching instruction according to the current touch information.
  4. 4. The method for controlling an intelligent switch according to claim 3, wherein the current touch information is used for characterizing the touch action, and the sending the second mode switching request to a server, so that the server generates the mode switching instruction according to the current touch information, includes: and sending the second mode switching request to the server so that the server determines a target working mode according to the corresponding relation between the touch action and the working mode of the intelligent switch to generate the mode switching instruction.
  5. 5. The method for controlling an intelligent switch according to claim 1, wherein before the mode switching instruction is acquired, the method further comprises: When a touch action is received, generating a second mode switching request according to the touch action, wherein the second mode switching request comprises current touch information of the intelligent switch, and And sending the second mode switching request to a server so that the server sends an associated information changing instruction to a mobile terminal according to the current touch information to trigger the mobile terminal to change associated information, wherein the associated information is displayed by the mobile terminal and used for representing the working mode of the intelligent switch.
  6. 6. The method for controlling an intelligent switch according to any one of claims 1 to 5, wherein the trigger command is a key command acting on the intelligent switch.
  7. 7. The method for controlling an intelligent switch according to any one of claims 1 to 5, further comprising: When the intelligent switch networking is successful, the initial working mode information of the intelligent switch networking is sent to a server, and And switching the initial working mode into a preset working mode according to a received preset mode switching instruction, wherein the preset mode switching instruction is generated when the initial working mode and the preset working mode are different.
  8. 8. The intelligent switch control device is characterized by being configured to work in at least two working modes, wherein the at least two working modes comprise a single control mode and an intelligent mode, the single control mode is used for controlling the on-off of a power supply loop of an intelligent device according to a single click action, the intelligent switch does not need to wait for a subsequent trigger action after detecting the single click action and executes the on-off operation of the power supply loop, the intelligent mode is used for realizing intelligent control of the intelligent switch on the intelligent device through diversified trigger actions, in the intelligent mode, the intelligent switch needs to wait for a preset time period after detecting the trigger action to judge whether the subsequent trigger action exists or not and execute a corresponding control function according to the combination of the trigger actions, and the intelligent switch control device comprises: The system comprises an acquisition module, a mode switching module, a control module and a control module, wherein the acquisition module is used for acquiring a mode switching instruction, the mode switching instruction comprises target working mode information, the target working mode to be switched is determined to be a single control mode according to a first touch action when the current working mode is an intelligent mode, the target working mode to be switched is determined to be the intelligent mode according to a second touch action when the current working mode is the single control mode, the first touch action is equipment control touch action in the single control mode, and the second touch action is equipment control touch action in the intelligent mode; A judging module for judging whether the current working mode is the same as the target working mode or not, and The intelligent switch comprises a target working mode, a switching module, a first information sending module and a server, wherein the target working mode is used for switching the current working mode into the target working mode and enabling the intelligent switch to work in the target working mode, the delay judging function of the intelligent switch is canceled under the condition that the current working mode is switched into the single control mode, the first information sending module is used for reporting the switched working mode information to the server so that the server can send the switched working mode information to the mobile terminal, and whether the current working mode of the intelligent switch displayed in the mobile terminal is consistent with the current working mode of the intelligent switch or not is checked based on the changed related information reported by the mobile terminal.
  9. 9. An intelligent switch comprising a processor and a memory, one or more programs stored in the memory and configured to be executed by the processor to implement the method of any of claims 1-7.
  10. 10. A computer readable storage medium, characterized in that the computer readable storage medium stores a program code, wherein the program code, when run by a processor, performs the method of any of claims 1-7.

Description

Control method and device of intelligent switch, intelligent switch and storage medium Technical Field The application relates to the technical field of intelligent home, in particular to a control method and device of an intelligent switch, the intelligent switch and a storage medium. Background At present, the appearance of intelligent switch has improved traditional wall switch position fixed, wiring complicacy and function singleness's characteristics. The existing intelligent switch can realize intelligent control of intelligent equipment and gives diversified experiences to users. In intelligent control of intelligent devices, it is generally achieved by diversified trigger actions, such as double-click, multi-click, long-press, etc. Therefore, after each time the intelligent switch is triggered, a period of time needs to be waited to determine whether there is a next trigger, if so, the control function corresponding to the trigger action is executed, but there is still a disadvantage in control efficiency. Disclosure of Invention In view of the above problems, embodiments of the present application provide a method and apparatus for controlling an intelligent switch, and a storage medium, so as to solve the above technical problems. In a first aspect, an embodiment of the present application provides a control method for an intelligent switch, where the intelligent switch is configured to be capable of operating in at least two operating modes, where the at least two operating modes include a single control mode, and the single control mode is that the intelligent switch controls on/off of a power supply loop of an intelligent device according to a clicking action, and the method includes obtaining a mode switching instruction, where the mode switching instruction includes target operating mode information, and determining whether a current operating mode of the intelligent switch is the same as the target operating mode, and if the current operating mode is different from the target operating mode, switching the current operating mode to the target operating mode, so that the intelligent switch operates in the target operating mode. In a second aspect, an embodiment of the present application provides a control device for an intelligent switch, where the intelligent switch is configured to be capable of operating in at least two operating modes, and the at least two operating modes include a single control mode, where the single control mode is that the intelligent switch controls on/off of a power supply loop of an intelligent device according to a clicking action, the device includes an acquisition module, a judgment module, and a switching module, the acquisition module is configured to acquire a mode switching instruction, the mode switching instruction includes target operating mode information, the judgment module is configured to judge whether a current operating mode of the intelligent switch is the same as the target operating mode, and the switching module is configured to switch the current operating mode to the target operating mode if the current operating mode is different from the target operating mode, so that the intelligent switch operates in the target operating mode. In a third aspect, embodiments of the present application provide a smart switch comprising a processor and a memory, one or more programs stored in the memory and configured to be executed by the processor to implement the method of controlling a smart switch of any of the above. In a fourth aspect, embodiments of the present application provide a computer readable storage medium storing program code, where the program code when executed by a processor performs the method of controlling the smart switch of any one of the above. Compared with the prior art, the intelligent switch control method, the intelligent switch control device, the intelligent switch and the storage medium provided by the embodiment of the application are configured to work in at least two working modes, the at least two working modes comprise a single control mode, the single control mode is to trigger the intelligent switch once through a single click action so as to control a power supply loop of the controlled intelligent device to be connected or disconnected once, the method comprises the steps of obtaining a mode switching instruction, the mode switching instruction comprises target working mode information, judging whether the current working mode of the intelligent switch is the same as the target working mode, and switching the current working mode into the target working mode if the current working mode is different from the target working mode, so that the intelligent switch works in the target working mode. According to the control method of the intelligent switch, the working mode of the intelligent switch is switched, when the intelligent switch is switched to the single control mode, the intelligent switch does not need to wait