Device control method and apparatus, electronic device, and storage medium
Patent Information
- Application Number
- CN202510451932.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-10
- Publication Date
- 2026-10-20
AI Technical Summary
[0003]随着设备不断地推陈出新,用户家中的设备数量成倍增长,用户在使用各个设备时,需要通过不同的操控配件进行控制,操作较为不便
[0023]在本公开的技术方案中,可以预先为目标操控配件配置至少一个可操控设备。在此基础上,在目标操控配件被驱动时,即可根据上报的驱动信息从为目标操控配件配置的可操控设备中,确定出目标设备当前控制的目标设备,并基于驱动信息确定对目标设备的调节幅度,进而向目标设备下发调节指令,以使目标设备按照该调节幅度进行调节。
Smart Images

Figure HDA0005354375410000011 
Figure HDA0005354375410000012 
Figure HDA0005354375410000021
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of electronic equipment, and more particularly to a device control method and apparatus, electronic equipment, and storage medium. Background Technology
[0002] Control accessories such as knobs are often mounted on the surface of the equipment to adjust the parameters of the corresponding equipment. For example, a desk lamp may be equipped with a knob for adjusting the brightness.
[0003] As devices are constantly being updated, the number of devices in users' homes is increasing exponentially. Users need to use different control accessories to operate each device, which is quite inconvenient. Summary of the Invention
[0004] This disclosure provides a device control method and apparatus, electronic device, and storage medium that can control different devices through a single control configuration.
[0005] According to a first aspect of this disclosure, a device control method is provided, comprising:
[0006] Upon receiving drive information reported by the target control accessory being driven, the target device currently controlled by the target control accessory is determined from at least one controllable device configured for the target control accessory.
[0007] Based on the driving information, the adjustment range of the target control accessory on the target device is determined, and an adjustment command is issued to the target device according to the adjustment range, so that the target device is adjusted according to the adjustment range.
[0008] According to a second aspect of this disclosure, a method for configuring control accessories is provided, comprising:
[0009] Receive a configuration instruction for a target control accessory, the configuration instruction including an accessory identifier of the target control accessory and a device identifier of at least one controllable device controlled by the target control accessory as indicated by the user;
[0010] The at least one controllable device is determined from a plurality of preset configurable devices based on the device identifier, and the target control accessory is configured as a control accessory for controlling the at least one controllable device.
[0011] According to a third aspect of this disclosure, a device control apparatus is provided, comprising:
[0012] The determining unit, upon receiving drive information reported by the target control accessory being driven, determines the target device currently controlled by the target control accessory from at least one controllable device configured for the target control accessory.
[0013] The adjustment unit determines the adjustment range of the target control accessory on the target device based on the drive information, and issues an adjustment command to the target device according to the adjustment range, so that the target device adjusts according to the adjustment range.
[0014] According to a fourth aspect of this disclosure, a configuration device for a control accessory is provided, comprising:
[0015] The receiving unit receives a configuration instruction for a target control accessory, the configuration instruction including an accessory identifier of the target control accessory and a device identifier of at least one controllable device controlled by the target control accessory as indicated by the user.
[0016] The configuration unit determines at least one controllable device from a plurality of preset configurable devices based on the device identifier, and configures the target control accessory as a control accessory for controlling the at least one controllable device.
[0017] According to a fifth aspect of this disclosure, an electronic device is provided, comprising:
[0018] processor;
[0019] Memory used to store processor-executable instructions;
[0020] The processor implements the method as described in the first or second aspect by running the executable instructions.
[0021] According to a sixth aspect of this disclosure, a computer-readable storage medium is provided that stores computer instructions thereon, which, when executed by a processor, implement the steps of the method as described in the first or second aspect.
[0022] According to a seventh aspect of this disclosure, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the method as described in the first or second aspect.
[0023] In the technical solution disclosed herein, at least one controllable device can be pre-configured for the target control accessory. Based on this, when the target control accessory is driven, the target device currently controlled by the target device can be determined from the controllable devices configured for the target control accessory according to the reported drive information, and the adjustment range of the target device can be determined based on the drive information. Then, an adjustment command is issued to the target device so that the target device adjusts according to the adjustment range.
[0024] It should be understood that in related technologies, control accessories are usually directly mounted on the surface of the equipment to enable control of the accessories, and each control accessory typically only allows control of a single device. However, in this disclosure, by pre-configuring controllable devices for the control accessories, multiple controllable devices can be configured for a single control accessory, achieving the effect of controlling multiple devices with a single control accessory, thus avoiding the situation in related technologies where a single control accessory can only control a single device. Attached Figure Description
[0025] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0026] Figure 1 This is a flowchart illustrating a device control method according to an exemplary embodiment of the present disclosure;
[0027] Figure 2 This is a flowchart illustrating an exemplary embodiment of the present disclosure of a method for configuring a control accessory;
[0028] Figure 3 This is a schematic diagram of an information transmission architecture shown in an exemplary embodiment of the present disclosure;
[0029] Figure 4 This is a flowchart illustrating an exemplary embodiment of the present disclosure of a scene recognition method;
[0030] Figure 5 This is a flowchart illustrating an exemplary embodiment of the present disclosure of a method for controlling a lamp with a knob;
[0031] Figure 6 This is a block diagram illustrating a device control apparatus according to an exemplary embodiment of the present disclosure;
[0032] Figure 7 This is a block diagram illustrating a configuration device for a control accessory according to an exemplary embodiment of the present disclosure;
[0033] Figure 8 This is a schematic diagram of the structure of an electronic device according to an exemplary embodiment of the present disclosure. Detailed Implementation
[0034] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0035] The terminology used in this disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The singular forms “a,” “the,” and “the” as used in this disclosure and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
[0036] It should be understood that although the terms first, second, third, etc., may be used in this disclosure to describe various information, such information should not be limited to these terms. These terms are used only to distinguish information of the same type from one another. For example, without departing from the scope of this disclosure, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."
[0037] With the advent of the era of intelligent technology, users' control over various devices is no longer limited to simply turning them on and off, but can now make more detailed adjustments. For example, many lighting fixtures now allow users to adjust their brightness.
[0038] In related technologies, such devices are typically equipped with control accessories such as knobs to allow users to operate them. Taking a lamp as an example, a knob can be installed on the lamp so that users can adjust the brightness of the lamp by turning the knob.
[0039] It is easy to see that when using the relevant technologies for device control, a single knob can only control a single device, which presents many inconveniences. On the one hand, as the number of devices in a user's home increases, the number of control accessories also multiplies, not only affecting aesthetics but also requiring users to find specific control accessories to adjust the corresponding devices, making operation extremely inconvenient. On the other hand, the devices that the control accessories can control are fixed, and it is impossible to change the devices controlled by the control accessories, lacking flexibility.
[0040] To address this, this disclosure proposes a device control method to avoid the operational inconvenience and lack of flexibility issues caused by the fact that control accessories can only control a fixed single device in related technologies.
[0041] Figure 1 This disclosure illustrates a device control method as an exemplary embodiment. For example... Figure 1 As shown, the method may include the following steps:
[0042] Step 102: Upon receiving drive information reported by the target control accessory being driven, determine the target device currently controlled by the target control accessory from at least one controllable device configured for the target control accessory.
[0043] As described above, when configuring control accessories for equipment, related technologies typically base these accessories on the specific needs of the equipment. For example, to control the brightness of a light fixture, a brightness control knob is required. It's clear that because the design philosophy of these technologies is based on equipment requirements, the resulting control accessories are only used to control the corresponding device. In other words, the reason why control accessories in these technologies can only control a single device is due to their inherent design philosophy.
[0044] In view of this, this disclosure no longer configures control accessories based on equipment requirements, but rather from the perspective of control accessories, configures at least one controllable device for the control accessories, so that the control accessories are no longer limited to controlling a single fixed device. On the one hand, since multiple controllable devices can be configured, the operational inconvenience caused by the control accessories being able to control only a single device is avoided; on the other hand, the configuration relationship can be changed to change the devices that the control accessories can control, avoiding the problem of a lack of flexibility in the control relationship.
[0045] Before introducing the technical solutions disclosed herein, the terminology used in this disclosure will be introduced first:
[0046] In this disclosure, "target control accessory" refers to a user-driven control accessory. "Controllable device" refers to a device that can be controlled by the target control accessory. "Target device" refers to the device currently controlled by the target control accessory when the user drives the target control accessory, and is a controllable device belonging to the target control accessory.
[0047] In this disclosure, the controllable devices of the target control accessory can be configured preferentially. This disclosure can employ various methods to configure the controllable devices of the target control accessory. For example, after a user connects the target control accessory to the network, devices within that network that can be controlled by the target control accessory can be automatically identified, and all identified devices can be designated as controllable devices of the target control accessory; alternatively, the user can configure their home devices as controllable devices of the target control accessory themselves.
[0048] Of course, the examples given here are merely illustrative. The specific methods and timing for configuring controllable devices on the target control accessory can be determined by those skilled in the art based on actual needs. For instance, when the target control accessory and the controllable device are connected by a wire, the device connected to the target control accessory can be assumed to be its controllable device by default. This disclosure does not impose any restrictions on this.
[0049] In this disclosure, by configuring at least one controllable device for the target control accessory, a user can control the target device contained within the controllable device by driving the target control accessory. For example, when the user drives the target control accessory, the target control accessory can report drive information, so that the entity executing this disclosure can determine the target device from the controllable devices configured for the target control accessory based on the drive information, and then adjust the target device.
[0050] In this disclosure, the target device can be identified from the configured controllable devices in a variety of ways.
[0051] In one embodiment, the target control accessory may include multiple operating modes. Based on this, different controllable devices can be configured for different operating modes. In this embodiment, the drive information reported by the target control accessory may include the current mode of the target control accessory. Therefore, upon receiving the drive information, the controllable device corresponding to the current mode can be determined from the controllable devices configured for the target control accessory based on the current mode contained in the drive information, and used as the target device currently controlled by the target control accessory.
[0052] For example, suppose the target control accessory is a knob, and this knob has three modes: "press," "normal," and "pull up." Then, the controllable device configured for the "press" mode could be light fixture A, the controllable device configured for the "normal" mode could be light fixture B, and the controllable device configured for the "pull up" mode could be curtain C. In this case, if the received drive information indicates that the knob is in the pressed state, then it can be determined that the target device currently controlled by the knob is light fixture A.
[0053] In another embodiment, different usage time periods can be configured for different controllable devices. Based on this, upon receiving the drive information reported by the target control accessory, the controllable device corresponding to the current time period can be determined from the controllable devices configured for the target control accessory, so as to be the target device currently controlled by the target control accessory.
[0054] For example, assuming the target control accessory is a knob, the user can configure the "bedroom curtains D" to be used between 7 and 8 a.m., so that the user can open the curtains by turning the knob when they wake up at 7 or 8 a.m.; configure the "living room light E" to be used between 5 and 10 p.m., so that the user can turn the living room light on or off by turning the knob when they return home from get off work; and configure the "bedroom light F" to be used between 10 and 12 a.m., so that the user can adjust the "bedroom light F" before going to sleep.
[0055] Of course, the above examples are merely illustrative. The specific basis for determining the target device currently controlled by the target control accessory can be configured by those skilled in the art according to actual needs, and this disclosure does not impose any restrictions on this.
[0056] Step 104: Determine the adjustment range of the target control accessory on the target device based on the drive information, and issue an adjustment command to the target device according to the adjustment range so that the target device adjusts according to the adjustment range.
[0057] In this disclosure, after determining the target device currently controlled by the target control device, the adjustment range of the target control accessory on the target device can be determined based on the drive information. Based on the determined adjustment range, an adjustment command is issued to the target device so that the target device adjusts according to the adjustment range.
[0058] In this disclosure, the adjustment range of the target control accessory on the target device can be determined in a variety of ways based on the drive information.
[0059] In one embodiment, the drive information reported by the target control accessory may include the adjustment change amount of the target control accessory. Under this premise, upon receiving the drive information, the adjustment range of the target control accessory due to being driven can be determined based on the adjustment change amount contained in the drive information and the total adjustment amount of the target control accessory. At this time, the adjustment range can be used as the adjustment range of the target device.
[0060] For example, assuming the target control accessory is a knob, the drive information can include the change in scale caused by the knob's rotation. Based on this, the change in scale reported by the knob can be read, and the rotation amplitude caused by the drive can be calculated based on the change in scale and the total scale value of the knob. This rotation amplitude is then used as the adjustment amplitude of the target device. For instance, if the brightness of a lamp is changed by a knob, and the total rotation angle of the knob is 270 degrees, and the user rotates it by 54 degrees to increase the knob's scale, then the rotation amplitude of the knob can be determined to be "20%". Therefore, the corresponding lamp can increase its brightness by 20%.
[0061] In another embodiment, the drive information reported by the target control accessory may not include the adjustment change amount, but rather the absolute value of the parameters of the target control accessory after it is driven. In this embodiment, after receiving the drive information, the parameter change amount caused by the target control accessory being driven can be calculated based on the absolute value of the parameters of the target control accessory after it is driven and the recorded absolute value of the parameters of the target control accessory when it is not driven. Then, based on the parameter change amount and the total value of the parameters of the target control accessory, the adjustment range caused by the target control accessory being driven can be determined as the adjustment range of the target device.
[0062] For example, taking a knob as the target control component, assuming the drive information contains the scale value after the user rotates the knob, then upon receiving the drive information, the change in the knob's scale can be calculated based on the scale value read from the drive information and the recorded original scale value of the knob. Based on this change in scale and the total scale value of the knob, the rotation amplitude of the knob caused by the drive can be calculated, and this rotation amplitude can be used as the adjustment amplitude of the target device. For instance, assuming the brightness of a lamp is changed by the knob, if the scale value in the drive information is 108 and the recorded original scale value is 81, then the calculated change in scale is 27. With a total knob rotation angle of 270 degrees, the knob rotation amplitude can be determined to be 10%. In this case, the corresponding lamp can increase its brightness by 10%.
[0063] It should be understood that the user's operation of the target control accessory may be discontinuous. For example, if the target control accessory is a knob, the user may not hold the knob properly, causing the knob to slip and thus perform two rotation operations. In this case, the knob will report two drive information. If, as in the previous embodiment, the reported information is the adjustment change amount, then if the first drive information is lost, the adjustment range will not match the user's operation. However, in this embodiment, since the reported information is the absolute value of the parameter after drive, and the basis for calculating the adjustment range is the absolute value of the parameter and the absolute value of the parameter when not driven, it is unrelated to the lost drive information. Therefore, even if the first drive information is lost, the adjustment range can be accurately calculated and matches the range of the knob driven by the user.
[0064] In this disclosure, in addition to directly using the adjustment range of the target control accessory as the adjustment range of the target device, a mapping relationship between the adjustment range of the accessory and the adjustment range of the device can be constructed during the configuration stage, so that after determining the adjustment range of the target control accessory, the adjustment range of the target device can be determined by calculation.
[0065] In one embodiment, during the configuration phase, after obtaining the adjustment range of the target control accessory and the adjustment range of the target device, a scaling ratio between the adjustment range of the target control accessory and the adjustment range of the target device can be determined and recorded. Based on this, when it is necessary to control the target device through the target control accessory, the adjustment range of the target control accessory can be determined based on the aforementioned drive information, and the pre-recorded scaling ratio can be used to calculate the adjustment range of the target device based on the scaling ratio and the adjustment range of the accessory.
[0066] In another embodiment, during the configuration phase, after obtaining the adjustment range of the target control accessory and the adjustment range of the target device, the mapping relationship between the accessory adjustment range and the device adjustment range can be directly recorded as a mapping relationship between the accessory adjustment amplitude and the device adjustment amplitude. Based on this, upon receiving drive information, the accessory adjustment amplitude of the control accessory can be determined based on the content recorded in the drive information, and the proportion of the accessory adjustment amplitude in the accessory adjustment range can be calculated. The device adjustment amplitude can then be calculated based on this proportion and the device adjustment range, and the controlled device can be adjusted based on the device adjustment amplitude.
[0067] In this disclosure, it is also possible to configure "whether to allow the target control accessory to control the on / off state of the device". In this case, if the target device is determined to be in the off state, the configuration information of the target device can be obtained to determine whether the target control accessory is allowed to control the on / off state of the target device. If the obtained configuration information indicates that the target control accessory is allowed to control the on / off state of the target device, the above-mentioned operation of determining the adjustment range and issuing the adjustment command is performed. Otherwise, the above-mentioned operation of determining the adjustment range and issuing the adjustment command is not performed.
[0068] In other words, in this scenario, after identifying the target device, the system first determines whether the target device is currently off. If so, it obtains configuration information to determine whether the target control accessory is permitted to control the target device, and only if so, it performs the operations of determining the adjustment range and issuing the adjustment command. If the target device is on, the operations of determining the adjustment range and issuing the adjustment command can be performed directly.
[0069] Of course, the examples given here are merely illustrative. The specific additional configuration of the equipment can be determined by those skilled in the art based on actual needs. For example, the maximum adjustable range of the target control accessory on the target equipment can also be configured. In this case, once the adjustment range of the target control accessory exceeds the maximum adjustable range, the target equipment will no longer adjust according to the adjustment command. This disclosure does not impose any restrictions on this.
[0070] In this disclosure, a single device may contain only one adjustable parameter or multiple adjustable parameters. When only one adjustable parameter is included, the determined adjustment range can be defaulted to the adjustment range of that adjustable parameter. When multiple adjustable parameters are included, after identifying the target device, the target parameter for this drive can be determined from the multiple adjustable parameters of the target device, and the determined adjustment range can be used as the adjustment range of the target parameter. In this case, the criteria for determining the target parameter from the multiple adjustable parameters can be set according to actual needs. For example, the criteria may include at least one of "the operating mode of the target control accessory" and "the current time period".
[0071] For example, suppose the target control accessory is a knob, and the pre-set basis for determining the target parameter is the operating mode of the target control accessory. This knob has two modes: "pressed" and "normal." The target parameter configured for the "pressed" mode could be "color temperature," and the target parameter configured for the "normal" mode could be "brightness." In this case, if the identified target device is lamp A, and the received drive information indicates that the knob is in the pressed state, it can be determined that the knob is currently controlling the color temperature of lamp A. Therefore, the color temperature of lamp A is adjusted according to the knob's adjustment range. Similarly, the basis for determining the target parameter can also be the current time period, i.e., the target control accessory adjusts different parameters of the device at different times. Alternatively, the basis for determining the target parameter can include both the operating mode and the current time period. The execution logic for both is similar to the case where the basis is only the operating mode; the only difference is the judgment criterion, which will not be elaborated upon here.
[0072] It should be stated that the implementing entity of this disclosed technical solution can be any type of electronic device. For example, the electronic device can be a mobile terminal such as a smartphone or tablet computer, a fixed terminal such as a smart TV or PC (personal computer), or a gateway device for a home local area network. It should be understood that any electronic device with a certain data analysis capability can serve as the implementing entity of this disclosure. The specific type of electronic device used as the implementing entity of this disclosed technical solution can be determined by those skilled in the art based on actual needs, and this disclosure does not impose any restrictions in this regard.
[0073] In addition, the implementing entity of this disclosed technical solution can also be the cloud, that is, the drive information of the target control accessory is reported to the cloud, and the cloud performs the operations of determining the adjustment range and issuing adjustment commands. This method can reduce the burden on local devices, but the latency is relatively high.
[0074] It should also be noted that the target control accessory in this disclosure can be either a segmented control accessory or a continuous control accessory. For example, a segmented control accessory can be a multi-stage lever, a segmented button, etc.; while a continuous control accessory can be a knob, a continuous lever, etc. Of course, the specific form of the target control accessory can be determined by those skilled in the art according to actual needs. For example, the target control accessory can also be a conventional switch, and this disclosure does not limit this.
[0075] Furthermore, the implementing entity, the target control accessory, and the controllable device can transmit information in different ways. For example, they can be connected via a wired connection; or wirelessly, in which case all three can belong to the same network for information transmission. They can also connect via Bluetooth technology. Alternatively, the implementing entity can communicate with the target control accessory via Bluetooth but with the controllable device via a local area network. The specific method of information transmission can be determined by those skilled in the art based on actual needs, and this disclosure does not impose any restrictions on it.
[0076] As can be seen from the above technical solution, this disclosure can pre-configure at least one controllable device for the target control accessory, so that when the drive information reported by the target control accessory due to being driven is received, the target device currently controlled by the target control accessory can be determined from the controllable device. Based on this, the adjustment range of the target control accessory on the target device can be determined based on the drive information, and an adjustment command can be issued to the target device based on the adjustment range so that the target device can adjust according to the adjustment range.
[0077] It should be understood that this disclosure is equivalent to pre-configuring several controllable devices for the target control accessory. On the one hand, by configuring multiple controllable devices, the inconvenience caused by a single control accessory being able to control only a single device in related technologies can be avoided. On the other hand, since the device controlled by the target control accessory is obtained through configuration, this disclosure can change the device controlled by the control accessory by modifying the configuration information, thus avoiding the problem of lack of flexibility in control relationships in related technologies.
[0078] This disclosure also discloses a method for configuring control accessories. It should be noted that this configuration method only introduces the technical solution of this disclosure from a configuration perspective. Most operations, such as how to configure controllable devices and how to determine target devices, have been described above, and related content will not be repeated hereafter. Please refer to the above description for details.
[0079] Figure 2 This is a flowchart illustrating a method for configuring a control accessory, which is an exemplary embodiment of this disclosure.
[0080] like Figure 2As shown, the method may include the following steps:
[0081] Step 202: Receive a configuration instruction for the target control accessory, the configuration instruction including the accessory identifier of the target control accessory and the device identifier of at least one controllable device controlled by the target control accessory as indicated by the user.
[0082] In this disclosure, users can configure different devices as controllable devices of a target control accessory according to their own needs. For example, a target control accessory and multiple configurable devices can be displayed on the user's terminal. Based on this, the user can generate a configuration command to instruct the selected device to be configured as a controllable device of the target control accessory by selecting a device. The configuration command may include the accessory identifier of the target control accessory and the device identifier of at least one controllable device controlled by the target control accessory as indicated by the user.
[0083] Upon receiving the configuration instruction, the device identifier contained in the configuration instruction can be used to determine at least one controllable device selected by the user from a plurality of preset configurable devices, so as to configure the target control accessory as a control accessory for controlling the determined at least one controllable device.
[0084] Of course, the examples here are merely illustrative. In addition to configuring by selecting devices in the user terminal, the controllable devices can also be configured directly through the target control accessory. For example, when the target control accessory is manufactured, it can be pre-equipped with corresponding physical controls based on the multiple configurable devices configured for it. Under this premise, the user can initiate a configuration command by triggering the physical controls on the target control accessory to instruct the configurable device corresponding to the triggered physical control to be configured as a controllable device of the target control accessory. How to configure the controllable devices of the target control accessory can be determined by those skilled in the art according to actual needs, and this disclosure does not impose any restrictions on it.
[0085] Step 204: Determine at least one controllable device from a plurality of preset configurable devices based on the device identifier, and configure the target control accessory as a control accessory for controlling the at least one controllable device.
[0086] In this disclosure, when the configuration instruction includes device identifiers for multiple controllable devices, to distinguish the devices controlled by the target device in different scenarios, control conditions for the target control accessory to control each controllable device can be added to the configuration instruction. Under this premise, upon receiving the configuration instruction, a control scenario can be configured for each controllable device separately. Each controllable device's control scenario records a mapping relationship between the accessory identifier of the target control accessory, the device identifier of that controllable device, and the control conditions of that controllable device. It should be understood that the mapping relationship recorded in the control scenario of any controllable device is used to represent that, when the control conditions in that control scenario are met, the target control accessory is used to control the controllable device corresponding to that control scenario.
[0087] As mentioned above, the target control accessory can also include multiple operating modes, with different operating modes corresponding to different controllable devices; different controllable devices can also correspond to different time periods. Under this premise, the target control accessory can be used to control different devices at different time periods. In this case, the configuration instructions can also include the operating modes or time periods corresponding to different controllable devices.
[0088] As mentioned above, controllable devices may have multiple adjustable parameters. Therefore, control conditions for different parameters can be pre-configured. For example, as described above, each parameter can correspond to different operating modes of the target control accessory, or to different time periods. In such cases, the correspondence between different parameters and their respective operating modes, or between different parameters and their respective time periods, can also be added to the configuration instructions.
[0089] In this disclosure, the configuration instruction may also include a drive information reporting rule set for the target control accessory. Under this premise, after receiving the configuration instruction, the drive information reporting rule can be sent to the target control accessory so that the target control accessory can report drive information according to the reporting rule when it is driven.
[0090] In this disclosure, the reporting rule may include at least one of the following: the reporting frequency of drive information, the reporting mode of drive information, the setting content of each operation mode of the target control accessory, the function setting of at least one switch on the target control accessory, and the accessory adjustment range calculation rule for calculating the equivalent adjustment range based on the drive speed and drive amplitude.
[0091] The drive information reporting modes can include continuous reporting and final value reporting. The former indicates continuous reporting of drive information during the user's drive operation of the accessory, while the latter indicates reporting of drive information only after the user has finished driving the accessory. The settings for each operation mode can be the adjustment parameters or controlled devices corresponding to "press," "normal," and "pull up" as described above. The function settings for at least one of the target operation accessories can be the configuration information of the controlled devices corresponding to each switch of the target operation accessory, as described above. The accessory adjustment range calculation rule refers to the rule for calculating the equivalent adjustment range of the control accessory based on its drive speed and physical drive range. For example, assuming 2 represents the full speed of the control accessory, the speed at which the user adjusts the control accessory can be represented by any value from "0 to 2." Therefore, the rule can be "equivalent adjustment range = drive speed * drive range." If the user adjusts the control accessory at full speed 2, the actual adjustment range can be multiplied by two, and the calculated equivalent adjustment range can be written into the drive information for reporting. Of course, the examples given here are merely illustrative. The specific content that needs to be reported in the driving information can be set by those skilled in the art according to actual needs, and this disclosure does not impose any restrictions on it.
[0092] It is worth noting that when using the continuous reporting mode to report drive information, the action of the target control accessory in reporting drive information is related to the current drive stage. For example, if the target control accessory is a knob, the entire drive process of the knob can include three drive stages: "normal angle reporting stage," "stationary waiting stage," and "stop confirmation stage." In the normal angle reporting stage, the knob rotates continuously under user control, constantly reporting the angle generated by the drive. In the stationary waiting stage, the knob stops rotating, but angles are still reported at the same frequency, for example, for 1 second. If the knob is detected to be rotated again in this stage, it re-enters the "normal angle reporting stage." Conversely, if the knob is not detected to be rotated again in this stage, it enters the "stop confirmation stage." In this stage, even if the knob rotates again, the angle generated by the rotation is no longer reported. Of course, this example is only illustrative. How to report drive information can be set by those skilled in the art according to actual needs, and this disclosure does not limit this.
[0093] In this disclosure, the entity executing the configuration method, i.e. the entity receiving the configuration instructions, can be a user terminal, a gateway device of the network where the user terminal is located, or the cloud. The specific entity to which it is applied can be determined by those skilled in the art according to actual needs, and this disclosure does not impose any restrictions on it.
[0094] It is important to emphasize that the executing entity of the configuration method can be the same as or different from the executing entity of the aforementioned device control method. For example, the configuration method can be executed by the cloud to enable cloud synchronization when necessary, while the device control method can be executed by the gateway device of the network where the user terminal is located to ensure operational efficiency. Of course, this example is merely illustrative. Whether the two are executed by the same executing entity, and which executing entity is executed when they are executed by different entities, can be determined by those skilled in the art based on actual needs, and this disclosure does not impose any restrictions in this regard.
[0095] As can be seen from the above technical solution, through the configuration method disclosed herein, users can configure the controllable accessories of the control accessory according to their own needs, so that the same control accessory can be used to control different devices, avoiding the problem in related technologies where a single control accessory can only be used to control a single device. In addition, the device controlled by the control accessory can also be changed by modifying the configuration information, avoiding the problem in related technologies where the device controlled by the control accessory is fixed and cannot be changed, thus lacking flexibility.
[0096] The following section will use "configuring control scenarios for knobs" as an example to introduce the technical solution disclosed herein.
[0097] In this embodiment, scenario configuration is performed via the cloud, while execution relies on the gateway device of the user's home network. Before describing this embodiment, the architecture used to implement the method will be introduced first.
[0098] Figure 3 This is a schematic diagram illustrating an information transmission architecture as an exemplary embodiment of the present disclosure. Figure 3 As shown, this architecture includes a knob and the device to be controlled, as well as a user terminal 31, a cloud platform 32, and a gateway device 33. Below, the operations during the configuration phase and the control phase will be described separately based on the interaction between these three components:
[0099] I. Configuration Phase
[0100] The user terminal 31 may be equipped with an app (application service) for configuring controllable devices for the knob. Based on this, the user can launch the app, select at least one configurable device as the controllable device for the knob, and configure other information such as control conditions as described above. After configuration, the user terminal 31 can send configuration commands to the cloud 32.
[0101] Upon receiving a configuration command from the user terminal 31, the cloud terminal 32 can read the configuration information contained in the configuration command to create and manage scenes based on the configuration information. Each scene records the correspondence between a knob and a controllable device, as well as the control conditions under which this correspondence takes effect.
[0102] In this embodiment, the configuration instruction may further include indication information for specifying whether the requested generated "scene" should be configured as a cloud scene or a local scene. If configured as a local scene, the scene information is transmitted via... Figure 3 The information is sent to gateway device 33 in the manner shown, so that gateway device 33 can control the device according to the configured scenario; if the scenario is configured as a cloud scenario, the scenario information does not need to be sent to gateway device 33. Figure 3 The operations that were originally performed by the gateway device 33 are now performed by the cloud device 32.
[0103] It should be stated that, as Figure 3 As shown, the cloud-based 32 also provides an Edit interface, allowing users to modify created scenes by calling this interface. For example, since whether a scene is located locally or in the cloud directly affects the information reporting rate, users can modify the scene's control mode through the Edit interface. Specifically, when the scene is set to high-speed mode, it is located locally, i.e., the corresponding scene is set as a local scene. When the scene is set to normal mode, it is located in the cloud, i.e., the scene is set as a cloud scene.
[0104] It should also be noted that the cloud can maintain scene information created by different users, and scenes created by different users can be distinguished by the user's Usid. Specifically, when device control is required, scene information with the same Usid can be written into the same consumption queue, allowing for sequential consumption of scene information under the same Usid.
[0105] II. Control Phase
[0106] In this embodiment, the gateway device 33 can subscribe to the scene information managed by the cloud 32 to determine the configuration information uploaded by the user on demand. On the other hand, it can also obtain the status information of various home devices such as sensors and knobs reported by OT (Operational Technology) devices through the PubSub message engine, i.e., the publish / subscribe message engine, for device control.
[0107] Upon receiving information that the knob has been driven, the gateway device 33 can input the driving information and its corresponding scene information. Figure 3The MQ shown is a consumer queue, which is used by the various modules in the execution engine to process the information maintained in the consumer queue in sequence.
[0108] like Figure 3 As shown, the execution engine can contain three components: scene trigger, scene condition, and scene action. The scene trigger determines when to execute the scene, the scene condition checks if the conditions within the scene are met, and the scene action performs the corresponding operation when the scene conditions are met.
[0109] For example, when a knob controls a device, the scenetrigger receives the driving information reported by the knob because it is being driven, the scenecondition can be that the knob is in the pressed state, and the sceneaction performs the following operations: determine the currently controlled device, determine the execution scene (e.g., determine the adjustment range), issue adjustment commands, and instruct the device to adjust the parameters.
[0110] In this embodiment, the gateway device 33 can further summarize the execution of this control operation based on the execution information, that is, execute... Figure 3 The sceneactionlog shown.
[0111] The following will explain the process in two parts: scenario judgment and operation execution.
[0112] Figure 4 This is a flowchart illustrating a scene recognition method as an exemplary embodiment of the present disclosure. Figure 4 As shown, the method may include the following steps:
[0113] Step 401: Receive the drive information reported by the knob due to rotation.
[0114] In this embodiment, the knob may have a built-in sensor to obtain the knob's rotation information and the knob's current state information. Based on this, the rotation information and state information can be reported as driving information.
[0115] For example, the knob's sensor can be connected to the gateway device 33 via Bluetooth to report drive information to the gateway device 33 via Bluetooth.
[0116] Step 402: Determine whether the knob is a configured knob with controllable devices; if yes, proceed to step 403; if no, adjust the default controlled device.
[0117] In this embodiment, after receiving the drive information, the gateway device 33 can determine whether the knob is a configurable knob equipped with a controllable device.
[0118] For example, the drive information may include the knob's identifier. Based on this, the gateway device 33 can compare the identifier with the accessory identifiers in the configured scenarios. If there is a scenario configured for the knob, it proves that the knob is a configured knob with a controllable device, and then enters the operation of controlling the device according to the configured scenario; otherwise, it is regarded as a regular knob in the relevant technology, and then controls the device controlled by the knob by default.
[0119] For example, the code can set a new scene type for the configured knob mentioned above, with the field type=6; correspondingly, a scene type can also be configured for a knob set based on device requirements in related technologies, with the field type=1. Under this premise, this step can determine whether it is a configured knob by reading the scene type field.
[0120] Step 403: Obtain the scene information configured for the knob.
[0121] In this embodiment, if it is determined that the knob reporting the driving information is a configured knob with a scene, the scene information configured for the knob can be obtained to determine which device the user is currently controlling.
[0122] Step 404: Determine the scenario that matches the current state of the knob based on the driving information.
[0123] In this embodiment, the driving information includes the state information of the knob. Therefore, the scene matching the current state of the knob can be determined based on the state information.
[0124] For example, suppose the scenarios configured for this knob include "press - curtain X" and "normal - light fixture Y", and the knob is currently in the normal state. Therefore, it can be determined that the scenario matching the current state of the knob is the "normal - light fixture Y" scenario.
[0125] Step 405: Based on the driving information and the determined scenario, execute control operations for the devices in that scenario.
[0126] Following the example above, the lamp Y can be adjusted based on the driving information.
[0127] The control process of lamp Y will now be described in detail. It should be noted that although the control method described in the next embodiment follows the scene judgment in the previous embodiment, it does not imply a sequential relationship with the scene judgment operation. For example, since the absolute values reported by knobs such as those described below are usually recorded in the aforementioned drive information, the operation of reading these absolute values can be performed synchronously with the operation of reading the current state of the knob. It should be understood that the scene judgment and the device control described below can be considered as two independent execution logics, and the order of the steps in their actual execution can be adjusted according to requirements; this disclosure does not impose any limitations on this.
[0128] Figure 5 This is a flowchart illustrating a method for controlling a lamp with a knob, as shown in an exemplary embodiment of this disclosure.
[0129] like Figure 5 As shown, the method may include the following steps:
[0130] Step 501: Obtain the absolute value of the parameter reported by the knob due to rotation, and calculate the rotation difference.
[0131] Continuing with the example above, assuming the absolute value of the parameter reported by the knob is 30, while the absolute value of the parameter originally recorded by the gateway device 33 is 10, the rotation difference can be calculated to be 20.
[0132] Step 502: Obtain the maximum rotation value of the knob and calculate the proportion of the rotation difference.
[0133] Continuing with the example above, assuming the maximum rotation value of the knob is 100, the proportion of the rotation difference caused by this knob rotation can be calculated to be 20%.
[0134] Step 503: Obtain the current value of the lamp.
[0135] Following the example above, the gateway device 33 can also receive the status data of the lamps reported by the aforementioned OT device. This status data can include the current value of the lamp, for example, the current brightness of lamp Y can be 50.
[0136] Step 504: Determine the adjustment range of the lamp.
[0137] Following the example above, the adjustment range of lamp Y can be pre-recorded in gateway device 33 or reported by OT device. Assume that the brightness adjustment range of lamp Y is 100.
[0138] Step 505: Calculate the target value of the luminaire after adjustment based on the adjustment range and the current value of the luminaire.
[0139] Continuing with the example above, based on the brightness adjustment range of 100 and the rotation difference ratio of 20%, the adjustment value of lamp Y can be calculated to be 20. Since the current value of the lamp is 50, the target value after adjustment can be calculated to be 70.
[0140] Step 506: Send an adjustment command to the lamp to adjust the lamp to the target value.
[0141] Following the example above, an adjustment command can be issued to lamp Y to adjust the lamp to the target value of 70 brightness.
[0142] As can be seen from the above technical solution, this embodiment configures two scenes for the knob. In addition to controlling the lamp Y, it can also control the curtain X. Obviously, this avoids the situation in related technologies where a single control accessory can only control a single device. Moreover, the controlled device can be changed by modifying the configuration relationship, which increases the flexibility of device control.
[0143] Figure 6 This is a block diagram illustrating a device control apparatus according to an exemplary embodiment of this disclosure. (Refer to...) Figure 6 The device includes a determining unit 601 and an adjusting unit 602.
[0144] Upon receiving drive information reported by the target control accessory being driven, the determining unit 601 determines the target device currently controlled by the target control accessory from at least one controllable device configured for the target control accessory.
[0145] The adjustment unit 602 determines the adjustment range of the target control accessory on the target device based on the drive information, and issues an adjustment command to the target device according to the adjustment range so that the target device is adjusted according to the adjustment range.
[0146] Optionally, the target control accessory includes multiple operating modes, and the determining unit 601 is further used for:
[0147] Based on the current mode of the target control accessory contained in the drive information, a controllable device corresponding to the current mode is determined from at least one controllable device configured for the target control accessory, and is used as the target device currently controlled by the target control accessory.
[0148] Optionally, the determining unit 601 is further used for:
[0149] From at least one controllable device configured for the target control accessory, a controllable device corresponding to the current time period is determined as the target device currently controlled by the target control accessory.
[0150] Optionally, the adjustment unit 602 is further used for:
[0151] Based on the adjustment change of the target control accessory contained in the drive information, and the total adjustment of the target control accessory, the adjustment range of the target control accessory due to being driven is determined, and used as the adjustment range of the target device; or...
[0152] Based on the absolute values of the parameters of the target control accessory after it is driven, as contained in the drive information, and the absolute values of the parameters of the target control accessory when it is not driven, the parameter change caused by the driving of the target control accessory is calculated. Based on the parameter change and the total parameter value of the target control accessory, the adjustment range caused by the driving of the target control accessory is determined as the adjustment range of the target device.
[0153] Optionally, the adjustment unit 602 is also used for:
[0154] When the target device is in the off state, the configuration information of the target device is obtained to determine whether the target control accessory is allowed to control the on / off state of the target device;
[0155] If the configuration information indicates that the target control accessory is allowed to control the on / off state of the target device, the operation of determining the adjustment range and issuing the adjustment command will be performed; otherwise, the operation of determining the adjustment range and issuing the adjustment command will not be performed.
[0156] Optionally, the determining unit 601 is further used for:
[0157] From the multiple adjustable parameters of the target device, the target parameter for this drive is determined, and the determined adjustment range is used as the adjustment range of the target parameter;
[0158] The basis for determining the target parameter from the plurality of adjustable parameters includes at least one of the following: the operating mode of the target control accessory and the current time period.
[0159] Optionally, the target control accessory is a segmented control accessory or a continuous control accessory.
[0160] Figure 7 This is a block diagram illustrating a configuration device for a control accessory according to an exemplary embodiment of this disclosure. (Refer to...) Figure 7 The device includes a receiving unit 701 and a configuration unit 702.
[0161] The receiving unit 701 receives a configuration instruction for a target control accessory, the configuration instruction including an accessory identifier of the target control accessory and a device identifier of at least one controllable device controlled by the target control accessory as indicated by the user.
[0162] The configuration unit 702 determines at least one controllable device from a plurality of preset configurable devices based on the device identifier, and configures the target control accessory as a control accessory for controlling the at least one controllable device.
[0163] Optionally, the configuration instruction includes device identifiers for multiple controllable devices, and control conditions for the target control accessory to control each controllable device; the configuration unit 702 is further used for:
[0164] Configure control scenarios for each controllable device; the control scenario of any controllable device records the accessory identifier of the target control accessory, the device identifier of the controllable device, and the mapping relationship between the control conditions of the controllable device.
[0165] Wherein, if the control conditions in any control scenario are met, the target control accessory is used to control the controllable device corresponding to that control scenario.
[0166] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this disclosure according to actual needs. Those skilled in the art can understand and implement this without creative effort.
[0167] Accordingly, this disclosure also provides a device control apparatus, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement a device control method as described in any of the above embodiments, for example, the method may include: upon receiving drive information reported by a target control accessory being driven, determining, from at least one controllable device configured for the target control accessory, a target device currently controlled by the target control accessory; determining, based on the drive information, the adjustment range of the target control accessory on the target device, and issuing an adjustment command to the target device according to the adjustment range, so that the target device adjusts according to the adjustment range.
[0168] Accordingly, this disclosure also provides an electronic device, which includes a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors. The one or more programs include instructions for implementing the device control method as described in any of the above embodiments. For example, the method may include: upon receiving drive information reported by a target control accessory being driven, determining, from at least one controllable device configured for the target control accessory, a target device currently controlled by the target control accessory; determining, based on the drive information, the adjustment range of the target control accessory on the target device, and issuing an adjustment instruction to the target device according to the adjustment range, so that the target device adjusts according to the adjustment range.
[0169] Accordingly, this disclosure also provides a computer program product, including a computer program that, when executed by a processor, implements instructions for the device control method as described in any of the above embodiments. For example, the method may include: upon receiving drive information reported by a target control accessory being driven, determining, from at least one controllable device configured for the target control accessory, a target device currently controlled by the target control accessory; determining, based on the drive information, the adjustment range of the target control accessory on the target device; and issuing an adjustment instruction to the target device according to the adjustment range, so that the target device adjusts according to the adjustment range.
[0170] Figure 8 This is a block diagram illustrating an apparatus 800 for implementing a device control method according to an exemplary embodiment. For example, apparatus 800 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0171] Reference Figure 8 The device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.
[0172] Processing component 802 typically controls the overall operation of device 800, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
[0173] Memory 804 is configured to store various types of data to support the operation of device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0174] Power supply component 806 provides power to various components of device 800. Power supply component 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to device 800.
[0175] Multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0176] Audio component 810 is configured to output and / or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when device 800 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 804 or transmitted via communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
[0177] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0178] Sensor assembly 814 includes one or more sensors for providing status assessments of various aspects of device 800. For example, sensor assembly 814 may detect the on / off state of device 800, the relative positioning of components such as the display and keypad of device 800, changes in the position of device 800 or a component of device 800, the presence or absence of user contact with device 800, the orientation or acceleration / deceleration of device 800, and temperature changes of device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 814 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.
[0179] Communication component 816 is configured to facilitate wired or wireless communication between device 800 and other devices. Device 800 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, 4G LTE, 5G NR (New Radio), or combinations thereof. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 816 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0180] In an exemplary embodiment, the apparatus 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0181] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, which can be executed by a processor 820 of the device 800 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0182] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the disclosure herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0183] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
[0184] The above description is merely a preferred embodiment of this disclosure and is not intended to limit this disclosure. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.
Claims
1. A device control method, characterized in that, include: Upon receiving drive information reported by the target control accessory being driven, the target device currently controlled by the target control accessory is determined from at least one controllable device configured for the target control accessory. Based on the driving information, the adjustment range of the target control accessory on the target device is determined, and an adjustment command is issued to the target device according to the adjustment range, so that the target device is adjusted according to the adjustment range.
2. The method according to claim 1, characterized in that, The target control accessory includes multiple operating modes. Determining the target device currently controlled by the target control accessory from at least one controllable device configured for the target control accessory includes: Based on the current mode of the target control accessory contained in the drive information, a controllable device corresponding to the current mode is determined from at least one controllable device configured for the target control accessory, and is used as the target device currently controlled by the target control accessory.
3. The method according to claim 1, characterized in that, The step of determining the target device currently controlled by the target control accessory from at least one controllable device configured for the target control accessory includes: From at least one controllable device configured for the target control accessory, a controllable device corresponding to the current time period is determined as the target device currently controlled by the target control accessory.
4. The method according to claim 1, characterized in that, Determining the adjustment range of the target control accessory on the target device based on the drive information includes: Based on the adjustment change of the target control accessory contained in the drive information, and the total adjustment of the target control accessory, the adjustment range of the target control accessory due to being driven is determined, and used as the adjustment range of the target device; or... Based on the absolute values of the parameters of the target control accessory after it is driven, as contained in the drive information, and the absolute values of the parameters of the target control accessory when it is not driven, the parameter change caused by the driving of the target control accessory is calculated. Based on the parameter change and the total parameter value of the target control accessory, the adjustment range caused by the driving of the target control accessory is determined as the adjustment range of the target device.
5. The method according to claim 1, characterized in that, Determining the adjustment range of the target control accessory on the target device based on the drive information includes: The adjustment range of the target control accessory is determined based on the driving information; Obtain a scaling ratio calculated in advance based on the adjustment range of the target control accessory and the device adjustment range of the target device, and calculate the device adjustment range of the target device based on the scaling ratio and the adjustment range of the accessory.
6. The method according to claim 1, characterized in that, Also includes: When the target device is in the off state, the configuration information of the target device is obtained to determine whether the target control accessory is allowed to control the on / off state of the target device; If the configuration information indicates that the target control accessory is allowed to control the on / off state of the target device, the operation of determining the adjustment range and issuing the adjustment command will be performed; otherwise, the operation of determining the adjustment range and issuing the adjustment command will not be performed.
7. The method according to claim 1, characterized in that, Also includes: From the multiple adjustable parameters of the target device, the target parameter for this drive is determined, and the determined adjustment range is used as the adjustment range of the target parameter; The basis for determining the target parameter from the plurality of adjustable parameters includes at least one of the following: the operating mode of the target control accessory and the current time period.
8. The method according to claim 1, characterized in that, The target control accessory is either a segmented control accessory or a continuous control accessory.
9. A method for configuring control accessories, characterized in that, include: Receive a configuration instruction for a target control accessory, the configuration instruction including an accessory identifier of the target control accessory and a device identifier of at least one controllable device controlled by the target control accessory as indicated by the user; The at least one controllable device is determined from a plurality of preset configurable devices based on the device identifier, and the target control accessory is configured as a control accessory for controlling the at least one controllable device.
10. The method according to claim 9, characterized in that, The configuration instructions include device identifiers for multiple controllable devices, as well as control conditions for the target control accessory to control each controllable device. The step of configuring the target control accessory for controlling the at least one controllable device includes: Configure control scenarios for each controllable device; the control scenario of any controllable device records the accessory identifier of the target control accessory, the device identifier of the controllable device, and the mapping relationship between the control conditions of the controllable device. Wherein, if the control conditions in any control scenario are met, the target control accessory is used to control the controllable device corresponding to that control scenario.
11. The method according to claim 9, characterized in that, The configuration instructions also include drive information reporting rules set for the target control accessory; the method further includes: The drive information reporting rules are sent to the target control accessory so that the target control accessory reports drive information according to the drive information reporting rules when it is driven.
12. The method according to claim 11, characterized in that, The driver information reporting rule includes at least one of the following: The frequency of driving information reporting; The reporting mode of driving information; Component adjustment range calculation rules for calculating the equivalent adjustment range based on drive speed and drive amplitude.
13. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor implements the method as described in any one of claims 1-12 by executing the executable instructions.
14. A computer-readable storage medium storing computer instructions thereon, characterized in that, When executed by the processor, this instruction implements the steps of the method as described in any one of claims 1-12.
15. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1-12.
