Equipment switching control methods, electronic devices and computer-readable storage media
By using a server-managed device switch control method, the linkage switching and associated configuration of device switches are realized, which solves the problem of high hardware cost in existing technologies, enables multi-control and arbitrary combination of a large number of devices, and is suitable for a variety of application scenarios.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-27
- Publication Date
- 2026-03-13
AI Technical Summary
Existing intelligent switch multi-control methods require the configuration of a large number of wireless remote control switches, resulting in high hardware costs and making it impossible to achieve multi-control of a large number of devices.
By using a server-managed device switch control method, the system enables the linkage switching and associated configuration of device switches. When a user operates any device switch, the switch status of other devices in the associated group is automatically switched, reducing the number of wireless remote control switches required.
It enables multi-device control in large quantities, reduces hardware costs, and supports combinations of any number of device switches and any type of wiring, making it suitable for homes and medium to large enterprises.
Smart Images

Figure CN115167202B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of switch control technology, and in particular to a device switch control method, electronic device, and computer-readable storage medium. Background Technology
[0002] A smart switch is a new type of switch equipped with IoT communication chips such as WiFi or Bluetooth. Users can monitor and switch the on / off status of the device through mobile phones or computers, and different smart switches can be linked together to achieve multi-control function of the same device. The so-called multi-control function means that the same device can be controlled by multiple switches installed in different areas.
[0003] The existing method for achieving multi-device control with smart switches is as follows: Smart switches include smart wall switches and wireless remote control switches. Smart wall switches are typically equipped with an 86-type packaged back box, and their installation method is the same as that of traditional switches. They are electrically connected to the devices via wiring. The wireless remote control switch is used for wireless communication and linkage with the smart wall switch. The smart wall switch and the wireless remote control switch are installed in different areas. When a user operates the smart wall switch, the on / off state of the connected device can be switched. When a user operates the wireless remote control switch, the on / off state of the device can also be switched. This achieves dual control of the same device. To achieve three or more controls, the number of wireless remote control switches needs to be increased.
[0004] The aforementioned method for achieving multi-device control has insurmountable drawbacks: it requires a smart wall switch and at least one wireless remote control switch for each device, and multi-control can only be achieved by increasing the number of wireless remote control switches. Furthermore, each wireless remote control switch can only be linked with a maximum of several smart wall switches. Additionally, the smart wall switch only links with the wireless remote control switch and can only control the devices connected to it, not devices connected to other smart wall switches. Therefore, this method is difficult to apply to multi-control of a large number of devices because it requires a large number of wireless remote control switches, resulting in extremely high hardware costs. Summary of the Invention
[0005] To overcome the shortcomings of the prior art, one objective of this invention is to provide a device switching control method to solve the problem that existing multi-control methods are difficult to apply to large-scale equipment; another objective of this invention is to provide an electronic device to solve the problem that existing multi-control methods are difficult to apply to large-scale equipment; and a third objective of this invention is to provide a computer-readable storage medium to solve the problem that existing multi-control methods are difficult to apply to large-scale equipment.
[0006] The device switching control method of the present invention is implemented using the following technical solution:
[0007] A device switching control method includes a linkage switching step:
[0008] Receive a linkage switching request for a device switch, the linkage switching request including switching action information and device identification information of the device switch;
[0009] Based on the device identification information, the associated group to which the device switch belongs is found, and an on / off switching command corresponding to the switching action information is sent to the device switch belonging to the associated group.
[0010] Furthermore, in the linkage switching step: the switching action information is used to indicate the on / off state of the line electrically connected by the switching device switch, and the on / off switching command is used to control the device switch to switch the on / off state of its electrically connected line.
[0011] Furthermore, in the linkage switching step: the switching action information is used to indicate the on / off state of a specific type of line, and the on / off switching command is used to control the device switch to change the on / off state of the specific type of line.
[0012] Furthermore, in the linkage switching step: the switching action information is divided into first switching action information and second switching action information. The first switching action information is used to indicate the on / off state of a specific type of line connected by the switching device, and the second switching action information is used to indicate the on / off state of multiple types of lines connected by the switching device.
[0013] When the switching action information is the first switching action information, the on / off switching command is used to control the device switch to switch the on / off state of a specific type of line it is electrically connected to. When the switching action information is the second switching action information, the on / off switching command is used to control the device switch to switch the on / off state of multiple types of lines it is electrically connected to.
[0014] Furthermore, the method also includes a single-control switching step: receiving a single-control switching request from a device switch, the single-control switching request including single-control action information and device identification information of the device switch, and sending an on / off switching command corresponding to the single-control action information to the device switch.
[0015] Furthermore, the method also includes an association configuration step: receiving association configuration information, the association configuration information including device identification information and group identification information, and adding the device switch corresponding to the device identification information to the association group corresponding to the group identification information.
[0016] Furthermore, in the association configuration step: the association configuration information also includes line category information.
[0017] Furthermore, in the associated configuration step: the line category information is divided into single line category information and combined line category information. The single line category information represents the category of a line electrically connected to the device switch, and the combined line category information represents a combination of several lines electrically connected to the device switch.
[0018] The electronic device of the present invention is implemented using the following technical solution:
[0019] An electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, it implements the device switching control method described above.
[0020] The computer-readable storage medium of the present invention is implemented using the following technical solution:
[0021] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-described device switching control method.
[0022] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0023] The device switch control method, electronic device, and computer-readable storage medium provided by this invention offer a linkage mechanism applicable to different device switches. Specifically, within a given area, multiple interconnected device switches constitute an association group. When a user operates a device switch (e.g., presses a button on the device switch), the device switch sends a linkage switching request to the server. Upon receiving the linkage switching request, the server identifies the association group to which the device switch belongs and sends an on / off switching command to the device switches in that association group. This process ensures that when a user operates any device switch in an association group, not only is the on / off state of that device switch changed, but the on / off states of other device switches in the association group are also changed, thus enabling multiple device switches to be simultaneously turned on or off.
[0024] Therefore, the device switch control method, electronic device, and computer-readable storage medium provided by the present invention can be used to realize multi-control of a large number of devices. For example, taking the control of a large number of lighting devices as an example, in a floor area, the floor area has multiple rooms, and the lighting device in each room is controlled by a device switch. The device switches of each room in the floor area belong to the same associated group. When the user operates the device switch of any room, not only is the on / off state of the lighting device in that room switched, but also the on / off state of the lighting devices in other rooms is switched, that is, the simultaneous on / off of all lighting devices in the floor area is realized.
[0025] Therefore, the device switch control method, electronic device and computer-readable storage medium provided by the present invention can be used to realize multi-control of a large number of devices, and compared with the prior art, there is no need to add a large number of wireless remote control switches, which can effectively reduce hardware costs and has wide applicability. Attached Figure Description
[0026] Figure 1 This is a flowchart of a device switching control method according to an embodiment of the present invention;
[0027] Figure 2 This is an architecture diagram of a first type of equipment switching control system that applies the equipment switching control method of this invention.
[0028] Figure 3 This is an architecture diagram of a second type of equipment switching control system that applies the equipment switching control method of this invention.
[0029] Figure 4 This is an architecture diagram of a third type of device switching control system that applies the device switching control method of this invention.
[0030] Figure 5 This is an architecture diagram of a fourth device switch control system that applies the device switch control method of this invention. Detailed Implementation
[0031] The present invention will now be further described in conjunction with the accompanying drawings and specific embodiments. It should be noted that, without conflict, the various embodiments or technical features described below can be arbitrarily combined to form new embodiments.
[0032] The present invention provides a device switching control method, an electronic device, and a computer-readable storage medium.
[0033] refer to Figure 1 The device switching control method of this invention includes:
[0034] S1. Association Configuration Step: Receive association configuration information, which includes device identification information and group identification information. Add the device switch corresponding to the device identification information to the association group corresponding to the group identification information. The purpose of this step is to associate the device switch with the existing device switches in the association group.
[0035] S2, Linkage Switching Step: Receive a linkage switching request from a device switch, the linkage switching request including switching action information and device identification information of the device switch; based on the device identification information, find the associated group to which the device switch belongs, and send an on / off switching command corresponding to the switching action information to the device switches belonging to the associated group.
[0036] Specifically, in the above S2, linkage switching step: the switching action information is used to indicate the on / off state of the line connected to the switching device switch, and the on / off switching command is used to control the device switch to switch the on / off state of the line connected to it.
[0037] For instructions on how to apply the switching control method for this device, please refer to [link / reference]. Figure 2 The first type of device switch control system is shown. This control system includes a server and several device switches. Each device switch has a WiFi chip, enabling it to connect to the network and communicate with the server. The server stores a configuration table and a device status table. The configuration table records the association information of associated groups, mainly the correspondence between group identifiers and device identifiers. The device status table records the status information of each device switch. The server implements the device switch control method described in this embodiment. In this device switch control system, device switches 1 to N are electrically connected to lines 1 to N, and each line is electrically connected to a single device or device group. Device switches 1 to N belong to the same associated group. For this associated group, the corresponding association information in the configuration table is {100}:{1001},{1002},{1003},...,{100N}; where {100} is the group identifier information, and {1001} to {100N} are the device identifier information of device switches 1 to N, respectively.
[0038] In the first type of equipment switch control system, when a user operates any equipment switch, such as pressing the button of equipment switch 1, equipment switch 1 sends a linkage switching request to the server. The server receives this linkage switching request, which contains the information {1001}:{1}, where {1001} is the equipment identification information and {1} is the switching action information, indicating that the line should be switched to the conducting state. The server looks up the configuration table based on the equipment identification information and finds that equipment switch 1 belongs to association group 100. Then, the server sends on / off switching commands to equipment switches 1 through N. These commands contain information... {1}, according to the on / off switching command, the device switches 1~N switch the lines 1~N to the conducting state, thereby switching the electrical equipment (such as lighting, air conditioners, etc.) on each line to the on state; if the linkage switching request contains the information {1001}:{0}, {0} is the switching action information, which indicates that the line should be switched to the off state; therefore, the server sends the on / off switching command to all device switches 1~N, containing the information {0}, and the device switches 1~N switch the lines 1~N to the off state according to the on / off switching command, thereby switching the electrical equipment on each line to the off state.
[0039] In the first type of equipment switch control system, if equipment switch 100N+1 is to be added to association group 100, the user can log in to the backend management system via mobile phone or computer and send association configuration information to the server. The server receives the association configuration information, which includes {100}:{100N+1}, and updates the configuration table to obtain {100}:{1001},{1002},{1003},……,{100N},{100N+1}. In this process, equipment switch 100N+1 can be added to association group 100, thereby associating equipment switch 100N+1 with the existing equipment switches in association group 100.
[0040] Preferably, in the above-described S2, linkage switching step: the switching action information is used to indicate the switching on / off state of a specific type of line, and the on / off switching command is used to control the device switch to switch the on / off state of the specific type of line. Correspondingly, in the above-described S3, association configuration step: the association configuration information also includes line category information.
[0041] For instructions on how to apply the switching control method for this device, please refer to [link / reference]. Figure 3The second type of equipment switch control system shown differs from the first in that: equipment switches 1-N are multi-way switches. Taking a four-way switch as an example, each equipment switch has four buttons, corresponding to the four types of lines in its associated group. The server's configuration table records the corresponding line category information. For the associated group formed by equipment switches 1-N, the corresponding association information in the configuration table is {100}:{1001}:{A}:{B}:{C}:{D},{1002}:{A}:{B}:{C}:{D},……,{100N}:{A}:{B}:{C}:{D}. Correspondingly, each equipment switch has four relays, controlling the on / off state of four lines respectively. {A}:{B}:{C}:{D} represents the line category information, indicating the type of line controlled by the four relays of the equipment switch. For example, A can be lighting equipment, B can be air conditioning equipment, C can be computer equipment, and D can be fume hood equipment. The line category can be... The simplified letter symbols can also be used; specifically, taking device switch 1 as an example, its first relay controls line 1-1, which is line type A; the second relay controls line 1-2, which is line type B; the third relay controls line 1-3, which is line type C; and the fourth relay controls line 1-4, which is line type D. The four buttons on device switch 1 correspond to their respective... The circuits belong to categories A, B, C, and D in the associated group; specifically, the equipment status table records the on / off status information of equipment switches 1 to N. For example, for equipment switch 1, its corresponding status information in the equipment status table is {1001}:{0}:{1}:{0}:{1}, where {1001} is the equipment identification information, and {0}:{1}:{0}:{1} respectively indicate that line 1-1 is in the off state, line 1-2 is in the on state, line 1-3 is in the off state, and line 1-4 is in the on state.
[0042] In the second type of device switch control system, when a user operates any device switch, assuming it is device switch 1, which has four buttons corresponding to line categories A, B, C, and D respectively; when the user presses the first button, device switch 1 sends a linkage switching request to the server. The server receives the linkage switching request, which contains the information {1001}:{1}:{1}:{0}:{1}, where {1001} is the device identification information, and {1}:{1}:{0}:{1} is the switching action information. Based on the linkage switching request, the server looks up the device status table, where the original status information is {1001}:{0}:{1}:{0}:{1}. According to the configuration table, the server determines that the linkage switching request indicates that the line of line category A in associated group 100 (i.e., the specific category line) is switched to the conducting state. The server then updates the device status. The table yields {1001}:{1}:{1}:{0}:{1}. The server sends on / off command information, containing {1}:{1}:{0}:{1}, to all device switches 1-1, 2-1, ..., N-1 according to the on / off switching command. Similarly, when the user presses the second button, the linkage switching request of device switch 1 contains the information {1001}:{0}:{0}:{0}:{1}, which indicates that the line of type B in associated group 100 will be switched to the off state. The on / off switching command sent by the server to device switches 1-2, 2-2, ..., N-2 according to the on / off switching command, will also switch the line to the off state. Of course, the server also needs to update the device status table.
[0043] In the second type of equipment switch control system, if equipment switch 100N+1 is to be added to association group 100, the association configuration information includes {100N+1}:{A}:{B}:{C}:{D}, where {100N+1} is the equipment identification information, and {A}:{B}:{C}:{D} is the line category information. The server updates the configuration table according to the association configuration information to obtain {100}:{1001}:{A}:{B}:{C}:{D},……,{100N+1}:{A}:{B}:{C}:{D}.
[0044] Using the second type of equipment switch control system and its control method described above, the following application scenarios can be achieved: For example, in summer, if it is necessary to control both the lights and the air conditioner in the office, simply press the button representing the lights or the air conditioner on the equipment switch. In winter, if it is necessary to turn on the lights but not the air conditioner, simply press the button representing the lights on the equipment switch. Another example is a large office where only a portion of the office area is sometimes used. If all the lighting equipment in the office is switched on and off simultaneously, it will consume a lot of electricity and is not environmentally friendly. Therefore, the office lighting equipment can be divided into four groups, each used to illuminate four different office areas. That is, the lighting equipment in these four areas has four different types of circuits. To use the desired office area, simply press the corresponding button on the equipment switch.
[0045] By using the second type of equipment switch control system and its equipment switch control method described above, the same equipment switch can be used to control the on / off state of multiple types of circuits, which can reduce the number of equipment switches by a factor of two and further reduce hardware costs.
[0046] Preferably, in the above-mentioned S2, linkage switching step: the switching action information is divided into first switching action information and second switching action information. The first switching action information is used to indicate the on / off state of a specific type of line electrically connected to the switching device switch, and the second switching action information is used to indicate the on / off state of multiple types of lines electrically connected to the switching device switch. When the switching action information is the first switching action information, the on / off switching command is used to control the device switch to switch the on / off state of a specific type of line electrically connected to it. When the switching action information is the second switching action information, the on / off switching command is used to control the device switch to switch the on / off state of multiple types of lines electrically connected to it.
[0047] Correspondingly, in the above S1, association configuration step: the line category information is divided into single line category information and combined line category information. The single line category information represents the category of a line electrically connected to the device switch, and the combined line category information represents a combination of several lines electrically connected to the device switch.
[0048] For instructions on how to apply the switching control method for this device, please refer to [link / reference]. Figure 4The third type of equipment switch control system is shown. The main difference between this third type and the first and second types is that each equipment switch is a multi-way switch. Taking a three-way switch as an example, it has three buttons, but actually only two are relays, each electrically connected to one of the two lines. Two buttons on this equipment switch correspond to the two types of lines respectively, and the remaining button corresponds to the combination of these two types of lines (which can be considered the main control line). For the association group formed by equipment switches 1 to N, the corresponding association information in the configuration table is {100}:{1001}:{A}:{B}:{M},{1002}:{A}:{B}:{M},……, {100N}:{A}:{B}:{M}; where {A}:{B} is the single line category information, which indicates the line category actually electrically connected to device switch 1, and {M} is the combined line category information, which indicates that the third button corresponds to a combination of line category A and line category B; specifically, the server's configuration table also records line configuration information, mainly the correspondence between combined line category information and single line category information, in the form of {M}:{A}, {B}.
[0049] In the third type of device switch control system, when a user operates any device switch, for example, pressing the first button of device switch 1, device switch 1 sends a linkage switching request to the server. The server receives the linkage switching request, which contains the information {1001}:{1}:{0}:{0}. Based on the linkage switching request, the server looks up the device status table, and the original status information is {1001}:{0}:{0}:{0}. Therefore, this linkage switching request indicates that the line of line type A is switched to the conducting state. At this time, the server sends a request to all device switches 1 to N. The server sends on / off command information containing the information {1}:{0}. According to the on / off switching command, the device switches 1~N switch their line type A lines 1-1~N-1 to the conducting state. If the linkage switching request contains the information {1001}:{0}:{0}:{1}, it means that both A and B type lines should be switched to the conducting state. At this time, the server sends on / off command information containing the information {1}:{1} to the device switches 1~N. According to the on / off switching command, the device switches 1~N switch their line type A and B lines to the conducting state.
[0050] In the third type of device switch control system, if device switch 100N+1 is to be added to association group 100, the association configuration information includes {100N+1}:{A}:{B}:{M}, where {100N+1} is the device identification information, {A}:{B}:{M} is the line category information, {A} and {B} are single line category information, indicating that the first button of the switch is used to control line category A, the second button is used to control line category B, and {M} is combined line category information, indicating that the third button is used to control the combination of line categories A and B. Updating the configuration table yields {100}:{1001}:{A}:{B}:{M}, ..., {100N+1}:{A}:{B}:{M}. To achieve more detailed application scenarios, line configuration information can also be added during the association configuration step. For example, consider device switch 100K, which has three buttons but only two relays controlling line categories C and D respectively. To add lines C and D to line combination M, the associated configuration information {100K}:{C}:{D}:{M} and line configuration information {M}:{C},{D} need to be input. The server receives the line configuration information and updates the configuration table to {M}:{A},{B},{C},{D}. Therefore, any line category can actually be added to any line combination through the associated configuration step. As long as the server receives the line configuration information in the associated configuration step, this information includes a first line category and a second line category. The first line category is either a single line category or a combination of line categories, and the second line category is a combination of line categories. In other words, not only can single lines be combined, but combined lines can also be combined; any line can be combined. For example, for line configuration information {J}:{M1},
[0051] {M2},{M3} represent adding the combined lines M1, M2, and M3 to another line combination J.
[0052] Preferably, the device switching control method in this embodiment of the invention further includes:
[0053] S3. Single-control switching step: Receive a single-control switching request from a device switch. The single-control switching request includes single-control action information and device identification information of the device switch. Send an on / off switching command corresponding to the single-control action information to the device switch.
[0054] For instructions on how to apply the switching control method for this device, please refer to [link / reference]. Figure 5The fourth type of equipment switch control system is shown. The main difference between the fourth type of equipment switch control system and the first, second and third types of equipment switch control systems is that each equipment switch is a multi-way switch. Taking a two-way switch as an example, it has two buttons, but in reality there is only one relay, which is electrically connected to one line. The first button of the equipment switch 1 only controls the on / off of the line and does not link with other equipment switches. The second button is used to link with other equipment switches (which can be regarded as a linkage line) to trigger the linkage switching step of the embodiment of the present invention and realize multi-control. For the association group composed of equipment switches 1 to N, the corresponding association information in the configuration table is {100}:{1001}:{A1}:{A},{1002}:{A2}:{A},……, {100N}:{AN}:{A}; the corresponding line configuration information is {A}:{A1},{A2},……,{AN}.
[0055] In the fourth type of device switch control system, when a user operates any device switch, assuming the first button of device switch 1 is pressed, device switch 1 sends a single-control switching request to the server. The server receives the single-control switching request, which contains the information {1001}:{1}:{0}. According to this single-control switching request, the server looks up the device status table. The original status information is {1001}:{0}:{0}. Therefore, this single-control switching request indicates that only line 1 should be switched to the conducting state. The server then sends an on / off switching command to device switch 1, containing the information {1}. Device switch 1 switches line 1 to the conducting state according to this on / off command. When the user presses the second button of device switch 1, the linkage switching request contains the information {1001}:{0}:{1}. The server looks up the device status table. The original status information is {1001}:{0}:{0}. Therefore, this linkage switching request indicates that all lines 1-N electrically connected to device switches 1-N should be switched to the conducting state, i.e., the linkage switching step.
[0056] The fourth type of device switch control system and its device switch control method are very suitable for home use. One button of each device switch is used to control a single device, while the other button can be used as the main switch for a home area.
[0057] Referring to the first, second, third, and fourth equipment switch control systems and their corresponding equipment switch control methods described above, it can be seen that the equipment switch control method provided in this embodiment of the invention offers a linkage switching step that provides a linkage method applicable to different equipment switches. This enables multiple equipment switches to simultaneously switch the on / off state of the circuit, which can be used to achieve multi-control of a large number of devices. Compared with existing technologies, it does not require a large number of additional wireless remote control switches, effectively reducing hardware costs. It can be applied to both home scenarios to achieve multi-control of a small number of devices and medium to large enterprises to achieve multi-control of a large number of devices, demonstrating broad applicability.
[0058] Referring to the first, second, third, and fourth equipment switch control systems and their corresponding equipment switch control methods described above, it can be seen that the equipment switch control method provided in this embodiment of the invention can arbitrarily expand the associated groups through the associated configuration steps. Therefore, it can realize the combined linkage of any number of equipment switches. Users only need to send associated configuration information to the server via mobile phone or computer to achieve multi-control of any number of lines (equipment), which is extremely convenient and further improves applicability.
[0059] Referring to the third and fourth equipment switch control systems and their corresponding equipment switch control methods described above, it can be seen that the equipment switch control method provided in this embodiment of the invention can not only realize the combination of any number of equipment switches through the association configuration step, but also the combination of any type of circuit. In this way, extremely detailed application scenarios can be realized, and users only need to log in to the backend via mobile phone or computer and send the corresponding association configuration information and circuit configuration information to the server.
[0060] In summary, the device switch control method provided by the embodiments of the present invention can be used to realize multi-control of a large number of devices, and compared with the prior art, it does not require a large number of additional wireless remote control switches, which can effectively reduce hardware costs. It can not only realize the combination of any number of device switches, but also the combination of any number of circuits, and has wide applicability.
[0061] The electronic device provided in this embodiment of the invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the device switching control method described in this embodiment of the invention.
[0062] The electronic device provided in this invention can be used to realize multi-control of a large number of devices, and compared with the prior art, it does not require a large number of additional wireless remote control switches, which can effectively reduce hardware costs. It can not only realize the combination of any number of device switches, but also the combination of any number of circuits, and has wide applicability.
[0063] The computer-readable storage medium provided in this embodiment of the invention stores a computer program thereon. When the computer program is executed by a processor, it implements the device switching control method described in this embodiment of the invention.
[0064] The computer-readable storage medium provided in this invention can be used to realize multi-control of a large number of devices. Compared with the prior art, it does not require a large number of additional wireless remote control switches, which can effectively reduce hardware costs. It can not only realize the combination of any number of device switches, but also the combination of any number of circuits, and has wide applicability.
[0065] The above embodiments are merely preferred embodiments of the present invention and should not be construed as limiting the scope of protection of the present invention. Any non-substantial changes and substitutions made by those skilled in the art based on the present invention shall fall within the scope of protection claimed by the present invention.
Claims
1. A device switching control method characterized by, The method further comprises a linkage switching step of receiving a linkage switching request of a device switch, the linkage switching request comprising switching action information and device identification information of the device switch; finding out an association group to which the device switch belongs according to the device identification information; and sending an on-off switching instruction corresponding to the switching action information to device switches belonging to the association group. The switching action information is divided into first switching action information and second switching action information, the first switching action information being used to indicate an on-off state of a specific category line to which the device switch is electrically connected, and the second switching action information being used to indicate on-off states of multiple category lines to which the device switch is electrically connected. When the switching action information is the first switching action information, the on-off switching instruction is used to control the device switch to switch the on-off state of the specific category line to which the device switch is electrically connected; and when the switching action information is the second switching action information, the on-off switching instruction is used to control the device switch to switch the on-off states of the multiple category lines to which the device switch is electrically connected. The association configuration information comprises line category information. The line category information is divided into single line category information and combined line category information, the single line category information indicating a category of a line to which the device switch is electrically connected, and the combined line category information indicating a combination of lines to which the device switch is electrically connected. In the linkage switching step, the switching action information is used to indicate on-off states of lines to which the device switch is electrically connected, and the on-off switching instruction is used to control the device switch to switch the on-off states of the lines to which the device switch is electrically connected. The method further comprises a single control switching step of receiving a single control switching request of a device switch, the single control switching request comprising single control action information and device identification information of the device switch; and sending an on-off switching instruction corresponding to the single control action information to the device switch.
2. The device switching control method according to claim 1, wherein The method further comprises an association configuration step of receiving association configuration information, the association configuration information comprising device identification information and group identification information; and adding a device switch corresponding to the device identification information to an association group corresponding to the group identification information.
3. The device switching control method according to claim 1, wherein The processor executes the computer program to implement the device switch control method according to any one of claims 1-3.
4. The device switching control method according to any one of claims 1 to 3, characterized by, The computer program is executed by the processor to implement the device switch control method according to any one of claims 1-3.
5. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, 6. A computer-readable storage medium having stored thereon a computer program, characterized in that,
Citation Information
Patent Citations
Linkage control method and device and computer readable storage medium
CN111522251A
Method for realizing equipment multi-control across gateways, master gateway and smart home system
CN112714051A