Method and device for controlling intelligent household electrical appliance, electronic equipment and storage medium
By obtaining indoor brightness and personnel status and automatically controlling smart home appliances, the problem of inconvenience in user operation in the existing technology is solved and the user experience is improved.
Patent Information
- Application Number
- CN202311203396.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-18
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2043-09-18
AI Technical Summary
The existing smart home control method requires users to actively enter voice commands or execute related actions, which is inconvenient to operate, resulting in poor user experience.
By obtaining the predicted indoor brightness, actual indoor brightness and personnel status, the smart home appliances to be controlled and their control instructions are automatically determined and controlled.
It realizes automatic operation of smart home appliances and improves the user's experience of using smart home appliances.
Smart Images

Figure CN119644770A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home technology, for example, to a method, device, electronic device and storage medium for controlling smart home appliances. Background Art
[0002] With the development of the Internet, the Internet of Things and artificial intelligence technology, smart homes have been widely used, bringing great convenience to people's daily lives. At present, most smart homes use audio devices or cameras as the main entrance to achieve intelligent control, that is, users can input voice commands or perform related actions to control smart homes.
[0003] In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art:
[0004] Since the existing method of controlling smart homes requires users to actively input voice commands or perform related actions, the operation is relatively inconvenient, resulting in a poor user experience.
[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0006] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0007] The embodiments of the present disclosure provide a method, an apparatus, an electronic device, and a storage medium for controlling a smart home appliance, so as to automatically operate the smart home appliance.
[0008] In some embodiments, the method for controlling smart home appliances includes: obtaining predicted indoor light brightness, actual indoor light brightness, and indoor personnel information; the indoor personnel information is used to characterize whether there is someone indoors or no one indoors; when the indoor personnel information indicates that there is someone indoors, obtaining the personnel status; the personnel status is used to characterize the sleeping state or the activity state; determining the smart home appliances to be controlled and the control instructions corresponding to the smart home appliances to be controlled based on the predicted indoor light brightness, the actual indoor light brightness and the personnel status; and controlling the smart home appliances to be controlled according to the control instructions.
[0009] In some embodiments, obtaining predicted indoor light brightness includes: obtaining outdoor light brightness; and inputting the outdoor light brightness into a preset indoor light brightness model to obtain predicted indoor light brightness.
[0010] In some embodiments, obtaining the status of a person includes: obtaining the activity frequency and posture information of the person in a first preset time period; when the activity frequency is less than or equal to a first preset threshold, determining that the person's status is a sleeping state; and / or, when the activity frequency is greater than the first preset threshold, determining that the person's status is an active state.
[0011] In some embodiments, the sleep state includes a long sleep state and a short sleep state. After determining that the person's state is a sleep state, it also includes: when the current time is daytime, determining that the person's state is a long sleep state; and / or, when the current time is night, determining that the person's state is a short sleep state.
[0012] In some embodiments, the sleeping state includes a short sleeping state. After determining that the person's state is the sleeping state, it also includes: obtaining the difference between the predicted indoor light brightness and the actual indoor light brightness; when the difference between the predicted indoor light brightness and the actual indoor light brightness is greater than a second preset threshold, and the predicted indoor light brightness is greater than the actual light brightness, determining that the person's state is a short sleeping state.
[0013] In some embodiments, the smart home appliance to be controlled and the control instructions corresponding to the smart home appliance to be controlled are determined according to the predicted indoor light brightness, the actual indoor light brightness and the status of the person, including: obtaining the difference between the predicted indoor light brightness and the actual indoor light brightness; when the difference between the indoor light brightness and the actual indoor light brightness is less than a second preset threshold and the status of the person is sleeping, determining that the smart home appliance to be controlled includes smart curtains, and the control instruction corresponding to the smart curtains is to close.
[0014] In some embodiments, after obtaining the predicted indoor light brightness, the actual indoor light brightness, and the indoor personnel information, it also includes: when the indoor personnel information indicates that there is no one indoors, sending device shutdown information to a preset user terminal.
[0015] In some embodiments, the device for controlling smart home appliances includes: a first acquisition module, configured to acquire predicted indoor light brightness, actual indoor light brightness, and indoor personnel information; the personnel information is used to characterize whether there is someone indoors or no one indoors; a second acquisition module, configured to acquire the personnel status when the indoor personnel information indicates that there is someone indoors; the personnel status is used to characterize the sleeping state or the active state; a determination module, configured to determine the smart home appliances to be controlled and the control instructions corresponding to the smart home appliances to be controlled based on the predicted indoor light brightness, the actual indoor light brightness and the personnel status; and a control module, configured to control the smart home appliances to be controlled according to the control instructions.
[0016] In some embodiments, the electronic device includes a processor and a memory storing program instructions, and the processor is configured to execute the above-mentioned method for controlling smart home appliances when running the program instructions.
[0017] In some embodiments, the storage medium stores program instructions, and when the program instructions are run, the above-mentioned method for controlling smart home appliances is executed.
[0018] The method, device, electronic device and storage medium for controlling smart home appliances provided by the embodiments of the present disclosure can achieve the following technical effects: by determining the smart home appliances to be controlled and the control instructions corresponding to the smart home appliances to be controlled according to the predicted indoor light brightness, the actual indoor light brightness and the status of the people, and controlling the smart home appliances to be controlled according to the control instructions, the smart home appliances to be controlled can be automatically operated, thereby improving the user experience of using the smart home appliances.
[0019] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:
[0021] Figure 1 is a schematic diagram of a method for controlling a smart home appliance provided by an embodiment of the present disclosure;
[0022] Figure 2 is a schematic diagram of a method for determining a person's status according to an embodiment of the present disclosure;
[0023] Figure 3 is a schematic diagram of another method for determining a person's status according to an embodiment of the present disclosure;
[0024] Figure 4 is a schematic diagram of another method for controlling a smart home appliance provided by an embodiment of the present disclosure;
[0025] Figure 5 is a schematic diagram of a device for controlling a smart home appliance provided by an embodiment of the present disclosure;
[0026] Figure 6 It is a schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0027] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0028] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0029] Unless otherwise stated, the term "plurality" means two or more.
[0030] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.
[0031] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.
[0032] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0033] In the embodiments of the present disclosure, smart home appliances refer to home appliances that are formed by introducing microprocessors, sensor technology, and network communication technology into home appliances. They have the characteristics of intelligent control, intelligent perception, and intelligent application. The operation process of smart home appliances often relies on the application and processing of modern technologies such as the Internet of Things, the Internet, and electronic chips. For example, smart home appliances can be connected to electronic devices to enable users to remotely control and manage the smart home appliances.
[0034] In the disclosed embodiments, the terminal device refers to an electronic device with a wireless connection function. The terminal device can communicate with the above-mentioned smart home appliances by connecting to the Internet, or can communicate with the above-mentioned smart home appliances directly through Bluetooth, WiFi, etc. In some embodiments, the terminal device is, for example, a mobile device, a computer, or a vehicle-mounted device built into a hover car, or any combination thereof. Mobile devices may include, for example, mobile phones, smart home devices, wearable devices, smart mobile devices, virtual reality devices, etc., or any combination thereof, wherein wearable devices include, for example: smart watches, smart bracelets, pedometers, etc.
[0035] Combination Figure 1 As shown, the embodiment of the present disclosure provides a method for controlling a smart home appliance, including:
[0036] Step S101, the electronic device obtains predicted indoor light brightness, actual indoor light brightness, and indoor personnel information. The indoor personnel information is used to indicate whether there is someone indoors or no one indoors.
[0037] Step S102: When the indoor person information indicates that there is someone in the room, the electronic device obtains the person's state, which is used to represent a sleeping state or an active state.
[0038] Step S103 , the electronic device determines the smart home appliance to be controlled and the control instructions corresponding to the smart home appliance to be controlled according to the predicted indoor light brightness, the actual indoor light brightness and the status of the person.
[0039] Step S104: the electronic device controls the smart home appliance to be controlled according to the control instruction.
[0040] By adopting the method for controlling smart home appliances provided by the embodiments of the present disclosure, the smart home appliances to be controlled and the control instructions corresponding to the smart home appliances to be controlled are determined according to the predicted indoor light brightness, the actual indoor light brightness and the status of the people, and the smart home appliances to be controlled are controlled according to the control instructions. In this way, the smart home appliances to be controlled can be automatically operated, thereby improving the user experience of using smart home appliances.
[0041] Optionally, obtaining the predicted indoor light brightness includes: obtaining outdoor light brightness. Inputting the outdoor light brightness into a preset indoor light brightness model to obtain the predicted indoor light brightness. The outdoor light brightness is the outdoor brightness of the area where the electronic device is located. The indoor light brightness is the brightness of the room where the electronic device is located.
[0042] Optionally, obtaining the outdoor light brightness includes: obtaining the current time, season information, region information where the electronic device is located, and visibility corresponding to the region information. The current time, season information, region information where the electronic device is located, and visibility corresponding to the region information are input into a preset outdoor light brightness model to obtain the outdoor light brightness.
[0043] In some embodiments, the current time is 12 noon. The season information is summer. The region information where the electronic device is located is Beijing, and the visibility corresponding to the region information is 25 kilometers. After 12 noon, summer, Beijing, and the visibility of 25 kilometers are input into the preset outdoor light brightness model, the obtained outdoor light brightness is 100 lux to 1000 lux.
[0044] Furthermore, an outdoor light brightness model is obtained by the following method: a plurality of sample data information is obtained, the sample data information includes time, season information, region information and visibility corresponding to the region information. Each sample data information has a sample label, and the sample label is the outdoor light brightness corresponding to the sample data information. Each sample data information is input into a preset neural network model for training to obtain an outdoor light brightness model.
[0045] Optionally, a photosensitive device is provided indoors to obtain the actual indoor light brightness, including: sending a brightness acquisition instruction to the indoor photosensitive device, triggering the photosensitive device to feed back the detected indoor light brightness.
[0046] Optionally, obtaining the state of the person includes: obtaining the activity frequency and posture information of the person in a first preset time period. When the activity frequency is less than or equal to a first preset threshold, determining that the state of the person is a sleeping state. And / or when the activity frequency is greater than the first preset threshold, determining that the state of the person is an active state.
[0047] In some embodiments, the first preset time period is half an hour, and the activity frequency is, for example, 3 times in half an hour. The first preset threshold is, for example, 6 times in half an hour. In this way, the activity frequency is less than the first preset threshold, and the person's state is determined to be a sleeping state. In some embodiments, changes in the user's position or body movements can be regarded as activities. By counting the number of activities of the user in the first preset time period, the activity frequency of the user in the first preset time period can be obtained, which makes it easier to determine whether the user is in a sleeping state. In some embodiments, body movements are, for example, sliding a mobile phone, turning the body, etc.
[0048] Optionally, the sleep state includes a long sleep state and a short sleep state. After determining that the person's state is a sleep state, it further includes: when the current time is daytime, determining that the person's state is a long sleep state. And / or, when the current time is nighttime, determining that the person's state is a short sleep state. In some embodiments, 0:00 a.m. to 8:00 a.m. and 20:00 p.m. to 24:00 p.m. in a day are determined as night. 8:00 a.m. to 20:00 p.m. in a day are determined as daytime.
[0049] Combination Figure 2 As shown, the embodiment of the present disclosure provides a method for determining a person's status, including:
[0050] Step S201: The electronic device obtains predicted indoor light brightness, actual indoor light brightness, and indoor personnel information. The indoor personnel information is used to indicate whether there is someone in the room or no one in the room.
[0051] Step S202: When the indoor person information indicates that there is someone indoors, the electronic device obtains the activity frequency and posture information of the person in a first preset time period.
[0052] Step S203: When the activity frequency is less than or equal to the first preset threshold, the electronic device determines that the person is in a sleeping state.
[0053] Step S204, the electronic device obtains the current time and determines whether the current time is daytime. If yes, execute step S205. Otherwise, execute step S206.
[0054] Step S205: the electronic device determines that the person is in a short sleep state.
[0055] Step S206: the electronic device determines that the person is in a long sleep state.
[0056] By using the method for determining the state of a person provided by the embodiment of the present disclosure, when the activity frequency is less than or equal to the first preset threshold, it is determined that the state of the person is a sleeping state. Further, by judging whether the current time is daytime, it is possible to determine whether the state of the person is a short sleep state or a long sleep state.
[0057] According to the predicted indoor light brightness, actual indoor light brightness and personnel status, the smart home appliances to be controlled and the control instructions corresponding to the smart home appliances to be controlled are determined, and the smart home appliances to be controlled are controlled according to the control instructions. In this way, the smart home appliances to be controlled can be automatically operated, thereby improving the user experience of using smart home appliances.
[0058] Optionally, the smart home appliances to be controlled include one or more of air conditioners, curtains, fresh air fans, aromatherapy, humidifiers, night lights, and music players.
[0059] Optionally, the sleep state includes a short sleep state, and after determining that the person is in the sleep state, the method further includes: obtaining the difference between the predicted indoor light brightness and the actual indoor light brightness. When the difference between the predicted indoor light brightness and the actual indoor light brightness is greater than a second preset threshold, and the predicted indoor light brightness is greater than the actual light brightness, the person is determined to be in the short sleep state. In this way, when the difference between the predicted indoor light brightness and the actual indoor light brightness is greater than the second preset threshold, and the predicted indoor light brightness is greater than the actual light brightness, it can be determined that the current time is daytime, and the person is further determined to be in the short sleep state.
[0060] Combination Figure 3 As shown, the embodiment of the present disclosure provides a method for determining a person's status, including:
[0061] Step S301: The electronic device obtains predicted indoor light brightness, actual indoor light brightness, and indoor personnel information. The indoor personnel information is used to indicate whether there is someone in the room or no one in the room.
[0062] Step S302: When the indoor personnel information indicates that there is someone indoors, the electronic device obtains the activity frequency and posture information of the person in a first preset time period.
[0063] Step S203: When the activity frequency is less than or equal to the first preset threshold, the electronic device determines that the person is in a sleeping state.
[0064] Step S304: the electronic device obtains the difference between the predicted indoor light brightness and the actual indoor light brightness.
[0065] Step S305: When the difference between the predicted indoor light brightness and the actual indoor light brightness is greater than a second preset threshold, and the predicted indoor light brightness is greater than the actual light brightness, the electronic device determines that the person is in a short sleep state.
[0066] According to the method for determining the state of a person provided by the embodiment of the present disclosure, when the activity frequency is less than or equal to the first preset threshold, the state of the person is determined to be a sleeping state. Further, when the difference between the predicted indoor light brightness and the actual indoor light brightness is greater than the second preset threshold, and the predicted indoor light brightness is greater than the actual light brightness, the state of the person is determined to be a short sleeping state, so that the state of the person can be determined to be a short sleeping state.
[0067] Optionally, determining the smart home appliance to be controlled and the control instruction corresponding to the smart home appliance to be controlled according to the predicted indoor light brightness, the actual indoor light brightness and the status of the person includes: obtaining the difference between the predicted indoor light brightness and the actual indoor light brightness. When the difference between the indoor light brightness and the actual indoor light brightness is less than the second preset threshold value, and the status of the person is in the sleeping state, it is determined that the smart home appliance to be controlled includes smart curtains, and the control instruction corresponding to the smart curtains is to close. When the difference between the indoor light brightness and the actual indoor light brightness is less than the second preset threshold value, it means that the curtains are in the open state, but the status of the person is in the sleeping state at this time. In order to improve the sleeping state of the person, it is determined that the smart home appliance to be controlled includes smart curtains, and the control instruction corresponding to the smart curtains is to close. Optionally, controlling the smart home appliance to be controlled according to the control instruction also includes: controlling the smart curtains to close.
[0068] Combination Figure 4 As shown, the embodiment of the present disclosure provides a method for controlling a smart home appliance, including:
[0069] Step S401, the electronic device obtains predicted indoor light brightness, actual indoor light brightness, and indoor personnel information; the indoor personnel information is used to represent whether there is someone indoors or no one indoors.
[0070] Step S402: When the indoor person information indicates that there is someone indoors, the electronic device obtains the activity frequency and posture information of the person in a first preset time period.
[0071] Step S403: When the activity frequency is less than or equal to the first preset threshold, the electronic device determines that the person is in a sleeping state.
[0072] Step S404: the electronic device obtains the difference between the predicted indoor light brightness and the actual indoor light brightness.
[0073] Step S405, when the difference between the indoor light brightness and the actual indoor light brightness is less than the second preset threshold and the person is in a sleeping state, the electronic device determines that the smart home appliances to be controlled include smart curtains, and the control instruction corresponding to the smart curtains is to close.
[0074] Step S406: the electronic device controls the smart curtain to close.
[0075] By adopting the method for controlling smart home appliances provided by the embodiments of the present disclosure, it is determined that the smart home appliances to be controlled include smart curtains according to the predicted indoor light brightness, the actual indoor light brightness and the status of the personnel, and the control instruction corresponding to the smart curtains is to close, and the smart curtains are controlled to close. In this way, the smart curtains can be automatically operated, thereby improving the user experience of using the smart curtains.
[0076] Optionally, after controlling the smart curtain to close, the method further includes: obtaining a preset sleep time, and controlling the smart curtain to open when the preset sleep time is reached.
[0077] Optionally, obtaining the preset sleep duration includes: when the sleep state is a long sleep state, obtaining the sleep duration corresponding to the long sleep state in a preset data table. Or, when the sleep state is a short sleep state, obtaining the sleep duration corresponding to the short sleep state in a preset data table. The data table stores the correspondence between the long sleep state and the sleep duration and the correspondence between the short sleep state and the sleep duration.
[0078] In some embodiments, the sleep duration corresponding to the long sleep state is, for example, 8 hours. The sleep duration corresponding to the short sleep state is, for example, half an hour. Further, the user can change the sleep duration in the data table through the user terminal. For example, the sleep duration corresponding to the long sleep state is changed from 8 hours to 10 hours.
[0079] Optionally, the smart home appliance to be controlled and the control instructions corresponding to the smart home appliance to be controlled are determined according to the predicted indoor light brightness, the actual indoor light brightness and the status of the person, including: when the status of the person is a long sleep state, it is determined that the smart home appliance to be controlled includes an air conditioner. The control instruction corresponding to the air conditioner is determined to be a temperature sleep-aiding mode. The temperature sleep-aiding mode indicates that the air conditioner adjusts the indoor temperature according to the user's sleep stage and a preset sleep-aiding temperature curve. The sleep stage includes one of falling asleep, light sleep and deep sleep. When the user is in the falling asleep stage, the air conditioner is controlled according to the falling asleep temperature curve segment in the sleep-aiding temperature curve. When the user is in the light sleep stage, the air conditioner is controlled according to the light sleep temperature curve segment in the sleep-aiding temperature curve. When the user is in the deep sleep stage, the air conditioner is controlled according to the deep sleep temperature curve segment in the sleep-aiding temperature curve.
[0080] Optionally, the smart home appliance to be controlled and the control instructions corresponding to the smart home appliance to be controlled are determined according to the predicted indoor light brightness, the actual indoor light brightness and the status of the personnel, including: when the status of the personnel is a long sleep state, determining that the smart home appliance to be controlled includes a fresh air fan. Determining that the control instruction corresponding to the fresh air fan is a fresh air mode. The fresh air mode is used to characterize that the indoor air quality is detected at intervals of a second preset time period, and when the indoor air quality is lower than a third preset threshold, the fresh air is controlled to be turned on until the indoor control quality is greater than or equal to the third preset threshold.
[0081] Optionally, the smart home appliance to be controlled and the control instruction corresponding to the smart home appliance to be controlled are determined according to the predicted indoor light brightness, the actual indoor light brightness and the status of the person, including: when the status of the person is a long sleep state, determining that the smart home appliance to be controlled includes aromatherapy. Determining that the control instruction corresponding to the aromatherapy is turned on.
[0082] Optionally, the smart home appliance to be controlled and the control instructions corresponding to the smart home appliance to be controlled are determined according to the predicted indoor light brightness, the actual indoor light brightness and the status of the personnel, including: when the status of the personnel is a long sleep state, it is determined that the smart home appliance to be controlled includes a humidifier. Determine that the control instruction corresponding to the humidifier is a humidity sleep-aid mode. The humidity sleep-aid mode characterizes that the humidifier adjusts the indoor humidity according to the user's sleep stage and a preset sleep-aid humidity curve. The sleep stage includes one of falling asleep, light sleep and deep sleep. When the user is in the falling asleep stage, the humidifier is controlled according to the falling asleep humidity curve segment in the sleep-aid humidity curve. When the user is in the light sleep stage, the humidifier is controlled according to the light sleep humidity curve segment in the sleep-aid humidity curve. When the user is in the deep sleep stage, the humidifier is controlled according to the deep sleep humidity curve segment in the sleep-aid humidity curve.
[0083] Optionally, the smart home appliances to be controlled and the control instructions corresponding to the smart home appliances to be controlled are determined according to the predicted indoor light brightness, the actual indoor light brightness and the status of the personnel, including: when the status of the personnel is a long sleep state, determining that the smart home appliances to be controlled include a music player. Determine that the control instruction corresponding to the music player is a music sleep-aiding mode. The music sleep-aiding mode indicates that the music player plays white noise until the user enters a deep sleep stage. Among them, white noise is a monotonous and repetitive sound, such as the sound of rain, bellows, insects, the rustling sound of a radio, etc., and the volume of white noise is usually not loud. White noise can make the nerves feel tired, which then helps to enter a sleep state; in addition, it can suppress other sharp noises from the outside world, thereby helping the user to better enter a sleep state.
[0084] Optionally, determining the smart home appliance to be controlled and the control instruction corresponding to the smart home appliance to be controlled according to the predicted indoor light brightness, the actual indoor light brightness and the status of the person includes: when the status of the person is a short sleep state, determining that the smart home appliance to be controlled includes an air conditioner. Determining that the control instruction corresponding to the air conditioner is a comfortable temperature mode. The comfortable temperature mode indicates that the air conditioner operates according to a preset temperature.
[0085] Optionally, the smart home appliance to be controlled and the control instructions corresponding to the smart home appliance to be controlled are determined according to the predicted indoor light brightness, the actual indoor light brightness and the status of the personnel, including: when the status of the personnel is a short sleep state, determining that the smart home appliance to be controlled includes a fresh air fan. Determining that the control instruction corresponding to the fresh air fan is a fresh air mode. The fresh air mode is used to characterize that the indoor air quality is detected at intervals of a second preset time period, and when the indoor air quality is lower than a third preset threshold, the fresh air is controlled to be turned on until the indoor control quality is greater than or equal to the third preset threshold.
[0086] Optionally, determining the smart home appliance to be controlled and the control instruction corresponding to the smart home appliance to be controlled according to the predicted indoor light brightness, the actual indoor light brightness and the status of the person includes: when the status of the person is a short sleep state, determining that the smart home appliance to be controlled includes a humidifier. Determining that the control instruction corresponding to the humidifier is a comfortable humidity mode. The comfortable humidity mode indicates that the humidifier operates according to a preset humidity.
[0087] Optionally, determining the smart home appliance to be controlled and the control instruction corresponding to the smart home appliance to be controlled according to the predicted indoor light brightness, the actual indoor light brightness and the status of the person includes: when the status of the person is a short sleep state, determining that the smart home appliance to be controlled includes a music player. Determining that the control instruction corresponding to the music player is a wake-up mode. The wake-up mode indicates that the music player plays music to wake up the user when a preset time point is reached.
[0088] Optionally, after obtaining the predicted indoor light brightness, the actual indoor light brightness, and the indoor personnel information, the method further includes: when the indoor personnel information indicates that no one is indoors, sending device shutdown information to a preset user terminal. Further, when a shutdown instruction is received from the user terminal, the running home appliances in the room are shut down. Alternatively, when no shutdown instruction is received from the user terminal within a third preset time period, the running home appliances in the room are shut down.
[0089] Optionally, the smart home appliances to be controlled and the control instructions corresponding to the smart home appliances to be controlled are determined according to the predicted indoor light brightness, the actual indoor light brightness and the status of the personnel, including: when the difference between the predicted indoor light brightness and the actual indoor light brightness is greater than a second preset threshold, and the predicted indoor light brightness is greater than the actual indoor light brightness, and the status of the personnel is active, determining that the smart home appliances to be controlled include smart curtains, and the control instructions corresponding to the smart curtains are to open.
[0090] Combination Figure 5As shown, the embodiment of the present disclosure provides a device 500 for controlling smart home appliances, including a first acquisition module 501, a second acquisition module 502, a determination module 503 and a control module 504. The first acquisition module 501 is configured to acquire predicted indoor light brightness, actual indoor light brightness, and indoor personnel information; the personnel information is used to characterize whether there is someone indoors or no one indoors. The second acquisition module 502 is configured to acquire the status of the person when the indoor personnel information indicates that there is someone indoors; the status of the person is used to characterize the sleeping state or the active state. The determination module 503 is configured to determine the smart home appliance to be controlled and the control instructions corresponding to the smart home appliance to be controlled according to the predicted indoor light brightness, the actual indoor light brightness and the status of the person. The control module 504 is configured to control the smart home appliance to be controlled according to the control instructions.
[0091] By using the device for controlling smart home appliances provided by the embodiments of the present disclosure, the smart home appliances to be controlled and the control instructions corresponding to the smart home appliances to be controlled are determined according to the predicted indoor light brightness, the actual indoor light brightness and the status of the people, and the smart home appliances to be controlled are controlled according to the control instructions. In this way, the smart home appliances to be controlled can be automatically operated, thereby improving the user experience of using smart home appliances.
[0092] Optionally, the first acquisition module is configured to acquire the predicted indoor light brightness in the following manner: acquiring the outdoor light brightness and inputting the outdoor light brightness into a preset indoor light brightness model to obtain the predicted indoor light brightness.
[0093] Optionally, the first acquisition module is configured to acquire the state of the person in the following manner: acquiring the activity frequency and posture information of the person in a first preset time period. When the activity frequency is less than or equal to a first preset threshold, determining that the state of the person is a sleeping state. And / or, when the activity frequency is greater than the first preset threshold, determining that the state of the person is an active state.
[0094] Optionally, after determining that the person's state is an active state, the first acquisition module is further configured to determine that the person's state is a long sleep state when the current time is daytime, and / or determine that the person's state is a short sleep state when the current time is nighttime.
[0095] Optionally, after determining that the person state is an active state, the first acquisition module is further configured to acquire a difference between the predicted indoor light brightness and the actual indoor light brightness. When the difference between the predicted indoor light brightness and the actual indoor light brightness is greater than a second preset threshold, and the predicted indoor light brightness is greater than the actual light brightness, the person state is determined to be a short sleep state.
[0096] Optionally, the determination module is configured to determine the smart home appliance to be controlled and the control instruction corresponding to the smart home appliance to be controlled according to the predicted indoor light brightness, the actual indoor light brightness and the status of the person in the following manner: obtaining the difference between the predicted indoor light brightness and the actual indoor light brightness. When the difference between the indoor light brightness and the actual indoor light brightness is less than a second preset threshold value and the status of the person is a sleeping state, it is determined that the smart home appliance to be controlled includes a smart curtain, and the control instruction corresponding to the smart curtain is to close.
[0097] Optionally, the apparatus for controlling smart home appliances further includes a sending module configured to send device shutdown information to a preset user terminal when the indoor personnel information indicates that there is no one indoors.
[0098] Combination Figure 6 As shown, the embodiment of the present disclosure provides a device 600 for controlling a smart home appliance, including a processor 601 and a memory 602. Optionally, the device may also include a communication interface 603 and a bus 604. The processor 601, the communication interface 603, and the memory 602 may communicate with each other through the bus 604. The communication interface 603 may be used for information transmission. The processor 601 may call the logic instructions in the memory 602 to execute the method for controlling a smart home appliance of the above embodiment.
[0099] By adopting the electronic device provided by the embodiment of the present disclosure, the smart home appliances to be controlled and the control instructions corresponding to the smart home appliances to be controlled are determined according to the predicted indoor light brightness, the actual indoor light brightness and the status of the people, and the smart home appliances to be controlled are controlled according to the control instructions. In this way, the smart home appliances to be controlled can be automatically operated, thereby improving the user experience of using the smart home appliances.
[0100] In addition, the logic instructions in the memory 602 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.
[0101] The memory 602 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 601 executes the function application and data processing by running the program instructions / modules stored in the memory 602, that is, the method for controlling the smart home appliance in the above embodiment is implemented.
[0102] The memory 602 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 602 may include a high-speed random access memory and may also include a non-volatile memory.
[0103] An embodiment of the present disclosure provides an electronic device, including a processor and a memory storing program instructions, wherein the processor is configured to execute the above-mentioned method for controlling a smart home appliance when running the program instructions.
[0104] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned method for controlling a smart home appliance.
[0105] The computer-readable storage medium mentioned above may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
[0106] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk, and other media that can store program codes, or a transient storage medium.
[0107] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0108] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0109] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
[0110] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A method for controlling a smart home appliance, characterized in that: include: Obtain predicted indoor light brightness, actual indoor light brightness, and indoor personnel information; Indoor occupancy information is used to indicate whether there is someone indoors or no one indoors; When the indoor personnel information indicates that there is someone in the room, obtaining the personnel status; the personnel status is used to represent the sleeping state or the active state; Determine the smart home appliance to be controlled and the control instructions corresponding to the smart home appliance to be controlled according to the predicted indoor light brightness, the actual indoor light brightness and the status of the personnel; The smart home appliance to be controlled is controlled according to the control instructions.
2. The method according to claim 1, characterized in that Get the predicted indoor light brightness, including: Get the outdoor light brightness; The outdoor light brightness is input into the preset indoor light brightness model to obtain the predicted indoor light brightness.
3. The method according to claim 1, characterized in that Get personnel status, including: Acquire the activity frequency and posture information of the person in the first preset time period; When the activity frequency is less than or equal to the first preset threshold, determining that the person is in a sleeping state; and / or, When the activity frequency is greater than a first preset threshold, it is determined that the person status is an active status.
4. The method according to claim 3, characterized in that The sleep state includes long sleep state and short sleep state. After determining that the person is in the sleep state, it also includes: When the current time is daytime, determining that the person is in a long sleep state; and / or, When the current time is at night, it is determined that the person is in a short sleep state.
5. The method according to claim 3, characterized in that: The sleeping state includes the short sleeping state. After determining that the person is in the sleeping state, it also includes: Get the difference between the predicted indoor light brightness and the actual indoor light brightness; When the difference between the predicted indoor light brightness and the actual indoor light brightness is greater than the second preset threshold, and the predicted indoor light brightness is greater than the actual light brightness, it is determined that the person is in a short sleep state.
6. The method according to claim 1, characterized in that Determine the smart home appliance to be controlled and the control instructions corresponding to the smart home appliance to be controlled according to the predicted indoor light brightness, the actual indoor light brightness and the status of the personnel, including: Get the difference between the predicted indoor light brightness and the actual indoor light brightness; When the difference between the indoor light brightness and the actual indoor light brightness is less than the second preset threshold and the person is in a sleeping state, it is determined that the smart home appliance to be controlled includes smart curtains, and the control instruction corresponding to the smart curtains is to close.
7. The method according to claim 1, characterized in that After obtaining the predicted indoor light brightness, actual indoor light brightness, and indoor personnel information, it also includes: When the indoor personnel information indicates that there is no one indoors, a device shutdown message is sent to a preset user terminal.
8. A device for controlling smart home appliances, characterized in that: include: A first acquisition module is configured to acquire predicted indoor light brightness, actual indoor light brightness, and indoor personnel information; The personnel information is used to indicate whether there is someone in the room or no one in the room; The second acquisition module is configured to acquire the status of the person when the indoor person information indicates that there is someone in the room; the status of the person is used to represent a sleeping state or an active state; A determination module is configured to determine the smart home appliance to be controlled and the control instruction corresponding to the smart home appliance to be controlled according to the predicted indoor light brightness, the actual indoor light brightness and the status of the personnel; The control module is configured to control the smart home appliance device according to the control instruction.
9. An electronic device comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the method for controlling a smart home appliance as claimed in any one of claims 1 to 7 when running the program instructions.
10. A storage medium storing program instructions, characterized in that: When the program instructions are executed, the method for controlling a smart home appliance device as described in any one of claims 1 to 7 is executed.
Citation Information
Patent Citations
Equipment control method and device based on IOT (Internet of Things)
CN107612964A
Smart household appliance control method and system
CN108287499A
Intelligent curtain, control method thereof, device and computer-readable storage medium
CN109782620A
Smart home control system
CN111427276A
Sleep wake-up control method and system, air conditioning device and household appliance
CN114279074A