CN115562056A - Instruction sending method and device, storage medium and electronic device - Google Patents

Instruction sending method and device, storage medium and electronic device Download PDF

Info

Publication number
CN115562056A
CN115562056A CN202211218056.5A CN202211218056A CN115562056A CN 115562056 A CN115562056 A CN 115562056A CN 202211218056 A CN202211218056 A CN 202211218056A CN 115562056 A CN115562056 A CN 115562056A
Authority
CN
China
Prior art keywords
air conditioner
instruction
outdoor
window
sleep state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211218056.5A
Other languages
Chinese (zh)
Inventor
赵仕军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd, Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202211218056.5A priority Critical patent/CN115562056A/en
Publication of CN115562056A publication Critical patent/CN115562056A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Air Conditioning Control Device (AREA)

Abstract

The application discloses a method and a device for sending an instruction, a storage medium and an electronic device, which relate to the technical field of smart homes, and the method for sending the instruction comprises the following steps: acquiring first feature data of a target object, and determining whether the target object enters a sleep state according to the first feature data; acquiring outdoor environment information under the condition that the target object enters a sleep state, wherein the outdoor environment information comprises: an outdoor temperature; generating an air conditioner closing instruction and a window opening instruction under the condition that the outdoor temperature meets the preset temperature; and respectively sending the air conditioner closing instruction and the window opening instruction to an air conditioner and a window of a target area where the target object is located, so that the air conditioner executes closing operation according to the air conditioner closing instruction, and the window executes opening operation according to the window opening instruction.

Description

Instruction sending method and device, storage medium and electronic device
Technical Field
The application relates to the technical field of smart homes, in particular to a method and a device for sending an instruction, a storage medium and an electronic device.
Background
With the progress of scientific technology and the development of artificial intelligence, intelligent algorithms are applied to daily life more and more, the intelligent development of the intelligent algorithms is very important, and the most important problem of intelligence is to intelligently solve the urgent needs of users.
Air conditioners are now being purchased in more and more households, and can provide users with a cool space in the hot summer season. In the related art, when the air conditioner is in the sleep function, the air conditioner generally adjusts the temperature according to the sleep curve, but the current sleep curve is a relatively single adjustment of the temperature based on the passage of time. The real sleep situation is not well reflected.
Aiming at the problems that in the related art, when the air conditioner is in a sleep function, the air conditioner can only adjust the temperature according to a sleep curve, cannot adjust according to the real sleep condition and the like, an effective solution is not provided.
Disclosure of Invention
The embodiment of the application provides a method and a device for sending an instruction, a storage medium and an electronic device, and at least solves the problems that in the related art, when an air conditioner is in a sleep function, the air conditioner can only adjust the temperature according to a sleep curve, cannot adjust according to a real sleep condition and the like.
According to an embodiment of the present application, there is provided a method for sending an instruction, including: acquiring first feature data of a target object, and determining whether the target object enters a sleep state according to the first feature data; acquiring outdoor environment information under the condition that the target object enters a sleep state, wherein the outdoor environment information comprises: an outdoor temperature; generating an air conditioner closing instruction and a window opening instruction under the condition that the outdoor temperature meets the preset temperature; and respectively sending the air conditioner closing instruction and the window opening instruction to an air conditioner and a window of a target area where the target object is located, so that the air conditioner executes closing operation according to the air conditioner closing instruction, and the window executes opening operation according to the window opening instruction.
In one exemplary embodiment, generating an air conditioner closing command and a window opening command in case that the outdoor temperature meets a preset temperature includes: when the air conditioner is in a refrigerating state and the outdoor temperature is less than or equal to a first preset temperature, generating an air conditioner closing instruction and a window opening instruction; and generating an air conditioner closing instruction and a window opening instruction under the conditions that the air conditioner is in a heating state and the outdoor temperature is greater than or equal to a second preset temperature.
In one exemplary embodiment, the outdoor environment information further includes: the outdoor noise value and the outdoor air quality index, under the condition that the outdoor temperature accords with the preset temperature, the outdoor air conditioner generates an air conditioner closing instruction and a window opening instruction, and the outdoor air conditioner comprises the following steps: determining whether the outdoor noise value is less than or equal to a preset noise value and whether the outdoor air quality index is less than or equal to a first preset air quality index; and generating an air conditioner closing instruction and a window opening instruction under the conditions that the outdoor noise value is less than or equal to the preset noise value, the outdoor air quality index is less than or equal to the first preset air quality index, and the outdoor temperature accords with the preset temperature.
In one exemplary embodiment, after acquiring the outdoor environment information, the method further comprises: determining whether the outdoor temperature meets a preset temperature; acquiring a general sleep curve of an air conditioner under the condition that the outdoor temperature does not accord with the preset temperature, wherein the general sleep curve of the air conditioner is used for indicating the corresponding relation between the duration time of the sleep function of the air conditioner and the temperature of the air conditioner; and sending a temperature control instruction to the air conditioner according to the general sleep curve of the air conditioner so that the air conditioner adjusts the air conditioner temperature of the air conditioner according to the temperature control instruction.
In one exemplary embodiment, after acquiring the outdoor environment information, the method further includes: determining whether the outdoor temperature meets a preset temperature; acquiring indoor environment information under the condition that the outdoor temperature does not accord with the preset temperature; determining an indoor air quality index according to the indoor environment information; determining whether the indoor air quality index is greater than a second preset air quality index; and generating an opening instruction and sending the opening instruction to the ventilation equipment of the target area under the condition that the indoor air quality index is greater than the second preset air quality index.
In an exemplary embodiment, after the air conditioner closing command and the window opening command are respectively transmitted to the air conditioner and the window of the target area where the target object is located, the method further includes: acquiring second volume characteristic data of the target object in a preset time period; determining a first sleep state of the target subject at a first time instant according to the first characteristics data, and determining a second sleep state of the target subject at a second time instant according to the second characteristics data, wherein the first time instant is earlier than the second time instant, and the first sleep state and the second sleep state each comprise one of: deep sleep state, light sleep state; and sending a control instruction to the air conditioner and the window according to the first sleep state and the second sleep state.
In one exemplary embodiment, the sending of the control command to the air conditioner and the window according to the first sleep state and the second sleep state includes: generating an air conditioner opening instruction and a window closing instruction under the condition that the first sleep state is used for indicating a deep sleep state and the second sleep state is used for indicating a shallow sleep state; and respectively sending the air conditioner opening instruction and the window closing instruction to an air conditioner and a window of a target area where the target object is located, so that the air conditioner can execute opening operation according to the air conditioner opening instruction, and the window can execute closing operation according to the window closing instruction.
According to another embodiment of the present application, there is also provided an instruction sending apparatus, including: the determination module is used for acquiring first body characterization data of a target object and determining whether the target object enters a sleep state or not according to the first body characterization data; an obtaining module, configured to obtain outdoor environment information when the target object enters a sleep state, where the outdoor environment information includes: an outdoor temperature; a generating module, configured to acquire outdoor environment information when the target object enters a sleep state, where the outdoor environment information includes: an outdoor temperature; and the sending module is used for respectively sending the air conditioner closing instruction and the window opening instruction to an air conditioner and a window of a target area where the target object is located so that the air conditioner executes closing operation according to the air conditioner closing instruction, and the window executes opening operation according to the window opening instruction.
According to another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the method for sending the above-mentioned instructions when the computer program runs.
According to another aspect of the embodiments of the present application, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for sending the instruction by using the computer program.
In the embodiment of the application, first body characteristic data of a target object are obtained, and whether the target object enters a sleep state or not is determined according to the first body characteristic data; acquiring outdoor environment information under the condition that the target object enters a sleep state, wherein the outdoor environment information comprises: an outdoor temperature; generating an air conditioner closing instruction and a window opening instruction under the condition that the outdoor temperature meets the preset temperature; respectively sending the air conditioner closing instruction and the window opening instruction to an air conditioner and a window of a target area where the target object is located, so that the air conditioner can execute closing operation according to the air conditioner closing instruction, and the window can execute opening operation according to the window opening instruction; by adopting the technical scheme, the problems that when the air conditioner is in a sleep function, the air conditioner can only adjust the temperature according to the sleep curve, and cannot adjust according to the real sleep condition and the like are solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive labor.
Fig. 1 is a schematic diagram of a hardware environment of a method for sending an instruction according to an embodiment of the present application;
FIG. 2 is a flow chart of a method of sending instructions according to an embodiment of the application;
FIG. 3 is a schematic diagram of a method of sending instructions according to an embodiment of the application;
FIG. 4 is a block diagram of an apparatus for sending an instruction according to an embodiment of the present application;
fig. 5 is a block diagram (ii) of a structure of an instruction transmitting apparatus according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the accompanying drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiment of the application, a method for sending an instruction is provided. The instruction sending method is widely applied to full-House intelligent digital control application scenes such as intelligent homes (Smart Home), intelligent homes, intelligent Home equipment ecology, intelligent residence (Intelligent House) ecology and the like. Alternatively, in the present embodiment, the above-described instruction transmission method may be applied to a hardware environment formed by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be configured to provide a service (e.g., an application service) for the terminal or a client installed on the terminal, provide a database on or independent of the server for providing a data storage service for the server 104, and configure a cloud computing and/or edge computing service on or independent of the server for providing a data operation service for the server 104.
The network may include, but is not limited to, at least one of: wired networks, wireless networks. The wired network may include, but is not limited to, at least one of: wide area networks, metropolitan area networks, local area networks, which may include, but are not limited to, at least one of the following: WIFI (Wireless Fidelity), bluetooth. Terminal equipment 102 can be and not be limited to PC, the cell-phone, the panel computer, intelligent air conditioner, intelligent cigarette machine, intelligent refrigerator, intelligent oven, intelligent kitchen range, intelligent washing machine, intelligent water heater, intelligent washing equipment, intelligent dish washer, intelligent projection equipment, the intelligent TV, intelligent clothes hanger, intelligent (window) curtain, intelligence audio-visual, smart jack, intelligent stereo set, intelligent audio amplifier, intelligent new trend equipment, intelligent kitchen guarding's equipment, intelligent bathroom equipment, the intelligence robot of sweeping the floor, the intelligence robot of wiping the window, intelligence robot of mopping the floor, intelligent air purification equipment, intelligent steam ager, intelligent microwave oven, intelligent kitchen guarding, intelligent clarifier, intelligent water dispenser, intelligent lock etc..
In this embodiment, a method for sending an instruction is provided, which is applied to a computer terminal, and fig. 2 is a flowchart of the method for sending an instruction according to the embodiment of the present application, where the flowchart includes the following steps:
step S202, acquiring first feature data of a target object, and determining whether the target object enters a sleep state according to the first feature data;
note that the physical sign data includes, but is not limited to: heart rate, brain wave, respiration, blood oxygen content of the human body.
It should be noted that the vital sign data is acquired by a vital sign detection apparatus, which includes but is not limited to: sensor, wearing equipment.
Step S204, under the condition that the target object enters a sleep state, outdoor environment information is obtained, wherein the outdoor environment information comprises: an outdoor temperature;
step S206, generating an air conditioner closing instruction and a window opening instruction under the condition that the outdoor temperature meets the preset temperature;
the preset temperature may be a fixed temperature preset by the target object, an air conditioner temperature set by the target object, or a temperature adjusted by the air conditioner according to the sleep curve.
Step S208, the air conditioner closing instruction and the window opening instruction are respectively sent to the air conditioner and the window of the target area where the target object is located, so that the air conditioner executes closing operation according to the air conditioner closing instruction, and the window executes opening operation according to the window opening instruction.
Through the steps, first body characteristic data of a target object are obtained, and whether the target object enters a sleep state or not is determined according to the first body characteristic data; acquiring outdoor environment information under the condition that the target object enters a sleep state, wherein the outdoor environment information comprises: an outdoor temperature; generating an air conditioner closing instruction and a window opening instruction under the condition that the outdoor temperature meets the preset temperature; the air conditioner closing instruction and the window opening instruction are respectively sent to the air conditioner and the window of the target area where the target object is located, so that the air conditioner can execute closing operation according to the air conditioner closing instruction, the window executes opening operation according to the window opening instruction, the problems that in the related art, when the air conditioner is in a sleep function, the air conditioner can only adjust the temperature according to a sleep curve, cannot adjust according to the real sleep condition and the like are solved, the outdoor temperature of the target object in the sleep state is obtained in the embodiment, the air conditioner can be closed and the window is opened when the outdoor temperature meets the preset temperature, and in addition, the air conditioner can also achieve the energy-saving technical effect when the air conditioner is turned off at the moment.
In one exemplary embodiment, generating an air conditioner closing command and a window opening command in case that the outdoor temperature meets a preset temperature includes: when the air conditioner is in a refrigerating state and the outdoor temperature is less than or equal to a first preset temperature, generating an air conditioner closing instruction and a window opening instruction; and generating an air conditioner closing instruction and a window opening instruction under the conditions that the air conditioner is in a heating state and the outdoor temperature is greater than or equal to a second preset temperature.
That is, when the air conditioner is in a cooling state, it is described that the outdoor temperature is too high and the indoor temperature needs to be lowered, and therefore, when the outdoor temperature is less than or equal to the first preset temperature, the outdoor temperature is appropriate, the air conditioner closing command and the window opening command are generated, and the air conditioner is closed and the window is opened.
Under the condition that the air conditioner is in a refrigerating state, the outdoor temperature is too low, and the indoor temperature needs to be increased, so that under the condition that the outdoor temperature is higher than or equal to a second preset temperature, the outdoor temperature is appropriate, the air conditioner closing instruction and the window opening instruction are generated, the air conditioner is closed, and the window is opened.
It should be noted that, when the air conditioner is in a refrigeration state and the preset temperature is the temperature of the air conditioner adjusted according to the general sleep curve of the air conditioner, the outdoor temperature is obtained, and the temperature of the air conditioner adjusted according to the general sleep curve of the air conditioner at the moment is determined; determining the relation between the outdoor temperature and the temperature of the air conditioner adjusted according to the general sleep curve of the air conditioner; and under the condition that the size relation indicates that the outdoor temperature is less than or equal to the temperature of the air conditioner after being adjusted according to the general sleep curve of the air conditioner, closing the air conditioner and opening the window.
It should be noted that the outdoor environment information further includes: an outdoor noise value and an outdoor air quality index, further comprising at the outdoor environment information: under the conditions of the outdoor noise value and the outdoor air quality index, determining and generating an air conditioner closing instruction and a window opening instruction in the following modes: determining whether the outdoor noise value is less than or equal to a preset noise value and whether the outdoor air quality index is less than or equal to a first preset air quality index; and generating an air conditioner closing instruction and a window opening instruction under the conditions that the outdoor noise value is less than or equal to the preset noise value, the outdoor air quality index is less than or equal to the first preset air quality index, and the outdoor temperature accords with the preset temperature.
It should be noted that, in the practical application process, the outdoor noise value and the outdoor air quality index also need to be considered; when the outdoor noise value is smaller than or equal to the preset noise value, the outdoor air quality index is smaller than or equal to the first preset air quality index, and the outdoor temperature meets the preset temperature, closing an air conditioner and opening a window; and when the outdoor noise value is larger than the preset noise value, and/or the outdoor air quality index is smaller than or equal to the first preset air quality index, and/or the outdoor temperature meets the preset temperature, continuing to keep the air conditioner on.
For example, in case of outdoor wind, the outdoor noise value is larger than the preset noise value, and the air conditioner needs to be kept on.
In one exemplary embodiment, after acquiring the outdoor environment information, the method further includes: determining whether the outdoor temperature meets a preset temperature; acquiring a general sleep curve of an air conditioner under the condition that the outdoor temperature does not accord with the preset temperature, wherein the general sleep curve of the air conditioner is used for indicating the corresponding relation between the duration time of the sleep function of the air conditioner and the temperature of the air conditioner; and sending a temperature control instruction to the air conditioner according to the general sleep curve of the air conditioner so that the air conditioner adjusts the air conditioner temperature of the air conditioner according to the temperature control instruction.
It should be noted that historical operation information of the target object is acquired, a general sleep curve of the air conditioner of the target object is determined according to the historical operation information, and when the outdoor temperature does not meet the preset temperature, a temperature control instruction is sent to the air conditioner according to the general sleep curve of the air conditioner, so that the temperature of the air conditioner is adjusted, and the sleep experience of the target object is improved.
In one exemplary embodiment, after acquiring the outdoor environment information, the method further includes: determining whether the outdoor temperature meets a preset temperature; acquiring indoor environment information under the condition that the outdoor temperature does not accord with the preset temperature; determining an indoor air quality index according to the indoor environment information; determining whether the indoor air quality index is greater than a second preset air quality index; and generating an opening instruction under the condition that the indoor air quality index is larger than the second preset air quality index, and sending the opening instruction to the ventilation equipment in the target area.
That is to say, under the condition that the indoor environment is closed, the indoor air quality index is obtained, and under the condition that the indoor air quality index is larger than the second preset air quality index, an opening instruction is generated and sent to the ventilation equipment of the target area, so that the indoor air quality index is kept good.
In an exemplary embodiment, after the sending the air conditioner closing command and the window opening command to the air conditioner and the window of the target area where the target object is located, the method further includes: acquiring second volume characteristic data of the target object in a preset time period; determining a first sleep state of the target subject at a first time from the first characteristics data, and determining a second sleep state of the target subject at a second time from the second characteristics data, wherein the first time is earlier than the second time, and the first sleep state and the second sleep state each comprise one of: deep sleep state, light sleep state; and sending a control instruction to the air conditioner and the window according to the first sleep state and the second sleep state.
Specifically, an air conditioner opening instruction and a window closing instruction are generated under the condition that the first sleep state is used for indicating a deep sleep state and the second sleep state is used for indicating a shallow sleep state; and respectively sending the air conditioner opening instruction and the window closing instruction to an air conditioner and a window of a target area where the target object is located, so that the air conditioner executes opening operation according to the air conditioner opening instruction, and the window executes closing operation according to the window closing instruction.
It should be noted that, a first sleep state of the target object at a first time is determined according to the first characteristic data, and a second sleep state of the target object at a second time is determined according to the second characteristic data, where the first sleep state is used to indicate a deep sleep state, and the second sleep state indicates a light sleep state, the air conditioner open instruction and the window close instruction are respectively sent to an air conditioner and a window of a target area where the target object is located, so that the target object maintains a good sleep state.
That is, acquiring a first sleep state of a target object before opening a window and closing an air conditioner, and acquiring a second sleep state of the target object after opening the window and closing the air conditioner, indicating a deep sleep state in the first sleep state, and indicating a light sleep state in the second sleep state, determining that an operation of opening the window and closing the air conditioner or an outdoor environment disturbs the sleep state of the target object, and at this time, in order to maintain a good sleep state of the target object, sending an air conditioner opening instruction and a window closing instruction to an air conditioner and a window of a target area in which the target object is located, respectively; when the first sleep state indicates a light sleep state and the second sleep state indicates a light sleep state, it is determined that the operation of opening the window and closing the air conditioner or the outdoor environment does not disturb the sleep state of the target object, and at this time, the air conditioner is kept closed.
In order to better understand the process of the sending method of the instruction, the following describes a flow of the implementation method of sending the instruction with reference to an optional embodiment, but the flow is not limited to the technical solution of the embodiment of the present application.
In this embodiment, a method for sending an instruction is provided, and fig. 3 is a schematic diagram of a method for sending an instruction according to an embodiment of the present application, and as shown in fig. 3, the following steps are specifically performed:
step S301: setting a general sleeping curve of the air conditioner by a user;
step S302: sending the general sleep curve of the air conditioner to a cloud end;
step S303: acquiring outdoor environment information;
step S304: under the condition that the outdoor environment temperature is higher, continuously adopting an air conditioner general sleep curve of the air conditioner;
step S305: and under the condition that the outdoor environment temperature is lower than or equal to the preset temperature, closing the air conditioner and opening the window.
Through this embodiment, the experience when can effectual solution user sleep night, outdoor temperature can be preferentially ventilated under the more comfortable condition of midnight meeting down, closes the air conditioner in addition and also can play energy-conserving technological effect.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (such as a ROM/RAM, a magnetic disk, and an optical disk), and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, or a network device) to execute the method of the embodiments of the present application.
FIG. 4 is a block diagram of an apparatus for sending an instruction according to an embodiment of the present application; as shown in fig. 4, includes:
a determining module 42, configured to acquire first body characteristic data of a target object, and determine whether the target object enters a sleep state according to the first body characteristic data;
an obtaining module 44, configured to obtain outdoor environment information when the target object enters a sleep state, where the outdoor environment information includes: an outdoor temperature;
a generating module 46, configured to acquire outdoor environment information when the target object enters a sleep state, where the outdoor environment information includes: an outdoor temperature;
a sending module 48, configured to send the air conditioner closing instruction and the window opening instruction to an air conditioner and a window of a target area where the target object is located, respectively, so that the air conditioner performs a closing operation according to the air conditioner closing instruction, and the window performs an opening operation according to the window opening instruction.
By the device, first body characteristic data of a target object are obtained, and whether the target object enters a sleep state or not is determined according to the first body characteristic data; acquiring outdoor environment information under the condition that the target object enters a sleep state, wherein the outdoor environment information comprises: an outdoor temperature; generating an air conditioner closing instruction and a window opening instruction under the condition that the outdoor temperature meets the preset temperature; the air conditioner closing instruction and the window opening instruction are respectively sent to the air conditioner and the window of the target area where the target object is located, so that the air conditioner can execute closing operation according to the air conditioner closing instruction, the window executes opening operation according to the window opening instruction, the problems that in the related art, when the air conditioner is in a sleep function, the air conditioner can only adjust the temperature according to a sleep curve, cannot adjust according to a real sleep condition and the like are solved, the outdoor temperature of the target object in the sleep state is obtained in the embodiment, and when the outdoor temperature meets the preset temperature, the air conditioner can be closed, the window is opened, and in addition, the air conditioner can be closed to achieve the technical effect of energy saving.
In an exemplary embodiment, the generating module 46 is configured to generate the air conditioner closing instruction and the window opening instruction when the air conditioner is in a cooling state and the outdoor temperature is less than or equal to a first preset temperature; and generating an air conditioner closing instruction and a window opening instruction under the conditions that the air conditioner is in a heating state and the outdoor temperature is greater than or equal to a second preset temperature.
In an exemplary embodiment, the generating module 46 is configured to further include, in the outdoor environment information: under the conditions of an outdoor noise value and an outdoor air quality index, determining whether the outdoor noise value is less than or equal to a preset noise value and whether the outdoor air quality index is less than or equal to a first preset air quality index; and generating an air conditioner closing instruction and a window opening instruction under the conditions that the outdoor noise value is less than or equal to the preset noise value, the outdoor air quality index is less than or equal to the first preset air quality index, and the outdoor temperature accords with the preset temperature.
In an exemplary embodiment, fig. 5 is a block diagram of a structure of an instruction sending apparatus according to an embodiment of the present application (ii); as shown in fig. 5, the apparatus further comprises: an adjusting module 52, configured to determine whether the outdoor temperature meets a preset temperature; acquiring a general sleep curve of an air conditioner under the condition that the outdoor temperature does not accord with the preset temperature, wherein the general sleep curve of the air conditioner is used for indicating the corresponding relation between the duration time of the sleep function of the air conditioner and the temperature of the air conditioner; and sending a temperature control instruction to the air conditioner according to the general sleep curve of the air conditioner so that the air conditioner adjusts the air conditioner temperature of the air conditioner according to the temperature control instruction.
In an exemplary embodiment, the generating module 46 is configured to determine whether the outdoor temperature meets a preset temperature; acquiring indoor environment information under the condition that the outdoor temperature does not accord with the preset temperature; determining an indoor air quality index according to the indoor environment information; determining whether the indoor air quality index is greater than a second preset air quality index; and generating an opening instruction and sending the opening instruction to the ventilation equipment of the target area under the condition that the indoor air quality index is greater than the second preset air quality index.
In an exemplary embodiment, the generating module 46 is configured to obtain second volume characteristic data of the target object for a preset time period; determining a first sleep state of the target subject at a first time instant according to the first characteristics data, and determining a second sleep state of the target subject at a second time instant according to the second characteristics data, wherein the first time instant is earlier than the second time instant, and the first sleep state and the second sleep state each comprise one of: deep sleep state, light sleep state; and sending a control instruction to the air conditioner and the window according to the first sleep state and the second sleep state.
In an exemplary embodiment, the sending module 48 is further configured to generate an air conditioner opening instruction and a window closing instruction if the first sleep state indicates a deep sleep state and the second sleep state indicates a light sleep state; and respectively sending the air conditioner opening instruction and the window closing instruction to an air conditioner and a window of a target area where the target object is located, so that the air conditioner executes opening operation according to the air conditioner opening instruction, and the window executes closing operation according to the window closing instruction.
Embodiments of the present application also provide a storage medium including a stored program, where the program performs any one of the methods described above when executed.
Alternatively, in this embodiment, the storage medium may be configured to store program codes for performing the following steps:
s1, acquiring first feature data of a target object, and determining whether the target object enters a sleep state or not according to the first feature data;
s2, under the condition that the target object enters a sleep state, outdoor environment information is acquired, wherein the outdoor environment information comprises: an outdoor temperature;
s3, generating an air conditioner closing instruction and a window opening instruction under the condition that the outdoor temperature meets the preset temperature;
and S4, respectively sending the air conditioner closing instruction and the window opening instruction to an air conditioner and a window of a target area where the target object is located, so that the air conditioner executes closing operation according to the air conditioner closing instruction, and the window executes opening operation according to the window opening instruction.
Embodiments of the present application further provide an electronic device, comprising a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring first feature data of a target object, and determining whether the target object enters a sleep state or not according to the first feature data;
s2, under the condition that the target object enters a sleep state, outdoor environment information is acquired, wherein the outdoor environment information comprises: an outdoor temperature;
s3, generating an air conditioner closing instruction and a window opening instruction under the condition that the outdoor temperature meets a preset temperature;
and S4, respectively sending the air conditioner closing instruction and the window opening instruction to an air conditioner and a window of a target area where the target object is located, so that the air conditioner executes closing operation according to the air conditioner closing instruction, and the window executes opening operation according to the window opening instruction.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present application described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. A method for transmitting an instruction, comprising:
acquiring first feature data of a target object, and determining whether the target object enters a sleep state according to the first feature data;
acquiring outdoor environment information under the condition that the target object enters a sleep state, wherein the outdoor environment information comprises: an outdoor temperature;
generating an air conditioner closing instruction and a window opening instruction under the condition that the outdoor temperature meets the preset temperature;
and respectively sending the air conditioner closing instruction and the window opening instruction to an air conditioner and a window of a target area where the target object is located, so that the air conditioner executes closing operation according to the air conditioner closing instruction, and the window executes opening operation according to the window opening instruction.
2. The method for sending the command according to claim 1, wherein generating an air conditioner closing command and a window opening command when the outdoor temperature meets a preset temperature comprises:
when the air conditioner is in a refrigerating state and the outdoor temperature is less than or equal to a first preset temperature, generating an air conditioner closing instruction and a window opening instruction;
and generating an air conditioner closing instruction and a window opening instruction under the conditions that the air conditioner is in a heating state and the outdoor temperature is greater than or equal to a second preset temperature.
3. The method of claim 1, wherein the outdoor environment information further comprises: the outdoor noise value and the outdoor air quality index, under the condition that the outdoor temperature accords with the preset temperature, the outdoor air conditioner generates an air conditioner closing instruction and a window opening instruction, and the outdoor air conditioner comprises the following steps:
determining whether the outdoor noise value is less than or equal to a preset noise value and whether the outdoor air quality index is less than or equal to a first preset air quality index;
and generating an air conditioner closing instruction and a window opening instruction under the conditions that the outdoor noise value is less than or equal to the preset noise value, the outdoor air quality index is less than or equal to the first preset air quality index, and the outdoor temperature accords with the preset temperature.
4. The method of sending the instruction according to claim 1, wherein after acquiring the outdoor environment information, the method further comprises:
determining whether the outdoor temperature meets a preset temperature;
acquiring a general sleep curve of an air conditioner under the condition that the outdoor temperature does not accord with the preset temperature, wherein the general sleep curve of the air conditioner is used for indicating the corresponding relation between the duration time of the sleep function of the air conditioner and the temperature of the air conditioner;
and sending a temperature control instruction to the air conditioner according to the general sleep curve of the air conditioner so that the air conditioner adjusts the air conditioner temperature of the air conditioner according to the temperature control instruction.
5. The method of sending the instruction according to claim 1, wherein after acquiring the outdoor environment information, the method further comprises:
determining whether the outdoor temperature meets a preset temperature;
acquiring indoor environment information under the condition that the outdoor temperature does not accord with the preset temperature;
determining an indoor air quality index according to the indoor environment information;
determining whether the indoor air quality index is greater than a second preset air quality index;
and generating an opening instruction and sending the opening instruction to the ventilation equipment of the target area under the condition that the indoor air quality index is greater than the second preset air quality index.
6. The method according to claim 1, wherein after the air conditioner closing command and the window opening command are respectively sent to an air conditioner and a window of a target area in which the target object is located, the method further comprises:
acquiring second volume characteristic data of the target object in a preset time period;
determining a first sleep state of the target subject at a first time from the first characteristics data, and determining a second sleep state of the target subject at a second time from the second characteristics data, wherein the first time is earlier than the second time, and the first sleep state and the second sleep state each comprise one of: deep sleep state, light sleep state;
and sending a control instruction to the air conditioner and the window according to the first sleep state and the second sleep state.
7. The method for sending the command according to claim 6, wherein sending the control command to the air conditioner and the window according to the first sleep state and the second sleep state comprises:
generating an air conditioner opening instruction and a window closing instruction under the condition that the first sleep state is used for indicating a deep sleep state and the second sleep state is used for indicating a shallow sleep state;
and respectively sending the air conditioner opening instruction and the window closing instruction to an air conditioner and a window of a target area where the target object is located, so that the air conditioner executes opening operation according to the air conditioner opening instruction, and the window executes closing operation according to the window closing instruction.
8. An apparatus for transmitting an instruction, comprising:
the determination module is used for acquiring first body characteristic data of a target object and determining whether the target object enters a sleep state or not according to the first body characteristic data;
an obtaining module, configured to obtain outdoor environment information when the target object enters a sleep state, where the outdoor environment information includes: an outdoor temperature;
a generating module, configured to acquire outdoor environment information when the target object enters a sleep state, where the outdoor environment information includes: an outdoor temperature;
and the sending module is used for respectively sending the air conditioner closing instruction and the window opening instruction to an air conditioner and a window of a target area where the target object is located so that the air conditioner executes closing operation according to the air conditioner closing instruction, and the window executes opening operation according to the window opening instruction.
9. A computer-readable storage medium, comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202211218056.5A 2022-09-30 2022-09-30 Instruction sending method and device, storage medium and electronic device Pending CN115562056A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211218056.5A CN115562056A (en) 2022-09-30 2022-09-30 Instruction sending method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211218056.5A CN115562056A (en) 2022-09-30 2022-09-30 Instruction sending method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN115562056A true CN115562056A (en) 2023-01-03

Family

ID=84744424

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211218056.5A Pending CN115562056A (en) 2022-09-30 2022-09-30 Instruction sending method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN115562056A (en)

Similar Documents

Publication Publication Date Title
CN106842968B (en) Control method, device and system
US10584892B2 (en) Air-conditioning control method, air-conditioning control apparatus, and storage medium
CN108181819B (en) Linkage control method, device and system for household electrical appliance and household electrical appliance
CN110410964B (en) Control method and control system of air conditioner
CN105700389B (en) Intelligent home natural language control method
WO2016077598A1 (en) Data processing systems and methods for smart hub devices
CN105446156A (en) Method, device and system for controlling household electric appliance based on artificial intelligence
WO2023115928A1 (en) Indoor environment control method, apparatus and system, and storage medium
CN110726233B (en) Air conditioner control method, device, storage medium and memory
CN110762799B (en) Storage medium, intelligent panel and air conditioner control method based on intelligent panel
CN112558575A (en) Equipment linkage control method and device, storage medium and equipment
CN205405104U (en) Intelligent house control system based on study
CN115327934A (en) Intelligent household scene recommendation method and system, storage medium and electronic device
CN112782990A (en) Control method and device of intelligent equipment, storage medium and electronic equipment
CN115167164A (en) Method and device for determining equipment scene, storage medium and electronic device
CN111025930A (en) Intelligent home control method, intelligent home control equipment and storage medium
CN106288183A (en) Air conditioning control method and device
CN109039835B (en) Intelligent household scene configuration method, gateway, system and machine readable storage medium
CN110187646B (en) Method and device for adjusting equipment control authority in intelligent home operating system
CN115562056A (en) Instruction sending method and device, storage medium and electronic device
CN110974031A (en) Storage medium, intelligent panel and control method of electric cooker
CN114623568B (en) Control method and device of air conditioner, electronic equipment and storage medium
CN114265327B (en) Sleep control method and device of intelligent household equipment, processor and electronic equipment
CN116130102A (en) Sleep environment data determining method and device, storage medium and electronic device
CN110941189A (en) Intelligent household system and control method thereof and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination