Method for controlling humidifier, apparatus, humidifier, and storage medium
View Patent ↗Provided are a humidifier control method, an apparatus, a humidifier, and a storage medium. The method for controlling the humidifier includes that: the humidifier is controlled to humidify an environment in a first operating state for a first preset time; a first humidity detection value of the humidifier in the first operating state is acquired; the humidifier is controlled to enter a second operating state from the first operating state for a second preset time; a second humidity detection value of the humidifier in the second operating state is acquired; a current environment humidity is determined according to the first humidity detection value and the second humidity detection value; and the operating state of the humidifier is controlled according to a difference between a preset target humidity and the current environment humidity to adjust the current environment humidity to the preset target humidity.
1 . A humidifier control method, comprising:
controlling a humidifier to humidify an environment in a first operating state for a first preset time;
acquiring a first humidity detection value of the humidifier in the first operating state;
controlling the humidifier to enter a second operating state from the first operating state for a second preset time;
acquiring a second humidity detection value of the humidifier in the second operating state;
determining a current environment humidity according to the first humidity detection value and the second humidity detection value; and
controlling an operating state of the humidifier according to a difference between a preset target humidity and the current environment humidity, to adjust the current environment humidity to the preset target humidity;
wherein the second humidity detection value is one of an average value, an average value of partial values, a minimum value, or a median value of humidity values acquired according to a preset first frequency when the humidifier is in the second operating state, and the second operating state is to humidify the environment by outputting a mist output lower than a preset humidification gear, or to stop a mist output.
2 . The humidifier control method of claim 1 , wherein the first humidity detection value is a humidity value acquired according to a preset first second frequency when the humidifier is in the first operating state, and the first operating state is to humidify the environment according to a mist output of a preset humidification gear.
3 . The humidifier control method of claim 1 , wherein determining the current environment humidity according to the first humidity detection value and the second humidity detection value comprises: determining the current environment humidity according to a summation of a first weight product of the first humidity detection value and a second weight product of the second humidity detection value.
4 . The humidifier control method of claim 1 , wherein determining the current environment humidity according to the first humidity detection value and the second humidity detection value comprises: determining the current environment humidity according to a summation of a first weight product of an average value of a plurality of first humidity detection values successively detected, a second weight product of the second humidity detection value, and a third weight product of a history second humidity detection value.
5 . The humidifier control method of claim 1 , further comprising: controlling the humidifier to display, at a preset third frequency, the current environment humidity, a target environment humidity, and a preset number of historical environment humidity.
6 . The humidifier control method of claim 1 , wherein the second preset time is less than the first preset time and greater than a preset time threshold.
7 . A humidifier, comprising:
at least one processors; and
a memory, which is configured to store at least one program;
wherein the at least one program, when executed by the at least one processor, causes the at least one processor to implement:
controlling the humidifier to humidify an environment in a first operating state for a first preset time;
acquiring a first humidity detection value of the humidifier in the first operating state;
controlling the humidifier to enter a second operating state from the first operating state for a second preset time;
acquiring a second humidity detection value of the humidifier in the second operating state;
determining a current environment humidity according to the first humidity detection value and the second humidity detection value; and
controlling an operating state of the humidifier according to a difference between a preset target humidity and the current environment humidity, to adjust the current environment humidity to the preset target humidity;
wherein the second humidity detection value is one of an average value, an average value of partial values, a minimum value, or a median value of humidity values acquired according to a preset first frequency when the humidifier is in the second operating state, and the second operating state is to humidify the environment by outputting a mist output lower than a preset humidification gear, or to stop a mist output.
8 . The humidifier of claim 7 , wherein the first humidity detection value is a humidity value acquired according to a preset second frequency when the humidifier is in the first operating state, and the first operating state is to humidify the environment according to a mist output of a preset humidification gear.
9 . The humidifier of claim 7 , wherein the at least one processor determines the current environment humidity according to the first humidity detection value and the second humidity detection value by:
determining the current environment humidity according to a summation of a first weight product of the first humidity detection value and a second weight product of the second humidity detection value.
10 . The humidifier of claim 7 , wherein the at least one processor determines the current environment humidity according to the first humidity detection value and the second humidity detection value by:
determining the current environment humidity according to a summation of a first weight product of an average value of a plurality of first humidity detection values successively detected, a second weight product of the second humidity detection value, and a third weight product of a history second humidity detection value.
11 . The humidifier of claim 7 , wherein the at least one processor further implements:
controlling the humidifier to display, at a preset third frequency, the current environment humidity, a target environment humidity, and a preset number of historical environment humidity.
12 . The humidifier of claim 7 , wherein the second preset time is less than the first preset time and greater than a preset time threshold.
13 . A non-transitory computer readable storage medium, storing a computer program, wherein the computer program, when executed by a processor of a humidifier, implements:
controlling the humidifier to humidify an environment in a first operating state for a first preset time;
acquiring a first humidity detection value of the humidifier in the first operating state;
controlling the humidifier to enter a second operating state from the first operating state for a second preset time;
acquiring a second humidity detection value of the humidifier in the second operating state;
determining a current environment humidity according to the first humidity detection value and the second humidity detection value; and
controlling an operating state of the humidifier according to a difference between a preset target humidity and the current environment humidity, to adjust the current environment humidity to the preset target humidity;
wherein the second humidity detection value is one of an average value, an average value of partial values, a minimum value, or a median value of humidity values acquired according to a preset first frequency when the humidifier is in the second operating state, and the second operating state is to humidify the environment by outputting a mist output lower than a preset humidification gear, or to stop a mist output.
14 . The non-transitory computer readable storage medium of claim 13 , wherein the first humidity detection value is a humidity value acquired according to a preset second frequency when the humidifier is in the first operating state, and the first operating state is to humidify the environment according to a mist output of a preset humidification gear.
15 . The non-transitory computer readable storage medium of claim 13 , wherein the processor determines the current environment humidity according to the first humidity detection value and the second humidity detection value by:
determining the current environment humidity according to a summation of a first weight product of the first humidity detection value and a second weight product of the second humidity detection value.
16 . The non-transitory computer readable storage medium of claim 13 , wherein the processor determines the current environment humidity according to the first humidity detection value and the second humidity detection value by:
determining the current environment humidity according to a summation of a first weight product of an average value of a plurality of first humidity detection values successively detected, a second weight product of the second humidity detection value, and a third weight product of a history second humidity detection value.
17 . The non-transitory computer readable storage medium of claim 13 , wherein the processor further implements:
controlling the humidifier to display, at a preset third frequency, the current environment humidity, a target environment humidity, and a preset number of historical environment humidity.
18 . The non-transitory computer readable storage medium of claim 13 , wherein the second preset time is less than the first preset time and greater than a preset time threshold.