Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Fig. 1 shows the realization flow of a kind of smart home environment control method that the embodiment of the present invention provides, and details are as follows:
Step S1, obtains current date parameter;
In this step, date parameter and current date, the effect on date carries out judging current season for system, and then reasonably control household electrical appliances, it should be understood that date parameter can download acquisition by system from server, server can be arranged on the server end of internet, system connecting Internet can obtain date parameter, can certainly be arranged on this locality.
Step S2, obtains season division rule, according to date parameter and the corresponding Seasonal Model of season division rules selection;
Specifically, because the seasonal variations situation of various places is inconsistent, therefore, according to the date, system judges that the date in season is also inconsistent, and as on the same date of the Southern Hemisphere with the Northern Hemisphere, summer is completely contrary with the date in winter.Therefore, the season division rule of system can be arranged according to practical application scene, it should be understood that, season division rule can be arranged when dispatching from the factory by producer, also can be entered in system by user and arrange, after system obtains date parameter, the season current according to season division rule judgment, and select corresponding Seasonal Model, different Seasonal Models controls household electrical appliances and carries out work by different mode of operations.
Step S3, controls household electrical appliances according to different Seasonal Models and carries out work.
Specifically, described household electrical appliances comprise: air-conditioning, illuminating lamp and water heater.Certainly, according to practical application, can also humidifier be comprised, coordinate humidity sensor, carry out humidification when winter is too dry to indoor.
In different seasons, conservative control air-conditioning, illuminating lamp and water heater, by different Seasonal Model work, can provide comfortable environment, and save energy consumption substantially.
Further, step S3 is specially, if current operation mode is summer mode or winter mode, then controls air-conditioning, illuminating lamp and water heater working, otherwise controls illuminating lamp and water heater working.
Specifically, because the sunshine-duration in summer is long, and temperature is higher, therefore the lighting hours of illuminating lamp can be postponed, and meanwhile, needs to start air-conditioning and freezes, there is provided comfortable temperature, and the sunshine-duration in winter is short, temperature is lower, then need to open illuminating lamp in advance, and start air-conditioning heating, start water heater heat hot water, then air-conditioning is not started in spring and autumn, realize Based Intelligent Control household by said process, comfortable living environment is provided, and reduces energy consumption with this.
Further, also comprise before described step S3:
S301, obtains and presets illumination value;
Default illumination value can be arranged when dispatching from the factory by producer, also can be arranged voluntarily by user, its effect is for distinguishing daytime and night, preset illumination value between the luminosity and the luminosity at night on daytime, when luminosity reduces gradually, then represent and will be transitioned into night daytime, now, be also next or classes are over time.It should be understood that similarly, because the day-night change situation of various places is different, default illumination value can be arranged according to practical application equally.
S302, obtains current light value;
In this step, real-time intensity of illumination is responded to by light intensity sensor, namely current light value is obtained, for comparing with default illumination value, thus Intelligent Recognition is now daytime or night, it is worth mentioning that, daytime or night is judged iff according to the time of clock, reasonably cannot control household electrical appliances, such as PM 6:00 equally, summer, luminosity was still very strong, now open illuminating lamp and then waste energy consumption, winter is then dark, open illuminating lamp then very necessary, therefore because the sunshine-duration in each season is different, household electrical appliances are controlled according to intensity of illumination, judgement day and night is carried out by intensity of illumination, thus it is more reasonable to control household electrical appliances.
S303, judges whether described current light value is less than default illumination value, if described current light value is less than described default illumination value, then controls household electrical appliances and carries out work, otherwise return step S301.
Specifically, if state current light value to be less than described default illumination value, show it has been now night or nearly night, then now control household electrical appliances and carry out work, as current light value is more than or equal to default illumination value, then now daytime not yet, then household electrical appliances are without the need to starting, and system continues the influence value of monitor optical intensity sensor.
Further, if described current operation mode is summer mode or winter mode, then controls air-conditioning, illuminating lamp and water heater working and comprise:
Step S31, obtains the first preset temperature value, the second preset temperature value;
Specifically, the high temperature critical temperature in the first preset temperature value and the second preset temperature value difference corresponding summer and winter and low temperature critical temperature, namely when temperature reaches a high temperature critical temperature, then show that now temperature is too high, then show that now temperature is too low when temperature reaches low temperature critical temperature, same, the first preset temperature value, the second preset temperature value by producer's Default Value, also can be arranged by user voluntarily.
Step S32, obtains current temperature value;
System connects temperature sensor, and the temperature value responded to by reading temperature sensor obtains current temperature value.
Step S33, judge whether described current temperature value is greater than described first preset temperature value, if described current temperature value is less than described first preset temperature value, then control air-conditioning to heat, otherwise judge whether described current temperature value is greater than described second preset temperature value, if described current temperature value is greater than described second preset temperature value, then control air-conditioning and freeze, otherwise control air-conditioning quits work.
In this step, if current temperature value is less than the first preset temperature value, then show that now temperature is too low, then control air-conditioning to heat indoor, otherwise, if whether current temperature value is greater than the second preset temperature value, then show that now indoor temperature is too high, then control air-conditioning and freeze.
The present invention also provides a kind of smart home environment control device, and described device comprises:
Obtaining date unit 10, being connected, for obtaining current date parameter with selection mode of operation unit 20;
Select mode of operation unit 20, with acquisition date unit 10, control family's electric unit 30 and be connected, for obtaining season division rule, according to date parameter and the corresponding Seasonal Model of season division rules selection;
Controlling family's electric unit 30, be connected with selection mode of operation unit 20, carrying out work for controlling household electrical appliances according to different Seasonal Models.
Further, described device also comprises:
Obtaining and preset light illuminating unit 301, being connected, for obtaining default illumination value with acquisition current light unit 302;
Obtaining current light unit 302, being connected, for obtaining current light value with the default light illuminating unit 301 of acquisition, illumination judging unit 303;
Illumination judging unit 303, with acquisition current light unit 302, control family's electric unit 30 and be connected, for judging whether described current light value is less than default illumination value, if described current light value is less than described default illumination value, then control household electrical appliances and carry out work, otherwise return.
Further, described household electrical appliances comprise:
Air-conditioning, illuminating lamp and water heater.
Further, if described control man electric unit is summer mode or winter mode specifically for current operation mode, then control air-conditioning, illuminating lamp and water heater working, otherwise control illuminating lamp and water heater working.
Further, described control man electric unit also comprises:
Obtain preset temperature module 31, for obtaining the first preset temperature value, the second preset temperature value;
Obtain Current Temperatures module 32, for obtaining current temperature value;
Control Climate Control Module 33, for judging whether described current temperature value is greater than described first preset temperature value, if described current temperature value is less than described first preset temperature value, then control air-conditioning to heat, otherwise judge whether described current temperature value is greater than described second preset temperature value, if described current temperature value is greater than described second preset temperature value, then control air-conditioning and freeze, otherwise control air-conditioning quits work.
It should be noted that in said system embodiment, included unit is carry out dividing according to function logic, but is not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional unit, also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
In addition, one of ordinary skill in the art will appreciate that all or part of step realized in the various embodiments described above method is that the hardware that can carry out instruction relevant by program has come, corresponding program can be stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.