Device control method and device, terminal device, control device and medium

By obtaining the corresponding relationship between the working status of smart devices and pointer variables and associating them with triggering devices, the problem of device control complexity in smart homes is solved and a simpler and richer device management experience is achieved.

CN115480489BActive Publication Date: 2024-09-24SHENZHEN LUMIUNITED TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110669029.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-16
Publication Date
2024-09-24
Estimated Expiration
2041-06-16

AI Technical Summary

Technical Problem

In a smart home environment, users need to use multiple remote controls or control buttons to manage multiple smart devices, resulting in complex operations and poor user experience. Especially as the number of IoT devices increases, how to use fewer remote controls Equipment Achieving simpler equipment control becomes a challenge.

Method used

By obtaining the corresponding relationship between the working status of the smart device and the pointer variable, a control instruction sequence is formed and associated with the target trigger device to achieve unified control of multiple smart devices, allowing one trigger device to control multiple smart devices. Working status, or multiple triggering devices control multiple working statuses of multiple smart devices respectively.

Benefits of technology

It simplifies the control process of smart devices, enables richer control types with fewer triggering devices, improves user experience, and enables users to more conveniently manage the working status of multiple smart devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115480489B
    Figure CN115480489B
Patent Text Reader

Abstract

The present application provides a device control method and apparatus, a terminal device, a trigger device and a computer-readable storage medium, the method comprising: obtaining a correspondence between the working states of a plurality of controlled intelligent devices and pointer variables, and forming a control instruction sequence for controlling the working states of the controlled intelligent devices according to the correspondence; obtaining trigger device addition information of a trigger device for controlling the pointer; and associating the control instruction sequence with a target trigger device based on the trigger device addition information.
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, and in particular to a device control method and apparatus, a terminal device, a control device, and a computer storage medium. Background Art

[0002] With the continuous development of the smart home industry, the concept of whole-house intelligence has been deeply rooted in people's minds, and the types and numbers of smart home devices in users' homes are increasing.

[0003] At present, users usually have many smart home devices at home. To control multiple devices, multiple remote controls or control buttons are needed to adjust them separately. It is easy to confuse the remote controls, and the operation is inconvenient, resulting in poor user experience. How to use fewer remote control devices to control a series of devices in the simplest and most user-friendly way with more and more IoT (Internet of Things) devices has become a prominent issue. Summary of the invention

[0004] In order to solve the existing technical problems, the present application provides a device control method and apparatus, terminal equipment, control equipment and computer storage medium that are simple to operate, realize richer control types and can control the working status of more controlled intelligent devices.

[0005] To achieve the above purpose, the technical solution of the embodiment of the present application is implemented as follows:

[0006] In a first aspect, an embodiment of the present application provides a device control method, which is applied to a terminal device, including:

[0007] Acquire the correspondence between the working states of the plurality of controlled intelligent devices and the pointer variables, and form a control instruction sequence for controlling the working states of the controlled intelligent devices according to the correspondence;

[0008] Acquire trigger device adding information of a trigger device for controlling the pointer;

[0009] The control instruction sequence is associated with a target trigger device based on the trigger device addition information.

[0010] In a second aspect, an embodiment of the present application provides a device control apparatus, applied to a terminal device, including:

[0011] A configuration module, used to obtain a correspondence between the working states of a plurality of controlled intelligent devices and pointer variables, and to form a control instruction sequence for controlling the working states of the controlled intelligent devices according to the correspondence;

[0012] A trigger device adding module, used for acquiring trigger device adding information of a trigger device used for controlling the pointer;

[0013] An associating module is used to associate the control instruction sequence with a target trigger device based on the trigger device addition information.

[0014] In a third aspect, an embodiment of the present application provides a terminal device, comprising a processor and a memory, wherein the memory stores a computer program executable by the processor, and when the computer program is executed by the processor, the device control method described in any embodiment of the present application applied to the terminal device side is implemented.

[0015] The device control method provided in the above-mentioned embodiment of the present application corresponds different working states of the smart device to pointer variables, forms a control instruction sequence for controlling the working state of the controlled smart device, and associates the control instruction sequence with the target trigger device. In this way, the trigger device can be configured to control the control method of the smart device through the terminal device. One trigger device can control multiple working states of multiple controlled smart devices, or each of the multiple trigger devices can control multiple working states of multiple controlled smart devices, so that richer control types can be achieved through fewer trigger devices. The same trigger device can control the working states of more controlled smart devices. The operation is simple and can greatly enhance the smart experience.

[0016] In a fourth aspect, an embodiment of the present application provides a device control method, which is applied to control a device, including:

[0017] Acquire a trigger operation, and determine a corresponding operation variable based on the trigger operation;

[0018] Determine the control instruction corresponding to the trigger operation according to the corresponding relationship between the operation variable and the pointer variable, and the control instruction sequence for controlling the working state of the controlled intelligent device formed by the corresponding relationship between the working state of the controlled intelligent device and the pointer variable;

[0019] The controlled intelligent device is controlled to perform corresponding actions based on the control instruction.

[0020] In a fifth aspect, an embodiment of the present application provides a device control apparatus, which is applied to control a device, including:

[0021] An operation module, used for obtaining a trigger operation and determining a corresponding operation variable based on the trigger operation;

[0022] A determination module, configured to determine the control instruction corresponding to the trigger operation according to a control instruction sequence for controlling the working state of the controlled intelligent device formed by a correspondence between the operation variable and the pointer variable and a correspondence between the working state of the controlled intelligent device and the pointer variable;

[0023] The control module is used to control the controlled intelligent device to perform corresponding actions based on the control instruction.

[0024] In a sixth aspect, an embodiment of the present application provides a control device, comprising a processor and a memory, wherein the memory stores a computer program executable by the processor, and when the computer program is executed by the processor, the device control method described in any embodiment of the present application applied to the triggering device side is implemented.

[0025] The device control method provided in the above-mentioned embodiment of the present application corresponds different working states of the smart device to pointer variables, forms a control instruction sequence for controlling the working state of the controlled smart device, and the trigger device is associated with the control instruction sequence. In this way, the trigger device can generate corresponding operation variables according to the user's trigger operation. According to the configuration of the control method of the trigger device by the terminal device, one trigger device can control multiple working states of multiple controlled smart devices, or each of the multiple trigger devices can respectively control multiple working states of multiple controlled smart devices, so that richer control types can be achieved through fewer trigger devices, and the same trigger device can control the working states of more controlled smart devices. The operation is simple and can greatly enhance the smart experience.

[0026] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a controller, the device control method described in any embodiment of the present application is implemented.

[0027] In the above embodiments, the device control method executed by the computer-readable storage medium belongs to the same concept as the above embodiments, and has the same technical effects as the device control method provided by the above embodiments, which will not be described again here. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 A schematic diagram of an optional application scenario of a device control method in an embodiment of the present application;

[0029] Figure 2 This is a flow chart of a device control method in an embodiment of the present application;

[0030] Figure 3 A schematic diagram of configuring the corresponding relationship between the controlled intelligent device and the pointer variable in an embodiment of the present application;

[0031] Figure 4 A schematic diagram of configuring the corresponding relationship between the controlled intelligent device and the pointer variable in another embodiment of the present application;

[0032] Figure 5 This is a flow chart of a device control method in another embodiment of the present application;

[0033] Figure 6 This is a flow chart of a device control method in another embodiment of the present application;

[0034] Figure 7 It is a timing diagram of a device control method in an embodiment of the present application;

[0035] Figure 8 This is a schematic diagram of a device control device in an embodiment of the present application;

[0036] Fig. 9 This is a schematic diagram of a device control device in another embodiment of the present application;

[0037] Fig.10 This is a schematic diagram of a terminal device in an embodiment of the present application;

[0038] Fig.11 This is a schematic diagram of a terminal device in another embodiment of the present application;

[0039] Fig.12 This is a schematic diagram of a trigger device in an embodiment of the present application. DETAILED DESCRIPTION

[0040] The technical solution of the present application is further elaborated in detail below in conjunction with the accompanying drawings and specific embodiments of the specification.

[0041] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit the implementation of this application. The term "and / or" used herein includes any and all combinations of one or more related listed items.

[0042] In the description of the present application, it should be understood that the terms "center", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating positions or positional relationships, are based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific position, be constructed and operated in a specific position, and therefore cannot be understood as a limitation on the present application. In the description of the present application, unless otherwise specified, "multiple" means two or more.

[0043] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0044] See also Figure 1 , which is a framework diagram of an Internet of Things system for an optional application scenario of the device control method provided in an embodiment of the present application. The Internet of Things system is composed of a smart home device 10, a trigger device 20, a gateway device 53, a server 52, a terminal device 51, etc. The terminal device 51 can be any device with communication and storage functions, such as a smart phone, a desktop computer, a laptop computer, a tablet computer or other intelligent communication device with a network connection function. The server 52 can be a network access server, a database server, a cloud server, etc. The trigger device 20 refers to a device that can control the smart home device 10 to switch between different working states, such as a remote control, a control panel, a knob switch, a push button switch, etc. Optionally, the gateway device 53 can be built based on the ZigBee protocol, and the smart home device 10 and the trigger device 20 are respectively controlled by the terminal device 51, and can be pre-added to the gateway device 53. For example, the smart home device 10 can be a device in the kit to which the gateway device 53 belongs when the gateway device 53 leaves the factory; it can also be a device connected to the gateway device 53 later through user operation.

[0045] Optionally, a client that can manage smart home devices is installed in the terminal device 51, and the client can be an application client (such as a mobile phone APP) or a web client, which is not limited here. The user can configure the control relationship between the trigger device 20 and the smart home device 10 through the client on the terminal device 51.

[0046] Optionally, the smart home device 10 and the trigger device 20 may establish a network connection with the gateway device 53 based on the ZigBee protocol, thereby joining the ZigBee network.

[0047] The smart home device 10, the trigger device 20 and the terminal device 51 can all be connected to the Ethernet through the gateway device 53, and the gateway device 53 can be connected to the server through a wired or wireless communication connection. For example, the gateway device 53 and the terminal device 51 can store the acquired information in the server 52. Optionally, the terminal device 51 can also establish a network connection with the server 52 through a communication method such as 2G / 3G / 4G / 5G, WiFi, etc., so as to obtain data sent by the server 52.

[0048] Optionally, the terminal device 51, the gateway device 53, the trigger device 20 and the smart home device 10 may be in the same local area network, or in the same wide area network as the cloud 52. When the terminal device 51 and the gateway device 53 are in the same local area network, the terminal device 51 may interact with the gateway device 53 and the smart home device 10 and the trigger device 20 connected to the gateway device 53 through the local area network path; or may interact with the gateway device 53 and the smart home device 10 and the trigger device 20 connected to the gateway device 53 through the wide area network path. When the terminal device 51 and the gateway device 53 are not in the same local area network, the terminal device 51 may interact with the gateway device 53 and the smart home device 10 and the trigger device 20 connected to the gateway device 53 through the wide area network path. The Internet of Things system can further realize the control of turning on or off the smart home device 10 within the local area network or connected thereto through the trigger device 20. The smart home device 10 may include but is not limited to smart lamps, automatic curtains, air conditioners, water heaters and other home products.

[0049] See also Figure 2 , is a device control method provided by an embodiment of the present application, which can be applied to Figure 1 The terminal device shown. The device control method includes but is not limited to S101, S103 and S105, which are specifically described as follows:

[0050] S101, obtaining a correspondence between working states of a plurality of controlled intelligent devices and pointer variables, and forming a control instruction sequence for controlling the working states of the controlled intelligent devices according to the correspondence.

[0051] The controlled smart device can be any smart home device added to the current Internet of Things system, including but not limited to: smart home devices connected to the gateway device in the Internet of Things system, smart home devices connected to the terminal device, and smart home devices connected to the trigger device in the Internet of Things system. The working state of the controlled smart device usually varies according to the type of smart home device, and usually includes an on state, an off state, and different intermediate working states. For example, taking the controlled smart device as a smart lamp as an example, the working state of the controlled smart device includes an on state, an off state, and a lighting state with gradually different brightness / color temperature; taking the controlled smart device as an automatic curtain as an example, the working state of the controlled smart device includes an on state, an off state, and a curtain opening state with different opening degrees; taking the controlled smart device as a water heater as an example, the working state of the controlled smart device includes an on state, an off state, and a water storage and insulation state with different water temperatures.

[0052] The pointer variable may be a continuously changing variable. By using the pointer variable to represent the working state of the controlled intelligent device, the working state parameters of the intelligent device can be infinitely adjusted. The terminal device obtains the correspondence between the working states of the controlled intelligent devices and the pointer variables, and forms a control instruction sequence for controlling the working states of the controlled intelligent devices according to the correspondence, wherein each control instruction in the control instruction sequence corresponds to the value of a pointer variable, and each value of the pointer variable corresponds to a working state of the controlled intelligent device. In this way, each control instruction corresponds to the value of the pointer variable, and is used to control the controlled intelligent device to switch to the corresponding working state. For example, when the pointer variable is at a value corresponding to the on state of the controlled intelligent device, the control instructions in the control instruction sequence are used to control the controlled intelligent device to switch to the on state; when the pointer variable is at a value corresponding to the off state of the controlled intelligent device, the control instructions in the control instruction sequence are used to control the controlled intelligent device to switch to the off state; when the pointer variable is at a value corresponding to a certain intermediate working state of the controlled intelligent device, the control instructions in the control instruction sequence are used to control the controlled intelligent device to switch to the corresponding intermediate working state, and the continuously changeable pointer variable values ​​correspond to the intermediate working states of the infinitely changing working parameters of the controlled intelligent device.

[0053] S103: Acquire trigger device adding information of a trigger device for controlling the pointer.

[0054] A trigger device refers to a device that can control the controlled smart device to switch between different working states, such as a remote control, a control panel, a knob switch, a key switch, etc. The trigger device can generate different operation variables according to different trigger operations of the user, and different operation variables correspond to different pointer variables. The terminal device obtains the trigger device addition information of the trigger device used to control the pointer, so as to add a trigger device that can control the pointer variable.

[0055] S105: Associating the control instruction sequence with a target trigger device based on the trigger device adding information.

[0056] The terminal device obtains the trigger device addition information, takes the added trigger device as the target trigger device, or selects one or more target trigger devices from the added trigger devices to associate with the control instruction sequence, and through the association configuration, the target trigger device generates operation variables corresponding to the pointer variables based on different trigger operations. The terminal device can select one or more trigger devices to associate with the same control instruction sequence according to the user configuration, so that one or more trigger devices can control the controlled intelligent devices based on the control instruction sequence respectively. These trigger devices can be of different types, and these trigger devices can be placed in different locations that are convenient for users to use at ordinary times. The user can use any of them to control the working state of the controlled intelligent device. The terminal device can select one or more controlled intelligent devices according to the user configuration and set the controlled intelligent devices to correspond to the pointer variables. These controlled intelligent devices can be of different types, and the working states correspond to different values ​​of the pointer variables one by one, so that when the user operates the trigger device to change the pointer variable to a certain value, the controlled intelligent devices are controlled to switch to the corresponding working state respectively.

[0057] A trigger device adding button may be provided on the designated configuration page of the terminal device. By detecting the user's click operation on the trigger device adding button, the trigger device adding page may be switched according to the click operation. The user may enter one or more trigger devices in the trigger device adding page for adding, or the terminal device may display a list of trigger devices added to the current IoT system in the trigger device adding page, and the user may select one or more trigger devices in the trigger device list for adding.

[0058] In the above embodiment, different working states of the smart device are corresponded to pointer variables to form a control instruction sequence for controlling the working state of the controlled smart device, and the control instruction sequence is associated with the target trigger device. In this way, the trigger device can be configured to control the smart device through the terminal device. One trigger device can control multiple working states of multiple controlled smart devices, or each of the multiple trigger devices can respectively control multiple working states of multiple controlled smart devices, so that richer control types can be achieved through fewer trigger devices. The same trigger device can control the working states of more controlled smart devices. The operation is simple and can greatly enhance the smart experience.

[0059] In some embodiments, obtaining the correspondence between the working states of the plurality of controlled smart devices and the pointer variables includes:

[0060] Get smart device added information;

[0061] According to the added information of the smart device, the identification graphics corresponding to each controlled smart device are displayed in the setting page;

[0062] The adjustment information for adjusting the relative position between the identification graphic and the pointer axis is obtained, and the corresponding relationship between the working states of the plurality of controlled intelligent devices and the pointer variables is determined according to the adjustment information.

[0063] The smart device addition information may include identity information for uniquely representing the identity of the smart device. The terminal device obtains the smart device addition information, displays the identification graphics corresponding to each controlled smart device in the setting page, and forms a corresponding relationship between the working state of the corresponding controlled smart device and the pointer variable by adjusting the relative position between the identification graphics corresponding to the controlled smart device and the pointer axis, such as, see Figure 3 , adjust the logo graphic corresponding to the controlled intelligent device A to correspond to the position of the interval from coordinate 10 to coordinate 20 on the pointer axis, then the on and off states of the controlled intelligent device A can correspond to the value 10 of the pointer variable, when the pointer variable value changes from less than 10 to 10, the controlled intelligent device A is turned on, when the pointer variable value changes from 10 to less than 10, the controlled intelligent device A is turned off, and any intermediate working state formed by the stepless adjustment process of the working parameters of the controlled intelligent device A from turning on to turning off corresponds to the pointer variable being a continuously variable value between 10 and 20; if the logo image corresponding to the controlled intelligent device B is adjusted to correspond to the position of the interval from coordinate 1 to coordinate 18 on the pointer, accordingly, the on and off states of the controlled intelligent device B can correspond to the value 1 of the pointer variable, when the pointer variable value changes from less than 1 to 1, the controlled intelligent device B is turned on, when the pointer variable value changes from 1 to less than 1, the controlled intelligent device B is turned off, and any intermediate working state formed by the stepless adjustment process of the working parameters of the controlled intelligent device B from turning on to turning off corresponds to the pointer variable being a continuously variable value between 0 and 18.

[0064] In the above embodiment, by displaying identification graphics corresponding to the controlled smart devices in the setting page of the terminal device, the relative position between the identification image and the pointer axis can be directly adjusted to complete the setting of the corresponding relationship between the working status of the corresponding controlled smart device and the pointer variable. The pointer axis and identification graphics are used to make adjustments in the visual interface, which makes the setting of the corresponding relationship between the working status of the controlled smart device and the pointer variable more intuitive and simplifies the difficulty of the setting operation.

[0065] In some embodiments, displaying identification graphics corresponding to the controlled smart devices respectively on the setting page according to the smart device addition information includes:

[0066] According to the smart device adding information, progress bars corresponding to the controlled smart devices are displayed in the setting page, and the progress bars are parallel to the pointer axis.

[0067] Among them, the identification image corresponding to the controlled smart device is represented by a progress bar. The terminal device adds information based on the smart device and displays the progress bars corresponding to each controlled smart device on the setting page. The operation can be performed directly on the visual setting page to adjust the length of the progress bar and the starting position of the progress bar to correspond to different pointer variable values ​​on the pointer axis, so as to form a corresponding relationship between the working status of the corresponding controlled smart device and the pointer variable. For example, progress bars corresponding to the controlled smart devices are displayed on the setting page. The initial length of the progress bar corresponding to the controlled smart device A is 10, corresponding to the pointer variable value 0 to the pointer variable value 10 on the pointer axis. The length of the progress bar corresponding to the controlled smart device A and the position of the mobile progress bar can be adjusted by dragging, so that the progress bar of the controlled smart device A corresponds to the position of the interval from coordinate 10 to coordinate 20 on the pointer axis. According to the positional relationship between the progress bar corresponding to the controlled smart device A and the pointer axis, the corresponding relationship between the controlled smart device A and the pointer variable can be determined as follows: the switching between the on state and the off state of the controlled smart device A corresponds to the value 10 of the pointer variable, and any intermediate working state formed in the process of stepless adjustment of the working parameters of the controlled smart device A from on to off corresponds to the pointer variable having a continuously changing value between 10 and 20, wherein the progress bar is parallel to the pointer axis.

[0068] In the above embodiment, the identification graphic of the controlled smart device is represented by a progress bar. The user can drag the progress bar to adjust the length of the progress bar, and / or adjust the progress bar so that its two end points are aligned with different pointer variable values ​​on the pointer axis to complete the setting of the corresponding relationship between the working status of the controlled smart device and the pointer variable, which is more intuitive and can simplify the difficulty of the setting operation.

[0069] In some embodiments, the obtaining of adjustment information for adjusting the relative position between the identification graphic and the pointer axis, and determining the corresponding relationship between the working states of the plurality of controlled smart devices and the pointer variables according to the adjustment information, includes:

[0070] Detecting a dragging operation for adjusting the length of the progress bar and / or a dragging operation for adjusting the coordinates of the entire progress bar on the pointer axis;

[0071] Acquire relative position information between the progress bar and the pointer axis based on the drag operation;

[0072] The corresponding relationship between the working state of the controlled intelligent device and the pointer variable is determined according to the relative position information.

[0073] The identification graphic corresponding to the controlled intelligent device is represented by a progress bar. The user directly drags and adjusts the length of the progress bar corresponding to the intelligent device and the position of the moving progress bar in the visual interface. The terminal device detects the drag operation of adjusting the length of the progress bar and / or the drag operation of adjusting the coordinates of the entire progress bar on the pointer axis. According to the initial position of the progress bar and the displacement of the progress bar determined based on the drag operation, the relative position information between the intelligent device and the pointer axis is obtained, and the corresponding relationship between the working state of the controlled intelligent device and the pointer variable is determined according to the relative position information. The progress bars corresponding to different controlled intelligent devices can be adjusted relatively independently to obtain the corresponding relationship between the working state of different controlled intelligent devices and the pointer variable. When a certain coordinate value on the pointer axis is aligned with a certain point on the progress bars corresponding to multiple controlled intelligent devices at the same time, it means that when the value of the pointer variable is equal to the coordinate value, the multiple controlled intelligent devices are switched to the corresponding working state according to the control instruction.

[0074] In the above embodiment, the identification graphic corresponding to the controlled smart device is represented by a progress bar. The user can directly adjust the length of the progress bar and the position of the progress bar relative to the pointer axis in the visual interface. Any point on the progress bar along its extension direction corresponds to a certain working state of the controlled smart device. The coordinate value corresponding to the pointer axis and the point corresponds to the value of the pointer variable corresponding to the working state of the controlled smart device. In this way, the working state parameters of the controlled smart device can be infinitely adjusted, and the setting and adjustment of the correspondence between the working state of the controlled smart device and the pointer variable are more intuitive and can simplify the difficulty of the setting operation.

[0075] In some embodiments, determining the correspondence between the working state of the controlled smart device and the pointer variable according to the relative position information includes:

[0076] According to the coordinates of the endpoints at the opposite ends of the progress bar corresponding to the controlled smart device on the pointer axis, the pointer variable value corresponding to the switching point where the controlled smart device switches between the on state and the off state is determined with the coordinates of the starting endpoint as a reference point.

[0077] Among them, the pointer variable value corresponding to the switching point where the controlled smart device switches between the on state and the off state is determined with the coordinates of the starting endpoint as the reference point, which can mean that the endpoint of the starting end of the progress bar corresponding to the controlled smart device corresponds to the switching point where the controlled smart device switches from the off state to the on state, and from the on state to the off state, and any intermediate point between the endpoints at both ends of the progress bar can correspond to different intermediate states of the controlled smart device. By dragging and adjusting the length of the progress bar, the endpoints at both ends of the progress bar can be changed to correspond to different coordinate values ​​on the pointer axis, and by dragging the progress bar, the endpoints at both ends of the progress bar can also be changed to correspond to different coordinate values ​​on the pointer axis, thereby conveniently and intuitively completing the setting of the pointer variable values ​​corresponding to different working states of the controlled smart device.

[0078] In the above embodiment, the progress bars representing different controlled smart devices can be adjusted independently, and the middle points between the endpoints at the two opposite ends of the progress bar can respectively correspond to different intermediate states after the controlled smart devices are turned on, which facilitates the setting of the correspondence between the different states of the controlled smart devices and the pointer variables. The correspondence between the different states of each controlled smart device and the pointer variable value is more intuitive and can simplify the difficulty of the setting operation.

[0079] In some embodiments, determining the correspondence between the working state of the controlled smart device and the pointer variable according to the relative position information includes:

[0080] According to the coordinates of multiple intermediate points between opposite ends of the progress bar corresponding to the controlled smart device on the pointer axis, the pointer variable values ​​of multiple intermediate working states of the controlled smart device corresponding to the multiple intermediate points are determined.

[0081] Any middle point along the extension direction of the progress bar corresponding to the controlled smart device corresponds to a certain working state of the controlled smart device, the endpoints at the opposite ends of the progress bar can correspond to the on state and the off state of the controlled smart device respectively, and any middle point between the opposite ends of the progress bar corresponds to a certain intermediate working state of the controlled smart device. According to the coordinates of any middle point between the opposite ends of the progress bar corresponding to the controlled smart device on the pointer axis, the pointer variable value of the intermediate working state of the controlled smart device corresponding to the middle point is determined. Among them, the adjustment range of the intermediate working state of the controlled intelligent device can be changed by dragging the length of the adjustment progress bar, forming different intermediate working states with infinitely changing working parameters corresponding to different coordinate values ​​on the pointer axis. For example, the controlled intelligent device is lamp A, and the progress bar corresponding to lamp A corresponds to the interval of 10 to 20 coordinate values ​​on the pointer axis. Then, any intermediate working state formed by the infinite change of the working parameters of lamp A in the process from turning on to turning off corresponds to the value of the pointer variable that can be continuously changed from 10 to 20. After lamp A is turned on, when the value of the pointer variable changes from 10 to 20, the brightness of lamp A changes from 0 to 100%, and the pointer variable changes from 10 to 20 corresponding to the intermediate working state of lamp A with brightness changing from 0 to 100%.

[0082] In the above embodiment, the terminal device determines the pointer variable value of the intermediate working state of the controlled smart device corresponding to any intermediate point between the two opposite ends of the progress bar corresponding to the controlled smart device according to the coordinates on the pointer axis corresponding to the intermediate point. By corresponding the continuously changeable pointer variable value to the intermediate working state in which the working parameters of the controlled smart device can be continuously changed, the relative position between the progress bar and the pointer axis can be directly adjusted to complete the setting of the corresponding relationship between the intermediate working state in which the working parameters of the controlled smart device can be continuously changed and the pointer variable, so that the setting of the corresponding relationship between the working state of the controlled smart device and the pointer variable is more intuitive and the difficulty of the setting operation is simplified.

[0083] In some embodiments, determining the pointer variable values ​​of the plurality of intermediate working states of the controlled smart device corresponding to the plurality of intermediate points respectively according to the coordinates of the plurality of intermediate points between the two opposite ends of the progress bar corresponding to the controlled smart device on the pointer axis includes:

[0084] In the case where the controlled smart device is a smart lamp, the pointer variable values ​​corresponding to the lighting states of the smart lamp and the multiple intermediate points respectively corresponding to the progress bar of the smart lamp are determined according to the coordinates on the pointer axis corresponding to the multiple intermediate points between the two opposite ends; wherein different lighting states correspond to different color temperatures and intensities.

[0085] Wherein, when the controlled smart device is a smart lamp, the intermediate working state of the controlled smart device refers to different lighting states in which the lighting color temperature and intensity gradually change. Optionally, the pointer variable values ​​corresponding to the two end points of the progress bar corresponding to the smart lamp are respectively used as the starting point and the end point, and according to the ratio of the length between the pointer variable value corresponding to any intermediate point on the progress bar and the starting point to the length between the starting point and the end point, it can be determined that the color temperature value of the intermediate working state corresponding to the corresponding intermediate point on the progress bar is the maximum color temperature value multiplied by the ratio, and the lighting intensity of the intermediate working state corresponding to the corresponding intermediate point is the maximum lighting intensity multiplied by the ratio. Wherein, the ratio of the length between the pointer variable value corresponding to any intermediate point on the progress bar and the starting point to the length between the starting point and the end point is equal to the ratio of the length at any intermediate point on the progress bar to the overall length of the progress bar. For example, the progress bar corresponding to lamp A corresponds to the interval of coordinate values ​​10 to 20 on the pointer axis, then the middle point X1 on the progress bar corresponds to the coordinate value 15 on the pointer axis, and the ratio of the length between the middle point X1 and the starting point to the length between the starting point and the end point is 50%. It can be determined that the color temperature value of the intermediate working state corresponding to the corresponding middle point X1 on the progress bar is the maximum color temperature value multiplied by 50%, and the lighting intensity of the intermediate working state corresponding to the corresponding middle point is the maximum lighting intensity multiplied by 50%.

[0086] In the above embodiment, when the controlled smart device is a smart lamp, the intermediate working state of the controlled smart device can be different lighting states with gradually changing color temperature and intensity. The lighting states with gradually changing color temperature and intensity correspond to the pointer variable values ​​that can change continuously on the pointer axis. When the pointer moves to a certain coordinate value on the pointer axis, according to the situation of the progress bar aligned with the coordinate value, the triggering corresponding smart lamp is set to switch to the lighting state with matching color temperature and intensity, thereby realizing orderly control of multiple smart lamps.

[0087] In some embodiments, determining the pointer variable values ​​of the plurality of intermediate working states of the controlled smart device corresponding to the plurality of intermediate points respectively according to the coordinates of the plurality of intermediate points between the two opposite ends of the progress bar corresponding to the controlled smart device on the pointer axis includes:

[0088] In the case where the controlled smart device is an automatic curtain, the pointer variable values ​​corresponding to the opening states of the automatic curtain corresponding to the multiple intermediate points between the two opposite ends of the progress bar corresponding to the automatic curtain are determined according to the coordinates on the pointer axis corresponding to the multiple intermediate points; wherein different opening states correspond to different curtain openings.

[0089] Wherein, when the controlled intelligent device is an automatic curtain, the intermediate working state of the controlled intelligent device refers to different opening states of the lighting curtain that gradually changes in opening degree. Optionally, the pointer variable values ​​corresponding to the two end points of the progress bar corresponding to the automatic curtain are respectively used as the starting point and the end point, and according to the ratio of the length between the pointer variable value corresponding to any middle point on the progress bar representing the automatic curtain and the starting point to the length between the starting point and the end point, the curtain opening degree of the intermediate working state corresponding to the corresponding middle point on the progress bar can be determined as the maximum opening value multiplied by the ratio. Wherein, the ratio of the length between the pointer variable value corresponding to any middle point on the progress bar and the starting point to the length between the starting point and the end point is equal to the ratio of the length at any middle point on the progress bar to the overall length of the progress bar. For example, the progress bar corresponding to curtain B corresponds to the interval of coordinate values ​​5 to 30 on the pointer axis, and the middle point X2 on the progress bar corresponds to the coordinate value 15 on the pointer axis. The ratio of the length between the middle point X2 and the starting point to the length between the starting point and the end point is 40%. It can be determined that the curtain opening in the intermediate working state corresponding to the corresponding middle point X2 on the progress bar is the maximum opening value multiplied by 40%.

[0090] In the above embodiment, when the controlled smart device is an automatic curtain, the intermediate working state of the controlled smart device can be different opening states of the curtain that gradually changes in opening degree. The opening state of the curtain that gradually changes in opening degree corresponds to the pointer variable value that can continuously change on the pointer axis. When the pointer moves to a certain coordinate value on the pointer axis, according to the correspondence between the progress bar corresponding to the controlled smart device and the coordinate value, a control instruction that triggers the corresponding automatic curtain to switch to an opening state with a matching curtain opening is set to achieve orderly control of the automatic curtain.

[0091] In some embodiments, the step of obtaining the smart device adding information includes:

[0092] Get touch operation to add options to smart devices;

[0093] Based on the touch operation, a list of smart devices to be selected is displayed on a device adding page;

[0094] Based on the list of intelligent devices to be selected, a selection instruction for one or more controlled intelligent devices is obtained, and based on the selection instruction, intelligent device addition information is obtained.

[0095] The terminal device can set a smart device adding button in the device adding page, and the user can click the smart device adding button to add the smart device. The terminal device detects the user's click on the smart device adding button and obtains the touch operation of the smart device adding option. The list of smart devices to be selected refers to the list of devices that the terminal device forms based on the smart home devices currently added to the Internet of Things system and can be selected by the user. The smart home devices included in the list of smart devices to be selected include but are not limited to: smart home devices that have been connected to the gateway device in the Internet of Things system, smart home devices that have been connected to the terminal device, and smart home devices that have been connected to the trigger device in the Internet of Things system. The smart device adding information may include identity information for uniquely representing the identity of the smart device. The identity information of each smart device may be a combination of one or more of the following information: smart device name, code, location, etc. After the terminal device detects that the user clicks on the smart device adding button, the list of smart devices to be selected is displayed in the device adding page, so that the user can select one or more smart devices in the list of smart devices to be selected as the controlled smart devices. The terminal device adds the selected controlled smart devices according to the user's selection instruction.

[0096] In the above embodiment, the terminal device provides an option to add a smart device and displays a list of smart devices to be selected according to the user's adding operation, which can guide how to add a smart device and reduce the difficulty of adding a smart device.

[0097] In some embodiments, the acquiring trigger device adding information of a trigger device for controlling the pointer includes:

[0098] Get the selection operation for adding options to the trigger device;

[0099] Based on the selection operation, a list of trigger devices to be selected is displayed in a device adding page;

[0100] Based on the list of trigger devices to be selected, a selection instruction for a trigger device is obtained, and based on the selection instruction, trigger device addition information is obtained; the trigger device includes at least one of the following: a control panel, a remote controller, a knob switch, and a button switch.

[0101] The terminal device can set a trigger device adding button in the device adding page. The user can click the trigger device adding button to add the trigger device. The terminal device detects the user's click on the trigger device adding button and obtains the touch operation of the trigger device adding option. The list of trigger devices to be selected refers to the list of devices that the terminal device forms based on the trigger devices currently added to the Internet of Things system and that can be selected by the user. The trigger devices included in the list of trigger devices to be selected include but are not limited to: trigger devices that have been connected to the gateway device in the Internet of Things system, and trigger devices that have been connected to the terminal device. The trigger device adding information may include identity information for uniquely characterizing the identity of the trigger device. The identity information of each trigger device may be a combination of one or more of the following information: trigger device name, code, etc. After the terminal device detects that the user clicks on the trigger device adding button, the list of trigger devices to be selected is displayed in the device adding page, so that the user can select one or more trigger devices in the list of trigger devices to be selected. The terminal device completes the addition of the trigger device according to the user's selection instruction. The device adding page of the trigger device and the device adding page of the smart device can be the same page, or they can refer to different independent pages.

[0102] In the above embodiment, the terminal device provides a trigger device adding option and displays a list of trigger devices to be selected according to the user's adding operation, which can guide how to add a trigger device and reduce the difficulty of adding a trigger device.

[0103] In some embodiments, associating the control instruction sequence with the target trigger device based on the trigger device adding information includes:

[0104] Based on the trigger device addition information, the control instruction sequence is associated with the selected multiple target trigger devices respectively.

[0105] The user sets the correspondence between the working state of the controlled smart device and the pointer variable through the terminal device, and the terminal device forms a control instruction sequence for controlling the working state of the controlled smart device according to the correspondence obtained by the user's setting, wherein each control instruction in the control instruction sequence corresponds to a set of correspondences between the value of the pointer variable and the working state of the controlled smart device. After the user sets the correspondence between the working state of the controlled smart device and the pointer variable, the trigger device to be used to control the controlled smart devices is selected through the trigger device adding operation, and the control instruction sequence is associated with the selected target trigger device. Each associated trigger device can independently control the controlled smart device according to the corresponding control instruction sequence.

[0106] In the above embodiment, the user can add a trigger device through the terminal device, or add multiple trigger devices and associate them with the same control instruction sequence formed based on the correspondence between the working state of the controlled smart device and the pointer variable, so that the user can realize the orderly control of the working state of multiple controlled smart devices through a trigger device that can output continuous variables, and can set and arrange the trigger actions of each controlled trigger device; at the same time, it is also convenient for the user to independently realize the orderly control of the working state of multiple controlled smart devices through multiple trigger devices, and the multiple trigger devices can be placed in different locations in the home for the convenience of user access and use.

[0107] In some embodiments, associating the control instruction sequence with the target trigger device based on the trigger device adding information includes:

[0108] Based on the trigger device added information, the control instruction sequences corresponding to different scenes are associated with multiple scene switching operations of the target trigger device; or,

[0109] Based on the trigger device added information, the control instruction sequences corresponding to different scenes are associated one by one with different control time periods of the target trigger device.

[0110] The trigger device refers to a device that can control the controlled smart device to switch between different working states, such as a remote control, a control panel, a knob switch, a key switch, etc. In this embodiment, the trigger device generates an operation variable according to different trigger operations of the user to push the pointer on the pointer axis to move, and the pointer variable value changes accordingly. Different pointer variable values ​​correspond to different working states of the controlled smart device. When the trigger device pushes the pointer to a certain position according to the trigger operation of the user, the controlled smart device is controlled to switch the working state according to the control instruction corresponding to the pointer variable value. Among them, the terminal device obtains the corresponding relationship between the working states and the pointer variables of multiple controlled smart devices, which can be that the working states of one or more controlled smart devices are set according to the scene, and each scene includes the switching control of the working states of one or more controlled smart devices. The user can configure the working states of the controlled smart devices in different scenes to correspond to the pointer variable values ​​in different intervals on the pointer axis. According to the corresponding relationship between the working states of the controlled smart devices contained in each scene and the pointer variables, a control instruction sequence corresponding to the corresponding scene is formed to control the working state of the controlled smart devices.

[0111] The scene switching operation refers to the operation of switching the trigger device to control the controlled smart device in different scenes, wherein the scene switching operation is pre-set according to the different types of trigger devices, and is different from the trigger operation of driving the pointer variable value to change. Taking the remote control as an example, the user can click the control button on the remote control to generate the operation variable. The operation variable drives the pointer on the pointer axis to move and obtains the corresponding pointer variable value. According to the control instruction matching the corresponding pointer variable value, the controlled smart device in the current scene is controlled to switch to the working state corresponding to the pointer variable value. Double-clicking the control button on the remote control can be set as the scene switching operation, and the trigger device switches the scene according to the user's double-click operation of the control button on the remote control.

[0112] See also Figure 4 , if it includes scene A and scene B, assuming that scene A is that after the user gets up, the bedside lamp is turned on, the water heater in the bathroom is set to 40 degrees, and the temperature of the bathroom heater is set to 25 degrees. After washing, the user turns off the bedside lamp, water heater and bathroom heater, and then goes to scene B, the bedroom lamp and makeup mirror are turned on and adjusted to a certain brightness, and the user turns off the bedroom lamp and makeup mirror when he finishes packing and goes out; the user can set the corresponding relationship between the working status of the bedside lamp, the water heater in the bathroom, and the bathroom heater and the pointer variable in an interval segment of the pointer axis through the terminal device, and form a control instruction sequence A for controlling the working status of the controlled smart device in scene A according to the corresponding relationship; then set the corresponding relationship between the working status of the bedroom lamp and the makeup mirror and the pointer variable in another interval segment of the pointer axis, and form a control instruction sequence B for controlling the working status of the controlled smart device in scene B according to the corresponding relationship. The user can then add the remote control as a trigger device through the terminal device and associate control instruction sequence A and control instruction sequence B with the remote control. The user can double-click the control button on the remote control to choose to switch the remote control to the working mode of the controlled smart device under control scene A or to switch it to the working mode of the controlled smart device under control scene B.

[0113] Optionally, the terminal device can add information based on the trigger device to associate the control instruction sequences corresponding to different scenarios with different control time periods of the target trigger device one by one. The trigger device can intelligently switch to controlling the working mode of the controlled smart device in the corresponding scenario according to the control time period. For example, scene A is set to correspond to the control time period from 8:00 to 10:00 a.m. every day, and scene B is set to correspond to the control time period from 6:00 to 10:00 p.m. every day. Then, when it is between 8:00 a.m. and 10:00 a.m. every day, the trigger device controls the working mode of the controlled smart device in scene A according to the operating variables generated by the received trigger operation; when it is between 6:00 p.m. and 10:00 p.m. every day, the trigger device controls the working mode of the controlled smart device in scene B according to the operating variables generated by the received trigger operation.

[0114] In the above embodiment, the user can configure the correspondence between the working mode of the controlled smart device contained in different scenes and the pointer variable, form a control instruction sequence corresponding to different scenes, save multiple control instruction sequences as different scenes, and associate the control instruction sequences corresponding to different scenes with the scene switching operation of the target trigger device. In this way, the user can perform a scene switching operation on the target trigger device to choose to switch the target trigger device to control different working modes of the controlled smart devices in different scenes, or the user uses the terminal device to set up and associate the control instruction sequences corresponding to different scenes with different control time periods of the target trigger device one by one. In this way, the trigger device can intelligently choose to switch the target trigger device to control different working modes of the controlled smart devices in different scenes according to the time period when the user's trigger operation is currently received.

[0115] On the other hand, please refer to Figure 5 , and also provides a device control method, which is applied to control a device, and the control device may be Figure 1 The trigger device 20 or the gateway device 53 shown in the figure implements the device control method to control the controlled intelligent device. The device control method includes:

[0116] S201, obtaining a trigger operation, and determining a corresponding operation variable based on the trigger operation.

[0117] A trigger operation refers to an execution type operation input by a user through a trigger device. Taking a remote control as an example, a trigger operation may refer to a click operation on a control button on the remote control; taking a control panel as an example, a trigger operation may refer to a touch operation on a touch button on the control panel; taking a rotary switch as an example, a trigger operation may refer to a knob operation on a rotary switch; taking a key switch as an example, a trigger operation may refer to a press operation on a mechanical key on a key switch. The trigger device generates corresponding operation variables according to the user's trigger operation. The operation variables generated by the trigger device are continuously changing variables, such as angle, displacement, and long press time.

[0118] S203, determining a control instruction corresponding to the trigger operation according to a control instruction sequence for controlling the working state of the controlled intelligent device formed by a correspondence between the operation variable and the pointer variable, and a correspondence between the working state of the controlled intelligent device and the pointer variable.

[0119] The trigger device drives the pointer variable to change according to the trigger operation, and the operation variable generated by the trigger operation forms a corresponding relationship with the pointer variable. The trigger device generates a matching trigger variable according to the trigger operation input by the user, and determines the control instruction corresponding to the trigger operation according to the corresponding relationship between the operation variable and the pointer variable, and the control instruction sequence for controlling the working state of the controlled intelligent device formed by the corresponding relationship between the working state of the controlled intelligent device and the pointer variable. Among them, the user can set the corresponding relationship between the working state of the controlled intelligent device and the pointer variable through the terminal device to obtain the control instruction sequence for controlling the working state of the controlled intelligent device. The terminal device can send the control instruction sequence for controlling the working state of the controlled intelligent device to the trigger device for local storage in the trigger device.

[0120] S205: Control the controlled smart device to perform a corresponding action based on the control instruction.

[0121] The triggering device determines the control instruction corresponding to the triggering operation, and controls the controlled intelligent device to perform the corresponding action based on the control instruction. There may be multiple controlled intelligent devices that have a corresponding relationship with the same pointer variable value. In the control instruction sequence formed according to the corresponding relationship between the working state of the controlled intelligent device and the pointer variable, there are multiple working states of the controlled intelligent device corresponding to the same pointer variable value. The control instructions corresponding to the same pointer variable value correspond to the working states of the controlled intelligent devices respectively. The controlled intelligent devices are controlled to perform corresponding actions respectively through the control instructions, so that the controlled intelligent devices are respectively switched to the working states corresponding to the same pointer variable value.

[0122] The device control method provided in the above-mentioned embodiment of the present application corresponds different working states of the smart device to pointer variables, forms a control instruction sequence for controlling the working state of the controlled smart device, and the trigger device is associated with the control instruction sequence. In this way, the trigger device can generate corresponding operation variables according to the user's trigger operation. According to the configuration of the control method of the trigger device by the terminal device, one trigger device can control multiple working states of multiple controlled smart devices, or each of the multiple trigger devices can respectively control multiple working states of multiple controlled smart devices, so that richer control types can be achieved through fewer trigger devices, and the same trigger device can control the working states of more controlled smart devices. The operation is simple and can greatly enhance the smart experience.

[0123] In some embodiments, the control instruction corresponding to the trigger operation is determined based on the corresponding relationship between the operation variable and the pointer variable, and the control instruction sequence for controlling the working state of the controlled smart device formed by the corresponding relationship between the working state of the controlled smart device and the pointer variable, including:

[0124] According to the continuous change of the operating variable, the movement range of the pointer along the pointer axis is determined;

[0125] According to a control instruction sequence for controlling the working state of the controlled intelligent device formed by the corresponding relationship between the working state of the controlled intelligent device and the pointer variable, the control instructions for the pointer to sequentially scan within the moving range are determined.

[0126] The pointer can be abstract, such as being just a variable in a computer program, and the range of movement of the pointer along the pointer axis corresponds to the range of change of the variable. The operating variable generated by the trigger device according to the trigger operation is a continuously changeable variable, and the variable of the pointer variable is correspondingly a continuously changeable variable. The trigger device associates the operating variable with the pointer variable. When the trigger device receives the user's trigger operation, the range of change of the pointer variable is determined according to the continuous change of the operating variable, and the control instruction sequence formed by the corresponding relationship between the working state of the controlled intelligent device and the pointer variable is determined to determine the control instructions that the pointer sequentially scans within the moving range, and the controlled intelligent devices are respectively controlled to perform corresponding actions according to the control instructions.

[0127] In the above embodiment, a continuously changing operating variable is generated by a trigger device, and the changing range of a pointer variable is determined according to the continuous changing of the operating variable, so that the controlled intelligent device is controlled to perform corresponding actions according to the control instructions corresponding to the pointer variable values ​​within the changing range of the pointer variable. In this way, the trigger device can realize orderly control of different working states of multiple controlled trigger devices according to the continuously changing operating variables generated by the user's trigger operation.

[0128] In some embodiments, controlling the controlled smart device to perform a corresponding action based on the control instruction includes:

[0129] Sending the control instructions to the gateway and / or the controlled smart device at a set frequency, wherein the control instructions are used to control the controlled smart device to perform corresponding actions respectively; or,

[0130] The control instruction includes multiple sub-instructions, and the multiple sub-instructions are used to control multiple controlled smart devices respectively. Within a set command sending cycle, the control instruction is sent to the gateway and / or the controlled smart device in a time-sharing manner. The control instruction is used to control the controlled smart devices to perform corresponding actions respectively.

[0131] Among them, the pointer variable is a variable that can change continuously. The trigger device generates an operation variable according to the user's trigger operation to promote the change of the pointer variable. The control instruction that the pointer variable sweeps during the change process is sent at a set frequency, and the control instruction is sent to the gateway or the corresponding controlled smart device to control the controlled smart device to perform the corresponding action, so as to realize the switching of the intermediate working state with infinitely adjustable working parameters. The setting frequency can be adjusted according to the needs of the actual scene. Optionally, the setting frequency is equal to or less than 500ms / time to ensure that the controlled smart device can respond more promptly.

[0132] Among them, the user configures the correspondence between the working status of the controlled smart device and the pointer variable through the terminal device, which may be the correspondence between the working status of multiple controlled smart devices and the pointer variable. In the same scenario, the same pointer variable value may correspond to the working status of multiple controlled smart devices. The trigger device generates an operation variable according to the user's trigger operation to promote the change of the pointer variable. The control instruction scanned by the pointer variable during the change process may include multiple sub-instructions, and the sub-instructions are used to control the controlled smart devices respectively. In order to reduce the burden of the Internet of Things system, the command sending cycle can be set, and the control instructions belonging to a command sending cycle are staggered at the time points corresponding to the command sending cycle, and the control instructions are sent to the gateway and / or the controlled smart device in time.

[0133] In the above embodiment, when the trigger device drives the change of the pointer variable value according to the user's trigger operation, the control instruction that the pointer variable scans during the change process is sent at a set frequency, or the sub-instructions included in the scanned control instruction are sent in time within a set command sending cycle, thereby ensuring that the controlled smart device can respond in time, effectively utilize the resources of the Internet of Things system, and improve transmission efficiency.

[0134] In some embodiments, the obtaining of the trigger operation and determining the corresponding operation variable based on the trigger operation include:

[0135] Acquire a touch operation on a control button in the control panel, and determine a corresponding operation variable according to the touch duration of the touch operation; and / or,

[0136] Acquire a pressing operation on a remote control button in the remote controller, and determine a corresponding operation variable according to the pressing duration of the pressing operation; and / or,

[0137] Acquiring a knob operation for a knob switch, and determining a corresponding operation variable according to a rotation angle of the knob operation; and / or,

[0138] A pressing operation on a switch button in a key switch is obtained, and a corresponding operation variable is determined according to a pressing duration of the pressing operation.

[0139] The trigger operation may be different according to the trigger device, and the operation variables generated by different trigger operations are continuously variable operation variables, which may be angles, displacements or long press times. Optionally, when the trigger device is a control panel, the trigger operation may be a touch operation on the control button in the control panel, and the control panel obtains the touch operation on the control button, and determines the corresponding operation variable according to the touch duration of the touch operation. When the trigger device is a remote controller, the trigger operation may be a press operation on the remote control button in the remote controller, and the remote controller obtains the press operation on the remote control button in the remote controller, and determines the corresponding operation variable according to the press duration of the press operation. When the trigger device is a knob switch, the trigger operation may be a knob operation on the knob switch, and the knob switch obtains the knob operation of rotating and twisting it, and determines the corresponding operation variable according to the rotation angle of the knob operation. When the trigger device is a key switch, the trigger operation may be a press operation on the mechanical switch key in the key switch, and the key switch obtains the press operation on the switch key, and determines the corresponding operation variable according to the press duration of the press operation.

[0140] In the above embodiment, the trigger device can be a device that can generate different types of continuously changing operating variables according to user operations to promote the continuous change of the pointer variable value, and the working state of the controlled smart device is correspondingly associated with the pointer variable value. The trigger device controls the controlled smart device according to the control instruction sequence formed by the corresponding relationship between the working state of the controlled smart device and the pointer variable value configured by the user. The user can select different trigger devices such as a control panel, a remote control, a knob switch, a key switch, etc. to control the working state of the controlled smart device according to the needs, and control the configured controlled smart devices respectively through different trigger devices.

[0141] In some embodiments, the obtaining of the trigger operation, before determining the corresponding operation variable based on the trigger operation, includes:

[0142] A scene switching operation is obtained, and a control instruction sequence corresponding to a current triggering operation is determined according to the scene switching operation.

[0143] The scene switching operation refers to the operation of switching the trigger device to control the controlled smart device in different scenes, wherein the scene switching operation is pre-set according to the different types of trigger devices, and is different from the trigger operation of pushing the pointer variable value to change. Taking the remote control as an example, the user can click the control button on the remote control to generate the operation variable, and the operation variable pushes the pointer on the pointer axis to move and obtain the corresponding pointer variable value. Double-clicking the control button on the remote control can be set as the scene switching operation, and the trigger device switches the scene according to the user's double-click operation of the control button on the remote control. Taking the control panel as an example, double-clicking the touch button on the control panel can be set as the scene switching operation, and the control panel switches the scene according to the user's double-click operation of the touch button. Taking the knob switch as an example, the reverse twisting of the knob switch can be set as the scene switching operation, and the knob switch switches the scene according to the user's reverse twisting operation. Taking the key switch as an example, continuous short press of the switch key can be set as the scene switching operation, and the key switch switches the scene according to the user's continuous short press operation.

[0144] In some embodiments, the control instruction sequence for controlling the working state of the controlled smart device formed according to the correspondence between the operation variable and the pointer variable, and the correspondence between the working state of the controlled smart device and the pointer variable, before determining the control instruction corresponding to the trigger operation, includes:

[0145] The control instruction sequence corresponding to the current trigger operation is determined according to the time corresponding to the trigger operation and the corresponding relationship between the control period and the control instruction sequence.

[0146] The user can configure the correspondence between the controlled trigger device and the pointer variable value in different scenes through the terminal device, and associate the control instruction sequence corresponding to different scenes with the different control time periods of the target trigger device through the terminal device configuration. The trigger device can determine the control instruction sequence corresponding to the current trigger operation according to the corresponding time of the received trigger operation and the correspondence between the control time period and the control instruction sequence, and intelligently switch to control the working mode of the controlled intelligent device in the corresponding scene according to the control time period. For example, if scene A is set to correspond to the control time period from 8 to 10 o'clock every day, and scene B is set to correspond to the control time period from 6 to 10 o'clock every day, then when it is between 8 o'clock and 10 o'clock every day, the trigger device determines the operation variable according to the received trigger operation, and realizes the control of the working mode of the controlled intelligent device under scene A; when it is between 6 o'clock and 10 o'clock every day, the trigger device determines the operation variable according to the received trigger operation, and realizes the control of the working mode of the controlled intelligent device under scene B.

[0147] In the above embodiment, the user configures the correspondence between the control period and the control instruction sequence through the terminal device, and the trigger device can automatically switch to different control instruction sequences according to the time of the received trigger operation, thereby realizing automatic switching of control instruction sequences in multiple scenarios.

[0148] In some embodiments, after controlling the controlled smart device to perform a corresponding action based on the control instruction, the method further includes:

[0149] Based on the working state corresponding to the current trigger operation, when a modification operation on the working state is detected, a modification parameter of the corresponding relationship between the working state of the controlled intelligent device and the pointer variable is obtained according to the modification operation;

[0150] According to the modification parameters, the control instruction sequence formed according to the corresponding relationship is adjusted accordingly.

[0151] After the user configures the terminal device and obtains a control instruction sequence, the user can manually adjust the working state of one of the controlled smart devices. When the trigger device detects the modification operation on the controlled smart device, the modification parameter of the corresponding relationship between the working state of the controlled smart device and the pointer variable is obtained according to the modification operation, and the control instruction sequence formed according to the corresponding relationship is adjusted accordingly according to the modification parameter. Take the trigger device as a knob switch and the controlled smart device as lamp A as an example. If it is determined according to the configuration of the terminal device that when the knob switch is turned 90 degrees, in the original control instruction sequence, the working state of lamp A is the maximum brightness; the user can manually adjust the brightness of lamp A to 50% when the knob switch is turned 90 degrees. According to the modification parameter, in the corresponding relationship between the working state of the controlled smart device and the pointer variable, the progress bar of lamp A will move accordingly, so that the point where the brightness of lamp A is 50% is aligned with the pointer position when the operation variable is 90 degrees.

[0152] In the above embodiment, when the trigger device receives a certain trigger operation, the user can directly manually adjust the working state of the controlled smart device to adjust the corresponding relationship between the working state of the controlled smart device and the pointer variable. When the user controls the controlled smart device through the trigger device again, the controlled smart device will execute according to the modified control instruction sequence. In this way, it is more convenient for the user to modify the configuration, so that the trigger device can achieve more intelligent and precise control of the working state of the controlled smart device after configuration. Optionally, the function of adjusting the corresponding control instruction sequence based on the user's modification operation on the working state of the controlled smart device can also be shielded. At this time, the user's modification operation on the working state of the controlled smart device in certain scenarios only changes the current working state of the controlled smart device. When the user controls the controlled smart device through the trigger device again, the controlled smart device will execute according to the previously configured control instruction sequence.

[0153] In order to have a more comprehensive understanding of the device control method provided by this application, please refer to Figure 6 and Figure 7 , the following specifically takes the controlled smart devices including lamp A, lamp B and curtain A as an example to exemplify the device control method, the device control method includes:

[0154] S11, the terminal device adds controlled smart devices, such as lamp A, lamp B, and curtain A, in the visual interface according to the user's smart device adding operation; wherein a device adding button may be set in the visual interface, and after the user clicks the device adding button, the terminal device may display a list of selected controlled smart devices currently connected to the system through the visual interface, and the user may select lamp A, lamp B, and curtain A from the list of selected controlled smart devices to complete the addition;

[0155] S12, the terminal device forms identification graphics corresponding to the selected controlled smart devices in the visual interface, such as a progress bar;

[0156] S13, the terminal device adjusts the length of the identification image corresponding to the controlled smart device and moves the position of the identification image corresponding to the controlled smart device according to the dragging operation of the user, respectively, to form a corresponding relationship between the controlled smart device and the pointer axis, and obtains a control instruction sequence according to the corresponding relationship; for example, the progress bar corresponding to lamp A is set to correspond to the interval between 10 and 80 of the pointer variable coordinate value on the pointer axis; the progress bar corresponding to lamp B is set to correspond to the interval between 1 and 45 of the pointer variable coordinate value on the pointer axis; the progress bar corresponding to curtain A is set to correspond to the interval between 5 and 50 of the pointer variable coordinate value on the pointer axis;

[0157] S14, the terminal device adds a trigger device, such as a remote control and a knob switch, in the visual interface according to the trigger device adding operation of the user; wherein a device adding button may be set in the visual interface, and after the user clicks the device adding button, the terminal device may display a list of trigger devices to be selected that are currently connected to the system through the visual interface, and the user may select a remote control or a knob switch from the list of trigger devices to complete the addition;

[0158] S15, the terminal device associates the control instruction sequence with the selected trigger device. The terminal device can send the control instruction sequence to the associated trigger device for local storage. The trigger device associated with the control instruction sequence can receive the trigger operation and independently control the controlled smart device to perform corresponding actions according to the control instruction sequence;

[0159] S16, the remote control receives the trigger operation of the user clicking the control button, generates the corresponding operation variable to push the pointer on the pointer axis to move, the pointer variable value changes accordingly during the pointer movement, and the control instruction pointed to by the pointer variable value changes during the pointer variable value change is sent to the corresponding controlled smart device, so as to control the controlled smart device to perform the corresponding working state switching respectively. Among them, the pointer in the visual interface is abstract and can only refer to a variable in the code. The variable generated by the trigger device that pushes the pointer to change can be an angle, a displacement, or a long press time, etc. The control instruction pointed to by the pointer variable value changes during the pointer variable value change is sent to the corresponding controlled smart device, which can mean that the trigger device reports the command pointed to by the operation variable in the process of pushing the pointer variable value to change to the gateway, which is automatically converted into commands such as on, off, percentage, etc. by the gateway, and sends the commands such as on, off, percentage, etc. as control instructions to the corresponding controlled smart device. For example, when the pointer variable value moves from coordinate value 0 to coordinate value 10, when the operation trigger device generates the operation variable to push the pointer to point to coordinate 1, the trigger device reports the corresponding command to the gateway, and the gateway automatically converts it into a control instruction to control the light fixture B to turn on; when the pointer points to coordinate 5, the trigger device reports the corresponding command to the gateway. When the pointer points to coordinate 5, the corresponding light intensity of lamp B is about 9%. When the pointer points to coordinate 10, the trigger device reports the corresponding command to the gateway, which is automatically converted into a control instruction for opening lamp A. In the process of following the movement of the pointer, the corresponding command is sent to the gateway at the set frequency. The gateway automatically converts it into a control instruction for controlling the opening of curtain A. When the pointer points to coordinate 10, the trigger device reports the corresponding command to the gateway, which is automatically converted into a control instruction for controlling the opening of lamp A. In the process of following the movement of the pointer, the corresponding command is sent to the gateway at the set frequency. The gateway automatically converts it into a control instruction for controlling lamp B and curtain A respectively. When the pointer points to coordinate 10, the light intensity of lamp B is 20%, and the corresponding opening of curtain A is 10%.

[0160] The default starting position of the pointer is located on the left side of the pointer axis, and no setting is required. The change of the pointer variable value is driven by the operation variable generated by the trigger operation received by the user. During the movement of the pointer along the pointer axis, the corresponding control instruction to be issued is determined according to the change range of the pointer variable value, that is, the area swept by the pointer. When the pointer variable value changes, if the area swept by the pointer is not in the effective adjustment area of ​​a certain controlled intelligent device, the working state of the corresponding controlled intelligent device will not change, while the working state of other controlled intelligent devices that have a corresponding relationship with the area swept by the pointer will be converted according to the control instruction.

[0161] The configuration of the corresponding relationship between the working state of the controlled intelligent device and the pointer variable can be differentiated according to the scene, and different scenes correspondingly obtain corresponding control instruction sequences. At this time, the device control method also includes the following steps:

[0162] S17, the trigger device may determine a control instruction sequence corresponding to the current trigger operation according to the scene switching operation input by the user;

[0163] S18, the trigger device generates an operation variable according to the user's trigger operation, and according to the control instruction sequence corresponding to the current trigger operation, drives the pointer variable value to change according to the operation variable, and controls the controlled smart device to perform corresponding actions according to the control instruction scanned by the pointer;

[0164] In the above-mentioned embodiments of the present application, the correspondence between the working state of the controlled smart device and the pointer variable can be configured on the terminal device. During the configuration process, the participation of the controlled smart device and the trigger device may not be required. As long as the controlled smart device and the trigger device are recorded as having been added to the Internet of Things system and can be selected to be added to the control sequence through the visual interface, and the controlled smart device can normally accept action commands, the control instruction sequence obtained according to the correspondence between the working state of the controlled smart device and the pointer variable after configuration is associated with the trigger device. Through the trigger device that can output continuous variables, orderly control of multiple controlled smart devices can be achieved.

[0165] On the other hand, please refer to Figure 8 , also provides a device control device, applied to a terminal device, comprising: a configuration module 11, used to obtain the correspondence between the working states of multiple controlled intelligent devices and pointer variables, and form a control instruction sequence for controlling the working states of the controlled intelligent devices according to the correspondence; a trigger device adding module 12, used to obtain the trigger device adding information of the trigger device for controlling the pointer; an association module 13, used to associate the control instruction sequence with the target trigger device based on the trigger device adding information.

[0166] Among them, the configuration module 11 is also used to obtain smart device addition information; according to the smart device addition information, the identification graphics corresponding to each controlled smart device are displayed in the setting page; the adjustment information for adjusting the relative position between the identification graphics and the pointer axis is obtained, and the corresponding relationship between the working status of multiple controlled smart devices and the pointer variable is determined according to the adjustment information.

[0167] The configuration module 11 is further configured to display a progress bar corresponding to each controlled smart device in the setting page according to the added information of the smart device, wherein the progress bar is parallel to the pointer axis.

[0168] Among them, the configuration module 11 is also used to detect the dragging operation of adjusting the length of the progress bar and / or the dragging operation of adjusting the coordinates of the entire progress bar on the pointer axis; obtain the relative position information between the progress bar and the pointer axis based on the dragging operation; determine the corresponding relationship between the working state of the controlled intelligent device and the pointer variable according to the relative position information.

[0169] Among them, the configuration module 11 is also used to determine the pointer variable values ​​corresponding to the on state and the off state of the controlled smart device respectively according to the coordinates of the endpoints at the opposite ends of the progress bar corresponding to the controlled smart device on the pointer axis, taking the coordinates of the endpoints as reference points.

[0170] The configuration module 11 is further used to determine the pointer variable value of the intermediate working state of the controlled smart device corresponding to any intermediate point between the two opposite ends of the progress bar corresponding to the controlled smart device according to the coordinates on the pointer axis corresponding to the intermediate point.

[0171] Among them, the configuration module 11 is also used to determine the pointer variable value corresponding to the lighting state of the smart lamp corresponding to any middle point between the two opposite ends of the progress bar corresponding to the smart lamp, according to the coordinates on the pointer axis corresponding to any middle point between the two opposite ends of the progress bar corresponding to the smart lamp; wherein different lighting states correspond to different color temperatures and intensities.

[0172] Among them, the configuration module 11 is also used to determine the pointer variable value corresponding to the opening state of the automatic curtain corresponding to the midpoint between the two opposite ends of the progress bar corresponding to the automatic curtain, according to the coordinates on the pointer axis corresponding to any midpoint between the two opposite ends of the progress bar corresponding to the automatic curtain; wherein different opening states correspond to different curtain openings.

[0173] Among them, the configuration module 11 is also used to obtain a touch operation for adding a smart device option; based on the touch operation, a list of smart devices to be selected is displayed in the device adding page; based on the list of smart devices to be selected, a selection instruction for one or more controlled smart devices is obtained, and based on the selection instruction, smart device addition information is obtained.

[0174] Among them, the trigger device adding module 12 is also used to obtain a selection operation for the trigger device adding option; based on the selection operation, a list of trigger devices to be selected is displayed in the device adding page; based on the list of trigger devices to be selected, a selection instruction for the trigger device is obtained, and based on the selection instruction, trigger device adding information is obtained; the trigger device includes at least one of the following: a control panel, a remote control, a knob switch, and a push button switch.

[0175] The trigger device adding module 12 is further used to associate the control instruction sequence with the selected multiple target trigger devices respectively based on the trigger device adding information.

[0176] Among them, the trigger device adding module 12 is also used to associate the control instruction sequences corresponding to different scenes with the scene switching operations of the target trigger device based on the trigger device adding information; or, based on the trigger device adding information, associate the control instruction sequences corresponding to different scenes with different control time periods of the target trigger device one by one.

[0177] It should be noted that: the device control device provided in the above embodiment only uses the division of the above program modules as an example to illustrate the configuration process of the corresponding relationship between the working state of the controlled intelligent device and the pointer variable. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the method steps described above. In addition, the device control device provided in the above embodiment and the device control method embodiment applied to the terminal device side belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0178] On the other hand, please refer to Fig. 9 , also provides a device control apparatus, which is applied to control equipment, including: an operation module 21, which is used to obtain a trigger operation and determine a corresponding operation variable based on the trigger operation; a determination module 22, which is used to determine a control instruction corresponding to the trigger operation according to a control instruction sequence for controlling the working state of the controlled intelligent device formed by a correspondence between the operation variable and the pointer variable, and a correspondence between the working state of the controlled intelligent device and the pointer variable; and a control module 23, which is used to control the controlled intelligent device to perform a corresponding action based on the control instruction.

[0179] Among them, the determination module 22 is also used to determine the movement range of the pointer along the pointer axis according to the continuous change of the operating variable; and determine the control instructions for the pointer to scan sequentially within the movement range according to the control instruction sequence for controlling the working state of the controlled intelligent device formed by the correspondence between the working state of the controlled intelligent device and the pointer variable.

[0180] Among them, the control module 23 is also used to send the control instructions to the gateway and / or the controlled smart device at a set frequency, and the controlled smart devices respectively perform corresponding actions based on the control instructions; or, the control instructions include multiple ones, which are used to control multiple controlled smart devices respectively. Within a set command sending cycle, the control instructions are sent to the gateway and / or the controlled smart device in time-sharing, and the controlled smart devices respectively perform corresponding actions based on the control instructions.

[0181] Among them, the operation module 21 is also used to obtain the touch operation on the control button in the control panel, and determine the corresponding operation variable according to the touch duration of the touch operation; and / or, obtain the pressing operation on the remote control button in the remote control, and determine the corresponding operation variable according to the pressing duration of the pressing operation; and / or, obtain the knob operation on the knob switch, and determine the corresponding operation variable according to the rotation angle of the knob operation; and / or, obtain the pressing operation on the switch button in the key switch, and determine the corresponding operation variable according to the pressing duration of the pressing operation.

[0182] The operation module 21 is further used to obtain a scene switching operation, and determine a control instruction sequence corresponding to a current triggering operation according to the scene switching operation.

[0183] The determination module 22 is further configured to determine the control instruction sequence corresponding to the current trigger operation according to the time corresponding to the trigger operation and the corresponding relationship between the control period and the control instruction sequence.

[0184] Among them, the determination module 22 is also used to obtain modification parameters of the correspondence between the working state of the controlled intelligent device and the pointer variable according to the modification operation when a modification operation of the working state of the controlled intelligent device corresponding to the current trigger operation is detected; and according to the modification parameters, the control instruction sequence formed according to the correspondence is adjusted accordingly.

[0185] It should be noted that: the device control device provided in the above embodiment only uses the division of the above program modules as an example to illustrate the process of controlling the working state of the controlled intelligent device according to the trigger operation. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the method steps described above. In addition, the device control device provided in the above embodiment and the device control method embodiment applied to the terminal device side belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0186] In another aspect, the present application also provides a terminal device. Fig.10 , including a processor 211 and a memory 212, wherein the memory 212 stores a computer program executable by the processor, and when the computer program is executed by the processor, the device control method applied to the terminal device side described in any embodiment of the present application can achieve the same technical effect as the device control method, and will not be described here to avoid repetition. The terminal device can be a smart phone, a personal computer, etc.

[0187] See also Fig.11 , is an optional hardware structure block diagram of a terminal device provided in an embodiment of the present application. Fig.11 As shown, the terminal device may have relatively large differences due to different configurations or performances, and may include one or more processors (Processing Units, CPU) 1110 (the processor 1110 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 1130 for storing data, and one or more storage media 1120 (such as one or more mass storage devices) for storing application programs 1123 or data 1122. Among them, the memory 1130 and the storage medium 1120 can be short-term storage or persistent storage. The program stored in the storage medium 1120 may include one or more modules, each of which may include a series of instruction operations on the scene control panel. Furthermore, the processor 1110 can be configured to communicate with the storage medium 1120 to execute a series of instruction operations in the storage medium 1120 on the smart 11 device. The smart 11 device may also include one or more power supplies 1160, one or more wired or wireless network interfaces 1150, one or more input and output interfaces 1140, and / or one or more operating systems 1121, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0188] The input / output interface 1140 may be used to receive or send data via a network. Specific examples of the above-mentioned network may include a wireless network provided by a communication provider of the smart device. In one example, the input / output interface 1140 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the input / output interface 1140 may be a radio frequency (Radio Frequency, RF) module, which is used to communicate with the Internet wirelessly.

[0189] It can be understood by those skilled in the art that Fig.11 The structure shown is for illustration only and does not limit the structure of the above terminal device. Fig.11 More or fewer components as shown, or with Fig.11 Different configurations are shown.

[0190] In another aspect, the present application also provides a control device. Fig.12 , including a processor 111 and a memory 112, wherein the memory 112 stores a computer program executable by the processor, and when the computer program is executed by the processor, the device control method applied to the trigger device side described in any embodiment of the present application can achieve the same technical effect as the device control method, and will not be described here to avoid repetition. The terminal device can be a smart phone, a personal computer, etc. Among them, the control device is a control panel, a remote control, a knob switch, a push button switch or a gateway device.

[0191] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the multi-mode configuration method embodiment of the above-mentioned intelligent control panel is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0192] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A device control method, applied to a terminal device, characterized in that: include: Acquire the correspondence between the working states of the plurality of controlled intelligent devices and the pointer variables, and form a control instruction sequence for controlling the working states of the controlled intelligent devices according to the correspondence; Acquire trigger device adding information of a trigger device for controlling the pointer; The control instruction sequence is associated with a target trigger device based on the trigger device addition information.

2. The device control method according to claim 1, characterized in that: The obtaining of the corresponding relationship between the working states of the plurality of controlled intelligent devices and the pointer variables includes: Get smart device added information; According to the added information of the smart device, the identification graphics corresponding to each controlled smart device are displayed in the setting page; The adjustment information for adjusting the relative position between the identification graphic and the pointer axis is obtained, and the corresponding relationship between the working states of the plurality of controlled intelligent devices and the pointer variables is determined according to the adjustment information.

3. The device control method according to claim 2, characterized in that: The step of displaying the identification graphics corresponding to the controlled smart devices in the setting page according to the added information of the smart devices includes: According to the smart device adding information, progress bars corresponding to the controlled smart devices are displayed in the setting page, and the progress bars are parallel to the pointer axis.

4. The device control method according to claim 3, characterized in that: The step of obtaining adjustment information for adjusting the relative position between the identification graphic and the pointer axis, and determining the corresponding relationship between the working states of the plurality of controlled intelligent devices and the pointer variables according to the adjustment information, includes: Detecting a drag operation for adjusting the length of the progress bar and / or a drag operation for adjusting the coordinates of the entire progress bar on the pointer axis; Acquire relative position information between the progress bar and the pointer axis based on the drag operation; The corresponding relationship between the working state of the controlled intelligent device and the pointer variable is determined according to the relative position information.

5. The device control method according to claim 4, characterized in that: Determining the corresponding relationship between the working state of the controlled intelligent device and the pointer variable according to the relative position information includes: According to the coordinates of multiple intermediate points between opposite ends of the progress bar corresponding to the controlled smart device on the pointer axis, the pointer variable values ​​of multiple intermediate working states of the controlled smart device corresponding to the multiple intermediate points are determined.

6. The device control method according to claim 5, characterized in that: The step of determining the pointer variable values ​​of the plurality of intermediate working states of the controlled smart device corresponding to the plurality of intermediate points respectively according to the coordinates of the plurality of intermediate points between the two opposite ends of the progress bar corresponding to the controlled smart device on the pointer axis comprises: In the case where the controlled smart device is a smart lamp, the pointer variable values ​​corresponding to the lighting states of the smart lamp and the multiple intermediate points respectively corresponding to the progress bar of the smart lamp are determined according to the coordinates on the pointer axis corresponding to the multiple intermediate points between the two opposite ends; wherein different lighting states correspond to different color temperatures and intensities.

7. The device control method according to claim 5, characterized in that: The step of determining the pointer variable values ​​of the plurality of intermediate working states of the controlled smart device corresponding to the plurality of intermediate points respectively according to the coordinates of the plurality of intermediate points between the two opposite ends of the progress bar corresponding to the controlled smart device on the pointer axis comprises: In the case where the controlled smart device is an automatic curtain, the pointer variable values ​​corresponding to the opening states of the automatic curtain corresponding to the multiple intermediate points between the two opposite ends of the progress bar corresponding to the automatic curtain are determined according to the coordinates on the pointer axis corresponding to the multiple intermediate points; wherein different opening states correspond to different curtain openings.

8. The device control method according to claim 2, characterized in that: The step of obtaining the smart device adding information includes: Get touch operation to add options to smart devices; Based on the touch operation, a list of smart devices to be selected is displayed on a device adding page; Based on the list of intelligent devices to be selected, a selection instruction for one or more controlled intelligent devices is obtained, and based on the selection instruction, intelligent device addition information is obtained.

9. The device control method according to any one of claims 1 to 8, characterized in that: The acquiring the trigger device adding information of the trigger device for controlling the pointer includes: Get the selection operation for adding options to the trigger device; Based on the selection operation, a list of trigger devices to be selected is displayed in a device adding page; Based on the list of trigger devices to be selected, a selection instruction for a trigger device is obtained, and based on the selection instruction, trigger device addition information is obtained; the trigger device includes at least one of the following: a control panel, a remote controller, a knob switch, and a button switch.

10. The device control method according to claim 9, characterized in that: The associating the control instruction sequence with the target trigger device based on the trigger device adding information includes: Based on the trigger device addition information, the control instruction sequence is associated with the selected multiple target trigger devices respectively.

11. The device control method according to claim 9, characterized in that: The associating the control instruction sequence with the target trigger device based on the trigger device adding information includes: Based on the trigger device added information, the control instruction sequences corresponding to different scenes are associated with the scene switching operation of the target trigger device; or, Based on the trigger device added information, the control instruction sequences corresponding to different scenes are associated one by one with different control time periods of the target trigger device.

12. A device control method, applied to control a device, characterized in that: include: Get the action variable corresponding to the trigger action; Determine the control instruction corresponding to the trigger operation according to the corresponding relationship between the operation variable and the pointer variable, and the control instruction sequence for controlling the working state of the controlled intelligent device formed by the corresponding relationship between the working state of the controlled intelligent device and the pointer variable; The controlled intelligent device is controlled to perform corresponding actions based on the control instruction.

13. The device control method according to claim 12, characterized in that: The determining of the control instruction corresponding to the trigger operation according to the corresponding relationship between the operation variable and the pointer variable, and the control instruction sequence for controlling the working state of the controlled intelligent device formed by the corresponding relationship between the working state of the controlled intelligent device and the pointer variable, comprises: According to the continuous change of the operating variable, the movement range of the pointer along the pointer axis is determined; According to a control instruction sequence for controlling the working state of the controlled intelligent device formed by the corresponding relationship between the working state of the controlled intelligent device and the pointer variable, the control instructions for the pointer to sequentially scan within the moving range are determined.

14. The device control method according to claim 13, characterized in that: The controlling the controlled intelligent device to perform a corresponding action based on the control instruction includes: Sending the control instructions to the gateway and / or the controlled smart device at a set frequency, wherein the control instructions are used to control the controlled smart device to perform corresponding actions respectively; or, The control instruction includes multiple sub-instructions, and the multiple sub-instructions are used to control multiple controlled smart devices respectively. Within a set command sending cycle, the control instruction is sent to the gateway and / or the controlled smart device in a time-sharing manner. The control instruction is used to control the controlled smart devices to perform corresponding actions respectively.

15. The device control method according to any one of claims 12 to 14, characterized in that: The obtaining of the operation variable corresponding to the trigger operation includes: Acquire a touch operation on a control button in the control panel, and determine a corresponding operation variable according to the touch duration of the touch operation; and / or, Acquire a pressing operation on a remote control button in the remote controller, and determine a corresponding operation variable according to the pressing duration of the pressing operation; and / or, Acquiring a knob operation for a knob switch, and determining a corresponding operation variable according to a rotation angle of the knob operation; and / or, A pressing operation on a switch button in a key switch is acquired, and a corresponding operation variable is determined according to a pressing duration of the pressing operation.

16. The device control method according to any one of claims 12 to 14, characterized in that: Before obtaining the operation variable corresponding to the trigger operation, the method includes: A scene switching operation is obtained, and a control instruction sequence corresponding to a current triggering operation is determined according to the scene switching operation.

17. The device control method according to any one of claims 12 to 14, characterized in that: The control instruction sequence for controlling the working state of the controlled intelligent device formed according to the corresponding relationship between the operation variable and the pointer variable, and the corresponding relationship between the working state of the controlled intelligent device and the pointer variable, before determining the control instruction corresponding to the trigger operation, includes: The control instruction sequence corresponding to the current trigger operation is determined according to the time corresponding to the trigger operation and the corresponding relationship between the control period and the control instruction sequence.

18. The device control method according to any one of claims 12 to 14, characterized in that: After controlling the controlled intelligent device to perform a corresponding action based on the control instruction, the method further includes: When a modification operation of the working state of the controlled intelligent device corresponding to the current trigger operation is detected, a modification parameter of the corresponding relationship between the working state of the controlled intelligent device and the pointer variable is obtained according to the modification operation; According to the modification parameters, the control instruction sequence formed according to the corresponding relationship is adjusted accordingly.

19. A device control device, applied to a terminal device, characterized in that: include: A configuration module, used to obtain the correspondence between the working states of a plurality of controlled intelligent devices and the pointer variables, and to form a control instruction sequence for controlling the working states of the controlled intelligent devices according to the correspondence; A trigger device adding module, used for acquiring trigger device adding information of a trigger device used for controlling the pointer; An associating module is used to associate the control instruction sequence with a target trigger device based on the trigger device addition information.

20. A device control apparatus, used for controlling a device, characterized in that: include: An operation module, used for obtaining operation variables corresponding to the triggering operation; A determination module, configured to determine the control instruction corresponding to the trigger operation according to a control instruction sequence for controlling the working state of the controlled intelligent device formed by a correspondence between the operation variable and the pointer variable and a correspondence between the working state of the controlled intelligent device and the pointer variable; The control module is used to control the controlled intelligent device to perform corresponding actions based on the control instruction.

21. A terminal device, characterized in that: The device comprises a processor and a memory, wherein the memory stores a computer program executable by the processor, and when the computer program is executed by the processor, the device control method according to any one of claims 1 to 11 is implemented.

22. A control device, characterized in that: It comprises a processor and a memory, wherein the memory stores a computer program executable by the processor, and when the computer program is executed by the processor, the device control method according to any one of claims 12 to 18 is implemented.

23. The control device according to claim 22, characterized in that The control device is a control panel, a remote controller, a knob switch, a key switch or a gateway device.

24. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the controller, the device control method according to any one of claims 1 to 18 is implemented.