A kind of control method of smart home, device, storage medium and server
Technical field
The invention relates to Smart Home technical field more particularly to a kind of control method of smart home, device,
Storage medium and server.
Background technique
With being gradually increased for scientific and technological level, smart home has slowly become the main product of family life.However, existing
Some is to the control method of smart home, such as when user needs to go home, passes through mobile phone in advance and controls the air-conditioning of family and open
And adjust to suitable temperature, and this is actually often controlled by the way of remote control, and do not accomplish really
Intelligence.
Summary of the invention
The embodiment of the present application provides control method, device, storage medium and the server of a kind of smart home, may be implemented
The purpose of intelligent control is carried out to smart home.
In a first aspect, the embodiment of the present application provides a kind of control method of smart home, this method comprises:
By the positioning to user terminal, the location information of user is obtained;
According to the positional information, determine user's arrival smart home position estimates duration;
If the duration of estimating controls the smart home work less than preset duration.
Further, according to the positional information, determine user's arrival smart home position estimates duration, comprising:
The location information when previous acquisition at a distance from smart home position and the preceding location information once obtained and intelligence
The distance of energy household position is compared;
According to comparison result, determine user's arrival smart home position estimates duration.
Further, by the positioning to user terminal, before the location information for obtaining user, the method is also wrapped
It includes:
According to the information that user is arranged in user terminal, smart home position is determined.
Further, if the duration of estimating controls the smart home work less than preset duration, comprising:
If the duration of estimating is less than preset duration, it is determined that the usual setting of user;
After starting the smart home, the smart home is configured according to the usual setting.
Further, the smart home includes temperature control household.
Second aspect, the embodiment of the present application also provides a kind of control device of smart home, which includes:
Position information acquisition module, for obtaining the location information of user by the positioning to user terminal;
Duration determining module is estimated, for according to the positional information, determining that user reaches estimating for smart home position
Duration;
Intelligent housing module, if controlling the smart home work less than preset duration for the duration of estimating
Make.
Further, the duration determining module of estimating includes:
Location information comparing unit, for the location information when previous acquisition is at a distance from smart home position and previous
The location information of secondary acquisition is compared at a distance from smart home position;
Duration determination unit is estimated, for according to comparison result, determine user's arrival smart home position to estimate duration.
Further, described device further include:
Smart home position determination module, the information for being arranged according to user in user terminal, determines smart home position
It sets.
Further, the Intelligent housing module includes:
Usual setting determination unit, if for the duration of estimating less than preset duration, it is determined that the usual setting of user;
Smart home setting unit, after starting the smart home, according to the usual setting to the intelligent family
Residence is configured.
Further, the smart home includes temperature control household.
The third aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey
Sequence realizes the control method of the smart home as described in the embodiment of the present application when the program is executed by processor.
Fourth aspect, the embodiment of the present application provide a kind of server, including memory, processor and are stored in memory
Computer program that is upper and can running in processor, the processor realize that the application such as is implemented when executing the computer program
The control method of smart home described in example.
Technical solution provided by the embodiment of the present application obtains the location information of user by the positioning to user terminal;
According to the positional information, determine user's arrival smart home position estimates duration;If described when estimating duration and being less than default
It is long, then control the smart home work.By using technical solution provided herein, may be implemented to smart home into
The purpose of row intelligent control.
Detailed description of the invention
Fig. 1 is the flow chart of the control method for the smart home that the embodiment of the present application one provides;
Fig. 2 is the flow chart of the control method for the smart home that the embodiment of the present application two provides;
Fig. 3 is the structural schematic diagram of the control device for the smart home that the embodiment of the present application three provides;
Fig. 4 is a kind of structural schematic diagram for server that the embodiment of the present application five provides.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the application, rather than the restriction to the application.It also should be noted that in order to just
Part relevant to the application is illustrated only in description, attached drawing rather than entire infrastructure.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail
The processing or method described as flow chart.Although each step is described as the processing of sequence by flow chart, many of these
Step can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of each step can be rearranged.When its operation
The processing can be terminated when completion, it is also possible to have the additional step being not included in attached drawing.The processing can be with
Corresponding to method, function, regulation, subroutine, subprogram etc..
Embodiment one
Fig. 1 is the flow chart of the control method for the smart home that the embodiment of the present application one provides, and the present embodiment is applicable to
To the control situation of smart home, the control device of this method smart home as provided by the embodiment of the present application is executed,
The device can be realized by the mode of software and/or hardware, and can be integrated in server.
As shown in Figure 1, the control method of the smart home includes:
S110, by the positioning to user terminal, obtain the location information of user.
In the present embodiment, server can be exclusive cloud server, can user terminal and smart home it
Between, establish network connection, and the location information of available user terminal.Specifically, can be user terminal per pre- timing
Between report a location information, can also be every preset time, send location information acquisition request to user terminal, user is whole
After termination receives request, itself can be positioned by positioning system, and location information is reported to server.
S120, according to the positional information determines that user reached smart home position estimates duration.
Wherein, server can determine that the position reaches intelligence using map search algorithm after receiving location information
It the estimated time of energy household position, determines whether to carry out unlatching control to smart home.
In the present embodiment, optionally, by the positioning to user terminal, before the location information for obtaining user, institute
State method further include: according to the information that user is arranged in user terminal, determine smart home position.For example, user can use again
The position of smart home is configured above some application program of family terminal, it is understood that for the inhabitation position to user
It sets and is configured, for example, dwelling places can be configured first after opening application program, such as clicked on map,
Dragging etc. can also determine the dwelling places of user in such a way that text inputs, and the dwelling places are defined as intelligent family
It sets in housing.The benefit being arranged in this way in the present embodiment is can be according to the position of smart home and the real time position of user to user
How long will reach in family and judge.
In the present embodiment, it can determine that user returns by the path between the real time position and smart home position of user
Duration is estimated in getting home, for example, user is after leaving operating position, during going home by bus, according to the user got
Location information and smart home position, determine that user will get home after 40 minutes.
If S130, the duration of estimating control the smart home work less than preset duration.
After obtaining estimating duration, duration will be estimated and be compared with preset duration, if estimate duration less than presetting
It is long, then control the smart home work.
In the present embodiment, optionally, the smart home includes temperature control household.It can specifically include air-conditioning, electricity
Heating, water heater and gas heating equipment etc..The benefit being arranged in this way is can be between the getting home of user by the room of user
Interior temperature or lower water temperature to suitable state, such as after user reaches in family room temperature can at 24 degree or so,
Water temperature also in the range of being suitble to use, improves the usage experience of user.
In the present embodiment, optionally, if the duration of estimating controls the smart home work less than preset duration
Make, comprising: if the duration of estimating is less than preset duration, it is determined that the usual setting of user;After starting the smart home, root
The smart home is configured according to the usual setting.
Wherein, the usual setting of user can be the mode and temperature value and hot water that user's habit adjusts air-conditioning
The temperature value of device, in addition to this, usual setting can also include the setting and each room to each room in user family
Successive setting.Such as user habit after work, cook first in kitchen, then can first by the temperature setting in kitchen with
The temperature that family is often arranged is finished to open the air-conditioning in parlor and bedroom after meal and adjust and arrives some specific temperature in user
Value.In such a case, it is possible to which the sequencing of opening in the air-conditioning to kitchen, bedroom and parlor comes according to the habit of user
Setting, the benefit being arranged in this way are can be not only set as user according to the habit of user to provide the intelligent control of smart home,
The energy can also be solved, the utilization rate of the energy is improved.
Embodiment two
Fig. 2 is the flow chart of the control method for the smart home that the embodiment of the present application two provides.The present embodiment is in above-mentioned reality
On the basis of applying example, optimization are as follows: according to the positional information, determine user's arrival smart home position estimates duration, comprising:
The location information when previous acquisition with smart home position at a distance from and the preceding location information once obtained and smart home position
The distance set is compared;According to comparison result, determine user's arrival smart home position estimates duration.
As shown in Fig. 2, the control method of the smart home includes:
S210, by the positioning to user terminal, obtain the location information of user.
S220, the location information when previous acquisition at a distance from smart home position and the preceding location information once obtained
It is compared at a distance from smart home position.
Wherein, user terminal, which can be, reports according to location information of the fixed time interval to itself to server, also
Can be in certain period of time, such as 5 minutes, carried out using location information of the random time interval to user terminal
Report.After location information is reported every time, server can be the location information when previous acquisition at a distance from smart home position
It is compared at a distance from smart home position with the preceding location information once obtained.For example, by it was found that, obtain twice
Distance it is identical, then illustrate user not yet on the way home, if illustrated it was found that distance twice is smaller and smaller
User is on the way home.If user on the way home if need to carry out to how long user will reach in family
It estimates.
S230, according to comparison result, determine that user reached smart home position estimates duration.
Such as comparison result is, and the position in user distance man is more and more closer, and is 18 kilometers in 2 minutes front distances, and 2
Distance is 16 kilometers after minute, then can reach the time in family to user according to comparison result and estimate, such as can be with
Estimating user will be in 16 minutes arrival man, then 16 minutes are to estimate duration.
If S240, the duration of estimating control the smart home work less than preset duration.
Such as preset duration not 15 minutes, then when estimating at a length of 16 minutes, the smart home work being not turned in family,
But the location information of user reported next time is obtained, and is believed according to the position of the user finally got twice
It ceases and whether on the way home to determine user, and estimate whether duration is less than preset duration, if so, controlling the smart home
Work.
The present embodiment on the basis of the above embodiments, provide a kind of couple of user go back home in estimated time carry out it is true
Fixed method, the benefit being arranged in this way are can be the working condition of the good smart home of user setting, be before user to family
User provides more comfortable, warm environment, improves the experience of user.
Embodiment three
Fig. 3 is the structural schematic diagram of the control device for the smart home that the embodiment of the present application three provides.As shown in figure 3, institute
State the control device of smart home, comprising:
Position information acquisition module 310, for obtaining the location information of user by the positioning to user terminal;
Duration determining module 320 is estimated, for according to the positional information, determining that user reaches the pre- of smart home position
Estimate duration;
Intelligent housing module 330, if controlling the smart home less than preset duration for the duration of estimating
Work.
Technical solution provided by the embodiment of the present application obtains the location information of user by the positioning to user terminal;
According to the positional information, determine user's arrival smart home position estimates duration;If described when estimating duration and being less than default
It is long, then control the smart home work.By using technical solution provided herein, may be implemented to smart home into
The purpose of row intelligent control.
On the basis of above-mentioned each technical solution, optionally, the duration determining module of estimating includes:
Location information comparing unit, for the location information when previous acquisition is at a distance from smart home position and previous
The location information of secondary acquisition is compared at a distance from smart home position;
Duration determination unit is estimated, for according to comparison result, determine user's arrival smart home position to estimate duration.
On the basis of above-mentioned each technical solution, optionally, described device further include:
Smart home position determination module, the information for being arranged according to user in user terminal, determines smart home position
It sets.
On the basis of above-mentioned each technical solution, optionally, the Intelligent housing module includes:
Usual setting determination unit, if for the duration of estimating less than preset duration, it is determined that the usual setting of user;
Smart home setting unit, after starting the smart home, according to the usual setting to the intelligent family
Residence is configured.
On the basis of above-mentioned each technical solution, optionally, the smart home includes temperature control household.
Method provided by the application any embodiment can be performed in the said goods, has the corresponding functional module of execution method
And beneficial effect.
Example IV
The embodiment of the present application also provides a kind of storage medium comprising computer executable instructions, and the computer is executable
It instructs when being executed by computer processor for executing a kind of control method of smart home, this method comprises:
By the positioning to user terminal, the location information of user is obtained;
According to the positional information, determine user's arrival smart home position estimates duration;
If the duration of estimating controls the smart home work less than preset duration.
Storage medium --- any various types of memory devices or storage equipment.Term " storage medium " is intended to wrap
It includes: install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as
DRAM, DDR RAM, SRAM, EDO RAM, Lan Basi (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetic medium
(such as hard disk or optical storage);Register or the memory component of other similar types etc..Storage medium can further include other
Memory of type or combinations thereof.In addition, storage medium can be located at program in the computer system being wherein performed, or
It can be located in different second computer systems, second computer system is connected to computer by network (such as internet)
System.Second computer system can provide program instruction to computer for executing.Term " storage medium " may include can
To reside in different location two or more storage mediums of (such as in the different computer systems by network connection).
Storage medium can store the program instruction (such as being implemented as computer program) that can be performed by one or more processors.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present application
The control for the smart home that executable instruction is not limited to the described above operates, and the application any embodiment can also be performed and provided
Smart home control method in relevant operation.
Embodiment five
The embodiment of the present application provides a kind of server, and intelligent family provided by the embodiments of the present application can be integrated in the server
The control device in residence.Fig. 4 is a kind of structural schematic diagram for server that the embodiment of the present application five provides.As shown in figure 4, this implementation
Example provides a kind of server 400 comprising: one or more processors 420;Storage device 410, for storing one or more
A program, when one or more of programs are executed by one or more of processors 420, so that one or more of places
The control method that device 420 realizes smart home provided by the embodiment of the present application is managed, this method comprises:
By the positioning to user terminal, the location information of user is obtained;
According to the positional information, determine user's arrival smart home position estimates duration;
If the duration of estimating controls the smart home work less than preset duration.
Certainly, it will be understood by those skilled in the art that processor 420 can also realize that the application any embodiment is provided
Smart home control method technical solution.
The server 400 that Fig. 4 is shown is only an example, should not function and use scope band to the embodiment of the present application
Carry out any restrictions.
As shown in figure 4, the server 400 includes processor 420, storage device 410, input unit 430 and output device
440;The quantity of processor 420 can be one or more in server, in Fig. 4 by taking a processor 420 as an example;In server
Processor 420, storage device 410, input unit 430 can be connected by bus or other modes with output device 440, scheme
In 4 for being connected by bus 450.
Storage device 410 is used as a kind of computer readable storage medium, and it is executable to can be used for storing software program, computer
Program and module, such as the corresponding program instruction of the control method of the smart home in the embodiment of the present application.
Storage device 410 can mainly include storing program area and storage data area, wherein storing program area can store operation
Application program needed for system, at least one function;Storage data area, which can be stored, uses created data according to server
Deng.In addition, storage device 410 may include high-speed random access memory, it can also include nonvolatile memory, such as extremely
A few disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, storage device
410 can further comprise the memory remotely located relative to processor 420, these remote memories can be connected by network
It connects.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Input unit 430 can be used for receiving number, character information or the voice messaging of input, and generate and server
User setting and the related key signals input of function control.Output device 440 may include the equipment such as display screen, loudspeaker.
The purpose that intelligent control is carried out to smart home may be implemented in server provided by the embodiments of the present application.
It is any that the application can be performed in control device, storage medium and the server of the smart home provided in above-described embodiment
The control method of smart home provided by embodiment has and executes the corresponding functional module of this method and beneficial effect.Do not exist
The technical detail of detailed description in above-described embodiment, reference can be made to the controlling party of smart home provided by the application any embodiment
Method.
Note that above are only the preferred embodiment and institute's application technology principle of the application.It will be appreciated by those skilled in the art that
The application is not limited to specific embodiment described here, be able to carry out for a person skilled in the art it is various it is apparent variation,
The protection scope readjusted and substituted without departing from the application.Therefore, although being carried out by above embodiments to the application
It is described in further detail, but the application is not limited only to above embodiments, in the case where not departing from the application design, also
It may include more other equivalent embodiments, and scope of the present application is determined by the scope of the appended claims.