Equipment control method and device, equipment and medium

By identifying user activity patterns and determining target home devices and their control commands, the problem of cumbersome interaction in existing smart home systems is solved, achieving seamless intelligent control and improving the level of intelligence and user experience.

CN121348840APending Publication Date: 2026-01-16GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511364772.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-23
Publication Date
2026-01-16

AI Technical Summary

Technical Problem

The voice recognition control of existing smart home systems relies on explicit commands, which makes the interaction process cumbersome, makes it difficult to achieve seamless smart services, and affects the user experience.

Method used

By identifying the current user's daily routine, the system determines the target home appliances and their control commands, enabling intelligent control based on daily routine scenarios, including work mode, home rest mode, and long-term absence mode. By combining time patterns, user behavior, and device mapping relationships, the system automatically adjusts the device status.

Benefits of technology

It eliminates the need for frequent user intervention, improves the level of intelligence and user experience, achieves precise and considerate automated services, and enhances the system's adaptability and personalized response.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121348840A_ABST
    Figure CN121348840A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an equipment control method and device, equipment and a medium. The method comprises the following steps: determining a work and rest mode of a current user; according to the current user work and rest mode, target home equipment needing to be controlled and an equipment control instruction for the target home equipment are determined; and controlling the target household equipment according to the equipment control instruction. According to the embodiment of the invention, the target household equipment needing to be controlled and the corresponding equipment control instruction are determined by identifying the work and rest mode of the current user, intelligent control based on the work and rest scene is realized, frequent operation of the user is not needed, and the intelligent level and the user experience are effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of smart home, and in particular to a device control method and a device control apparatus. BACKGROUND

[0002] With the development of artificial intelligence, smart home systems are gradually popularized, and voice recognition technology has been widely applied to home appliance control, realizing the convenience of human-computer interaction. However, the voice recognition smart home control system in the prior art can respond to voice instructions to control home appliances, but the intelligent level is limited, mainly relying on explicit instructions issued by the user, resulting in a cumbersome interaction process, requiring the user to operate frequently and actively, making it difficult to realize non-invasive intelligent services and affecting the overall user experience. SUMMARY

[0003] In view of the above problems, the present application is proposed to provide a device control method, apparatus, cooking device and medium which overcome the above problems or at least partially solve the above problems.

[0004] According to a first aspect of the present application, a device control method is provided, the method comprising:

[0005] determining a current user rest mode;

[0006] determining a target home device to be controlled and a device control instruction for the target home device according to the current user rest mode;

[0007] controlling the target home device according to the device control instruction.

[0008] Optionally, the user rest mode includes a work mode, a home rest mode and a long-term away-from-home mode, and the work mode, the home rest mode and the long-term away-from-home mode correspond to different time ranges respectively; and the determination of the current user rest information comprises:

[0009] obtaining a current time;

[0010] determining a corresponding current user rest mode according to a time range in which the current time is located.

[0011] Optionally, the determination of the current user rest mode further comprises:

[0012] if a device control instruction of a user is received, determining whether the device control instruction of the user matches the current user rest mode;

[0013] if the device control instruction of the user does not match the current user rest mode, adjusting the current user rest mode according to the device control instruction of the user.

[0014] Optionally, the determining the current user rest mode further includes:

[0015] If the user behavior is detected, it is judged whether the user behavior matches the current user rest mode.

[0016] If the user behavior does not match the current user rest mode, the current user rest mode is adjusted according to the user behavior.

[0017] Optionally, the method further includes:

[0018] Receiving a user rest adjustment instruction;

[0019] Adjusting the user rest mode according to the user rest adjustment instruction.

[0020] Optionally, the adjusting the user rest mode according to the user rest adjustment instruction includes:

[0021] Determining a time keyword and a rest adjustment keyword in the rest adjustment instruction;

[0022] Determining the user rest mode corresponding to the rest adjustment keyword as the user rest mode at the time corresponding to the time keyword.

[0023] Optionally, the determining the target home device to be controlled and the device control instruction for the target home device according to the current user rest mode includes:

[0024] Determining a mapping relationship corresponding to the current user rest mode; the mapping relationship is a mapping relationship between a user rest mode and a corresponding home device and a device control instruction for the home device;

[0025] Determining the target home device to be controlled and the device control instruction for the target home device in the current user rest mode according to the mapping relationship.

[0026] Optionally, the method further includes:

[0027] Obtaining a mapping relationship adjustment instruction of the user for at least one user rest mode;

[0028] Adjusting the target home device corresponding to the user rest mode and / or the device control instruction for the target home device according to the adjustment instruction of the target device.

[0029] Optionally, the method further includes:

[0030] Obtaining a historical device control instruction of the user;

[0031] adjust the target home device corresponding to the user work-rest mode according to the historical device control instruction, and / or the device control instruction for the target home device.

[0032] Optionally, the method further comprises:

[0033] when a new device is accessed, obtaining device information of the new device;

[0034] determining a user work-rest mode corresponding to the new device according to the device information, and a device control instruction in the user work-rest mode.

[0035] According to a second aspect of the embodiment of the present application, a device control apparatus is provided, and the apparatus comprises:

[0036] a work-rest mode determination module, configured to determine a current user work-rest mode;

[0037] a control instruction determination module, configured to determine a target home device to be controlled and a device control instruction for the target home device according to the current user work-rest mode;

[0038] a device control module, configured to control the target home device according to the device control instruction.

[0039] Optionally, the user work-rest mode comprises a work mode, a home rest mode and a long-term away-from-home mode, and the work mode, the home rest mode and the long-term away-from-home mode correspond to different time ranges respectively; and the work-rest mode determination module comprises:

[0040] a time acquisition sub-module, configured to acquire a current time;

[0041] a first work-rest mode determination sub-module, configured to determine a current user work-rest mode corresponding to a time range in which the current time is located.

[0042] Optionally, the work-rest mode determination module further comprises:

[0043] a control instruction judgment sub-module, configured to, if a user device control instruction is received, judge whether the user device control instruction matches the current user work-rest mode;

[0044] a first work-rest mode adjustment sub-module, configured to, if the user device control instruction does not match the current user work-rest mode, adjust the current user work-rest mode according to the user device control instruction.

[0045] Optionally, the work-rest mode determination module further comprises:

[0046] The user behavior judgment submodule is configured to, if the user behavior is detected, judge whether the user behavior matches the current user work-rest pattern.

[0047] The second work-rest pattern adjustment submodule is configured to, if the user behavior does not match the current user work-rest pattern, adjust the current user work-rest pattern according to the user behavior.

[0048] Optionally, the method further comprises:

[0049] The work-rest adjustment instruction receiving module is configured to receive a work-rest adjustment instruction of a user.

[0050] The work-rest pattern adjustment module is configured to adjust the user work-rest pattern according to the work-rest adjustment instruction of the user.

[0051] Optionally, the work-rest pattern adjustment module comprises:

[0052] The keyword determination submodule is configured to determine a time keyword and a work-rest adjustment keyword in the work-rest adjustment instruction.

[0053] The second work-rest pattern determination submodule is configured to determine the user work-rest pattern corresponding to the work-rest adjustment keyword as the user work-rest pattern at a time corresponding to the time keyword.

[0054] Optionally, the control instruction determination module comprises:

[0055] The mapping relationship determination submodule is configured to determine a mapping relationship corresponding to the current user work-rest pattern; the mapping relationship is a mapping relationship between a user work-rest pattern and a corresponding home device and a device control instruction for the home device.

[0056] The control instruction determination submodule is configured to determine, according to the mapping relationship, a target home device that needs to be controlled in the current user work-rest pattern and a device control instruction for the target home device.

[0057] Optionally, the device further comprises:

[0058] The mapping relationship adjustment instruction obtaining module is configured to obtain a mapping relationship adjustment instruction of a user for at least one user work-rest pattern.

[0059] The first control instruction adjustment module is configured to adjust a target home device corresponding to the user work-rest pattern and / or a device control instruction for the target home device according to the adjustment instruction of the target device.

[0060] Optionally, the device further comprises:

[0061] The historical device control instruction obtaining module is configured to obtain a historical device control instruction of a user.

[0062] The second control instruction adjustment module is configured to adjust a target home device corresponding to the user schedule mode according to the historical device control instruction, and / or a device control instruction for the target home device.

[0063] Optionally, the apparatus further comprises:

[0064] The device information acquisition module is configured to acquire device information of a new device when the new device is connected.

[0065] The new device control instruction determination module is configured to determine a user schedule mode corresponding to the new device according to the device information, and a device control instruction in the user schedule mode.

[0066] According to a third aspect of an embodiment of the present application, an electronic device is provided, which comprises a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the steps of the device control method according to any one of the preceding aspects.

[0067] According to a fourth aspect of an embodiment of the present application, a computer readable storage medium is provided, which stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the device control method according to any one of the preceding aspects.

[0068] The technical solutions provided by the embodiments of the present application can have the following beneficial effects:

[0069] The embodiments of the present application provide a device control method, which comprises determining a current user schedule mode, determining a target home device to be controlled and a device control instruction for the target home device according to the current user schedule mode, and controlling the target home device according to the device control instruction. The embodiments of the present application determine the target home device to be controlled and the corresponding device control instruction by recognizing the current user schedule mode, thereby realizing intelligent control based on the schedule scene, without frequent operation of the user, and effectively improving the intelligent level and user experience. BRIEF DESCRIPTION OF DRAWINGS

[0070] Figure 1 is a step flowchart of a device control method provided by the embodiments of the present application;

[0071] Figure 2 is a scene schematic diagram of a device control method provided by the embodiments of the present application;

[0072] Figure 3 is a step flowchart of another device control method provided by the embodiments of the present application;

[0073] Figure 4 is a structural block diagram of a device control apparatus provided by an embodiment of the present application. DETAILED DESCRIPTION

[0074] In order to make the above objectives, characteristics and advantages of the present application more apparent, comprehensible and easier to understand, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0075] One of the core ideas of the embodiments of the present application is that, by identifying the current user work-rest mode, the target home device to be controlled and the corresponding device control instruction are determined, and intelligent control based on the work-rest scene is realized, without the user needing to frequently operate, thereby effectively improving the intelligent level and user experience.

[0076] Referring to Figure 1 , a step flowchart of a device control method provided by an embodiment of the present application is shown, and the method can specifically include the following steps:

[0077] Step 101, determining a current user work-rest mode;

[0078] By way of example, different work-rest modes correspond to different environmental requirements and device use habits (such as a work mode, a home rest mode and a long-term away-from-home mode), and by identifying the work-rest state of the user, the corresponding device control strategy can be automatically matched, for example, starting the energy-saving and security mode in the long-term away-from-home mode, and adjusting the light and the temperature and humidity to create a comfortable atmosphere in the home rest mode. This not only avoids the user frequently manually operating or repeatedly issuing voice instructions, but also provides more accurate and considerate automatic services according to the actual scene prediction requirements. At the same time, the work-rest mode can improve the understanding ability of the user behavior, enhance the privacy protection and security warning, and thus comprehensively improve the intelligent level, energy utilization efficiency and user experience of the smart home.

[0079] Referring to Figure 2 , a scene schematic diagram of a device control method provided by an embodiment of the present application is shown. The control home device can include multiple home functional areas, and a corresponding master control device is arranged in each functional area to control the slave device through the master control device. Taking the living room as an example, the slave device can include a television, a smart socket, a sensor, a dehumidifier, a smart door lock and an atmosphere lamp. In the work mode, only the smart socket, the dehumidifier, the sensor and the smart door lock are kept in the open state. In the home rest mode, on the basis of keeping the smart socket, the dehumidifier, the sensor and the smart door lock in the open state, the atmosphere lamp is turned on, and the television is automatically played to the channel that the user likes when the preset time is reached. In the long-term away-from-home mode, only the sensor and the smart door lock are kept in the open state.

[0080] Step 102, determining the target home device to be controlled and the device control instruction for the target home device according to the current user's work and rest mode;

[0081] For example, when the user is in the "work mode", the corresponding mapping relationship can include: turning off the lighting devices in the living room and bedroom (instruction: "turn off the lights"), adjusting the air conditioner to an energy-saving temperature (such as 28°C in summer), and starting the camera and door and window sensor to enter the security state; while in the "home rest mode", the mapping relationship can be: turning on the living room atmosphere lamp and adjusting it to warm light mode, adjusting the air conditioner to a comfortable temperature (such as 24°C), and starting the humidifier, etc.; for the "long-term away mode", the mapping relationship is more focused on safety and energy saving, such as completely turning off unnecessary power, closing the gas valve, enabling whole-house monitoring video and mobile detection alarm functions. These mapping relationships can be formed through system preset, user customization or machine learning of historical behavior. By matching the currently identified work and rest mode, the corresponding mapping relationship can be quickly called and the target device and specific instruction to be controlled can be automatically determined without the need for the user to manually operate one by one. This way not only improves the accuracy and efficiency of control, but also realizes intelligent linkage across devices, enabling the home environment to actively adapt to the user's pace of life. At the same time, the mapping relationship supports dynamic updating, and when the user's behavior deviates from the original rules for a long time, the system can learn and adjust the mapping content to ensure that the service always meets the actual needs, thereby realizing truly personalized and context-aware intelligent living experience.

[0082] Step 103, controlling the target home device according to the device control instruction.

[0083] For example, when entering the "long-term away mode", if the instructions such as "turn off the air conditioner", "disconnect unnecessary power", and "start the security camera" are not actually executed, the energy saving and safety strategy will only remain at the logical level and cannot produce actual value. By accurately issuing and executing the control instruction, the home system can automatically adjust the home environment, avoid resource waste, reduce safety hazards, and create a comfortable space for the user that meets the current life state. In addition, the execution link should also support state feedback and exception handling, such as reminding when the device is offline, retrying or recording logs when the instruction is not responded, to ensure the integrity of the control and the robustness of the system. More importantly, automated execution reduces the user's frequent operation of the mobile application or voice assistant, truly realizing "unconscious intelligence" - the user does not need to actively intervene, and the system can run independently according to his or her pace of life. This not only improves convenience, but also enhances the user's trust and dependence on the smart home system.

[0084] The embodiment of the present application provides a device control method, which comprises the following steps: determining a current user work-rest mode; determining a target home device to be controlled and a device control instruction for the target home device according to the current user work-rest mode; and controlling the target home device according to the device control instruction. The embodiment of the present application determines the target home device to be controlled and the corresponding device control instruction by identifying the current user work-rest mode, thereby realizing intelligent control based on a work-rest scene, without frequent operation of the user, and effectively improving the intelligent level and user experience.

[0085] Referring to Figure 3 , a step flowchart of another device control method provided by the embodiment of the present application is shown, and the method can specifically include the following steps:

[0086] Step 301, determining a current user work-rest mode;

[0087] For example, different work-rest modes correspond to different environmental requirements and device use habits (such as a work mode, a home rest mode and a long-term away-from-home mode), by identifying the work-rest state of the user, a corresponding device control strategy can be automatically matched, for example, starting an energy-saving and security mode in the long-term away-from-home mode, and adjusting light and temperature and humidity to create a comfortable atmosphere in the home rest mode. This not only avoids frequent manual operation or repeated voice instructions of the user, but also provides more accurate and considerate automatic services according to the actual scene prediction requirements. At the same time, the work-rest mode can improve the understanding ability of the user behavior, enhance the privacy protection and security warning, and thus comprehensively improve the intelligent level, energy utilization efficiency and user experience of the smart home.

[0088] In one embodiment, the user work-rest mode includes a work mode, a home rest mode and a long-term away-from-home mode, and the work mode, the home rest mode and the long-term away-from-home mode correspond to different time ranges respectively; and step 301 includes the following sub-steps:

[0089] Sub-step S11, acquiring a current time;

[0090] Exemplarily, the working mode can correspond to a time period when the user goes out to work, having a strong time regularity. For example, from 8:00 am to 18:00 pm on Monday to Friday, at this time, the user is not at home or focuses on the office most of the time, and unnecessary appliances can be turned off, security monitoring can be enabled, and network equipment can be kept running for remote access. The home rest mode occurs mostly when the user is at home and has no work tasks, such as from 18:00 pm to 8:00 am the next day on weekdays, and all day on weekends. In this mode, the light brightness can be automatically adjusted, the background music can be turned on, and the air conditioning temperature can be optimized to create a comfortable living environment. The long-term away mode refers to the user going out for a long time and not returning in a short period of time, such as holiday travel or business trip, and the duration is usually more than 24 hours, for example, during the May Day holiday. This mode emphasizes safety and energy saving, and all unnecessary power is turned off, and advanced security linkage is started (such as mobile detection recording, abnormal alarm push). Combined with the current time, the intelligent home system can accurately understand the user's life regularity and respond to the scene.

[0091] In sub-step S12, a corresponding current user work and rest mode is determined according to a time range in which the current time is located.

[0092] Exemplarily, in daily life, the user's work, rest, and going out activities often follow a fixed time regularity, for example, during the day on weekdays, the user is mostly in the working state, in the evening and on weekends, the user is in the home rest time, and during the holidays, the user can go out for a short trip. By obtaining the current time (including the specific time, the day of the week, whether it is a holiday, etc.), the user's work and rest mode can be preliminarily judged, so as to trigger the corresponding automatic control strategy. For example, when it is detected that the current time is 10:00 am on weekdays, it can be inferred that the user is in the "working mode", and then the living room light is automatically turned off and the security monitoring is started. When the time is 8:00 pm on weekdays or 3:00 pm on weekends, it is in the "home rest mode", and the ambient light can be adjusted, the sound can be turned on to play light music, and the comfort experience can be improved. If it is combined with the time to determine that it is a holiday, it can be identified as a "long-term away mode", and a deep energy saving and comprehensive security strategy is executed. This mode identification method based on the time range does not require the user to manually set, and can realize the active perception and intelligent response to the scene, greatly reducing the interaction burden, and improving the automation level and context adaptation ability of the system.

[0093] In an embodiment, step 301 further includes the following sub-step:

[0094] In sub-step S21, if a device control instruction of the user is received, it is judged whether the device control instruction of the user matches the current user work and rest mode.

[0095] Exemplarily, the device control instruction can be derived from the voice input of the user, or from the remote operation instruction sent by the user to the master device through a client, such as a mobile phone application, a tablet, etc. After receiving such an instruction, context matching judgment needs to be made in combination with the current user work-rest mode to identify whether the instruction conforms to the typical behavior logic in the current scenario, so as to decide whether to execute directly or to adjust the cognition of the system to the user state accordingly. For example, in the work mode, the ambient light control instruction of the user received is a device control instruction in the home rest mode, which is not matched with the current work-rest mode. In the home rest mode, the ambient light control instruction of the user received is a device control instruction in the home rest mode, which is matched with the current work-rest mode. By distinguishing the matching relationship between the instruction and the work-rest mode, the change of the user behavior can be captured acutely, the transition from passive response to active adaptation is realized, and the precision and humanization level of intelligent control are significantly improved.

[0096] Substep S22, if the device control instruction of the user is not matched with the current user work-rest mode, adjusting the current user work-rest mode according to the device control instruction of the user.

[0097] Exemplarily, in the work mode, the ambient light control instruction of the user received is a device control instruction in the home rest mode, which is not matched with the current work-rest mode, and the current user work-rest mode needs to be adjusted from the work mode to the home rest mode. After the mode switching, the home system not only executes the current light instruction, but also automatically starts other devices conforming to the rest scenario, such as adjusting the air conditioner to a comfortable temperature, playing light music, closing the curtains, etc., to realize more complete scene service. This design of adjusting the work-rest mode based on the instruction feedback in reverse makes the home system have the ability to learn and respond to sudden behaviors, and avoids the service lag or experience fragmentation caused by the rigidity of the preset mode. By continuously capturing the semantic relationship between the user operation and the scene, the system realizes the transition from passive execution of the instruction to active understanding of the intention, significantly improves the flexibility, precision and humanization level of intelligent control, and truly approaches the change rhythm of the actual life of the user.

[0098] In an embodiment, step 301 further comprises the following substep:

[0099] Substep S31, if the user behavior is detected, judging whether the user behavior is matched with the current user work-rest mode;

[0100] Exemplarily, in the working mode, the camera detects that the user opens the smart door lock and sits on the sofa, and this user behavior is a user behavior in the home rest mode, which is not matched with the current user rest mode. In the working mode, the camera does not detect the user, which is matched with the current user rest mode. The matching judgment mode based on the sensor behavior detection is introduced, the home system not only depends on the preset time rule, but also combines the user action in the real physical world for closed-loop feedback, which significantly improves the accuracy of state recognition and the flexibility of response, realizes the upgrade from static rule driving to dynamic situation perception, and enhances the adaptive ability and humanized service level of the smart home.

[0101] In substep S32, if the user behavior is not matched with the current user rest mode, the current user rest mode is adjusted according to the user behavior.

[0102] Exemplarily, in the working mode, the camera detects that the user opens the smart door lock and sits on the sofa, and this user behavior is a user behavior in the home rest mode, which is not matched with the current user rest mode. This mode gives the home system strong adaptive ability, so that it can not only operate according to the preset rule, but also dynamically correct the state judgment by real-time sensing of the user behavior change through the sensor, truly realizes the user behavior-centered intelligent response, and significantly improves the flexibility, accuracy and humanized level of the system.

[0103] In step 302, a mapping relationship corresponding to the current user rest mode is determined; the mapping relationship is a mapping relationship between the user rest mode and corresponding home devices and device control instructions for the home devices;

[0104] For example, the mapping relationship is a set of rules that pre-establishes the association between a specific user's lifestyle pattern and the required home devices and their corresponding control instructions, i.e., a multi-layer mapping logic of "lifestyle pattern → target device → control instruction". For example, when the user is in "work mode", the corresponding mapping relationship may include: turning off the lighting devices in the living room and bedroom (instruction: "turn off the lights"), adjusting the air conditioner to an energy-saving temperature (e.g., 28°C in summer), and starting the camera and door / window sensor into a security state; while in "home rest mode", the mapping relationship may be: turning on the living room atmosphere lamp and adjusting it to warm light mode, adjusting the air conditioner to a comfortable temperature (e.g., 24°C), and starting the humidifier, etc.; for "long-term away mode", the mapping relationship focuses more on safety and energy saving, such as completely turning off unnecessary power, closing the gas valve, enabling whole-house monitoring video and mobile detection alarm functions. These mapping relationships can be formed through system preset, user customization or machine learning of historical behavior optimization. By matching the currently identified lifestyle pattern, the corresponding mapping relationship can be quickly looked up and called to automatically determine the target devices and specific instructions that need to be controlled, without the need for the user to manually operate one by one. This way not only improves the accuracy and efficiency of control, but also realizes intelligent linkage across devices, enabling the home environment to actively adapt to the user's pace of life. At the same time, the mapping relationship supports dynamic updating, and when the user's behavior deviates from the original rules for a long time, the system can learn and adjust the mapping content to ensure that the service always meets the actual needs, thereby realizing truly personalized and context-aware intelligent living experience.

[0105] Step 303, determining, according to the mapping relationship, target home devices that need to be controlled and device control instructions for the target home devices in the current user's lifestyle pattern;

[0106] For example, when entering "work mode", by looking up and matching the corresponding mapping relationship, it can be automatically determined that the lighting needs to be turned off, the energy-saving devices need to be adjusted, and the security system needs to be started, and specific instructions such as "turn off the lights", "set the air conditioner to 28°C", and "turn on the camera monitoring" are generated, without the need for the user to issue voice or manually operate one by one. This control method avoids the over-reliance of the home system on explicit instructions, improving response efficiency and user experience. At the same time, the device requirements under different lifestyle patterns differ significantly, and without the mapping relationship, it is difficult to accurately determine which devices should be controlled and how to control them. In addition, the mapping relationship supports personalized configuration and machine learning optimization, and can be iterated continuously in combination with the user's historical behavior, making the control strategy more in line with actual needs. In summary, the decision-making mechanism based on the mapping relationship enables the system to have context awareness and intelligent reasoning capabilities, realizing collaborative control across devices and truly active intelligence, which is the core support for improving the intelligent level of home systems.

[0107] Step 304, controlling the target home devices according to the device control instructions.

[0108] For example, when entering the "long-term away mode", if the instructions such as "turn off the air conditioner", "turn off the unnecessary power supply", "start the security camera" are not actually executed, the energy saving and safety strategy only stays at the logical level and cannot produce actual value. Through accurate issuance and execution of control instructions, the home system can automatically adjust the home environment, avoid resource waste, reduce safety hazards, and create a comfortable space that meets the current living state for the user. In addition, the execution link should also support state feedback and exception handling, such as reminding when the device is offline, retrying or recording logs when the instruction is not responded, to ensure the integrity of the control and the robustness of the system. More importantly, automated execution reduces the user's frequent operation of the mobile application or voice assistant, truly realizing "unconscious intelligence" - the user does not need to actively intervene, and the system can operate independently according to their living rhythm. This not only improves convenience, but also enhances the user's trust and dependence on the smart home system.

[0109] In an embodiment, the method further comprises: receiving a user's work-rest adjustment instruction; and adjusting the user's work-rest mode according to the user's work-rest adjustment instruction.

[0110] For example, the work-rest adjustment instruction can come from the user's voice input, or from the remote operation instruction sent by the user to the master device through the client, such as a mobile application, a tablet, etc. After receiving such an instruction, context matching judgment needs to be made in combination with the current user work-rest mode to identify whether the instruction is consistent with the current work-rest mode, so as to decide whether to execute directly or adjust the current work-rest mode accordingly. In real life, the user's work-rest is not fixed, and there are often temporary adjustments, such as holiday leave, weekend overtime, temporary leave, etc. For example, tomorrow should be a work mode for a working day, when the user issues a work-rest adjustment instruction of "rest tomorrow", if the next day is still identified as "work mode" according to the regular working day logic, the automatic execution of away energy saving and security strategy may occur, which is seriously inconsistent with the user's actual home state, resulting in problems such as air conditioner shutdown, light off, etc. affecting the comfort of life. By introducing the work-rest adjustment instruction actively input by the user, the work-rest mode of the next day can be changed from "work mode" to "home rest mode", and the corresponding device control strategy can be automatically matched, such as keeping the indoor environment comfortable, opening the entertainment device permission, canceling the remote security alarm push, etc. In addition, if the current is "work mode" through the user's today rest instruction, the current user work-rest mode can be changed to "home rest mode". This control mode realizes the cooperation of system preset logic and user subjective intention, retaining the automatic recognition ability based on time and behavior, and giving the user the intervention and correction ability of the intelligent system. Especially for planned changes, the user only needs to say a few words or click once to complete the global mode switching, without the need to adjust the device settings one by one, greatly improving the operation efficiency and user experience.

[0111] In an embodiment, the adjusting the user schedule mode according to the user schedule adjustment instruction comprises: determining a time keyword and a schedule adjustment keyword in the schedule adjustment instruction; determining a user schedule mode corresponding to the schedule adjustment keyword as the user schedule mode at a time corresponding to the time keyword.

[0112] For example, when the user issues the instruction "rest tomorrow", the natural language processing technology identifies "tomorrow" as a time keyword, which points to a specific time point in the future (i.e. 00:00 to 24:00 of the next day), and "rest" as a schedule adjustment keyword, which corresponds to the "home rest mode". Accordingly, the default schedule mode of the "tomorrow" time period is dynamically updated from the regular "work mode" to the "home rest mode", thereby automatically triggering the corresponding device control strategy on the next day, such as keeping the air conditioner running comfortably, opening the entertainment device permission, canceling the home security alarm, etc. This method avoids the user's repeated manual mode switching or individual device adjustment on the same day, and realizes one-time instruction and global effective intelligent linkage. By structurally analyzing the key semantic elements in the instruction, not only the current intention can be understood, but also the mode preset for the future time period can be enhanced, thereby enhancing the prediction ability in the time dimension. At the same time, this mechanism supports various expression forms such as "work the day after tomorrow" and "take a vacation next week", which can be mapped and dispatched by extracting the time and schedule semantics. This not only improves the naturalness and efficiency of human-computer interaction, but also makes the system more flexible in real life, and truly realizes personalized and forward-looking intelligent services.

[0113] In an embodiment, the method further comprises: obtaining a mapping relationship adjustment instruction of the user for at least one user schedule mode; and adjusting the target home device corresponding to the user schedule mode according to the adjustment instruction of the target device, and / or the device control instruction for the target home device.

[0114] Exemplarily, the lifestyles, device configurations and usage habits of different users are different, for example, some users want to turn on the humidifier and play light music in the "home rest mode", while some other users may prefer to turn off the lights and only turn on the air purifier. If the mapping relationship is fixed and cannot be adjusted, it will be difficult to meet the diversified needs. By supporting the user to actively initiate a mapping relationship adjustment instruction (such as through voice or application operation: "I don't want to turn on the living room light when I rest" or "keep the air conditioner in the study running in the work mode"), the device list and control parameters in a specific work and rest mode can be dynamically modified to realize personalized strategy customization. In addition, the device usage preferences of the same user will also change. This mechanism not only improves the flexibility and usability of the home system, but also enhances the user's sense of trust and control of intelligent services. Therefore, the introduction of manual adjustment function of mapping relationship realizes the cooperation of automation and manual intervention, ensuring that the intelligent control has initiative and can continuously adapt to individual needs.

[0115] In an embodiment, the method further comprises: obtaining historical device control instructions of the user; and adjusting the target home device corresponding to the work and rest mode of the user and / or the device control instruction for the target home device according to the historical device control instructions.

[0116] Exemplarily, during long-term use, the behavior patterns of the user can change, or the initial set mapping relationship deviates from the actual preference. By continuously collecting and analyzing the historical control instructions of the user in a specific work and rest scenario (such as frequently turning off a certain lamp or lowering the air conditioner temperature in the "home rest mode"), the habitual operation of the user can be identified. If a certain type of instruction appears repeatedly, it indicates that the preset strategy cannot accurately match the real needs, at which time the operation can be automatically included in the default control logic of the corresponding work and rest mode to realize intelligent correction of the mapping relationship. This dynamic adjustment mechanism based on historical data makes the home system free from the dependence on static rules or manual configuration, and has the ability to evolve actively. It not only reduces the burden of repeated operation of the user, but also improves the accuracy and comfort of scene response. At the same time, this method combines short-term behavior feedback and long-term trend analysis to distinguish between temporary operation and stable habits, avoiding misjudgment. Therefore, using historical device control instructions to optimize the model is a key path to realize truly intelligent and personalized home services, promoting the evolution of the system from passive execution to active prediction.

[0117] In an embodiment, the method further comprises: when a new device is connected, obtaining device information of the new device; determining a work and rest mode of the user corresponding to the new device according to the device information, and a device control instruction in the work and rest mode of the user.

[0118] For example, after a new device (such as a smart humidifier, air purifier or smart curtain) accesses the home network, the system can automatically identify its purpose and applicable scene by reading its device information (including device type, function attribute, communication protocol, use scene label, etc.). For example, it is identified that the newly accessed device is a "aroma machine", which belongs to an environmental regulation device and is commonly used to create a comfortable atmosphere, and then it is automatically associated with the "home rest mode"; if it is a "home security camera", it is classified into the "long-term away mode". On this basis, a learning model can also be combined to match the default control instructions of the device in the corresponding mode, such as setting the aroma machine to turn on at night in the "home rest mode" and turning off unnecessary power in the "long-term away mode". This automatic classification and strategy matching mechanism reduces the complex configuration process of the user for the new device and realizes access to intelligence. At the same time, this method supports subsequent personalized adjustment, and the user can optimize the instructions in use, and the home system can also further learn and improve based on the actual use behavior. Therefore, through intelligent analysis and scene mapping of device information, the control strategy can be dynamically updated to ensure the coordination and scalability of the whole-house intelligent ecology, and truly realize the seamless experience of smart home.

[0119] The embodiment of the present application provides a device control method, which comprises the following steps: determining a current user work-rest mode; determining a target home device to be controlled and a device control instruction for the target home device according to the current user work-rest mode; and controlling the target home device according to the device control instruction. The embodiment of the present application determines the target home device to be controlled and the corresponding device control instruction by identifying the current user work-rest mode, realizes intelligent control based on the work-rest scene, and does not need frequent user operation, thereby effectively improving the intelligent level and user experience.

[0120] It should be noted that, for the method embodiment, in order to simply describe, it is expressed as a series of action combinations, but those skilled in the art should know that the embodiment of the present application is not limited by the described action sequence, because according to the embodiment of the present application, certain steps can be performed in other order or simultaneously. Secondly, those skilled in the art should know that the embodiments described in the specification all belong to preferred embodiments, and the involved actions are not necessarily required by the embodiment of the present application.

[0121] Reference Figure 4 Fig. 1 shows a structure block diagram of a device control apparatus provided by the embodiment of the present application, which can specifically include the following modules:

[0122] The work-rest mode determination module 401 is configured to determine a current user work-rest mode.

[0123] The control instruction determination module 402 is configured to determine a target home device to be controlled and a device control instruction for the target home device according to the current user work-rest mode.

[0124] The device control module 403 is configured to control the target home device according to the device control instruction.

[0125] In an embodiment, the user schedule mode includes a work mode, a home rest mode and a long-term away-from-home mode, and the work mode, the home rest mode and the long-term away-from-home mode correspond to different time ranges respectively.

[0126] The time acquisition sub-module is configured to acquire a current time.

[0127] The first schedule mode determination sub-module is configured to determine a corresponding current user schedule mode according to a time range in which the current time is located.

[0128] In an embodiment, the schedule mode determination module further includes:

[0129] The control instruction judgment sub-module is configured to, if a user device control instruction is received, judge whether the user device control instruction matches the current user schedule mode.

[0130] The first schedule mode adjustment sub-module is configured to, if the user device control instruction does not match the current user schedule mode, adjust the current user schedule mode according to the user device control instruction.

[0131] In an embodiment, the schedule mode determination module further includes:

[0132] The user behavior judgment sub-module is configured to, if a user behavior is detected, judge whether the user behavior matches the current user schedule mode.

[0133] The second schedule mode adjustment sub-module is configured to, if the user behavior does not match the current user schedule mode, adjust the current user schedule mode according to the user behavior.

[0134] In an embodiment, the method further includes:

[0135] The schedule adjustment instruction receiving module is configured to receive a user schedule adjustment instruction.

[0136] The schedule mode adjustment module is configured to adjust the user schedule mode according to the user schedule adjustment instruction.

[0137] In an embodiment, the schedule mode adjustment module includes:

[0138] The keyword determination sub-module is configured to determine a time keyword and a schedule adjustment keyword in the schedule adjustment instruction.

[0139] The second work-rest mode determining sub-module is configured to determine the user work-rest mode corresponding to the work-rest adjustment keyword as the user work-rest mode at the time corresponding to the time keyword.

[0140] In an embodiment, the control instruction determining module comprises:

[0141] The mapping relationship determining sub-module is configured to determine a mapping relationship corresponding to the current user work-rest mode, wherein the mapping relationship is a mapping relationship between a user work-rest mode and a corresponding home device and a device control instruction for the home device.

[0142] The control instruction determining sub-module is configured to determine, according to the mapping relationship, a target home device that needs to be controlled in the current user work-rest mode and a device control instruction for the target home device.

[0143] In an embodiment, the apparatus further comprises:

[0144] The mapping relationship adjustment instruction obtaining module is configured to obtain a mapping relationship adjustment instruction for at least one user work-rest mode of the user.

[0145] The first control instruction adjustment module is configured to adjust, according to the adjustment instruction of the target device, a target home device corresponding to the user work-rest mode and / or a device control instruction for the target home device.

[0146] In an embodiment, the apparatus further comprises:

[0147] The historical device control instruction obtaining module is configured to obtain a historical device control instruction of the user.

[0148] The second control instruction adjustment module is configured to adjust, according to the historical device control instruction, a target home device corresponding to the user work-rest mode and / or a device control instruction for the target home device.

[0149] In an embodiment, the apparatus further comprises:

[0150] The device information obtaining module is configured to obtain device information of a new device when the new device is connected.

[0151] The new device control instruction determining module is configured to determine, according to the device information, a user work-rest mode corresponding to the new device and a device control instruction in the user work-rest mode.

[0152] For the apparatus embodiment, it is described relatively simply because it is basically similar to the method embodiment, and the related parts refer to the part of the description of the method embodiment.

[0153] The embodiment of the present application provides a device control apparatus, which determines a current user work-rest mode; determines a target home device to be controlled and a device control instruction for the target home device according to the current user work-rest mode; and controls the target home device according to the device control instruction. The embodiment of the present application determines the target home device to be controlled and the corresponding device control instruction by recognizing the current user work-rest mode, realizes intelligent control based on a work-rest scene, does not require frequent operation of the user, and effectively improves the intelligent level and user experience.

[0154] The embodiment of the present application further provides an electronic device, which comprises:

[0155] The computer program is stored in the memory and can be run on the processor, and when the computer program is executed by the processor, each process of the device control method embodiment is realized, and the same technical effect is achieved, and thus details are not repeated here.

[0156] The embodiment of the present application further provides a computer readable storage medium, and the computer readable storage medium stores a computer program, and when the computer program is executed by a processor, each process of the device control method embodiment is realized, and the same technical effect is achieved, and thus details are not repeated here.

[0157] Each embodiment in the specification is described in a progressive manner, and each embodiment focuses on the difference from other embodiments, and the same or similar parts of each embodiment are referred to each other.

[0158] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, device, or computer program product. Therefore, the embodiments of the present application can adopt a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present application can adopt a computer program product in the form of being implemented on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program codes.

[0159] The embodiments of the present application are described with reference to flowcharts and / or block diagrams according to the method, terminal device (system), and computer program product of the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of the flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to produce a machine, so that the instructions executed by the computer or other programmable data processing terminal device produce a machine for implementing the functions described in the flowcharts and / or block diagrams. Figure 1one or more processes and / or blocks Figure 1 an apparatus for performing the functions specified in the flowchart or multiple flows and / or blocks.

[0160] These computer program instructions can also be stored in a computer- readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the flowchart or multiple flows and / or blocks. Figure 1 one or more processes and / or blocks Figure 1 an apparatus for performing the functions specified in the flowchart or multiple flows and / or blocks.

[0161] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the flowchart or multiple flows and / or blocks. Figure 1 one or more processes and / or blocks Figure 1 an apparatus for performing the functions specified in the flowchart or multiple flows and / or blocks.

[0162] While preferred embodiments of the application have been described, those skilled in the art will recognize that additional modifications and variations are possible in light of the above teachings. It is therefore intended that the appended claims be interpreted as including all such modifications and changes as fall within the true scope of the embodiments of the application.

[0163] Finally, it should be noted that the terms "comprises", "comprising", or other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises... a" does not, without more constraints, exclude the existence of additional identical elements in the process, method, article, or apparatus that comprises the element. The terms "comprising", "comprises", "including", "includes", or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article, or apparatus.

[0164] The above describes in detail the device control method and the device control apparatus provided by the present application, and the principles and implementation manners of the present application are described by using specific examples. The above description of the examples is only used to help understand the method of the present application and its core idea. Meanwhile, for those skilled in the art, the specific implementation manners and application ranges will be changed according to the idea of the present application. In summary, the content of the present description should not be understood as a limitation on the present application.

Claims

1. A device control method characterized by, The method comprises: determining a current user rest mode; determining a target home device to be controlled and a device control instruction for the target home device according to the current user rest mode; controlling the target home device according to the device control instruction.

2. The device control method according to claim 1, characterized by, The user rest mode comprises a work mode, a home rest mode and a long-term away-from-home mode, which correspond to different time ranges respectively; the determination of the current user rest information comprises: acquiring a current time; determining a corresponding current user rest mode according to a time range in which the current time is located.

3. The device control method according to claim 1 or 2, characterized by, The determination of the current user rest mode further comprises: if a user device control instruction is received, judging whether the user device control instruction matches the current user rest mode; if the user device control instruction does not match the current user rest mode, adjusting the current user rest mode according to the user device control instruction.

4. The device control method according to claim 1 or 2, characterized by, The determination of the current user rest mode further comprises: if a user behavior is detected, judging whether the user behavior matches the current user rest mode; if the user behavior does not match the current user rest mode, adjusting the current user rest mode according to the user behavior.

5. The device control method according to claim 1, wherein The method further comprises: receiving a user rest adjustment instruction; adjusting the user rest mode according to the user rest adjustment instruction.

6. The device control method according to claim 5, wherein The adjustment of the user rest mode according to the user rest adjustment instruction comprises: determining a time keyword and a rest adjustment keyword in the rest adjustment instruction; determining a user rest mode corresponding to the rest adjustment keyword as a user rest mode at a time corresponding to the time keyword.

7. The device control method according to claim 1, wherein The determination of the target home device to be controlled and the device control instruction for the target home device according to the current user rest mode comprises: determining a mapping relationship corresponding to the current user rest mode; the mapping relationship is a mapping relationship between a user rest mode and a corresponding home device and a device control instruction for the home device; determining a target home device to be controlled and a device control instruction for the target home device in the current user rest mode according to the mapping relationship.

8. The device control method according to claim 7, wherein The method further comprises: acquiring a mapping relationship adjustment instruction of a user for at least one user rest mode; adjusting a target home device corresponding to the user rest mode and / or a device control instruction for the target home device according to the adjustment instruction of the target device.

9. The device control method according to claim 7, wherein The method further comprises: acquiring a historical device control instruction of a user; adjusting a target home device corresponding to the user rest mode and / or a device control instruction for the target home device according to the historical device control instruction.

10. The device control method according to claim 1, wherein The method further comprises: when a new device is accessed, acquiring device information of the new device; determining a user rest mode corresponding to the new device and a device control instruction in the user rest mode according to the device information.

11. An apparatus control device characterized by comprising: The device comprises: a rest mode determination module configured to determine a current user rest mode; a control instruction determination module, configured to determine, according to the current user routine, a target home device to be controlled and a device control instruction for the target home device; a device control module, configured to control the target home device according to the device control instruction.

12. An electronic device, comprising: comprising: a processor, a memory, and a computer program stored on the memory and capable of running on the processor, the computer program being executed by the processor to implement the steps of the device control method according to any one of claims 1-10.

13. A computer-readable storage medium, characterized in that, a computer program is stored on the computer readable storage medium, the computer program being executed by the processor to implement the steps of the device control method according to any one of claims 1-10.