Intelligent light control method, device, equipment, medium and product
By creating a mapping relationship table between the wake-up mode and the night-time mode in the smart lighting system and combining it with location and time zone information, the gateway automatically selects the mode and switches the logical state, solving the trigger conflict problem between the wake-up mode and the night-time mode, realizing segmented lighting control, and improving the user experience.
Patent Information
- Application Number
- CN202510937046.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-08
- Publication Date
- 2025-09-12
AI Technical Summary
In existing intelligent lighting control systems, the trigger switches for the waking mode and the night-time mode are prone to conflict, causing the lighting system to malfunction and reducing the user experience.
By creating a mapping relationship table between the waking mode and the night mode, and combining location information, time zone, and day and night status, the gateway automatically selects and triggers the corresponding mode, and switches the logical state in the sleep state to prevent misoperation, thereby realizing segmented lighting control.
Accurately receive wireless switch information to prevent interference from misoperation, ensure the lighting system works normally in different states, and enhance user experience.
Smart Images

Figure CN120640495A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet of Things technology, and in particular to an intelligent lighting control method, device, equipment, medium and product. Background Art
[0002] In existing smart lighting control systems, the Wake-Up Mode and Night-Wake-Up Mode are two independent functional modes, and users need to configure and use both modes simultaneously. However, in practice, it has been found that when setting the switch trigger rules for Night-Wake-Up Mode, the trigger switch for switching Night-Wake-Up Mode from sleep to normal state often conflicts with the trigger switch for switching from Night-Wake-Up Mode to Wake-Up Mode, resulting in the situation where both the Wake-Up Mode and the Night-Wake-Up Mode are triggered simultaneously. This situation can cause the lighting system to malfunction and reduce the user experience. Summary of the Invention
[0003] The purpose of this application is to provide an intelligent lighting control method, device, equipment, medium and product that can enhance the user experience.
[0004] To achieve the above objectives, this application provides the following solutions:
[0005] In a first aspect, the present application provides an intelligent lighting control method, comprising:
[0006] Receive any key information sent by the wireless switch; the any key information includes: the identifier of the wireless switch and the current key position information of the wireless switch;
[0007] Confirm the current logical state of the night-time waking mode corresponding to the pre-created mapping relationship table of the night-time waking mode;
[0008] If the current logic state of the night-time waking mode is the sleep state, the logic state of the night-time waking mode is switched to the normal state, and the normal triggering logic of the key information of the wireless switch is restored;
[0009] Get the current time including year, month, date, time, minutes and seconds according to the time zone, and calculate the sunrise and sunset times of the day based on the year, month and date in the current time and the preset location information;
[0010] Determining whether it is daytime or nighttime based on the current time, sunrise and sunset times, and preset parameters of the daytime and nighttime states;
[0011] If it is daytime, obtain the associated waking mode ID according to the mapping relationship table of the night waking mode; obtain the actuator device information and light segment control parameters from the pre-created mapping relationship table of the waking mode according to the associated waking mode ID; and perform light segment control on the actuator device according to the light segment control parameters;
[0012] If it is night time, obtain the waking up scene according to the mapping relationship table of the waking up mode; and start the control of the waking up scene.
[0013] Optionally, before receiving any key information sent by the wireless switch, the method further includes:
[0014] Get the preset parameters of location information, time zone and day / night status;
[0015] Synchronizing the location information, the time zone, and the preset parameters of the day and night state to the gateway; wherein the location information represents the current latitude and longitude information of the gateway; and the preset parameters of the day and night state represent the relative time of day and night and sunrise and sunset times each day;
[0016] Creating a mapping relationship table for the waking mode, wherein the mapping relationship table for the waking mode represents a mapping relationship between the waking mode ID, actuator device information, lighting segment control parameters, wireless switch identifier and key position information, and the associated night mode ID;
[0017] Synchronize the mapping relationship table of the waking mode to the gateway;
[0018] Creating a mapping relationship table for the night-waking mode, wherein the mapping relationship table for the night-waking mode represents a mapping relationship between the night-waking mode ID, the sleep scene, the night-waking scene, the identifier and key position information of the wireless switch, and the associated waking mode ID;
[0019] Synchronize the mapping relationship table of the night-time waking mode to the gateway;
[0020] The gateway establishes a corresponding logical state for the night-time waking mode according to the mapping relationship of the night-time waking mode, wherein the logical state includes a normal state and a sleep state; the initial logical state of the night-time waking mode is a normal state;
[0021] The gateway receives the key information sent by the wireless switch, and automatically selects and triggers the waking mode or the night-time mode based on the mapping relationship table of the waking mode and the mapping relationship table of the night-time mode, as well as the current day and night state and the logical state of the night-time mode.
[0022] Optionally, the method further includes:
[0023] Receive first key information sent by the wireless switch; the first key information includes: an identifier of the wireless switch and first key position information of the wireless switch;
[0024] Matching the wireless switch identifier and the first key position information of the wireless switch with the wireless switch identifier and the first key position information in the mapping relationship table of the waking mode;
[0025] If the match is successful, confirm the current logical state of the night mode corresponding to the target night mode ID according to the target night mode ID associated in the mapping relationship table of the night mode;
[0026] If the current logical state of the night-time waking mode is normal, obtain the actuator device information and lighting segment control parameters in the mapping relationship table of the waking mode;
[0027] The light segmentation control is performed on the actuator device according to the light segmentation control parameters.
[0028] Optionally, performing segmented lighting control on the actuator device according to the segmented lighting control parameter specifically includes:
[0029] The lighting segment control parameters include the brightness state parameters of the actuator devices corresponding to the four control stages and the delay parameters between each control stage; the four control stages and the delay between each control stage are executed in a fixed order;
[0030] The gateway obtains the brightness state parameter of the actuator device corresponding to the first control stage from the lighting segment control parameter, and sets the state of the actuator device to the state corresponding to the brightness state parameter of the actuator device corresponding to the first control stage;
[0031] The gateway obtains the delay parameter between the first control stage and the second control stage from the lighting segment control parameter, and executes the corresponding waiting time according to the delay parameter;
[0032] The gateway obtains the brightness state parameter of the actuator device corresponding to the second control stage from the lighting segment control parameter, and sets the state of the actuator device to the state corresponding to the brightness state parameter of the actuator device corresponding to the second control stage;
[0033] The gateway obtains the delay parameter between the second control stage and the third control stage from the lighting segment control parameter, and executes the corresponding waiting time according to the delay parameter;
[0034] The gateway obtains the brightness state parameter of the actuator device corresponding to the third control stage from the lighting segment control parameter, and sets the state of the actuator device to the state corresponding to the brightness state parameter of the actuator device corresponding to the third control stage;
[0035] The gateway obtains the delay parameter between the third control stage and the fourth control stage from the lighting segment control parameter, and executes the corresponding waiting time according to the delay parameter;
[0036] The gateway obtains the actuator device brightness state parameter corresponding to the fourth control stage from the lighting segment control parameter, and sets the actuator device state to the state corresponding to the actuator device brightness state parameter corresponding to the fourth control stage.
[0037] Optionally, the method further includes:
[0038] receiving second key information sent by the wireless switch, wherein the second key information includes: an identifier of the wireless switch and second key position information of the wireless switch;
[0039] Confirm the current logical state of the night-time waking mode corresponding to the mapping relationship table of the night-time waking mode;
[0040] If the current logical state of the night-time waking mode is a normal state, matching the wireless switch identifier and the second key position information of the wireless switch with the wireless switch identifier and the second key position information in the mapping relationship table of the night-time waking mode;
[0041] If the match is successful, the logic state of the night mode is switched to the sleep state;
[0042] When the logic state of the night mode is the sleep state, the normal trigger logic of the wireless switch button information is temporarily blocked;
[0043] Obtaining the sleep scene in the mapping relationship table of the nighttime waking mode;
[0044] Start the control of the sleep scene.
[0045] In a second aspect, the present application provides an intelligent lighting control device, comprising:
[0046] A receiving unit, configured to receive any key information sent by the wireless switch; the any key information includes: an identifier of the wireless switch and current key position information of the wireless switch;
[0047] A confirmation unit, used to confirm the current logical state of the night-time waking mode corresponding to the pre-created mapping relationship table of night-time waking modes;
[0048] A switching unit, configured to switch the logic state of the night-time waking mode to a normal state if the current logic state of the night-time waking mode is a sleep state, and restore the normal triggering logic of the key information of the wireless switch;
[0049] A first acquiring unit is configured to acquire a current time including year, month, date, time, minutes, and seconds according to a time zone, and calculate sunrise and sunset times of the current day based on the year, month, and date in the current time and in combination with preset location information;
[0050] a determination unit, configured to determine whether it is currently daytime or nighttime based on the current time, sunrise and sunset times, and preset parameters of the daytime and nighttime states;
[0051] a second acquiring unit configured to, if it is daytime, acquire an associated waking up mode ID according to the mapping relationship table of the night waking up mode; acquire actuator device information and light segmentation control parameters from a pre-created mapping relationship table of the waking up mode according to the associated waking up mode ID; and perform light segmentation control on the actuator device according to the light segmentation control parameters;
[0052] The starting unit is used to obtain the night-getting scene according to the mapping relationship table of the night-getting mode if it is nighttime; and start the control of the night-getting scene.
[0053] In a third aspect, the present application provides a computer device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of any one of the above-described intelligent lighting control methods.
[0054] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the above-mentioned intelligent lighting control methods.
[0055] In a fifth aspect, the present application provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of any one of the above-mentioned intelligent lighting control methods.
[0056] In a sixth aspect, the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, the processor is used to run a program or instruction, and when the processor executes the program or instruction, it implements the steps of any one of the above-mentioned intelligent lighting control methods.
[0057] According to the specific embodiments provided in this application, this application discloses the following technical effects:
[0058] The present application provides an intelligent lighting control method, device, equipment, medium and product, which can accurately receive wireless switch information and confirm the current logical state of the night-time mode, switch the logic in time and restore the normal triggering of the button in the sleep state to prevent interference from erroneous operation; and accurately calculate the sunrise and sunset times in combination with the time zone and location information to accurately determine the day and night state. Based on this, during the day, the parameters of the waking mode can be obtained according to the night-time mode association, and the actuator equipment can be reasonably controlled in sections to meet the lighting needs of waking up; at night, the night-time scene control is quickly activated to avoid the conflict of control effects caused by the simultaneous triggering of the waking mode and the night-time mode in the sleep state, so that the lighting system can work normally, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0060] Figure 1 A diagram illustrating an application environment of an intelligent lighting control method provided in one embodiment of the present application;
[0061] Figure 2 A flowchart of an intelligent lighting control method provided in one embodiment of the present application;
[0062] Figure 3 A schematic diagram of the functional modules of an intelligent lighting control device provided in one embodiment of the present application;
[0063] Figure 4 A schematic diagram of the structure of a computer device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0064] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0065] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0066] The intelligent lighting control method provided in the embodiment of the present application can be applied to Figure 1The application environment shown can be a smart lighting system installed in a room. The application environment may include: wireless switches, actuator devices, gateways, mobile apps, etc.; the mobile app can be an application installed on the terminal device (such as a mobile phone, computer, etc.) of the smart lighting system user to control the smart lighting system. Actuator devices include but are not limited to lamps, driver power supplies, and other terminal controlled devices that support brightness and color temperature adjustment. In this system, the gateway, wireless switches, and actuator devices interact via the 2.4G wireless protocol, which includes but is not limited to low-power Bluetooth, Bluetooth Mesh, and proprietary protocols. The gateway is connected to the Ethernet via WiFi / wired network port, and the mobile app and gateway interact via Ethernet.
[0067] Wireless switch: Sends a switch button signal to the gateway to trigger the night mode and the wake-up mode.
[0068] Actuator device: Receives status control instructions from the gateway, executes corresponding status responses, and provides status feedback after the response.
[0069] Gateway: Control center, with built-in automatic time calibration and day and night status judgment logic, built-in functional logic for waking mode and night waking mode, responsible for sending status control instructions to actuator devices and receiving status feedback information from actuator devices, and receiving switch button signal data from wireless switches.
[0070] Mobile APP: Convert the preset parameters, configurations and mapping relationships of the wake-up mode and night-time mode into a data structure that the gateway can recognize, and synchronize this data to the gateway.
[0071] In an exemplary embodiment, Figure 2 As shown, an intelligent lighting control method is provided, which is executed by a computer device. Specifically, it can be executed by a computer device such as a terminal or a server alone, or by a terminal and a server together. In an embodiment of the present application, the method includes the following steps 201 to 207.
[0072] in:
[0073] Step 201: Receive any key information sent by the wireless switch.
[0074] In the embodiment of the present application, the arbitrary key information includes: an identifier of the wireless switch and current key position information of the wireless switch.
[0075] As an optional implementation, before step 201, the following steps may be further performed:
[0076] Get the preset parameters of location information, time zone and day / night status;
[0077] Synchronizing the location information, the time zone, and the preset parameters of the day and night state to the gateway; wherein the location information represents the current latitude and longitude information of the gateway; and the preset parameters of the day and night state represent the relative time of day and night and sunrise and sunset times each day;
[0078] Creating a mapping relationship table for the waking mode, wherein the mapping relationship table for the waking mode represents a mapping relationship between the waking mode ID, actuator device information, lighting segment control parameters, wireless switch identifier and key position information, and the associated night mode ID;
[0079] Synchronize the mapping relationship table of the waking mode to the gateway;
[0080] Creating a mapping relationship table for the night-waking mode, wherein the mapping relationship table for the night-waking mode represents a mapping relationship between the night-waking mode ID, the sleep scene, the night-waking scene, the identifier and key position information of the wireless switch, and the associated waking mode ID;
[0081] Synchronize the mapping relationship table of the night-time waking mode to the gateway;
[0082] The gateway establishes a corresponding logical state for the night-time waking mode according to the mapping relationship of the night-time waking mode, wherein the logical state includes a normal state and a sleep state; the initial logical state of the night-time waking mode is a normal state;
[0083] The gateway receives the key information sent by the wireless switch, and automatically selects and triggers the waking mode or the night-time mode based on the mapping relationship table of the waking mode and the mapping relationship table of the night-time mode, as well as the current day and night state and the logical state of the night-time mode.
[0084] Among them, by implementing this implementation method, the location information, time zone and day and night state preset parameters are accurately obtained and synchronized to the gateway, so that the gateway can accurately define the daytime and nighttime periods of each day based on the real geographical and time information, combined with the day and night state preset parameters, and provide a solid data foundation for the subsequent intelligent lighting control based on the difference between day and night. Secondly, a mapping relationship table for the waking mode and the night-time mode is created and synchronized to the gateway, and the mapping association between the key elements in different modes is clearly constructed, so that the lighting control can be accurately located to the corresponding control parameters and scenes based on the identification and key position information of the wireless switch, thus realizing the refinement and personalization of the lighting control. Furthermore, the gateway establishes a logical state for the night-time mode that includes normal and sleeping states, and is initially set to the normal state. This design cleverly simulates the actual usage scenario of users, and can flexibly switch mode states according to different time periods and user needs to avoid unnecessary mode triggering. Ultimately, the gateway automatically selects and triggers the waking or night-time mode based on comprehensive information, greatly improving the intelligence level of lighting control. It allows users to enjoy lighting services that fit the changes of day and night and usage scenarios without tedious manual operations, effectively enhancing the convenience and comfort of user use and comprehensively improving the user experience.
[0085] The location information indicates the current latitude and longitude of the gateway; and the preset parameters of the day and night state indicate the relative time of day and night and sunrise and sunset times.
[0086] In an embodiment of the present application, the logical state includes a normal state and a sleep state; the initial logical state of the night-time mode is the normal state.
[0087] The logical states in the embodiment of the present application include a normal state and a sleep state; the initial logical state of the night-time mode is the normal state.
[0088] Step 202: confirm the current logical state of the night-time waking mode corresponding to the pre-created mapping relationship table of the night-time waking mode.
[0089] Step 203: If the current logical state of the night-time waking mode is the sleep state, the logical state of the night-time waking mode is switched to the normal state, and the normal triggering logic of the key information of the wireless switch is restored.
[0090] Step 204, obtain the current time including year, month, date, time, minutes and seconds according to the time zone, and calculate the sunrise and sunset times of the day based on the year, month and date in the current time and the preset location information.
[0091] Step 205 , determining whether it is daytime or nighttime based on the current time, sunrise and sunset times, and preset parameters of the daytime and nighttime states.
[0092] Step 206: If it is daytime, obtain the associated waking mode ID according to the mapping relationship table of the night-time waking mode; obtain the actuator device information and light segment control parameters from the pre-created mapping relationship table of the waking mode according to the associated waking mode ID; and perform light segment control on the actuator device according to the light segment control parameters.
[0093] Step 207: If it is nighttime, obtain the waking up scene according to the mapping relationship table of the waking up mode; and start the control of the waking up scene.
[0094] In an embodiment of the present application, the location information represents the current latitude and longitude information of the gateway; the preset parameters of the day and night state represent the relative time of day and night and sunrise and sunset times every day; the gateway is used to control the actuator device according to the key information sent by the wireless switch.
[0095] In the embodiment of the present application, by creating and synchronizing the mapping relationship table between the waking mode and the night-time waking mode to the gateway, a clear definition and efficient management of the complex logical relationship between the modes is achieved, so that the device control instructions can be accurately triggered according to preset rules. This not only improves the automation and response speed of switching between different scene modes in the smart home system, but also enhances the user's experience of conveniently controlling different scenes through wireless switches, ensuring that the intelligent and personalized services for life scenes such as waking up and getting up at night are smoother and more considerate.
[0096] In the embodiment of the present application, the mode types are waking up mode and night time mode.
[0097] In the embodiment of the present application, the wake-up mode realizes the process of changing the light from dark to bright by segmented control of the lighting equipment by the gateway. The segmented control can be triggered by a preset wireless switch or by directly starting the segmented control logic by the associated night mode. The specific method is as follows:
[0098] The configuration parameter mapping relationship of the wake-up mode is converted into a data structure that can be recognized by the gateway through the mobile phone APP, and the data is synchronized to the gateway. The configuration parameter mapping relationship of the wake-up mode is shown in Table 1 below:
[0099] Table 1 Configuration parameter mapping relationship table of wake-up mode
[0100]
[0101] The wake-up mode ID information is used to index the above configuration parameter mapping relationship;
[0102] Actuator device information is used to associate devices that respond to light segment control;
[0103] The lighting control parameters are divided into 4-segment state parameters and 3-segment delay parameters. The order of the parameters used during control is: 1-segment state, 1-segment delay, 2-segment state, 2-segment delay, 3-segment state, 3-segment delay, 4-segment state. The state parameters are the light brightness level (1% to 100%) and the light color temperature value (2700K to 6500K). The brightness level is set from low to high from 1 to 4.
[0104] Wireless switch information is used to associate with the device information that triggers the wake-up mode;
[0105] The associated night-time mode ID information is optional and is used to determine whether the bed-time mode is associated with the night-time mode and to obtain the status data of the corresponding night-time mode.
[0106] In an embodiment of the present application, the implementation of the night-time mode is based on the switching of two logical states, which are "normal state" and "sleep state". The default state is "normal state". The state switching logic of the night-time mode is managed and maintained by the gateway, and different functional controls are achieved by controlling the state switching of the night-time mode.
[0107] The specific method is as follows:
[0108] The mapping relationship between the preset parameters (position, day and night) and the configuration parameters of the night mode is converted into a data structure that the gateway can recognize through the mobile phone APP, and the data is synchronized to the gateway
[0109] The location parameter generally refers to the latitude and longitude information of the county / city;
[0110] The day and night parameters are the start times of day and night respectively (e.g. daytime: 30 minutes after sunrise, nighttime: 30 minutes after sunset), which are used to assist the system in calculating the day and night state of the current time. Using the relative time of sunrise and sunset can make the alternation of day and night more consistent with the actual geographical location. The configuration parameter mapping relationship of the night mode is shown in Table 2 below:
[0111] Table 2: Mapping relationship of configuration parameters for night mode
[0112]
[0113] The night mode ID is used to index the above configuration parameter mapping relationship;
[0114] The sleep scene is a combination of multiple actuator devices and their status information (usually all lights are off), which is triggered by the night mode when the normal state enters the sleep state.
[0115] The night-time wake-up scene is a combination of multiple actuator devices and their status information (usually only the corridor and bathroom lights are on, and other lights are off). When the night-time wake-up mode returns to normal state from sleep, the control of whether to trigger the scene is based on whether it is nighttime.
[0116] Wireless switch information is used to associate with device information that triggers night mode;
[0117] The associated wake-up mode ID is optional and is used to determine whether the night mode needs to be associated with and trigger the wake-up mode, as well as to index and directly start the specified wake-up mode.
[0118] The gateway periodically obtains the time information of the current geographical location and the sunrise and sunset times of the day from the Ethernet based on the location parameters and time zone, and uses them to automatically calibrate the system time.
[0119] The gateway listens and receives signals from the wireless switch.
[0120] In an embodiment of the present application, the state of the night-time mode may include a sleeping state and a normal state. The first current state here may be a sleeping state or a normal state, and the second current state described below may also be a sleeping state or a normal state.
[0121] As an optional implementation, the following steps may also be performed:
[0122] Receive first key information sent by the wireless switch; the first key information includes: an identifier of the wireless switch and first key position information of the wireless switch;
[0123] Matching the wireless switch identifier and the first key position information of the wireless switch with the wireless switch identifier and the first key position information in the mapping relationship table of the waking mode;
[0124] If the match is successful, confirm the current logical state of the night mode corresponding to the target night mode ID according to the target night mode ID associated in the mapping relationship table of the night mode;
[0125] If the current logical state of the night-time waking mode is normal, obtain the actuator device information and lighting segment control parameters in the mapping relationship table of the waking mode;
[0126] The light segmentation control is performed on the actuator device according to the light segmentation control parameters.
[0127] This implementation method, by receiving keystroke information sent by the wireless switch and accurately matching it with the waking mode mapping table, can quickly locate the associated night-time mode state. When the night-time mode is confirmed to be normal, it automatically obtains and implements intelligent segmented lighting control based on the actuator device information and lighting segmentation control parameters in the target waking mode. This process not only simplifies user operation and improves the response efficiency of the smart home system, but also creates a waking environment that better meets user needs through segmented lighting control, enhancing living comfort and convenience, and reflecting the highly automated and humanized design concept of the smart home system.
[0128] As an optional implementation, the following steps may also be performed:
[0129] receiving second key information sent by the wireless switch, wherein the second key information includes: an identifier of the wireless switch and second key position information of the wireless switch;
[0130] Confirm the current logical state of the night-time waking mode corresponding to the mapping relationship table of the night-time waking mode;
[0131] If the current logical state of the night-time waking mode is a normal state, matching the wireless switch identifier and the second key position information of the wireless switch with the wireless switch identifier and the second key position information in the mapping relationship table of the night-time waking mode;
[0132] If the match is successful, the logic state of the night mode is switched to the sleep state;
[0133] When the logic state of the night mode is the sleep state, the normal trigger logic of the wireless switch button information is temporarily blocked;
[0134] Obtaining the sleep scene in the mapping relationship table of the nighttime waking mode;
[0135] Start the control of the sleep scene.
[0136] Among them, the implementation of this embodiment, by receiving the second button information of the wireless switch and accurately matching it with the mapping relationship table of the night-time mode, can intelligently identify the user's intention and quickly switch the night-time mode to the sleep state. In the sleep state, the button trigger logic is temporarily blocked to effectively avoid interference from misoperation. At the same time, the preset sleep scene control is automatically loaded and started to create an environment more suitable for rest. This series of operations not only improves the speed and accuracy of the smart home system's response to user needs, but also optimizes the living experience through scenario-based control, allowing users to enjoy high-quality sleep more conveniently and safely, fully demonstrating the practical value of smart homes in improving the quality of life.
[0137] As an optional implementation manner, according to the lighting segment control parameters, the manner of performing lighting segment control on the actuator device may specifically include:
[0138] Obtaining lighting segment control sub-parameters for multiple time periods of the lighting segment control parameter; wherein one lighting segment control sub-parameter includes a target on-actuator device, a target off-actuator device, a lighting on parameter for the target on-actuator device, and a lighting on duration; the lighting segment control sub-parameters for different time periods are pre-set with a fixed execution order;
[0139] Repeating the segmented control operation on the actuator device based on the segmented lighting control sub-parameters of each time period until the segmented lighting control sub-parameters of the last time period are executed; wherein:
[0140] A segment control operation is as follows:
[0141] During the on-time of the light segment control sub-parameter, the target on-actuator device is controlled to be on and the target off-actuator device is controlled to be off based on the light on-parameter.
[0142] This implementation significantly enhances the dynamic adaptability of lighting scenes and the immersive user experience by finely segmenting lighting control parameters and building a timed execution logic. The system deconstructs segmented lighting control parameters into multi-stage sub-parameter sets, each of which independently defines the on / off status, light intensity, and duration of a target device within a specific time period. Strict timing rules are pre-set to ensure seamless transitions between stages. During execution, the system iteratively triggers the intelligent linkage of actuator devices in each stage. For example, in a morning wake-up scenario, a step-by-step adjustment sequence from low-brightness warm light to simulated natural light, then fill-in lighting for the reading area, finally completes the entire home. This avoids sudden bright light stimulation while precisely matching user needs at different times of day. This precise, timeline-based control mechanism not only achieves subtle transitions in lighting effects through phased parameter configuration but also optimizes energy consumption through device collaborative management. This improves scene adaptation flexibility while maintaining energy efficiency, providing efficient technical support for the personalized customization of smart home scenarios.
[0143] Specifically, according to the lighting segment control parameters, the manner of performing lighting segment control on the actuator device may include:
[0144] The lighting segment control parameters include the brightness state parameters of the actuator devices corresponding to the four control stages and the delay parameters between each control stage; the four control stages and the delay between each control stage are executed in a fixed order;
[0145] The gateway obtains the brightness state parameter of the actuator device corresponding to the first control stage from the lighting segment control parameter, and sets the state of the actuator device to the state corresponding to the brightness state parameter of the actuator device corresponding to the first control stage;
[0146] The gateway obtains the delay parameter between the first control stage and the second control stage from the lighting segment control parameter, and executes the corresponding waiting time according to the delay parameter;
[0147] The gateway obtains the brightness state parameter of the actuator device corresponding to the second control stage from the lighting segment control parameter, and sets the state of the actuator device to the state corresponding to the brightness state parameter of the actuator device corresponding to the second control stage;
[0148] The gateway obtains the delay parameter between the second control stage and the third control stage from the lighting segment control parameter, and executes the corresponding waiting time according to the delay parameter;
[0149] The gateway obtains the brightness state parameter of the actuator device corresponding to the third control stage from the lighting segment control parameter, and sets the state of the actuator device to the state corresponding to the brightness state parameter of the actuator device corresponding to the third control stage;
[0150] The gateway obtains the delay parameter between the third control stage and the fourth control stage from the lighting segment control parameter, and executes the corresponding waiting time according to the delay parameter;
[0151] The gateway obtains the actuator device brightness state parameter corresponding to the fourth control stage from the lighting segment control parameter, and sets the actuator device state to the state corresponding to the actuator device brightness state parameter corresponding to the fourth control stage.
[0152] Triggering the wake-up mode is controlled in sections, which is implemented by two sub-steps: wireless switch triggering and night mode triggering:
[0153] A. Wireless switch trigger:
[0154] a. The gateway monitors and receives signals from the wireless switch;
[0155] b. The gateway compares the received wireless switch information with the wireless switch information in the configuration parameter mapping relationship of the wake-up mode. If the comparison is unsuccessful, the process ends;
[0156] c. If the comparison is successful, the gateway confirms whether there is an associated night mode ID information from the configuration parameter mapping relationship of the wake-up mode. If there is no associated night mode ID information, the lighting segment control is activated;
[0157] d. If there is an associated night mode ID information, then the state of the corresponding night mode (sleep state or normal state) is obtained according to the night mode ID;
[0158] e. If the status of the associated night mode is sleep mode, then end this process and remain in sleep mode; if the status of the associated night mode is normal, start the light segment control;
[0159] B. The night mode can directly start the light segment control of the morning mode.
[0160] The gateway performs segmented lighting control on the associated actuator devices based on the segmented lighting control parameters in the configuration parameter mapping relationship of the wake-up mode;
[0161] When the segmented control of the wake-up mode is triggered, the gateway controls the associated actuator devices as follows based on the lighting segmented control parameters in the wake-up mode configuration parameter mapping relationship:
[0162] First, the state control instruction is immediately sent to the associated actuator device with 1-segment state parameter; then the gateway starts timing and waits for the duration of 1-segment delay;
[0163] After the 1st delay ends, the gateway sends a status control instruction to the associated actuator device with the 2nd state parameter; then the gateway starts timing and waits for the duration of the 2nd delay;
[0164] After the 2-stage delay ends, the gateway sends a status control instruction to the associated actuator device with the 3-stage status parameter; then the gateway starts timing and waits for the duration of the 3-stage delay;
[0165] After the 3-stage delay ends, the gateway sends a status control instruction to the associated actuator device with 4-stage status parameters.
[0166] In the embodiment of the present application, the night mode response wireless switch is implemented by the following two sub-steps:
[0167] A. When Night Mode is in normal state:
[0168] a. The gateway compares the received wireless switch information with the wireless switch information in the night mode configuration parameter mapping to determine whether it is the wireless switch information that triggers the sleep state;
[0169] b. If yes, the night mode enters the sleep state, the original control function of the wireless switch is blocked, and the gateway controls the associated actuator devices in the sleep scene to execute the state effect specified by the sleep scene; if no, the process ends.
[0170] B. Night mode: When in sleep mode:
[0171] a. The gateway will receive any key information of the wireless switch;
[0172] b. The night mode returns to normal state and the original control function of the wireless switch is restored;
[0173] c. The gateway determines whether the wake-up mode is associated based on the configuration parameter mapping relationship of the night-time mode;
[0174] d. Yes, the gateway calculates whether it is daytime or nighttime based on the acquired daytime and nighttime parameters and the current system time: execute step e during the day and step f at night; if not, execute step f directly;
[0175] e. The gateway directly starts the lighting segment control corresponding to the waking mode in the configuration parameter mapping relationship of the night mode;
[0176] f. The gateway controls the associated actuator devices in the night-time scene to execute the state effects specified by the night-time scene;
[0177] g.End.
[0178] The night-waking mode can be triggered to enter the sleep state through the specified key information of the preset wireless switch, or the night-waking mode can be directly put into the sleep state through voice / APP commands; after entering the sleep state, the gateway starts the control of the sleep scene, and the original control function of the wireless switch associated with the system is temporarily blocked; at this time, triggering any key of the wireless switch will restore the night-waking mode to normal, and the original control function of the wireless switch will also be restored. At the same time, if the night-waking mode is associated with the bed-waking mode, the current day and night state of the system will be calculated, and the control of the night scene will be started at night. If it is during the day, the light segment control of the associated bed-waking mode will be started. If the bed-waking mode is not associated, the control of the night-waking scene will be directly started; the night-waking mode can be triggered to enter the sleep state again through the specified key information of the preset wireless switch or voice / APP commands.
[0179] For example, a suite includes the following lighting equipment: main lighting group, corridor lights, bathroom lights, and these devices all support 0% to 100% brightness adjustment and 2700K to 6500K color temperature adjustment; as well as a bedside wireless switch with 4 buttons: button 1, button 2, button 3, and button 4.
[0180] The effects of configuring the wake-up mode are as follows:
[0181] Related equipment: Main lighting group
[0182] 1st stage state: brightness 1%, color temperature 3000K; 1st stage delay: 1 minute;
[0183] 2-stage state: brightness 10%, color temperature 3000K; 2-stage delay: 1 minute;
[0184] 3-stage state: brightness 30%, color temperature 4000K; 3-stage delay: 2 minutes;
[0185] 4-stage state: brightness 100%, color temperature 5000K;
[0186] Trigger switch button: Bedside wireless switch-button 1;
[0187] Associate the following configured night-time waking mode with the following configuration:
[0188] Main lighting group: off;
[0189] Corridor lights: brightness 1%, color temperature 3500K;
[0190] Bathroom lamp: brightness 5%, color temperature 3500K;
[0191] The effects of configuring a sleep scene are as follows:
[0192] Main lighting group: off;
[0193] Corridor lights: off;
[0194] Bathroom light: off;
[0195] System time zone: East 8
[0196] The location information of the system is defined as follows: longitude and latitude (104.06 East, 30.65 North);
[0197] Define the system day and night status as follows:
[0198] Daytime starts: 30 minutes after sunrise;
[0199] Night start time: 30 minutes after sunset;
[0200] The night mode configuration is as follows:
[0201] Sleep states are associated with sleep scenes;
[0202] Normal state is associated with nighttime waking scenes;
[0203] The switch button to trigger sleep: Bedside wireless switch-button 2;
[0204] Associate with the wake-up mode configured above;
[0205] At the same time, the bedside wireless switch buttons 3 and 4 are also associated with triggering the lighting control of "bright scene" and "warm scene" respectively. After completing the above configuration:
[0206] At this time, the night mode is in normal state; when the user needs to rest, the user presses button 2 of the bedside wireless switch to trigger the night mode and enter the sleep state; at this time, the original control functions of the bedside wireless switch are blocked, and the gateway starts the control of the sleep scene, and all lights are turned off;
[0207] After that, at night (such as 2:00 a.m.), if the user needs to go to the bathroom, he only needs to trigger any button of the bedside wireless switch (if it is busy, such as triggering button 3, the system will not execute the control of the bright scene because the original normal control function of the bedside wireless switch has been blocked), and the night mode will return to normal; the gateway determines that it is associated with the getting up mode based on the night mode configuration, and needs to further determine the current day and night state; if the gateway calculates the sunrise time of the day as 7:02 and the sunset time as 19:16 based on the current time and location information obtained by the time zone, it can further calculate that the current day and night state is night state based on the day start time and night start time, and the gateway starts the control of the night scene (the main lighting group is turned off, the corridor light brightness is 1% color temperature 3500K, and the bathroom light brightness is 5% color temperature 3500K);
[0208] After that, the user can press button 2 of the bedside wireless switch again to return to the sleep mode and all lights will be turned off;
[0209] Later, when daytime arrives (e.g., 8:00 AM), the user needs to get up. Similarly, by triggering any key on the bedside wireless switch, the night mode returns to normal. At the same time, the gateway calculates that the current day and night state is daytime, and the gateway starts the light segment control of the associated wake-up mode:
[0210] The gateway immediately controls the main lighting group to 1% brightness and 3000K color temperature. The gateway times and waits for 1 minute, then controls the main lighting group to 10% brightness and 3000K color temperature. The gateway times and waits for 1 minute, then controls the main lighting group to 30% brightness and 4000K color temperature. The gateway times and waits for 2 minutes, then controls the main lighting group to 100% brightness and 5000K color temperature.
[0211] Implementing the above steps 201 to 207 can avoid the situation where the light segmentation control of the waking mode and the waking up scene of the night mode are triggered simultaneously in the sleeping state, so that the lighting system can work normally, thereby improving the user experience. In addition, the present application can also avoid the tediousness and errors when the user manually operates multiple devices, and can also create an adaptive lighting environment according to different waking up needs. While improving the user experience comfort, it optimizes energy utilization efficiency through precise device scheduling, reflecting the deep adaptation of the smart home system to the user's living habits and the efficient integration of resource management. In addition, the present application can also avoid abrupt strong light stimulation and accurately match the user's activity needs at different time periods. In addition, the present application can also enhance the humanized experience of the home lighting environment, and effectively reduce the energy consumption of high-brightness lighting in non-essential time periods, taking into account the dual optimization of comfort and energy efficiency. In addition, the present application can also ensure the quietness and privacy of the sleeping scene, and extend the service life of the equipment through precise equipment management, realizing the organic unity of convenient operation and energy saving and environmental protection.
[0212] Based on the same inventive concept, embodiments of the present application also provide an intelligent lighting control device for implementing the intelligent lighting control method described above. The solution provided by this device is similar to the solution described in the method described above. Therefore, the specific limitations of one or more intelligent lighting control device embodiments provided below can be found in the above-described limitations of the intelligent lighting control method and will not be further elaborated here.
[0213] In an exemplary embodiment, Figure 3 As shown, an intelligent lighting control device is provided, comprising:
[0214] The receiving unit 301 is configured to receive any key information sent by the wireless switch; the any key information includes: an identifier of the wireless switch and current key position information of the wireless switch;
[0215] A confirmation unit 302 is used to confirm the current logical state of the night-time waking mode corresponding to the pre-created mapping relationship table of night-time waking modes;
[0216] The switching unit 303 is configured to switch the logic state of the night-time waking mode to the normal state if the current logic state of the night-time waking mode is the sleep state, and restore the normal triggering logic of the key information of the wireless switch;
[0217] A first acquiring unit 304 is configured to acquire a current time including year, month, date, time, minutes, and seconds according to a time zone, and calculate sunrise and sunset times of the current day based on the year, month, and date in the current time and in combination with preset location information;
[0218] A determination unit 305 is configured to determine whether it is daytime or nighttime based on the current time, sunrise and sunset times, and preset parameters of the daytime and nighttime states;
[0219] The second acquisition unit 306 is configured to, if it is daytime, acquire an associated wake-up mode ID according to the mapping relationship table of the night-time wake-up mode; acquire actuator device information and light segment control parameters from a pre-created mapping relationship table of the wake-up mode according to the associated wake-up mode ID; and perform light segment control on the actuator device according to the light segment control parameters;
[0220] The starting unit 307 is used to obtain a night-time waking scene according to the mapping relationship table of the night-time waking mode if it is nighttime; and start the control of the night-time waking scene.
[0221] As an optional implementation manner, the receiving unit 301 is further configured to:
[0222] Before receiving any key information sent by the wireless switch, obtaining preset parameters of location information, time zone and day and night status;
[0223] Synchronizing the location information, the time zone, and the preset parameters of the day and night state to the gateway; wherein the location information represents the current latitude and longitude information of the gateway; and the preset parameters of the day and night state represent the relative time of day and night and sunrise and sunset times each day;
[0224] Creating a mapping relationship table for the waking mode, wherein the mapping relationship table for the waking mode represents a mapping relationship between the waking mode ID, actuator device information, lighting segment control parameters, wireless switch identifier and key position information, and the associated night mode ID;
[0225] Synchronize the mapping relationship table of the waking mode to the gateway;
[0226] Creating a mapping relationship table for the night-waking mode, wherein the mapping relationship table for the night-waking mode represents a mapping relationship between the night-waking mode ID, the sleep scene, the night-waking scene, the identifier and key position information of the wireless switch, and the associated waking mode ID;
[0227] Synchronize the mapping relationship table of the night-time waking mode to the gateway;
[0228] The gateway establishes a corresponding logical state for the night-time waking mode according to the mapping relationship of the night-time waking mode, wherein the logical state includes a normal state and a sleep state; the initial logical state of the night-time waking mode is a normal state;
[0229] The gateway receives the key information sent by the wireless switch, and automatically selects and triggers the waking mode or the night-time mode based on the mapping relationship table of the waking mode and the mapping relationship table of the night-time mode, as well as the current day and night state and the logical state of the night-time mode.
[0230] Among them, by implementing this implementation method, the location information, time zone and day and night state preset parameters are accurately obtained and synchronized to the gateway, so that the gateway can accurately define the daytime and nighttime periods of each day based on the real geographical and time information, combined with the day and night state preset parameters, and provide a solid data foundation for the subsequent intelligent lighting control based on the difference between day and night. Secondly, a mapping relationship table for the waking mode and the night-time mode is created and synchronized to the gateway, and the mapping association between the key elements in different modes is clearly constructed, so that the lighting control can be accurately located to the corresponding control parameters and scenes based on the identification and key position information of the wireless switch, thus realizing the refinement and personalization of the lighting control. Furthermore, the gateway establishes a logical state for the night-time mode that includes normal and sleeping states, and is initially set to the normal state. This design cleverly simulates the actual usage scenario of users, and can flexibly switch mode states according to different time periods and user needs to avoid unnecessary mode triggering. Ultimately, the gateway automatically selects and triggers the waking or night-time mode based on comprehensive information, greatly improving the intelligence level of lighting control. It allows users to enjoy lighting services that fit the changes of day and night and usage scenarios without tedious manual operations, effectively enhancing the convenience and comfort of user use and comprehensively improving the user experience.
[0231] As an optional implementation manner, the receiving unit 301 is further configured to:
[0232] Receive first key information sent by the wireless switch; the first key information includes: an identifier of the wireless switch and first key position information of the wireless switch;
[0233] Matching the wireless switch identifier and the first key position information of the wireless switch with the wireless switch identifier and the first key position information in the mapping relationship table of the waking mode;
[0234] If the match is successful, confirm the current logical state of the night mode corresponding to the target night mode ID according to the target night mode ID associated in the mapping relationship table of the night mode;
[0235] If the current logical state of the night-time waking mode is normal, obtain the actuator device information and lighting segment control parameters in the mapping relationship table of the waking mode;
[0236] The light segmentation control is performed on the actuator device according to the light segmentation control parameters.
[0237] This implementation method, by receiving keystroke information sent by the wireless switch and accurately matching it with the waking mode mapping table, can quickly locate the associated night-time mode state. When the night-time mode is confirmed to be normal, it automatically obtains and implements intelligent segmented lighting control based on the actuator device information and lighting segmentation control parameters in the target waking mode. This process not only simplifies user operation and improves the response efficiency of the smart home system, but also creates a waking environment that better meets user needs through segmented lighting control, enhancing living comfort and convenience, and reflecting the highly automated and humanized design concept of the smart home system.
[0238] As an optional implementation manner, the receiving unit 301 is further configured to:
[0239] receiving second key information sent by the wireless switch, wherein the second key information includes: an identifier of the wireless switch and second key position information of the wireless switch;
[0240] Confirm the current logical state of the night-time waking mode corresponding to the mapping relationship table of the night-time waking mode;
[0241] If the current logical state of the night-time waking mode is a normal state, matching the wireless switch identifier and the second key position information of the wireless switch with the wireless switch identifier and the second key position information in the mapping relationship table of the night-time waking mode;
[0242] If the match is successful, the logic state of the night mode is switched to the sleep state;
[0243] When the logic state of the night mode is the sleep state, the normal trigger logic of the wireless switch button information is temporarily blocked;
[0244] Obtaining the sleep scene in the mapping relationship table of the nighttime waking mode;
[0245] Start the control of the sleep scene.
[0246] Among them, the implementation of this embodiment, by receiving the second button information of the wireless switch and accurately matching it with the mapping relationship table of the night-time mode, can intelligently identify the user's intention and quickly switch the night-time mode to the sleep state. In the sleep state, the button trigger logic is temporarily blocked to effectively avoid interference from misoperation. At the same time, the preset sleep scene control is automatically loaded and started to create an environment more suitable for rest. This series of operations not only improves the speed and accuracy of the smart home system's response to user needs, but also optimizes the living experience through scenario-based control, allowing users to enjoy high-quality sleep more conveniently and safely, fully demonstrating the practical value of smart homes in improving the quality of life.
[0247] As an optional implementation manner, the receiving unit 301 may perform segmented lighting control on the actuator device according to the segmented lighting control parameter in the following manner:
[0248] The lighting segment control parameters include the brightness state parameters of the actuator devices corresponding to the four control stages and the delay parameters between each control stage; the four control stages and the delay between each control stage are executed in a fixed order;
[0249] The gateway obtains the brightness state parameter of the actuator device corresponding to the first control stage from the lighting segment control parameter, and sets the state of the actuator device to the state corresponding to the brightness state parameter of the actuator device corresponding to the first control stage;
[0250] The gateway obtains the delay parameter between the first control stage and the second control stage from the lighting segment control parameter, and executes the corresponding waiting time according to the delay parameter;
[0251] The gateway obtains the brightness state parameter of the actuator device corresponding to the second control stage from the lighting segment control parameter, and sets the state of the actuator device to the state corresponding to the brightness state parameter of the actuator device corresponding to the second control stage;
[0252] The gateway obtains the delay parameter between the second control stage and the third control stage from the lighting segment control parameter, and executes the corresponding waiting time according to the delay parameter;
[0253] The gateway obtains the brightness state parameter of the actuator device corresponding to the third control stage from the lighting segment control parameter, and sets the state of the actuator device to the state corresponding to the brightness state parameter of the actuator device corresponding to the third control stage;
[0254] The gateway obtains the delay parameter between the third control stage and the fourth control stage from the lighting segment control parameter, and executes the corresponding waiting time according to the delay parameter;
[0255] The gateway obtains the actuator device brightness state parameter corresponding to the fourth control stage from the lighting segment control parameter, and sets the actuator device state to the state corresponding to the actuator device brightness state parameter corresponding to the fourth control stage.
[0256] This implementation significantly enhances the dynamic adaptability of lighting scenes and the immersive user experience by finely segmenting lighting control parameters and building a timed execution logic. The system deconstructs segmented lighting control parameters into multi-stage sub-parameter sets, each of which independently defines the on / off status, light intensity, and duration of a target device within a specific time period. Strict timing rules are pre-set to ensure seamless transitions between stages. During execution, the system iteratively triggers the intelligent linkage of actuator devices in each stage. For example, in a morning wake-up scenario, a step-by-step adjustment sequence from low-brightness warm light to simulated natural light, then fill-in lighting for the reading area, finally completes the entire home. This avoids sudden bright light stimulation while precisely matching user needs at different times of day. This precise, timeline-based control mechanism not only achieves subtle transitions in lighting effects through phased parameter configuration but also optimizes energy consumption through device collaborative management. This improves scene adaptation flexibility while maintaining energy efficiency, providing efficient technical support for the personalized customization of smart home scenarios.
[0257] The implementation of the above embodiment can avoid the situation where both the waking mode and the normal night-time mode are triggered at the same time, so that the lighting system can work normally, thereby improving the user experience. In addition, the present application can also avoid the tediousness and errors when the user manually operates multiple devices, and can also create an adaptive lighting environment according to different waking needs. While improving the user experience comfort, it optimizes energy efficiency through precise device scheduling, reflecting the deep adaptation of the smart home system to the user's living habits and the efficient integration of resource management. In addition, the present application can also avoid abrupt strong light stimulation, and can accurately match the user's activity needs at different time periods. In addition, the present application can also enhance the humanized experience of the home lighting environment, and effectively reduce the energy consumption of high-brightness lighting in non-essential periods, taking into account the dual optimization of comfort and energy efficiency. In addition, the present application can also ensure the quietness and privacy of the sleeping scene, and extend the service life of the equipment through precise equipment management, realizing the organic unity of convenient operation and energy saving and environmental protection.
[0258] In an exemplary embodiment, a computer device is provided. The computer device may be a server or a terminal. The internal structure diagram thereof may be as follows: Figure 4As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O) and a communication interface. The processor, memory and input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store intelligent lighting control data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an intelligent lighting control method is implemented.
[0259] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0260] In an exemplary embodiment, a computer device is further provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above method embodiments when executing the computer program.
[0261] In an exemplary embodiment, a computer-readable storage medium is provided, storing a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0262] In an exemplary embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0263] In an exemplary embodiment, a chip is provided, which includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the steps in the above-mentioned method embodiments and achieve the same technical effects. To avoid repetition, they are not described here.
[0264] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0265] 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 relevant data must comply with relevant regulations.
[0266] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile 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 may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0267] The databases involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processors involved in the various embodiments provided herein may include, but are not limited to, general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic units, data processing logic units based on quantum computing, and the like.
[0268] The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0269] This document uses specific examples to illustrate the principles and implementation methods of this application. The description of the above examples is only intended to help understand the method and core concept of this application. At the same time, for those skilled in the art, based on the concept of this application, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.
Claims
1. An intelligent lighting control method, characterized in that: The intelligent lighting control method comprises: Receive any key information sent by the wireless switch; the any key information includes: the identifier of the wireless switch and the current key position information of the wireless switch; Confirm the current logical state of the night-time waking mode corresponding to the pre-created mapping relationship table of the night-time waking mode; If the current logic state of the night-time waking mode is the sleep state, the logic state of the night-time waking mode is switched to the normal state, and the normal triggering logic of the key information of the wireless switch is restored; Get the current time including year, month, date, time, minutes and seconds according to the time zone, and calculate the sunrise and sunset times of the day based on the year, month and date in the current time and the preset location information; Determine whether it is daytime or nighttime based on the current time, sunrise and sunset times, and preset parameters for day and night status; If it is daytime, obtain the associated waking mode ID according to the mapping relationship table of the night waking mode; obtain the actuator device information and light segment control parameters from the pre-created mapping relationship table of the waking mode according to the associated waking mode ID; and perform light segment control on the actuator device according to the light segment control parameters; If it is night time, obtain the waking up scene according to the mapping relationship table of the waking up mode; and start the control of the waking up scene.
2. The intelligent lighting control method according to claim 1, characterized in that: Before receiving any key information sent by the wireless switch, the method further includes: Get the preset parameters of location information, time zone and day / night status; Synchronizing the location information, the time zone, and the preset parameters of the day and night state to the gateway; wherein the location information represents the current latitude and longitude information of the gateway; and the preset parameters of the day and night state represent the relative time of day and night and sunrise and sunset times each day; Creating a mapping relationship table for the waking mode, wherein the mapping relationship table for the waking mode represents a mapping relationship between the waking mode ID, actuator device information, lighting segment control parameters, wireless switch identifier and key position information, and the associated night mode ID; Synchronize the mapping relationship table of the waking mode to the gateway; Creating a mapping relationship table for the night-waking mode, wherein the mapping relationship table for the night-waking mode represents a mapping relationship between the night-waking mode ID, the sleep scene, the night-waking scene, the identifier and key position information of the wireless switch, and the associated waking mode ID; Synchronize the mapping relationship table of the night-time waking mode to the gateway; The gateway establishes a corresponding logical state for the night-time waking mode according to the mapping relationship of the night-time waking mode, wherein the logical state includes a normal state and a sleep state; the initial logical state of the night-time waking mode is a normal state; The gateway receives the key information sent by the wireless switch, and automatically selects and triggers the waking mode or the night-time mode based on the mapping relationship table of the waking mode and the mapping relationship table of the night-time mode, as well as the current day and night state and the logical state of the night-time mode.
3. The intelligent lighting control method according to claim 1, characterized in that: The method further comprises: Receive first key information sent by the wireless switch; the first key information includes: an identifier of the wireless switch and first key position information of the wireless switch; Matching the wireless switch identifier and the first key position information of the wireless switch with the wireless switch identifier and the first key position information in the mapping relationship table of the waking mode; If the match is successful, confirm the current logical state of the night mode corresponding to the target night mode ID according to the target night mode ID associated in the mapping relationship table of the night mode; If the current logical state of the night-time waking mode is normal, obtain the actuator device information and lighting segment control parameters in the mapping relationship table of the waking mode; The light segmentation control is performed on the actuator device according to the light segmentation control parameters.
4. The intelligent lighting control method according to claim 3, characterized in that: The performing segmented lighting control on the actuator device according to the segmented lighting control parameter specifically includes: The lighting segment control parameters include the brightness state parameters of the actuator devices corresponding to the four control stages and the delay parameters between each control stage; the four control stages and the delay between each control stage are executed in a fixed order; The gateway obtains the brightness state parameter of the actuator device corresponding to the first control stage from the lighting segment control parameter, and sets the state of the actuator device to the state corresponding to the brightness state parameter of the actuator device corresponding to the first control stage; The gateway obtains the delay parameter between the first control stage and the second control stage from the lighting segment control parameter, and executes the corresponding waiting time according to the delay parameter; The gateway obtains the brightness state parameter of the actuator device corresponding to the second control stage from the lighting segment control parameter, and sets the state of the actuator device to the state corresponding to the brightness state parameter of the actuator device corresponding to the second control stage; The gateway obtains the delay parameter between the second control stage and the third control stage from the lighting segment control parameter, and executes the corresponding waiting time according to the delay parameter; The gateway obtains the brightness state parameter of the actuator device corresponding to the third control stage from the lighting segment control parameter, and sets the state of the actuator device to the state corresponding to the brightness state parameter of the actuator device corresponding to the third control stage; The gateway obtains the delay parameter between the third control stage and the fourth control stage from the lighting segment control parameter, and executes the corresponding waiting time according to the delay parameter; The gateway obtains the actuator device brightness state parameter corresponding to the fourth control stage from the lighting segment control parameter, and sets the actuator device state to the state corresponding to the actuator device brightness state parameter corresponding to the fourth control stage.
5. The intelligent lighting control method according to claim 1, characterized in that: The method further comprises: receiving second key information sent by the wireless switch, wherein the second key information includes: an identifier of the wireless switch and second key position information of the wireless switch; Confirm the current logical state of the night-time waking mode corresponding to the mapping relationship table of the night-time waking mode; If the current logical state of the night-time waking mode is a normal state, matching the wireless switch identifier and the second key position information of the wireless switch with the wireless switch identifier and the second key position information in the mapping relationship table of the night-time waking mode; If the match is successful, the logic state of the night mode is switched to the sleep state; When the logic state of the night mode is the sleep state, the normal trigger logic of the wireless switch button information is temporarily blocked; Obtaining the sleep scene in the mapping relationship table of the nighttime waking mode; Start the control of the sleep scene.
6. An intelligent lighting control device, characterized in that: The intelligent lighting control device comprises: A receiving unit, configured to receive any key information sent by the wireless switch; the any key information includes: an identifier of the wireless switch and current key position information of the wireless switch; A confirmation unit, used to confirm the current logical state of the night-time waking mode corresponding to the pre-created mapping relationship table of night-time waking modes; A switching unit, configured to switch the logic state of the night-time waking mode to a normal state if the current logic state of the night-time waking mode is a sleep state, and restore the normal triggering logic of the key information of the wireless switch; A first acquiring unit is configured to acquire a current time including year, month, date, time, minutes, and seconds according to a time zone, and calculate sunrise and sunset times of the current day based on the year, month, and date in the current time and in combination with preset location information; a determination unit, configured to determine whether it is currently daytime or nighttime based on the current time, sunrise and sunset times, and preset parameters of the daytime and nighttime states; a second acquiring unit configured to, if it is daytime, acquire an associated waking up mode ID according to the mapping relationship table of the night waking up mode; acquire actuator device information and light segmentation control parameters from a pre-created mapping relationship table of the waking up mode according to the associated waking up mode ID; and perform light segmentation control on the actuator device according to the light segmentation control parameters; The starting unit is used to obtain the night-getting scene according to the mapping relationship table of the night-getting mode if it is nighttime; and start the control of the night-getting scene.
7. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the intelligent lighting control method according to any one of claims 1 to 5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the intelligent lighting control method according to any one of claims 1 to 5 are implemented.
9. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the intelligent lighting control method according to any one of claims 1 to 5 are implemented.
10. A chip comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, wherein: The processor is used to run a program or instruction, and when the processor executes the program or instruction, the steps of the intelligent lighting control method according to any one of claims 1 to 5 are implemented.