Equipment control method and device, electric curtain, electronic equipment, readable storage medium and program product

By automatically controlling the light transmission of the light channel of the smart device in response to changes in ambient brightness, the problem of the single control method of the smart device is solved, and flexible device linkage operation is realized to adapt to the lighting requirements of different situations.

CN121806579APending Publication Date: 2026-04-07SHENZHEN LUMIUNITED TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-11
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

The existing control methods for smart devices are relatively rigid and monotonous, failing to meet the personalized needs of users. They require manual operation or timed automated operation, lacking flexibility.

Method used

By responding to changes in ambient brightness in the first space, the system automatically controls the target device in the second space to perform a target action that matches the triggering conditions, and adjusts the light transmission of the light channel between the first and second spaces, including the opening and closing of smart curtains, to adapt to the light change patterns of different seasons, times, and occasions.

Benefits of technology

It enables flexible control of intelligent devices, automatically adjusting the light transmission of the light channel according to changes in ambient brightness, without requiring manual operation or timer settings by the user, adapting to different lighting conditions and improving the flexibility of the control method.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121806579A_ABST
    Figure CN121806579A_ABST
Patent Text Reader

Abstract

The invention relates to an equipment control method and device, an electric curtain, electronic equipment, a readable storage medium and a program product. The method comprises the following steps: controlling a target device in a second space to execute a target action matched with a triggering condition in response to the situation that the environment brightness change condition of a first space meets the preset triggering condition; wherein the target action is used for adjusting the light passing quantity of a light channel between the first space and the second space; the light channel is a channel for light propagation; the light passing quantity represents the total quantity of the light passing through the light channel. By adopting the method, the flexibility of the control mode of the intelligent equipment can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet of Things (IoT) technology, and in particular to a device control method, apparatus, electric curtain, electronic device, computer-readable storage medium, and computer program product. Background Technology

[0002] With the rapid development of Internet of Things (IoT) technology, various smart devices (such as smart home devices) are becoming increasingly common, enabling the connection of various devices in a space to achieve intelligent control of these devices and automated application of smart scenarios.

[0003] Some smart devices can be controlled via smartphones or other devices to move. However, the control methods in these technologies are relatively rigid and simplistic. For example, users need to manually control the movement of the smart device by opening a client application, or set up timed automation to make the smart device move within a specific time period. The scenarios are relatively limited and cannot meet personalized user needs.

[0004] Therefore, there is a problem with the lack of flexibility in the control methods of intelligent devices in related technologies. Summary of the Invention

[0005] Therefore, it is necessary to provide a device control method, apparatus, electronic device, computer-readable storage medium, and computer program product that can improve the flexibility of the control method of intelligent devices in order to address the above-mentioned technical problems.

[0006] In a first aspect, this application provides a device control method, comprising: responding to a preset triggering condition being met by an ambient brightness change in a first space, controlling a target device in a second space to perform a target action matching the triggering condition; wherein the target action is used to adjust the light transmittance of a light channel between the first space and the second space; the light channel is a channel for light propagation; and the light transmittance characterizes the total amount of light passing through the light channel. In one embodiment, the ambient brightness change includes a light intensity trend, and the method further comprises: acquiring the light intensity of the first space collected at preset time intervals to obtain a light intensity sequence; and determining the light intensity trend of the first space based on the light intensity sequence. In one embodiment, the step of controlling a target device in a second space to perform a target action matching the trigger condition in response to a change in ambient brightness in the first space satisfying a preset trigger condition includes: if the light intensity trend is upward and the light intensity in the first space is greater than a first preset threshold, controlling the target device to perform a first action in the target action; or, if the light intensity trend is upward and the cumulative difference in light intensity in the first space within a first preset time period is greater than a first preset cumulative threshold, controlling the target device to perform a first action in the target action; wherein the first action is used to control light from the first space to enter the second space through the light channel, thereby increasing the ambient brightness of the second space. In one embodiment, the target device includes an opening / closing portion for adjusting the light transmittance, and controlling the target device to perform the first action in the target action includes: controlling the opening / closing portion to move from a current travel position to a first travel direction to a first target position; wherein, when the opening / closing portion is at the first target position, the light transmittance of the light channel between the first space and the second space is greater than when the opening / closing portion is at the current travel position. In one embodiment, the change in ambient brightness further includes the light intensity of the first space. The step of controlling the target device in the second space to perform a target action matching the trigger condition in response to the change in ambient brightness of the first space satisfying a preset trigger condition includes: if the light intensity of the first space is greater than a second preset threshold, controlling the target device to perform a second action in the target action; wherein the second action is used to block light from the first space from entering the second space through the light channel, thereby reducing the ambient brightness of the second space.In one embodiment, the target device includes an opening / closing portion for adjusting the light transmittance. Controlling the target device to perform the second action of the target action includes: controlling the opening / closing portion to move from a current travel position to a second travel direction to a second target position; wherein, when the opening / closing portion is at the second target position, the light transmittance of the light channel between the first space and the second space is less than when the opening / closing portion is at the current travel position. In one embodiment, responding to a preset trigger condition where the ambient brightness change in the first space satisfies a change in ambient brightness, controlling the target device in the second space to perform a target action matching the trigger condition includes: if the light intensity trend is decreasing and the light intensity of the first space is less than a third preset threshold, controlling the target device to perform the third action of the target action; or, if the light intensity trend is decreasing and the cumulative difference in light intensity of the first space within a second preset time period is greater than a second preset cumulative threshold, controlling the target device to perform the third action of the target action; wherein the third action is used to block light from the second space from entering the first space through the light channel. In one embodiment, the second preset threshold is greater than both the first preset threshold and the third preset threshold; the first preset threshold is a preset threshold corresponding to the first action in the target action, the first action being used to control light from the first space to enter the second space through the light channel, thereby increasing the ambient brightness of the second space; the third preset threshold is a preset threshold corresponding to the third action in the target action, the third action being used to block light from the second space from entering the first space through the light channel. In one embodiment, the method further includes: acquiring an object detection result in the second space; and, if the object detection result indicates the presence of a target object in the second space, executing the step of controlling a target device in the second space to perform a target action matching the trigger condition in response to a change in ambient brightness in the first space satisfying a preset trigger condition. In one embodiment, the method further includes: acquiring a resistance signal received by the target device during the execution of the target action by the target device; and controlling the target device to stop performing the target action in response to the resistance signal satisfying a preset condition.

[0007] Secondly, this application also provides a device control apparatus, comprising: a control module, configured to control a target device in a second space to perform a target action matching the triggering condition in response to a preset triggering condition being met by an ambient brightness change in a first space; wherein the target action is used to adjust the light transmittance of a light channel between the first space and the second space; the light channel is a channel for light propagation; and the light transmittance represents the total amount of light passing through the light channel.

[0008] Thirdly, this application also provides an electric curtain, which is disposed in a second space. The electric curtain includes a curtain body, a controller, and a driving device. The controller is electrically connected to the driving device. The controller is used to respond to changes in ambient brightness in a first space that meet preset trigger conditions, and instruct the driving device to control the curtain body to perform a target action matching the trigger conditions. The target action is used to adjust the light transmittance of the light channel between the first space and the second space. The light channel is a channel for light propagation. The light transmittance represents the total amount of light passing through the light channel. Fourthly, this application also provides an electronic device. The electronic device includes a memory and a processor. The memory stores a computer program, which, when executed by the processor, implements the steps of the above-described method. Fifthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the above-described method. Sixthly, this application also provides a computer program product. The computer program product includes a computer program, which, when executed by a processor, implements the steps of the above-described method.

[0009] The aforementioned device control method, apparatus, electric curtain, electronic device, computer-readable storage medium, and computer program product, by responding to changes in ambient brightness in a first space and satisfying preset trigger conditions, control a target device in a second space to execute a target action matching the trigger conditions. The target action is used to adjust the light transmittance of the light channel between the first and second spaces; the light channel is a path for light propagation; and the light transmittance represents the total amount of light passing through the light channel. Thus, preset device linkage operations can be automatically triggered based on changes in ambient brightness in the first space, enabling the target device in the second space to execute a target action matching the preset trigger conditions, thereby changing the light transmittance of the light channel between the first and second spaces. This achieves automatic adjustment of the light transmittance of the light channel between the first and second spaces based on light variation patterns in different seasons, times, and occasions, adapting to the required lighting conditions in different situations. This eliminates the need for users to manually control the movement of smart devices through a client application or to set timed automation to make smart devices move within a specific time period. This application automatically triggers preset device linkage operations based on changes in ambient brightness in the first space to meet user needs, effectively improving the flexibility of smart device control. Attached Figure Description

[0010] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0011] Figure 1 This is an application environment diagram of a device control method in one embodiment;

[0012] Figure 2 This is a flowchart illustrating a device control method in one embodiment;

[0013] Figure 3 This is a schematic diagram of a second space in one embodiment;

[0014] Figure 4 This is an interactive diagram of a device in one embodiment;

[0015] Figure 5 This is a schematic diagram illustrating the creation of a page to set parameters in a scenario involving motorized curtains, as shown in one embodiment.

[0016] Figure 6 This is a schematic diagram illustrating the duration of movement of a curtain configuration in one embodiment.

[0017] Figure 7 This is a schematic diagram illustrating the movement speed of a curtain configuration in one embodiment;

[0018] Figure 8 This is a flowchart illustrating a device control method in another embodiment;

[0019] Figure 9 This is a structural block diagram of a device control apparatus in one embodiment;

[0020] Figure 10 This is a diagram of the internal structure of an electronic device in one embodiment. Detailed Implementation

[0021] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0022] It should be noted that the terms "first," "second," etc., used in this application can be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from the second element. The terms "comprising" and "having," and any variations thereof, used in this application, are intended to cover non-exclusive inclusion. The term "multiple" used in this application refers to two or more. The term "and / or" used in this application refers to one of the embodiments, or any combination of multiple embodiments.

[0023] In one embodiment, Figure 1 This can be a schematic diagram of the implementation environment involved in the device control method. This implementation environment includes at least a user terminal 110, a smart device 130, a server 170, and network equipment. Figure 1In this context, network devices include gateway 150 and router 190, but this is not a specific limitation. User terminal 110, which can also be considered a user terminal or terminal, is used to deploy (or install) the client associated with smart device 130. This user terminal 110 can be a smartphone, tablet, laptop, desktop computer, smart control panel, or other electronic device with display and control functions, etc., without limitation. The client, associated with smart device 130, essentially involves the user registering an account and configuring smart device 130 within the client. This configuration includes adding a device identifier to smart device 130, so that when the client runs on user terminal 110, it can provide the user with functions such as device display and device control related to smart device 130. This client can be in the form of an application or a webpage; correspondingly, the interface for displaying the device on the client can be a program window or a webpage, without limitation. Smart device 130 is deployed in gateway 150 and communicates with gateway 150 through its own configured communication module, thereby being controlled by gateway 150. It should be understood that smart device 130 generally refers to one of multiple smart devices 130. This application embodiment only uses smart device 130 as an example; that is, this application embodiment does not limit the number or type of smart devices deployed in gateway 150. In one application scenario, smart device 130 is deployed in gateway 150 by accessing it through a local area network. The process of smart device 130 accessing gateway 150 through a local area network includes: gateway 150 first establishes a local area network, and smart device 130 joins the local area network established by gateway 150 by connecting to it. This local area network includes, but is not limited to, ZIGBEE or Bluetooth. The smart device 130 can be, but is not limited to, various smart home devices (or IoT devices), such as smart printers, smart fax machines, smart cameras, smart air conditioners, smart door locks, smart lights, or human body sensors, door and window sensors, temperature and humidity sensors, water immersion sensors, natural gas alarms, smoke alarms, wall switches, wall sockets, wireless switches, wireless wall sticker switches, cube controllers, curtain motors, millimeter-wave radars, etc., equipped with communication modules. Interaction between the user terminal 110 and the smart device 130 can be achieved through a local area network (LAN) or a wide area network (WAN). In one application scenario, the user terminal 110 establishes a wired or wireless communication connection with the gateway 150 through a router 190. This connection may include, but is not limited to, Wi-Fi, allowing the user terminal 110 and the gateway 150 to be deployed on the same LAN, thus enabling the user terminal 110 to interact with the smart device 130 via the LAN path.In another application scenario, user terminal 110 establishes a wired or wireless communication connection with gateway 150 through server 170. This connection could be made using methods including, but not limited to, 2G, 3G, 4G, 5G, and Wi-Fi. This allows user terminal 110 and gateway 150 to be deployed on the same wide area network, enabling user terminal 110 to interact with smart device 130 via the wide area network. Server 170 can also be considered as the cloud, cloud platform, platform, or server-side. It can be a single server, a server cluster consisting of multiple servers, or a cloud computing center composed of multiple servers.

[0024] In one exemplary embodiment, such as Figure 2 As shown, a device control method is provided. Taking the application of this method to an electronic device as an example, the electronic device can be... Figure 1 The user terminal 110, server 170, gateway 150, or controller in the target device are all included. The target device can be... Figure 1 The smart device 130 includes the following steps S210: Wherein:

[0025] Step S210: In response to the change in ambient brightness in the first space meeting the preset triggering conditions, control the target device in the second space to perform the target action that matches the triggering conditions.

[0026] The first space and the second space are two distinct spaces, which can be outdoor spaces, indoor spaces, or different functional indoor areas (such as different rooms, halls, corridors, etc.). Ambient brightness reflects the light intensity within a space and can be represented by measurable indicators such as illuminance (in Lux). Changes in ambient brightness in the first space refer to changes in the light intensity within that space, such as increased brightness, decreased brightness, or no change in brightness. The trigger condition is a pre-set condition used to trigger a target device to perform a corresponding target action. The target device is a smart device that needs to be controlled, capable of receiving control commands and executing corresponding actions. The target action is used to adjust the light transmission through the light channel between the first space and the second space. The light channel is the pathway for light propagation, and the light transmission represents the total amount of light passing through the light channel.

[0027] Specifically, the light channel can be a physical passage between a first space and a second space, allowing light to propagate between them. It can have fixed spatial boundaries and a light transmission path, including but not limited to windows, doorways, ventilation openings, and other pre-designed light-transmitting structures. Light throughput is a measure of the total amount of light passing through the light channel per unit time, specifically expressed as the luminous flux or illuminance passing through the light channel. Its magnitude is related to the actual light-transmitting area of ​​the light channel and the transmittance of the light-transmitting medium.

[0028] The target action performed by the target device is used to adjust the light transmittance of the light channel between the first space and the second space, such as increasing or decreasing the light transmittance of the light channel between the first space and the second space.

[0029] Taking the first space and the second space as an outdoor space and an indoor space, respectively, as an example, the electronic device can respond to changes in the ambient brightness of the outdoor space to meet preset trigger conditions, control the target device in the indoor space to perform a target action matching the trigger conditions, and adjust the light transmission of the light channel between the outdoor and indoor spaces. In this example, the light channel can be a window between the outdoor and indoor spaces, the target device can be a smart curtain on the window, and the target action of the smart curtain can be moving to the open position or moving to the closed position.

[0030] In some other embodiments, taking a balcony and a study as examples, the electronic device can respond to changes in the ambient brightness of the balcony that meet preset triggering conditions, controlling a target device in the study to perform a target action matching the triggering conditions, and adjusting the light transmission of the light channel between the balcony and the study. In this example, the light channel can be a sliding door between the balcony and the study, the target device can be a smart curtain on the sliding door, and the target action of the smart curtain can be moving to the open position or moving to the closed position.

[0031] In the aforementioned device control method, by responding to changes in the ambient brightness of the first space that meet preset trigger conditions, the target device in the second space is controlled to execute a target action matching the trigger conditions. The target action is used to adjust the light transmittance of the light channel between the first and second spaces; the light channel is a channel for light propagation; and the light transmittance represents the total amount of light passing through the light channel. Thus, preset device linkage operations can be automatically triggered based on changes in the ambient brightness of the first space, enabling the target device in the second space to execute a target action matching the preset trigger conditions, thereby changing the light transmittance of the light channel between the first and second spaces. This achieves automatic adjustment of the light transmittance of the light channel between the first and second spaces based on the light variation patterns of different seasons, times, and occasions, adapting to the required lighting conditions in different situations. This eliminates the need for users to manually control the movement of smart devices through a client application or to set timed automation to make smart devices move within a specific time period. This application can meet user needs simply by automatically triggering preset device linkage operations based on changes in the ambient brightness of the first space, effectively improving the flexibility of smart device control.

[0032] In some embodiments, the change in ambient brightness includes a light intensity trend, and the method further includes: acquiring the light intensity of a first space collected at preset time intervals to obtain a light intensity sequence; and determining the light intensity trend of the first space based on the light intensity sequence.

[0033] Among them, changes in ambient brightness can be characterized by light intensity trends, which reflect the changing trend of light intensity, such as an upward or downward trend.

[0034] Specifically, in the process of acquiring the changes in ambient brightness in the first space, the electronic device can acquire the light intensity of the first space collected at preset time intervals. The light intensity of the first space is sorted according to the acquisition time to obtain the light intensity sequence. Based on the light intensity sequence, the light intensity trend of the first space can be determined.

[0035] In practical applications, a photosensor can collect the light intensity of a first space at preset time intervals. The electronic device then uses this light intensity data to obtain a light intensity sequence. For example, if the preset time interval is 1 minute, continuously collecting the light intensity of the first space yields the following light intensity sequence (unit: Lux):

[0036] 1st minute: 8000

[0037] 2nd minute: 8500

[0038] 3rd minute: 9200

[0039] 4th minute: 10100

[0040] 5th minute: 11200

[0041] This confirms that the trend of light intensity is upward.

[0042] For example, by continuously collecting the light intensity of the first space, the following light intensity sequence (unit: Lux) is obtained:

[0043] 1st minute: 6000

[0044] 2nd minute: 5200

[0045] 3rd minute: 4300

[0046] 4th minute: 3200

[0047] 5th minute: 2000

[0048] Therefore, the trend of light intensity is determined to be downward.

[0049] The technical solution of this embodiment includes an ambient brightness change pattern, which includes a light intensity trend. This is achieved by acquiring the light intensity of a first space at preset time intervals to obtain a light intensity sequence; and then determining the light intensity trend of the first space based on the light intensity sequence. Thus, by acquiring the light intensity of the first space at preset time intervals, a light intensity sequence can be accurately obtained, allowing the determination of the light intensity trend of the first space to accurately reflect the ambient brightness changes in the first space.

[0050] In some embodiments, in response to a preset triggering condition being met by changes in ambient brightness in the first space, a target device in the second space is controlled to perform a target action matching the triggering condition. This includes: if the light intensity trend is upward and the light intensity in the first space is greater than a first preset threshold, the target device is controlled to perform a first action in the target action; or, if the light intensity trend is upward and the cumulative difference in light intensity in the first space within a first preset time period is greater than a first preset cumulative threshold, the target device is controlled to perform a first action in the target action; wherein the first action is used to control light from the first space to enter the second space through a light channel, thereby increasing the ambient brightness of the second space.

[0051] In specific implementation, when the electronic device responds to a preset trigger condition in response to changes in ambient brightness in the first space, and controls a target device in the second space to execute a target action matching the trigger condition, if the light intensity trend in the first space is upward and the light intensity in the first space rises above a first preset threshold, then it is determined that the changes in ambient brightness in the first space meet the preset trigger condition. This trigger condition—that the light intensity trend in the first space is upward and the light intensity in the first space rises above a first preset threshold—is then mapped to the first action in the target action. The electronic device can then control the target device to execute the first action in the target action. This first action controls the light from the first space to enter the second space through the light channel, thereby increasing the ambient brightness of the second space. For example, the first preset threshold is 11000 (unit: Lux), and the light intensity sequence of the first space (unit: Lux):

[0052] 8:05: 8000

[0053] 8:06:8500

[0054] 8:07: 9200

[0055] 8:08:10100

[0056] 8:09: 11200

[0057] The light intensity trend corresponding to the light intensity sequence is an upward trend, and the light intensity at 8:09 is greater than the first preset threshold of 11000. Therefore, the target device is controlled to perform the first action of controlling the light in the first space to enter the second space through the light channel, thereby increasing the ambient brightness of the second space.

[0058] For example, the first space is an outdoor space, the second space is an indoor space, and the target device is a smart curtain on the window (light channel) between the outdoor space and the indoor space. The first action can be that the smart curtain moves to the open position, so that the light from the outdoor space enters the indoor space through the window, thereby increasing the ambient brightness of the indoor space.

[0059] In some embodiments, if the light intensity trend of the first space is upward and the cumulative difference in light intensity of the first space within a first preset time period is greater than a first preset cumulative threshold, the target device can also be controlled to perform the first action in the target action.

[0060] The cumulative difference in light intensity refers to the total change in light intensity of the first space collected at preset time intervals within a preset time period.

[0061] When the light intensity trend in the first space is upward, the cumulative difference value of the light intensity in the first space within a first preset time period represents the cumulative increase in light intensity within the first preset time period (since the triggering condition limits the light intensity trend to upward, the cumulative difference value is positive in this embodiment). The first preset cumulative threshold is a threshold set for the cumulative difference value of light intensity when the light intensity trend is upward, used to determine whether the cumulative increase in light intensity in the first space reaches the critical value for triggering the first action.

[0062] For example, if the light intensity trend of the first space is upward, and the cumulative difference in light intensity of the first space exceeds the first preset cumulative threshold (e.g., 2000 lux, the specific value is set according to the actual situation) within the first preset time period (e.g., 3 minutes, the specific value is set according to the actual situation), then the target device is controlled to execute the first action in the target action.

[0063] For example, the light intensity sequence in the first space (unit: Lux):

[0064] 8:05: 8000

[0065] 8:06:8500

[0066] 8:07: 9200

[0067] 8:08:10100

[0068] 8:09: 11200

[0069] The light intensity trend is upward, and the cumulative difference in light intensity within the first preset duration of 3 minutes exceeds the first preset cumulative threshold of 2000 (8:06: 8500, 8:09: 11200, the cumulative increase in light intensity within 3 minutes is 11200-8500=2700), thus the triggering condition for controlling the target device to execute the first action is met.

[0070] The technical solution of this embodiment controls the target device to execute the first action of the target action if the light intensity trend is upward and the light intensity of the first space is greater than a first preset threshold; or, if the light intensity trend is upward and the cumulative difference in light intensity of the first space within a first preset time period is greater than a first preset cumulative threshold, controls the target device to execute the first action of the target action. The first action controls light from the first space to enter the second space through a light channel, increasing the ambient brightness of the second space. Thus, when the light intensity trend of the first space is upward, if the light intensity of the first space is greater than the first preset threshold, or if the cumulative difference in light intensity of the first space within a first preset time period is greater than the first preset cumulative threshold, controlling the target device to execute the first action of the target action, and controlling light from the first space to enter the second space through the light channel, can automatically supplement the brightness of the second space, giving it better lighting conditions. Simultaneously, by using multiple ambient brightness change judgment conditions for the first space, the problem of delayed or missed triggering of lighting supplementation caused by a single judgment logic is avoided, effectively improving the adaptability to complex lighting change scenarios.

[0071] In some embodiments, the target device includes an opening / closing portion for adjusting the amount of light transmitted. Controlling the target device to perform a first action in the target action includes: controlling the opening / closing portion to move in a first travel direction to a first target position; wherein, when the opening / closing portion is at the first target position, the amount of light transmitted through the light channel between the first space and the second space is greater than the amount of light transmitted through the light channel between the first space and the second space when the opening / closing portion is at the current travel position.

[0072] The target device may have one or more opening and closing parts, which serve as controlled parts of the target device. For example, taking a smart curtain, its opening and closing parts (such as the curtain fabric) can be considered as controlled parts. The controlled part may have a certain range of motion on the target device, allowing it to move within this range and controllably change its position. The range of motion characterizes the area within which the opening and closing part is allowed to move along the corresponding movement path. The position of the movement can be the location of the opening and closing part on its movement path. The direction of movement refers to the direction of movement of the opening and closing part on the movement track. For example, the direction of movement may include the opening and closing directions of the smart curtain fabric.

[0073] In this application, the opening direction can be used as the first travel direction, and the closing direction can be used as the second travel direction. The first target position can be the position to which the opening / closing part is to move along the corresponding motion path in the first travel direction.

[0074] In practical applications, the first target position can be represented by a numerical value within the stroke range. This value can be a value representing the stroke percentage, i.e., the first target position can be a first target stroke percentage, such as 50%, 100%, etc. The current stroke position refers to the current position of the opening / closing part on its movement path.

[0075] In a specific implementation, during the process of controlling the target device to perform the first action of the target action, the electronic device can control the opening and closing part to move from the current travel position to the first travel direction to the first target position. When the opening and closing part is at the first target position, the light transmission of the light channel between the first space and the second space is greater than the light transmission of the light channel between the first space and the second space when the opening and closing part is at the current travel position.

[0076] For example, in a morning wake-up scenario, when the light intensity in the outdoor space (first space) gradually increases (i.e., the light intensity trend is upward), and when the light intensity in the outdoor space is detected to rise above a first preset threshold, the smart curtains (target device) in the bedroom (second space) can be controlled to perform a first action. That is, the curtain fabric (opening / closing part) is controlled to move from its current travel position to a first travel direction to a first target position. For example, controlling the curtain fabric (opening / closing part) to move from its current travel position to the first travel direction to the first target position could mean controlling the curtain fabric to move from 0% travel ratio to 100% travel ratio to perform the action of opening the curtains. This ensures that when the curtain fabric is at 100% travel ratio, the amount of light passing through the window (light channel) between the outdoor space and the bedroom is greater than when the curtain fabric is at 0% travel ratio, thereby increasing the amount of light passing through the window (light channel) between the outdoor space and the bedroom and increasing the ambient brightness of the bedroom. For example, controlling the movement of the smart curtain's curtain (opening / closing part) from its current travel position to the first target position could mean controlling the curtain to move from a 20% travel percentage to an 80% travel percentage to open the curtain. This ensures that when the curtain is at 80% travel, the light transmission through the window (light channel) between the outside space and the bedroom is greater than when the curtain is at 20% travel, thus increasing the overall light transmission and brightening the bedroom environment. In practical applications, users can set the travel percentage corresponding to the first target position according to their specific needs.

[0077] Thus, as the outdoor sunlight gradually intensifies in the morning, automatically opening the curtains in the bedroom increases the amount of light entering through the windows (light channel) between the outdoor space and the bedroom, thereby increasing the ambient brightness of the bedroom and waking up the target object inside. This eliminates the need for users to set a specific time for the curtains to open. This automatic control of the curtains based on changes in outdoor ambient brightness is suitable for scenarios with early sunrises in summer and late sunrises in winter. It maintains the required level of indoor lighting without human intervention, achieving more intelligent device control.

[0078] In this embodiment, the target device includes an opening / closing section for adjusting the amount of light transmitted. By controlling the opening / closing section of the target device to move from the current travel position to the first travel direction to the first target position, the amount of light transmitted through the light channel between the first space and the second space when the opening / closing section is at the first target position is greater than the amount of light transmitted through the light channel between the first space and the second space when the opening / closing section is at the current travel position. This effectively increases the ambient brightness of the second space to meet the current lighting requirements of the second space.

[0079] In some embodiments, the change in ambient brightness further includes the illumination intensity of the first space. In response to the change in ambient brightness of the first space satisfying a preset trigger condition, the target device in the second space is controlled to perform a target action that matches the trigger condition. This includes: if the illumination intensity of the first space is greater than a second preset threshold, the target device is controlled to perform a second action in the target action. The second action is used to block light from the first space from entering the second space through the light channel, thereby reducing the ambient brightness of the second space.

[0080] In specific implementation, when the electronic device responds to the change in ambient brightness in the first space meeting the preset triggering condition, and controls the target device in the second space to perform a target action matching the triggering condition, if the light intensity in the first space is detected to be greater than the second preset threshold, it is determined that the change in ambient brightness in the first space meets the preset triggering condition. The triggering condition that the light intensity in the first space is greater than the second preset threshold is mapped to the second action in the target action. The electronic device can control the target device to perform the second action in the target action. The second action is used to block the light from the first space from entering the second space through the light channel, thereby reducing the ambient brightness of the second space.

[0081] In some embodiments, the second preset threshold may be greater than the first preset threshold to block light from the first space from entering the second space through the light channel when the ambient brightness of the first space is too strong. For example, the second preset threshold is 15000 (unit: Lux), and the detected illuminance of the first space is 15500 (unit: Lux), which is greater than the second preset threshold. Therefore, the target device is controlled to perform a second action to block light from the first space from entering the second space through the light channel, thereby reducing the ambient brightness of the second space.

[0082] For example, the first space is the outdoor terrace of the living room of a residence, the second space is the living room, the target device is the smart curtain on the window (light channel) between the outdoor terrace and the living room, and the second action can be that the smart curtain moves to the closed position to block the light from the outdoor terrace from entering the indoor living room through the window, thereby reducing the ambient brightness of the indoor space.

[0083] The technical solution of this embodiment further includes the change in ambient brightness in the first space. If the ambient brightness in the first space is greater than a second preset threshold, the target device is controlled to perform a second action in the target action. The second action is used to block light from the first space from entering the second space through the light channel, thereby reducing the ambient brightness of the second space. In this way, by accurately identifying strong light through the second preset threshold, the target device can be automatically triggered to perform a light-blocking action to block light from the first space from entering the second space through the light channel, thereby reducing the ambient brightness of the second space. No manual operation by the user is required, which can effectively isolate strong light from entering the second space and maintain the appropriate lighting environment required by the second space.

[0084] In some embodiments, the target device includes an opening / closing portion for adjusting the amount of light transmitted. Controlling the target device to perform a second action in the target action includes: controlling the opening / closing portion to move from a current travel position to a second travel direction to a second target position; wherein, when the opening / closing portion is at the second target position, the amount of light transmitted through the light channel between the first space and the second space is less than the amount of light transmitted through the light channel between the first space and the second space when the opening / closing portion is at the current travel position.

[0085] In this application, the opening direction can be used as the first stroke direction, and the closing direction can be used as the second stroke direction. The second target position can be the position to which the opening / closing part is to move along the corresponding motion path in the second stroke direction.

[0086] In practical applications, the second target position can be represented by a numerical value within the stroke range. This value can be a value representing the stroke percentage, i.e., the second target position can be a second target stroke percentage, such as 0%, 10%, etc. The current stroke position refers to the current position of the opening / closing part on its movement path.

[0087] In specific implementation, during the process of controlling the target device to perform the second action of the target action, the electronic device can control the opening and closing part to move from the current travel position to the second travel direction to the second target position. When the opening and closing part is at the second target position, the light transmission of the light channel between the first space and the second space is less than the light transmission of the light channel between the first space and the second space when the opening and closing part is at the current travel position.

[0088] For example, in a midday rest scenario, when the light intensity in the outdoor space (first space) exceeds a second preset threshold, the smart curtains (target device) in the bedroom (second space) can be controlled to perform a second action. That is, the curtain fabric (opening / closing part) is controlled to move from its current travel position to a second travel direction to a second target position. For instance, controlling the curtain fabric (opening / closing part) to move from its current travel position to the second travel direction to the second target position could mean controlling the curtain to move from 100% travel ratio to 0% travel ratio to close the curtain. This ensures that when the curtain is at 100% travel ratio, the amount of light passing through the window (light channel) between the outdoor space and the bedroom is less than when the curtain is at 0% travel ratio, thus reducing the amount of light passing through the window (light channel) between the outdoor space and the bedroom and decreasing the ambient brightness of the bedroom. For example, controlling the movement of the smart curtain's curtain (opening / closing part) from its current travel position to a second travel direction to a second target position could mean controlling the curtain to move from 90% travel ratio to 5% travel ratio to open the curtain. This ensures that when the curtain is at 90% travel ratio, the amount of light passing through the window (light channel) between the outdoor space and the bedroom is less than when the curtain is at 5% travel ratio, thus reducing the amount of light entering the window (light channel) between the outdoor space and the bedroom and decreasing the ambient brightness in the bedroom. In practical applications, users can set the travel ratio corresponding to the second target position according to their actual needs.

[0089] In this way, when the outdoor sunlight is too strong at midday, automatically closing the curtains in the bedroom can reduce the amount of light entering through the windows (light channel) between the outdoor space and the bedroom, thereby reducing the ambient brightness of the bedroom and restoring a darker environment suitable for a midday nap. At the same time, it reduces the indoor temperature rise caused by direct sunlight, thus meeting the needs of a midday rest.

[0090] In this embodiment, the target device includes an opening / closing part for adjusting the amount of light transmitted. By controlling the opening / closing part of the target device to move from the current travel position to the second travel direction to the second target position, the amount of light transmitted through the light channel between the first space and the second space when the opening / closing part is at the second target position is less than the amount of light transmitted through the light channel between the first space and the second space when the opening / closing part is at the current travel position. This achieves the technical effect of reducing the ambient brightness of the second space and improves the reliability of light adjustment.

[0091] In some embodiments, in response to the change in ambient brightness in the first space satisfying a preset trigger condition, a target device in the second space is controlled to perform a target action matching the trigger condition, including: if the light intensity trend is decreasing and the light intensity in the first space is less than a third preset threshold, the target device is controlled to perform a third action in the target action; or, if the light intensity trend is decreasing and the cumulative difference in light intensity in the first space within a second preset time period is greater than a second preset cumulative threshold, the target device is controlled to perform a third action in the target action; wherein the third action is used to block light from the second space from entering the first space through the light channel.

[0092] In specific implementation, when the electronic device responds to the change in ambient brightness in the first space and meets the preset triggering conditions, and controls the target device in the second space to perform a target action that matches the triggering conditions, if the light intensity trend in the first space is decreasing and the light intensity in the first space decreases to less than a third preset threshold, then it is determined that the change in ambient brightness in the first space meets the preset triggering conditions. The triggering condition that the light intensity trend in the first space is decreasing and the light intensity in the first space decreases to less than the third preset threshold establishes a mapping relationship with the third action in the target action. The electronic device can control the target device to perform the third action in the target action. This third action is used to block the light from the second space from entering the first space through the light channel.

[0093] For example, the third preset threshold is 500 (unit: Lux), and the light intensity sequence of the first space (unit: Lux):

[0094] 18:30: 800

[0095] 18:35: 600

[0096] 18:40: 450

[0097] The light intensity trend is downward, and the light intensity at 18:40 is less than the third preset threshold of 500. Therefore, the target device is controlled to perform a third action to block the light from the second space from entering the first space through the light channel.

[0098] For example, the first space is an outdoor space, the second space is an indoor space, the target device is a smart curtain on the window (light channel) between the outdoor space and the indoor space, and the third action can be that the smart curtain moves to the third target position to block the light from the second space from entering the first space through the light channel, so as to protect the privacy and safety of the target object in the second space.

[0099] In practical applications, the third action can specifically be the movement of the opening / closing part of the target device from its current travel position to the third target position in the second travel direction. The third target position can be the position to which the opening / closing part is to move along the corresponding movement path in the second travel direction.

[0100] Thus, in a nighttime scenario, when the light intensity in the outdoor space (first space) gradually weakens, i.e., the light intensity trend is downward, and when the light intensity in the outdoor space is detected to drop below the third preset threshold, the smart curtain (target device) in the bedroom (second space) can be controlled to perform a third action, such as controlling the curtain to move from 30% travel ratio (current travel position) to 0% travel ratio (third target position) to block the light from the bedroom from entering the outdoor space through the window, protecting the privacy and safety of the target object in the bedroom, avoiding false triggering caused by relying on a single threshold (such as occasional light fluctuations below the threshold), ensuring that the action is only performed when the outdoor light continues to darken and the indoor light really needs to be blocked, thus improving the reliability of control.

[0101] It is understood that in some embodiments, the second target position corresponding to the second action and the third target position corresponding to the third action may be the same or different. For example, the second target position corresponding to the second action may be 10% travel percentage (not fully closed position), and the third target position corresponding to the third action may be 0% travel percentage (fully closed position).

[0102] In some embodiments, if the light intensity trend is downward and the cumulative difference in light intensity in the first space within a second preset time period is greater than a second preset cumulative threshold, the target device can also be controlled to execute the third action in the target action. Here, the cumulative difference in light intensity refers to the total change obtained by statistically analyzing the light intensity of the first space collected at preset time intervals within the preset time period. When the light intensity trend in the first space is downward, the cumulative difference in light intensity in the first space within the second preset time period characterizes the cumulative decrease in light intensity within the second preset time period (since the triggering condition limits the light intensity trend to downward, the cumulative difference value is negative in this embodiment).

[0103] The second preset cumulative threshold is a threshold set for the cumulative difference in light intensity when the light intensity trend is downward. It is used to determine whether the cumulative decrease in light intensity in the first space reaches the critical value for triggering the third action.

[0104] For example, if the light intensity trend of the first space is decreasing, and the cumulative difference in light intensity of the first space within a second preset time period (e.g., 5 minutes, the specific value is set according to the actual situation) is greater than a second preset cumulative threshold (e.g., 250 lux, the specific value is set according to the actual situation), then the light intensity sequence of the first space (unit: Lux) is as follows:

[0105] 18:30: 1000

[0106] 18:35: 870

[0107] 18:40: 470

[0108] The light intensity trend is downward, and the cumulative difference in light intensity within the second preset duration of 5 minutes exceeds the second preset cumulative threshold of 250 (18:35: 870, 18:40: 470, the cumulative decrease in light intensity within 5 minutes is 870-470=300), thus the triggering condition for the control target device to execute the third action is met.

[0109] In some embodiments, the first preset duration and the second preset duration may be equal or unequal, and the user can set them according to actual needs.

[0110] The technical solution of this embodiment controls the target device to execute the third action of the target action if the light intensity trend is decreasing and the light intensity of the first space is less than a third preset threshold; or, if the light intensity trend is decreasing and the cumulative difference in light intensity of the first space within a second preset time period is greater than a second preset cumulative threshold, controls the target device to execute the third action of the target action. This effectively blocks light from the second space from entering the first space through the light channel. By using two environmental brightness change judgment conditions, it can accurately respond to both regular sunset scenarios where the light intensity steadily decreases to a critical value and special scenarios where the light intensity drops rapidly in a short period of time. This avoids the problem of light leakage protection or protection delay caused by a single judgment logic, protects the privacy of activities in the second space, and effectively improves the adaptability to complex lighting change scenarios.

[0111] In some embodiments, the preset time intervals set for collecting the light intensity sequence of the first space can be the same in different scenarios (or time periods) (e.g., the light intensity of the first space can be collected at the same time interval (e.g., 1 minute) from 6:00 to 9:00 in the morning and from 17:00 to 20:00 in the evening). This eliminates the need to adjust the time intervals separately for different time periods, making the logic simpler and more suitable for ordinary users unfamiliar with parameter configuration or for scenarios with stable lighting environments.

[0112] In some other embodiments, when there is a significant difference in the rate of change of light intensity between morning and evening (e.g., a sudden increase in light intensity during cloudy mornings and no fluctuation during sunny evenings, or vice versa), or when there is a higher requirement for the response speed of judging the trend of light intensity during a certain period, different time intervals can be set. For example, a shorter time interval (e.g., 1 minute) can be used for periods of rapid light change to capture instantaneous fluctuations, while a longer time interval (e.g., 5 minutes) can be used for periods of slow light change to avoid data redundancy and ensure that the judgment of light intensity trend is accurate and efficient in both scenarios.

[0113] In some embodiments, the second preset threshold is greater than the first preset threshold and the third preset threshold; in other embodiments, the first preset threshold may be greater than the third preset threshold.

[0114] In practical applications, the first, second, and third preset thresholds can be default values ​​pre-set by the system. For example, based on the lighting patterns and spatial functional requirements of a living scenario, data-calibrated default values ​​can be configured for the three preset thresholds, enabling basic lighting response functions without manual user settings. For instance, the first preset threshold (corresponding to the first action: introducing light) has a default value of 500 lux (suitable for morning scenes); the second preset threshold (corresponding to the second action: blocking strong light) has a default value of 15000 lux (suitable for midday strong light scenes); and the third preset threshold (corresponding to the third action: blocking light leakage) has a default value of 300 lux (suitable for evening scenes).

[0115] By pre-setting default values, after installing the target device (such as smart curtains), users only need to start the system to automatically respond to changes in light intensity in the morning, noon, and evening, lowering the barrier to entry and making it suitable for ordinary users who are not familiar with light parameters.

[0116] For example, the first space is an open-air balcony, the second space is a living room, the light channel is the living room's floor-to-ceiling window, and the target device is a smart curtain. When the outdoor light intensity gradually increases from dim to 500 lux (the first preset threshold) in the morning, the smart curtain is triggered to move in the first direction to the first target position, controlling the light from the open-air balcony to enter the living room through the floor-to-ceiling window. When the outdoor light intensity suddenly rises to 15,000 lux (the second preset threshold) at midday, the smart curtain is triggered to move in the second direction to the second target, blocking the light from the open-air balcony from entering the living room through the floor-to-ceiling window. When the outdoor light intensity gradually decreases in the evening to 300 lux (the third preset threshold), the smart curtain is triggered to block the living room light from leaking out through the window, protecting privacy. In this way, by using different threshold values, a precise response to changes in light intensity in different spaces is achieved, realizing the scene adaptability and flexibility of the threshold settings.

[0117] In some other embodiments, the client also provides a threshold adjustment entry, allowing users to modify the values ​​of three preset thresholds based on their location, spatial function, and personal habits. For example, in high-latitude regions (such as Northeast China), where sunrise light rises slowly in summer, users can lower the first preset threshold from 500 lux to 400 lux to trigger light introduction earlier; in low-latitude regions (such as Hainan), where midday light intensity easily exceeds 15,000 lux, users can raise the second preset threshold to 18,000 lux to avoid frequent shading actions. For example, if a bedroom requires a darker resting environment, users can raise the third preset threshold from 300 lux to 400 lux (blocking light leakage earlier); if a study requires more natural light, the first preset threshold can be lowered to 350 lux to extend the duration of light introduction. Furthermore, users who habitually wake up early can lower the first preset threshold to 450 lux to wake up earlier with natural light; users who value privacy can raise the third preset threshold to 350 lux to block indoor light leakage earlier. In this way, on the one hand, by setting the default value of the preset threshold, the user's operating cost can be reduced; on the other hand, through the personalized adjustment function, users can adjust the default preset threshold according to their personal needs to adapt to the differentiated needs of different regions, spaces and user habits, and avoid the limitation that a single threshold cannot cover multiple scenarios.

[0118] It is understood that, in addition to the first preset threshold being greater than the third preset threshold as indicated in the above embodiments, in other embodiments, the first preset threshold may also be equal to or less than the third preset threshold. Specifically, the first preset threshold and the third preset threshold can be set to equal values, and the function can be distinguished by the difference in the trend of light intensity (the first action needs an upward trend, and the third action needs a downward trend), so as not to cause false triggering. The first preset threshold can also be set to be less than the third preset threshold. When the first space has the characteristics of slow morning light rise (requiring a low threshold to allow early lighting) and rapid evening light drop (requiring a high threshold to protect in advance), the first preset threshold can be set to be less than the third preset threshold to ensure that both functions can be triggered in time, conforming to the environmental lighting pattern. For example, in high-latitude regions (such as Northeast China), the sunrise is late and the light is weak in winter (slow morning light rise, requiring the introduction of limited natural light as early as possible), and the sunset is early and the light drops sharply (indoor lights are prone to leak out too early in the evening, requiring early blocking). The first preset threshold can be set to 300 lux and the third preset threshold to 500 lux.

[0119] This application does not specifically limit the numerical relationship between the first preset threshold and the third preset threshold. As long as the trend of light intensity and the threshold can be judged in a coordinated manner, the first action (introducing light) and the third action (blocking light leakage) can be triggered respectively.

[0120] In some embodiments, the method further includes: acquiring object detection results in the second space; and, if the object detection results indicate the presence of a target object in the second space, executing a step of controlling a target device in the second space to perform a target action matching the triggering conditions, in response to a preset triggering condition being met by changes in ambient brightness in the first space. The object detection results can be used to indicate whether a target object exists in the second space. The target object can refer to a living object such as a human body.

[0121] In practice, the electronic device can acquire the object detection results in the second space. If the object detection results indicate that a target object exists in the second space, it can execute a step that responds to the changes in ambient brightness in the first space and satisfies the preset triggering conditions, and control the target device in the second space to perform the target action that matches the triggering conditions.

[0122] In practical applications, the second space can be equipped with detection devices (such as human sensors, radar devices, etc.) to detect the presence of target objects. These devices can probe the second space, acquire object detection results, and send these results to an electronic device. If the object detection results indicate the presence of a target object (such as a human body) in the second space, the electronic device can execute steps that respond to a preset trigger condition based on changes in ambient brightness in the first space, controlling the target device in the second space to perform a target action matching the trigger condition. In some embodiments, if the object detection results indicate the absence of a target object in the second space, the electronic device may not need to determine whether changes in ambient brightness in the first space meet the preset trigger condition, thus eliminating the need to control the target device, reducing its operation, and increasing energy efficiency.

[0123] For example, at midday, when the sensor detects someone in the bedroom (second space) and the photosensor detects that the light intensity in the outdoor space exceeds a second preset threshold, the electronic device can execute a step that responds to the change in ambient brightness in the first space meeting preset trigger conditions, controlling the smart curtains in the bedroom to perform a target action matching the trigger conditions. That is, it controls the smart curtains to perform the second action of the target action, blocking light from the outdoor space into the bedroom to prevent excessive ambient brightness from disturbing the person's midday nap, without requiring the user to manually close the smart curtains. Conversely, if no one is detected in the bedroom (second space), the electronic device does not need to control the smart curtains.

[0124] Alternatively, when the sensor detects someone in the meeting room (second space), and the photosensor detects that the light intensity in the outdoor space exceeds a second preset threshold, the electronic device can execute a step that responds to the change in ambient brightness in the first space meeting a preset trigger condition, controlling the smart curtains in the meeting room to perform a target action matching the trigger condition. That is, it controls the smart curtains to perform the second action of the target action to block light from the outdoor space from entering the meeting room, adapting to scenarios such as conference projection, without requiring the user to manually close the curtains. If no one is detected in the meeting room (second space), the electronic device also does not need to control the smart curtains.

[0125] The technical solution of this embodiment obtains object detection results in the second space; when the object detection results indicate the presence of a target object in the second space, it executes a step to control the target device in the second space to perform a target action matching the trigger conditions, in response to changes in ambient brightness in the first space meeting preset trigger conditions. Thus, by only executing the step of controlling the target device in the second space to perform a target action matching the trigger conditions when the object detection results indicate the presence of a target object in the second space, the lighting conditions in the second space can be made more suitable for the needs of the target object within the second space. Simultaneously, it avoids controlling the target device when no target object exists in the second space, thereby reducing energy waste.

[0126] It is understandable that, in some embodiments, the electronic device can control the target device in the second space to perform a target action without relying on object detection results, but directly based on whether the change in ambient brightness in the first space meets a preset trigger condition. For example, in a morning scene, it is not necessary to determine whether there is a target object in the second space. As long as the light intensity trend in the first space is upward and the light intensity in the first space is greater than a first preset threshold, the target device can be controlled to perform the first action of the target action, thereby controlling the light in the first space to enter the second space through the light channel, increasing the ambient brightness of the second space, and enabling the second space to achieve a better lighting state.

[0127] In some embodiments, the method further includes: acquiring a resistance signal received by the target device during the execution of the target action; and controlling the target device to stop executing the target action in response to the resistance signal meeting a preset condition. The resistance signal refers to a detectable physical signal generated by the target device during the execution of the target action due to external obstacles, changes in internal mechanical load, extreme environmental loads, or human intervention.

[0128] The resistance signal can include motor current signal (e.g., the current is stable during normal operation, but when strong winds cause the target equipment to be stuck or the curtain is manually pulled, the motor load increases and the current rises, and the abnormal change in current is the resistance signal), displacement sensor signal (e.g., when the user pulls the curtain in the opposite direction, the sensor detects that the curtain has a displacement in the opposite direction (e.g., 1-3cm), and this displacement signal in the opposite direction, combined with the change in motor current, constitutes the resistance signal in the manual pulling scenario), or torque sensor signal (e.g., when strong winds cause the curtain to be continuously subjected to lateral tension, the motor output torque increases abnormally, and the torque over-range signal detected by the sensor is also a resistance signal), etc.

[0129] The preset conditions are pre-defined criteria used to determine whether the target device should stop operating. For example, preset conditions may include: the resistance signal strength exceeding a preset safety threshold. When the resistance signal strength exceeds the preset safety threshold, the target device is controlled to stop performing the target action. For instance, if the curtain (opening / closing part) of a smart curtain (target device) is blocked by a hand during the closing process, the drive motor current suddenly increases from the normal operating current of 0.5A to 1.2A. The preset current safety threshold is 1.0A. At this time, 1.2A > 1.0A, meaning the resistance signal meets the threshold condition, and the opening / closing part is controlled to stop closing, ensuring the safety of the device and the user.

[0130] For example, the preset conditions may include: the duration for which the resistance signal exceeds a threshold reaches a preset duration. For instance, if a smart curtain encounters a strong wind during its closing process, causing the curtain to become stuck, the motor current rises from the normal 0.5A to 0.9A (the preset environmental adaptation threshold is 0.8A), and this current state lasts for 1.2 seconds (exceeding the preset duration of 1 second), at which point the resistance signal meets the condition, controlling the motor to stop running to prevent the strong wind from causing motor overload damage.

[0131] For example, the preset conditions may include: the resistance signal contains characteristics of both reverse force and reverse displacement. For the manual stop function, when the resistance signal simultaneously meets both the reverse force threshold (e.g., motor current reverse fluctuation exceeding 0.3A) and the reverse displacement threshold (e.g., the displacement sensor detects the curtain moving in the reverse direction by 2cm), the conditions are deemed met, and it is considered a user-triggered stop command. For instance, if a user manually pulls to stop an opening curtain by gently tugging in the opposite direction, the motor current will instantly fluctuate in the reverse direction by 0.4A (exceeding the reverse force threshold of 0.3A), and simultaneously the displacement sensor will detect the curtain moving in the reverse direction by 2.1cm (exceeding the displacement threshold of 2cm). The combination of these conditions satisfies the requirement, and the motor stops running without waiting for the current to continuously exceed the threshold, resulting in a more timely response.

[0132] For example, the preset conditions may include: for scenarios such as obstruction by foreign objects, when the resistance signal exceeds the device protection threshold and the displacement sensor detects that the curtain has no movement (stationary state) for a preset time (e.g., 0.5 seconds), the condition is determined to be met, thus preventing the motor from burning out due to idling. For example, if a toy gets stuck in the curtain track, the motor current rises to 1.2A (the device protection threshold is 1.1A), and the curtain remains stationary for 0.6 seconds, the motor stops after the condition is met, protecting the motor from damage.

[0133] The technical solution of this embodiment acquires a resistance signal received by the target device during the execution of the target action; in response to the resistance signal meeting a preset condition, it controls the target device to stop executing the target action. Thus, if a resistance signal meeting a preset condition is received during the execution of the target action, the safety of the target device and / or the target object physically interacting with the target device is effectively protected by controlling the target device to stop executing the target action.

[0134] In some embodiments, an electric curtain is provided, which is disposed in a second space. The electric curtain includes a curtain body, a controller, and a drive device. The controller is electrically connected to the drive device. The controller is used to respond to changes in ambient brightness in the first space that meet preset trigger conditions, and instruct the drive device to control the curtain body to perform a target action that matches the trigger conditions.

[0135] The target action is used to adjust the light transmission volume of the light channel between the first space and the second space; the light channel is a passage for light to propagate; the light transmission volume represents the total amount of light passing through the light channel. The curtain body may include curtain fabric. The controller may include a main control module that loads a main control chip module. The drive device may include a motor.

[0136] In some embodiments, the main control module may be located in the motor. The main control module is used to respond to changes in the ambient brightness of the first space that meet preset trigger conditions, and instruct the motor to control the curtain body to perform a target action that matches the trigger conditions. The target action is used to adjust the light transmission of the light channel between the first space and the second space. The light channel is a channel for light to propagate. The light transmission represents the total amount of light passing through the light channel.

[0137] In some other embodiments, such as Figure 3 The diagram illustrates a scenario where the bedroom serves as a second space. The motor of the electric curtains can connect to the user's account via Wi-Fi, and upon first use, the user can set a first, second, and third target location, which will then be used as reference points for subsequent travel.

[0138] The main control module uses data processing, logical judgment, and control signals to decide whether to open or close the curtains. A photosensitive sensor collects the real-time light intensity (in Lux) of the first space, such as collecting the light intensity of the outdoor space at preset time intervals, and outputs corresponding analog signals. After receiving the light intensity information, the main control module decides whether to open or close the bedroom curtains based on a user-defined threshold. Similarly, a person sensor outputs high and low levels to detect whether someone is in the bedroom, thus determining the presence of a target object. A high output of 1 indicates someone is present, and a low output of 0 indicates no one is present.

[0139] Light intensity information and object detection results are converted into electrical and digital signals and uploaded to the user's cloud account. The cloud then shares this information with other devices under the same account, providing them with a decision-making source for information input. Upon receiving the current information input (light intensity and object detection results), the curtain motor's main control module matches it to the user's set thresholds, such as whether the light intensity reaches a preset threshold and whether the person's status matches the set scenario. For example, in a midday rest scenario, if the outdoor light intensity exceeds a second preset threshold and the sensor detects someone in the indoor space, meeting the setting, the motor gradually closes the curtains to the second target position. If the light intensity detected by the photosensitive sensor does not reach the preset threshold, it is considered not to meet the scenario, and the motor does not respond. Additionally, if the motor encounters resistance during operation, this resistance is converted into an analog signal and transmitted to the motor's main control module. When the resistance signal meets preset conditions, the motor stops running, achieving the effect of stopping upon encountering resistance.

[0140] In some other embodiments, such as Figure 4The diagram illustrates the interaction between different devices, including a photosensor, a human presence sensor, a main control module, and a motor. The photosensor collects the light intensity in a first space, the human presence sensor detects the presence of a person in a second space, and the main control module instructs the curtain motor in the second space to control the curtain to perform a target action matching the trigger conditions when the ambient brightness change in the first space meets preset trigger conditions. For example, if the light intensity in the first space is increasing and greater than a first preset threshold, the motor controls the curtain to open (moving in the first travel direction to a first target position); if the light intensity in the first space is greater than a second preset threshold, the motor controls the curtain to close (moving in the second travel direction to a second target position); if the light intensity is decreasing and less than a third preset threshold, the motor controls the curtain to close (moving in the second travel direction to a third target position). Thus, when the first space is an outdoor space and the second space is an indoor space, the photosensor monitors the external light intensity in real time and automatically triggers the curtains to open and close (e.g., gradually opening in the morning and gradually closing in the evening). This maintains optimal indoor lighting without manual intervention. Simultaneously, it dynamically responds to extreme light changes (e.g., strong midday sunlight) to avoid glare or overheating, improving living comfort. For example, in an office setting, the curtains can automatically open to let in natural light before employees arrive (when no one is present and there is morning light); if someone is detected during midday's strong sunlight, the curtains will partially close to prevent screen glare; and the curtains will automatically close after get off work to enhance privacy and security.

[0141] In some other embodiments, in an office meeting scenario, when a person is detected by the sensor and the light intensity collected by the photosensitive sensor exceeds the second preset threshold, the main control module immediately sends a closing command to the motor. After receiving the command, the motor controls the curtain to move in the second travel direction. After successful execution, the firmware reports the current position (such as the travel ratio) and displays it to the user on the client front-end page.

[0142] Similarly, in the morning wake-up scenario, the light intensity trend is upward. After receiving the input information, the main control module can gradually open the curtains within a period of time set by the user (default 30 minutes). Depending on the different exercise time, the motor will reach the set travel point at different speeds. The exercise speed is manually set by the user in the client to better conform to the human body's biological rhythm.

[0143] For the autonomous risk identification of the elderly / children, the judgment is mainly based on the resistance signal input at the motor end. When the motor is running, if it is accidentally pulled by an elderly person / child at home, and the resistance signal received at the motor end meets the reverse force threshold and the reverse displacement threshold, it will be transmitted to the motor's main control module. After receiving this information input, the main control module will immediately input a pause command to the motor, thereby avoiding safety problems.

[0144] In this way, the opening and closing status of the curtains is determined comprehensively through multiple sensors and multiple states to adapt to different indoor scenarios. The motor input information integrates light intensity information and the presence of people in the sensor, enabling intelligent decision-making compared to the timed opening and closing of curtains in related technologies. In scenarios where the sunlight is too strong at midday in summer or where there are people in a meeting, the curtains can be intelligently closed, and the closing stroke ratio can be customized. In addition, this dual-sensor redundancy design can also reduce the false judgment rate (such as avoiding false triggering due to brief shadows).

[0145] In some embodiments, users can set parameters such as the threshold of light intensity, the movement speed of the target device, the duration of movement, and the travel position on the scene creation page. Figure 5 The diagram illustrates how to set parameters on a scene creation page for motorized curtains. Users can create different scene modes (such as morning wake-up, midday rest, evening closing, meeting room, etc.) and set the curtain's target travel position (such as first target position, second target position, third target position), movement speed, and duration of movement. Figure 6 and Figure 7 The diagram illustrates how to configure the duration and speed of curtain movement. The duration indicates the time it takes for the curtain to reach a target position, while the speed can be set to medium, high, or low, each corresponding to a different movement speed. By setting the duration and speed, the curtain can be moved to a specified position according to the user's habits. For example, setting a longer duration or slower speed allows the curtain to move gradually (e.g., opening and closing slowly), reducing mechanical impact, noise, and wear, and better conforming to human circadian rhythms, avoiding sudden changes in light.

[0146] In another embodiment, such as Figure 8The diagram illustrates a flowchart of a device control method, comprising the following steps: Step S802: Obtaining the illumination intensity of a first space collected at preset time intervals to obtain an illumination intensity sequence. Step S804: Determining the illumination intensity trend of the first space based on the illumination intensity sequence. Step S806: If the illumination intensity trend is upward and the illumination intensity of the first space is greater than a first preset threshold, or if the cumulative difference in illumination intensity of the first space within a first preset time period is greater than a first preset cumulative threshold, controlling the target device to execute the first action in the target action. Step S808: If the object detection result in the second space indicates the presence of a target object in the second space, and the illumination intensity of the first space is greater than a second preset threshold, controlling the target device to execute the second action in the target action. Step S810: If the object detection result indicates the presence of a target object in the second space, and the illumination intensity trend is downward and the illumination intensity of the first space is less than a third preset threshold, or if the cumulative difference in illumination intensity of the first space within a second preset time period is greater than a second preset cumulative threshold, controlling the target device to execute the third action in the target action. Step S812: During the execution of the target action by the target device, acquire the resistance signal received by the target device. Step S814: In response to the resistance signal meeting a preset condition, control the target device to stop executing the target action. It should be noted that the specific limitations of the above steps can be found in the specific limitations of a device control method described above, and will not be repeated here.

[0147] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.

[0148] Based on the same inventive concept, this application also provides a device control apparatus for implementing the device control method described above. The solution provided by this apparatus is similar to the implementation scheme described in the above method; therefore, the specific limitations in one or more device control apparatus embodiments provided below can be found in the limitations of the device control method described above, and will not be repeated here.

[0149] In one exemplary embodiment, such as Figure 9 As shown, a device control apparatus is provided, including: a control module 910, wherein: the control module 910 is used to control a target device in a second space to perform a target action matching the triggering condition in response to a preset triggering condition being met by an ambient brightness change in a first space; wherein the target action is used to adjust the light transmittance of a light channel between the first space and the second space; the light channel is a channel for light propagation; the light transmittance represents the total amount of light passing through the light channel.

[0150] In one embodiment, the change in ambient brightness includes a light intensity trend, and the device further includes: a light intensity acquisition module, configured to acquire the light intensity of the first space acquired at preset time intervals to obtain a light intensity sequence; and to determine the light intensity trend of the first space based on the light intensity sequence. In one embodiment, the control module 910 is configured to control the target device to perform a first action in the target action if the light intensity trend is upward and the light intensity of the first space is greater than a first preset threshold; or, configured to control the target device to perform a first action in the target action if the light intensity trend is upward and the cumulative difference in light intensity of the first space within a first preset time period is greater than a first preset cumulative threshold; wherein the first action is used to control the light from the first space to enter the second space through the light channel, thereby increasing the ambient brightness of the second space. In one embodiment, the target device includes an opening / closing portion for adjusting the light transmittance. The control module 910 controls the opening / closing portion to move from a current travel position to a first travel direction to a first target position. When the opening / closing portion is at the first target position, the light transmittance of the light channel between the first space and the second space is greater than when the opening / closing portion is at the current travel position. In one embodiment, the ambient brightness change also includes the illuminance of the first space. The control module 910 controls the target device to perform a second action in the target action if the illuminance of the first space is greater than a second preset threshold. The second action blocks light from the first space from entering the second space through the light channel, thereby reducing the ambient brightness of the second space. In one embodiment, the target device includes an opening / closing portion for adjusting the light transmittance, and the control module 910 is used to control the opening / closing portion to move from the current travel position to the second travel direction to the second target position; wherein, when the opening / closing portion is located at the second target position, the light transmittance of the light channel between the first space and the second space is less than the light transmittance of the light channel between the first space and the second space when the opening / closing portion is located at the current travel position.In one embodiment, the control module 910 is configured to control the target device to perform a third action in the target action if the light intensity trend is decreasing and the light intensity of the first space is less than a third preset threshold; or, to control the target device to perform a third action in the target action if the light intensity trend is decreasing and the cumulative difference in light intensity of the first space within a second preset time period is greater than a second preset cumulative threshold; wherein the third action is used to block light from the second space from entering the first space through the light channel. In one embodiment, the second preset threshold is greater than both the first and third preset thresholds; the first preset threshold is a preset threshold corresponding to the first action in the target action, and the first action is used to control light from the first space to enter the second space through the light channel, thereby increasing the ambient brightness of the second space; the third preset threshold is a preset threshold corresponding to the third action in the target action, and the third action is used to block light from the second space from entering the first space through the light channel. In one embodiment, the device further includes: an object detection module, configured to acquire object detection results in the second space; and, if the object detection results indicate the presence of a target object in the second space, execute the step of controlling a target device in the second space to perform a target action matching the triggering condition in response to a preset triggering condition arising from a change in ambient brightness in the first space. In one embodiment, the device further includes: a stop module, configured to acquire a resistance signal received by the target device during the execution of the target action; and, in response to the resistance signal satisfying a preset condition, control the target device to stop executing the target action.

[0151] Each module in the aforementioned equipment control device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the electronic device in hardware form or independent of it, or stored in the memory of the electronic device in software form, so that the processor can call and execute the operations corresponding to each module.

[0152] In one exemplary embodiment, an electronic device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 10As shown. The electronic device includes a processor, memory, input / output interface (I / O), and communication interface. The processor, memory, and I / O interface are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interface. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database stores preset trigger condition data. The I / O interface allows the processor to exchange information with external devices. The communication interface allows communication with external terminals via a network connection. When the computer program is executed by the processor, it implements a device control method. Those skilled in the art will understand that... Figure 10 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the electronic device to which the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0153] In one embodiment, an electronic device is also provided, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments. In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, it implements the steps in the above-described method embodiments. In one embodiment, a computer program product is provided, including a computer program, which, when executed by a processor, implements the steps in the above-described method embodiments. It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with relevant regulations. Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when the computer program is executed, it can include the processes of the embodiments of the above methods. Any reference to memory, database, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in this application may include at least one of relational databases and non-relational databases. Non-relational databases may include distributed databases based on blockchain, etc., and are not limited thereto.The processors involved in the various embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited thereto. The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as the combination of these technical features does not contradict each other, it should be considered within the scope of this application. The above embodiments only illustrate several implementation methods of this application, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of this application's patent. It should be noted that for those skilled in the art, several modifications and improvements can be made without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A device control method, characterized in that, The method includes: In response to changes in ambient brightness in the first space that meet preset triggering conditions, the target device in the second space is controlled to perform a target action that matches the triggering conditions. The target action is used to adjust the light transmittance of the light channel between the first space and the second space; the light channel is a channel for light to propagate; the light transmittance represents the total amount of light passing through the light channel.

2. The method according to claim 1, characterized in that, The changes in ambient brightness include trends in light intensity, and the method further includes: The illumination intensity of the first space is acquired at preset time intervals to obtain an illumination intensity sequence; The illumination intensity trend of the first space is determined based on the illumination intensity sequence.

3. The method according to claim 2, characterized in that, The response to changes in ambient brightness in the first space satisfying preset triggering conditions, controlling the target device in the second space to perform a target action matching the triggering conditions, includes: If the light intensity trend is upward and the light intensity of the first space is greater than a first preset threshold, the target device is controlled to perform the first action in the target action; Alternatively, if the light intensity trend is upward, and the cumulative difference in light intensity of the first space within a first preset time period is greater than a first preset cumulative threshold, the target device is controlled to perform the first action in the target action; The first action is used to control the light from the first space to enter the second space through the light channel, thereby increasing the ambient brightness of the second space.

4. The method according to claim 3, characterized in that, The target device includes an opening and closing section for adjusting the light transmittance, and controlling the target device to perform the first action in the target action includes: The opening and closing portion is controlled to move from the current travel position to the first travel direction to the first target position; wherein, when the opening and closing portion is located at the first target position, the light transmittance of the light channel between the first space and the second space is greater than the light transmittance of the light channel between the first space and the second space when the opening and closing portion is located at the current travel position.

5. The method according to claim 2, characterized in that, The change in ambient brightness also includes the light intensity of the first space. The response to the change in ambient brightness in the first space satisfying a preset trigger condition, controlling the target device in the second space to perform a target action matching the trigger condition, includes: If the light intensity of the first space is greater than the second preset threshold, the target device is controlled to perform the second action in the target action; The second action is used to block light from the first space from entering the second space through the light channel, thereby reducing the ambient brightness of the second space.

6. The method according to claim 5, characterized in that, The target device includes an opening and closing portion for adjusting the light transmittance, and controlling the target device to perform the second action in the target action includes: The opening and closing portion is controlled to move from the current travel position to the second travel direction to the second target position; wherein, when the opening and closing portion is located at the second target position, the light transmittance of the light channel between the first space and the second space is less than the light transmittance of the light channel between the first space and the second space when the opening and closing portion is located at the current travel position.

7. The method according to claim 2, characterized in that, The response to changes in ambient brightness in the first space satisfying preset triggering conditions, controlling the target device in the second space to perform a target action matching the triggering conditions, includes: If the light intensity trend is decreasing and the light intensity of the first space is less than a third preset threshold, the target device is controlled to perform the third action in the target action; Alternatively, if the light intensity trend is a decreasing trend, and the cumulative difference in light intensity of the first space within a second preset time period is greater than a second preset cumulative threshold, the target device is controlled to perform the third action in the target action; The third action is used to block light from the second space from entering the first space through the light channel.

8. The method according to claim 5, characterized in that, The second preset threshold is greater than the first preset threshold and the third preset threshold; the first preset threshold is the preset threshold corresponding to the first action in the target action, the first action is used to control the light in the first space to enter the second space through the light channel, so as to increase the ambient brightness of the second space; the third preset threshold is the preset threshold corresponding to the third action in the target action, the third action is used to block the light in the second space from entering the first space through the light channel.

9. The method according to any one of claims 1 to 8, characterized in that, The method further includes: Obtain the object detection results in the second space; If the object detection result indicates that a target object exists in the second space, the step of controlling the target device in the second space to perform a target action that matches the trigger condition is executed in response to the change in ambient brightness in the first space satisfying the preset trigger condition.

10. The method according to any one of claims 1 to 8, characterized in that, The method further includes: During the process of the target device performing the target action, the resistance signal received by the target device is acquired; In response to the resistance signal meeting a preset condition, the target device is controlled to stop performing the target action.

11. A device control apparatus, characterized in that, The device includes: The control module is used to control the target device in the second space to perform a target action that matches the triggering conditions in response to changes in ambient brightness in the first space that meet preset triggering conditions. The target action is used to adjust the light transmittance of the light channel between the first space and the second space; the light channel is a channel for light to propagate; the light transmittance represents the total amount of light passing through the light channel.

12. An electric curtain, characterized in that, The motorized curtain is installed in the second space. The motorized curtain includes a curtain body, a controller, and a drive device. The controller is electrically connected to the drive device. The controller is used to respond to changes in the ambient brightness of the first space that meet preset trigger conditions, and instruct the drive device to control the curtain body to perform a target action matching the trigger conditions. The target action is used to adjust the light transmission of the light channel between the first space and the second space. The light channel is a channel for light propagation. The light transmission represents the total amount of light passing through the light channel.

13. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 10.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 10.

15. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 10.