Air conditioner aromatherapy device essential oil service life calculation method and device and air conditioner
By realizing the calculation method of essential oil life in the air conditioner, the problem of low calculation accuracy of the remaining amount of aromatherapy essential oil is solved, the calculation accuracy is improved, and waste and functional interruption is avoided.
Patent Information
- Application Number
- CN202411402407.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-09
- Publication Date
- 2025-02-07
AI Technical Summary
In the prior art, the calculation of the residual amount of aromatherapy essential oil in the air conditioner is relatively low, and environmental factors such as temperature and humidity cannot be considered and the influence of essential oil varieties is caused by waste or the inability to spray fragrance in time.
A method of calculating the life of essential oils in an air conditioner, including obtaining the scent level, matching the scent parameters, controlling the aromatherapy module to scent, and when receiving a specific instruction, calculate the remaining amount of essential oil based on the scent parameters and duration.
It improves the accuracy of calculating the remaining amount of aromatherapy essential oil in the air conditioner, avoids the waste of premature replacement of essential oils, and ensures the continuous use of aromatherapy function.
Smart Images

Figure CN119393886A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of air conditioner control, and in particular to a method and device for calculating the life of essential oil in an air conditioner aromatherapy device, and an air conditioner. Background Art
[0002] As people's living standards continue to improve and the level of intelligence of home appliances continues to increase, smart home appliances are becoming more and more popular. Users can use air conditioners for heating in winter to increase the indoor temperature, and can also use air conditioners for cooling in summer to reduce the indoor temperature.
[0003] Aromatherapy, as a way of health and wellness, is gaining more and more attention and popularity. The air circulation function of the air conditioner can release aromatic substances to improve air quality, increase physical and mental comfort, help people relax and improve sleep quality. In related technologies, the use time is usually used to determine whether the aromatherapy essential oil has been consumed, so as to remind users to refill it in time.
[0004] However, this calculation method does not take into account the impact of environmental factors such as temperature, humidity, and other factors such as the type of essential oil, and its accuracy is low. Summary of the invention
[0005] The purpose of this application is to provide a method, device and air conditioner for calculating the life of essential oil in an air-conditioning aromatherapy device, so as to improve the accuracy of calculating the remaining amount of aromatherapy essential oil in the air-conditioner, avoid waste caused by premature replacement of essential oil, and avoid the inability to spray fragrance due to replacement of essential oil too late.
[0006] The present application provides a method for calculating the life of essential oil in an air-conditioning aromatherapy device, comprising: When the air conditioner receives an instruction to turn on the aromatherapy function, the fragrance gear is obtained; based on the aromatherapy gear, the fragrance parameters corresponding to the fragrance gear are matched from the target relationship comparison table, and the aromatherapy module is controlled to spray fragrance based on the fragrance parameters; when the first preset trigger condition is met, the remaining amount of the aromatherapy essential oil is calculated based on the fragrance parameters and the corresponding fragrance duration; wherein the target relationship comparison table is used to indicate: the fragrance parameters corresponding to different fragrance gears; the first preset trigger condition includes any one of the following: receiving an instruction to turn off the aromatherapy function, receiving a gear switching instruction.
[0007] Optionally, the fragrance spraying parameters include at least one of the following: atomization duration, sleep duration, essential oil consumption rate; matching the fragrance parameters corresponding to the fragrance gear from a target relationship comparison table based on the fragrance gear, and controlling the aromatherapy module to spray fragrance based on the fragrance parameters, including: matching the atomization duration corresponding to the fragrance gear, the sleep duration corresponding to the fragrance gear, and the essential oil consumption rate corresponding to the fragrance gear from a target relationship comparison table; controlling the aromatherapy module to spray fragrance according to the atomization duration corresponding to the fragrance gear and the sleep duration corresponding to the fragrance gear.
[0008] Optionally, when an aromatherapy function shut-down instruction or a gear switching instruction is received, the remaining amount of the aromatherapy essential oil is calculated based on the fragrance parameters and the corresponding fragrance spraying time, including: when an aromatherapy function shut-down instruction or a gear switching instruction is received, obtaining the number of spray gears and the corresponding fragrance spraying time; calculating the product of the fragrance spraying time and the essential oil consumption rate corresponding to the fragrance gear to obtain the current essential oil consumption; calculating the difference between the last essential oil remaining amount and the current essential oil consumption to obtain the current essential oil remaining amount.
[0009] Optionally, after calculating the remaining amount of the aromatherapy essential oil based on the aromatherapy parameters and the corresponding aromatherapy time, the method further includes: generating a prompt message when the remaining amount of the aromatherapy essential oil is less than a preset remaining amount threshold, and reminding the user based on the prompt message.
[0010] Optionally, after generating the prompt information and reminding the user based on the prompt information, the method also includes: when a second preset trigger condition is met, obtaining the residual amount of essential oil reported by the user device, and calculating a target ratio of actual essential oil consumption to theoretical essential oil consumption based on the residual amount of essential oil; and adjusting the essential oil consumption rate corresponding to each fragrance gear in the target relationship table based on the target ratio.
[0011] The present application also provides a device for calculating the life span of essential oil in an air-conditioning aromatherapy device, comprising: An acquisition module is used to acquire a fragrance spraying gear when the air conditioner receives an instruction to turn on an fragrance function; a determination module is used to match the fragrance spraying parameters corresponding to the fragrance spraying gear from a target relationship comparison table based on the fragrance spraying gear; a control module is used to control the fragrance module to spray fragrance based on the fragrance spraying parameters; a calculation module is used to calculate the remaining amount of the aromatherapy essential oil based on the fragrance spraying parameters and the corresponding fragrance spraying time when a first preset trigger condition is met; wherein the target relationship comparison table is used to indicate: the fragrance spraying parameters corresponding to different fragrance spraying gears; the first preset trigger condition includes any one of the following: receiving an instruction to turn off the fragrance function, receiving a gear switching instruction.
[0012] Optionally, the fragrance spraying parameters include at least one of the following: atomization duration, sleep duration, essential oil consumption rate; the determination module is specifically used to match the atomization duration corresponding to the fragrance spraying gear, the sleep duration corresponding to the fragrance spraying gear and the essential oil consumption rate corresponding to the fragrance spraying gear from the target relationship comparison table; the control module is specifically used to control the aromatherapy module to spray fragrance according to the atomization duration corresponding to the fragrance spraying gear and the sleep duration corresponding to the fragrance spraying gear.
[0013] Optionally, the acquisition module is further used to obtain the number of spray gears and the corresponding spraying time when receiving an aromatherapy function shutdown instruction or a gear switching instruction; the calculation module is specifically used to calculate the product of the spraying time and the essential oil consumption rate corresponding to the spraying gear to obtain the current essential oil consumption; the calculation module is also specifically used to calculate the difference between the last essential oil remaining amount and the current essential oil consumption to obtain the current essential oil remaining amount.
[0014] Optionally, the device further includes: a reminder module; the reminder module is used to generate a prompt message when the remaining amount of the aromatherapy essential oil is less than a preset remaining amount threshold, and to remind the user based on the prompt message.
[0015] Optionally, the calculation module is also used to obtain the residual amount of essential oil reported by the user device when a second preset trigger condition is met, and calculate the target ratio of the actual essential oil consumption to the theoretical essential oil consumption based on the residual amount of essential oil; the calculation module is also used to adjust the essential oil consumption rate corresponding to each fragrance gear in the target relationship table based on the target ratio.
[0016] The present application also provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of any of the above-mentioned methods for calculating the life of essential oil in an air-conditioning aromatherapy device.
[0017] The present application also provides an electronic device, which may be an air conditioner, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the method for calculating the essential oil life of an air-conditioning aromatherapy device as described in any one of the above are implemented.
[0018] The present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method for calculating the life of essential oil in an air-conditioning aromatherapy device as described in any one of the above are implemented.
[0019] The present application provides a method, device and air conditioner for calculating the life of essential oil in an air-conditioning aromatherapy device. First, when the air conditioner receives an instruction to turn on the aromatherapy function, the fragrance gear is obtained; then, based on the fragrance gear, the fragrance parameters corresponding to the fragrance gear are matched from a target relationship comparison table, and the aromatherapy module is controlled to spray fragrance based on the fragrance parameters; finally, when the first preset trigger condition is met, the remaining amount of aromatherapy essential oil is calculated based on the fragrance parameters and the corresponding fragrance duration; wherein the target relationship comparison table is used to indicate: the fragrance parameters corresponding to different fragrance gears; the first preset trigger condition includes any one of the following: receiving an instruction to turn off the aromatherapy function, receiving a gear switching instruction. In this way, the accuracy of the calculation of the remaining amount of aromatherapy essential oil in the air conditioner is improved, avoiding waste caused by premature replacement of essential oils and the inability to spray fragrance due to replacement of essential oils too late. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0021] Figure 1 It is a schematic diagram of the operating principle of the air conditioner provided by this application; Figure 2 It is one of the flow charts of the method for calculating the life of essential oil in an air-conditioning aromatherapy device provided in this application; Figure 3 This is the second flow chart of the method for calculating the life of essential oil in an air-conditioning aromatherapy device provided by the present application; Figure 4 It is a structural schematic diagram of an essential oil life calculation device for an air-conditioning aromatherapy device provided by the present application; Figure 5 It is a structural schematic diagram of the electronic device provided by this application. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0023] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0024] The operating principle of the air conditioner involved in the embodiment of the present application is described in detail below: like Figure 1 As shown in the figure, the compressor compresses the refrigerant (coolant) and transports it to the condenser through a pipeline. The high-temperature and high-pressure gaseous refrigerant releases heat in the condenser and becomes a medium-temperature and high-pressure liquid refrigerant. After that, the medium-temperature and high-pressure liquid refrigerant is depressurized by a capillary tube (throttling unit) and becomes a low-temperature and low-pressure liquid refrigerant. The low-temperature and low-pressure liquid refrigerant is transported to the evaporator to evaporate from liquid to gas, and absorbs a large amount of heat during the evaporation process. Finally, the low-temperature and low-pressure gaseous refrigerant in the evaporator is transported to the compressor to participate in the next cycle. When the air conditioner is cooling, the heat exchanger of the outdoor unit is the condenser, and the heat exchanger of the indoor unit is the evaporator; conversely, when the air conditioner is heating, the heat exchanger of the outdoor unit is the evaporator, and the heat exchanger of the indoor unit is the condenser.
[0025] With the acceleration of modern life pace and the increase of life pressure, people pay more and more attention to the maintenance of physical and mental health. Aromatherapy, as a way of health preservation, is getting more and more attention and love from people. Aromatherapy products (for example, air conditioners equipped with aromatherapy modules) can release aromatic substances, improve air quality, increase physical and mental comfort, help people relax, relieve stress, improve sleep quality, etc.
[0026] In order to solve the technical problem of low accuracy in calculating the remaining amount of aromatherapy essential oil in the related art, an embodiment of the present application provides a method for calculating the essential oil life of an air-conditioning aromatherapy device. This method can improve the accuracy of calculating the remaining amount of aromatherapy essential oil in the air conditioner, avoid waste caused by premature replacement of essential oil, and avoid the inability to spray fragrance due to excessive replacement of essential oil.
[0027] The following is a detailed description of the method for calculating the essential oil life of an air-conditioning aromatherapy device provided in the embodiment of the present application through specific embodiments and application scenarios in conjunction with the accompanying drawings.
[0028] like Figure 2As shown, an embodiment of the present application provides a method for calculating the life of essential oil in an air-conditioning aromatherapy device, which may include the following steps 201 to 203: Step 201: When the air conditioner receives an instruction to turn on the aromatherapy function, obtain the aromatherapy gear.
[0029] The target relationship comparison table is used to indicate: the fragrance parameters corresponding to different fragrance gears.
[0030] Exemplarily, the aromatherapy function activation instruction is used to activate the aromatherapy function of the air conditioner. When the aromatherapy function of the air conditioner is activated, the aromatherapy module of the air conditioner can be controlled to spray fragrance by atomization.
[0031] Exemplarily, the above target relationship comparison table contains different pre-calibrated fragrance parameters corresponding to different gears. The fragrance parameters include at least one of the following: atomization time, sleep time, and essential oil consumption rate. For example, in the embodiment of the present application, three fragrance gears may be included, and the fragrance parameters corresponding to different gears are shown in the following Table 1:
[0032] Table 1
[0033] For example, as shown in Table 1 above, the atomization time, sleep time and essential oil consumption rate corresponding to different spraying gears are all different. The data in Table 1 above can be pre-calibrated, that is, the essential oil consumption rate at different gears can be determined through actual testing.
[0034] Step 202: Match the fragrance parameters corresponding to the fragrance gear from the target relationship comparison table based on the fragrance gear, and control the fragrance module to spray fragrance based on the fragrance parameters.
[0035] For example, after the fragrance spraying level and the corresponding fragrance spraying parameters are determined, the fragrance module can be controlled to spray fragrance based on the fragrance spraying parameters.
[0036] Specifically, the above step 202 may further include the following steps 202a1 and 202a2: Step 202a1, matching the atomization duration corresponding to the fragrance gear, the sleep duration corresponding to the fragrance gear, and the essential oil consumption rate corresponding to the fragrance gear from the target relationship comparison table.
[0037] Step 202a2, controlling the aromatherapy module to spray aroma according to the atomization duration corresponding to the aromatherapy gear and the sleep duration corresponding to the aromatherapy gear.
[0038] For example, the air conditioner can control the aromatherapy module to spray fragrance according to the obtained atomization time and sleep time corresponding to the fragrance spraying gear. For example, when the fragrance spraying gear is the second gear, the aromatherapy module can be controlled to spray for 60 seconds, sleep for 120 seconds, and then spray again, and so on.
[0039] Step 203: When the first preset trigger condition is met, the remaining amount of the aromatherapy essential oil is calculated based on the fragrance spraying parameters and the corresponding fragrance spraying time; The first preset trigger condition includes any one of the following: receiving an aromatherapy function shut-down instruction, receiving a gear switching instruction.
[0040] It is understandable that since the essential oil consumption rates corresponding to different spraying gears are different, it is necessary to calculate the essential oil consumption when the gear is switched or the spraying is stopped, and calculate the remaining amount based on the consumption, so that in the subsequent process, the essential oil life can be recalculated based on the remaining amount.
[0041] Specifically, the above step 203 may further include the following steps 203a1 to 203a3: Step 203a1: upon receiving an aromatherapy function closing instruction or a gear switching instruction, obtaining the number of spraying gears and the corresponding aromatherapy duration.
[0042] Step 203a2: Calculate the product of the fragrance spraying time and the essential oil consumption rate corresponding to the fragrance spraying gear to obtain the current essential oil consumption.
[0043] Step 203a3: Calculate the difference between the last remaining amount of essential oil and the current essential oil consumption to obtain the current remaining amount of essential oil.
[0044] Exemplarily, based on the essential oil consumption rate corresponding to the current fragrance gear and the operating time of the air conditioner at the current fragrance gear, the essential oil consumption corresponding to the current fragrance gear can be calculated, and the remaining essential oil can be further calculated.
[0045] Optionally, in the embodiment of the present application, due to environmental factors (eg, temperature and humidity) and different types of aromatherapy essential oils, the essential oil consumption may be different from the pre-calibrated value. Therefore, the essential oil consumption rate can be calibrated with the help of the user.
[0046] For example, after the above step 203, the method for calculating the essential oil life of the air-conditioning aromatherapy device provided in the embodiment of the present application may further include the following step 204: Step 204: When the remaining amount of the aromatherapy essential oil is less than a preset remaining amount threshold, a prompt message is generated, and the user is reminded based on the prompt message.
[0047] For example, when the calculation result indicates that the remaining amount of essential oil is low, the user can be reminded to buy more and replace it to avoid the situation where the aromatherapy function cannot be used.
[0048] For example, after the above step 204, the method for calculating the essential oil life of the air-conditioning aromatherapy device provided in the embodiment of the present application may further include the following steps 205 and 206: Step 205: When the second preset trigger condition is met, the residual amount of essential oil reported by the user device is obtained, and a target ratio of the actual consumption of essential oil to the theoretical consumption of essential oil is calculated based on the residual amount of essential oil.
[0049] Exemplarily, the second preset trigger condition may be that the user receives an instruction to reset the life of the aromatherapy essential oil from the server after changing the aromatherapy, or the user manually resets the life of the aromatherapy essential oil after changing the aromatherapy to another flavor.
[0050] For example, after the user replaces the aromatherapy essential oil, the user can use the reset button on the terminal device to control the server to send an aromatherapy essential oil life reset instruction to the air conditioner, so that the air conditioner can reset the remaining amount of the aromatherapy essential oil.
[0051] For example, when the user performs a reset, the system may remind the user to fill in the actual remaining amount of the aromatherapy essential oil according to the scale on the aromatherapy essential oil container, and report the actual remaining amount.
[0052] Step 206: Adjust the essential oil consumption rate corresponding to each fragrance gear in the target relationship table based on the target ratio.
[0053] Exemplarily, after obtaining the actual remaining amount (i.e., the above-mentioned residual amount of essential oil), the air conditioner can compare it with the theoretical calculation result (i.e., the above-mentioned theoretical consumption of essential oil). If they are consistent (or the error is less than the preset error rate), the existing essential oil consumption rate will not be adjusted; if the theoretical value is greater than the actual value, the essential oil consumption rate will be reduced by adjusting the coefficient; if the theoretical value is less than the actual value, the essential oil consumption rate will be increased by adjusting the coefficient.
[0054] For example, Figure 3 As shown, it is a flow chart of the method for calculating the life span of essential oil in an air-conditioning aromatherapy device provided in an embodiment of the present application. Figure 3 As shown, when the air conditioner aromatherapy function is turned on, the aromatherapy gear is first obtained, and the aromatherapy parameters corresponding to the aromatherapy gear are determined from the target relationship comparison table based on the aromatherapy gear, and when the aromatherapy function is turned off or the aromatherapy gear is switched, the remaining amount of essential oil is calculated based on the essential oil consumption rate and aromatherapy duration corresponding to the aromatherapy gear. Afterwards, if the remaining amount of essential oil is low, the user can be reminded to refill it.
[0055] It should be noted that, in the embodiment of the present application, a variety of aromatherapy essential oils can be provided in the air conditioner, and the remaining amount of each aromatherapy essential oil can be calculated according to the essential oil life calculation method of the air conditioner aromatherapy device provided in the embodiment of the present application.
[0056] In this way, the remaining amount of the aromatherapy essential oil can be calculated more accurately so as to remind the user in time.
[0057] The method for calculating the life of essential oil in an air-conditioning aromatherapy device provided in an embodiment of the present application is as follows: first, when the air conditioner receives an instruction to turn on the aromatherapy function, the fragrance gear is obtained; then, based on the fragrance gear, the fragrance parameters corresponding to the fragrance gear are matched from a target relationship comparison table, and the aromatherapy module is controlled to spray fragrance based on the fragrance parameters; finally, when the first preset trigger condition is met, the remaining amount of the aromatherapy essential oil is calculated based on the fragrance parameters and the corresponding fragrance duration; wherein the target relationship comparison table is used to indicate: the fragrance parameters corresponding to different fragrance gears; the first preset trigger condition includes any one of the following: receiving an instruction to turn off the aromatherapy function, receiving an instruction to switch gears. In this way, the accuracy of the calculation of the remaining amount of the air conditioner's aromatherapy essential oil is improved, avoiding waste caused by premature replacement of essential oils and the inability to spray fragrance due to replacement of essential oils too late.
[0058] It should be noted that the execution subject of the method for calculating the life of essential oils in an air-conditioning aromatherapy device provided in the embodiment of the present application may be an air-conditioning aromatherapy device essential oil life calculation device, or a control module in the air-conditioning aromatherapy device essential oil life calculation device for executing the method for calculating the life of essential oils in an air-conditioning aromatherapy device. In the embodiment of the present application, the air-conditioning aromatherapy device essential oil life calculation device executing the method for calculating the life of essential oils in an air-conditioning aromatherapy device is taken as an example to illustrate the air-conditioning aromatherapy device essential oil life calculation device provided in the embodiment of the present application.
[0059] It should be noted that, in the embodiments of the present application, the methods shown in the drawings of the above-mentioned methods. The methods for calculating the life of essential oils in air-conditioning aromatherapy devices are all illustrated by taking one of the drawings in the embodiments of the present application as an example. In specific implementation, the methods for calculating the life of essential oils in air-conditioning aromatherapy devices shown in the drawings of the above-mentioned methods can also be implemented in combination with any other drawings that can be combined as shown in the above-mentioned embodiments, which will not be repeated here.
[0060] The following is a description of the essential oil life calculation device for an air-conditioning aromatherapy device provided by the present application. The following description and the above-described method for calculating the essential oil life calculation method for an air-conditioning aromatherapy device can be referenced to each other.
[0061] Figure 4 This is a schematic diagram of the structure of the essential oil life calculation device for an air-conditioning aromatherapy device provided in one embodiment of the present application. Figure 4 As shown, specifically including: An acquisition module is used to acquire a fragrance spraying gear when the air conditioner receives an instruction to turn on an fragrance function; a determination module is used to match the fragrance spraying parameters corresponding to the fragrance spraying gear from a target relationship comparison table based on the fragrance spraying gear; a control module is used to control the fragrance module to spray fragrance based on the fragrance spraying parameters; a calculation module is used to calculate the remaining amount of the aromatherapy essential oil based on the fragrance spraying parameters and the corresponding fragrance spraying time when a first preset trigger condition is met; wherein the target relationship comparison table is used to indicate: the fragrance spraying parameters corresponding to different fragrance spraying gears; the first preset trigger condition includes any one of the following: receiving an instruction to turn off the fragrance function, receiving a gear switching instruction.
[0062] Optionally, the fragrance spraying parameters include at least one of the following: atomization duration, sleep duration, essential oil consumption rate; the determination module is specifically used to match the atomization duration corresponding to the fragrance spraying gear, the sleep duration corresponding to the fragrance spraying gear and the essential oil consumption rate corresponding to the fragrance spraying gear from the target relationship comparison table; the control module is specifically used to control the aromatherapy module to spray fragrance according to the atomization duration corresponding to the fragrance spraying gear and the sleep duration corresponding to the fragrance spraying gear.
[0063] Optionally, the acquisition module is further used to obtain the number of spray gears and the corresponding spraying time when receiving an aromatherapy function shutdown instruction or a gear switching instruction; the calculation module is specifically used to calculate the product of the spraying time and the essential oil consumption rate corresponding to the spraying gear to obtain the current essential oil consumption; the calculation module is also specifically used to calculate the difference between the last essential oil remaining amount and the current essential oil consumption to obtain the current essential oil remaining amount.
[0064] Optionally, the device further includes: a reminder module; the reminder module is used to generate a prompt message when the remaining amount of the aromatherapy essential oil is less than a preset remaining amount threshold, and to remind the user based on the prompt message.
[0065] Optionally, the calculation module is also used to obtain the residual amount of essential oil reported by the user device when a second preset trigger condition is met, and calculate the target ratio of the actual essential oil consumption to the theoretical essential oil consumption based on the residual amount of essential oil; the calculation module is also used to adjust the essential oil consumption rate corresponding to each fragrance gear in the target relationship table based on the target ratio.
[0066] The essential oil life calculation device for an air-conditioning aromatherapy device provided in the present application first obtains the fragrance gear when the air conditioner receives an aromatherapy function start instruction; then, based on the fragrance gear, matches the fragrance parameters corresponding to the fragrance gear from the target relationship comparison table, and controls the aromatherapy module to spray fragrance based on the fragrance parameters; finally, when the first preset trigger condition is met, the remaining amount of the aromatherapy essential oil is calculated based on the fragrance parameters and the corresponding fragrance duration; wherein the target relationship comparison table is used to indicate: the fragrance parameters corresponding to different fragrance gears; the first preset trigger condition includes any one of the following: receiving an aromatherapy function turn-off instruction, receiving a gear switching instruction. In this way, the accuracy of the calculation of the remaining amount of the air conditioner's aromatherapy essential oil is improved, avoiding waste caused by premature replacement of essential oils and the inability to spray fragrance due to replacement of essential oils too late.
[0067] Figure 5 The physical structure diagram of an electronic device is shown as an example. The electronic device may be the above-mentioned air conditioner. Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the method for calculating the life of essential oil in the air-conditioning aromatherapy device, the method comprising: obtaining the fragrance gear when the air conditioner receives the aromatherapy function start instruction; matching the fragrance parameters corresponding to the fragrance gear from the target relationship comparison table based on the fragrance gear, and controlling the aromatherapy module to perform fragrance based on the fragrance parameters; calculating the remaining amount of the aromatherapy essential oil based on the fragrance parameters and the corresponding fragrance duration when the first preset trigger condition is met; wherein the target relationship comparison table is used to indicate: the fragrance parameters corresponding to different fragrance gears; the first preset trigger condition includes any one of the following: receiving the aromatherapy function off instruction, receiving the gear switching instruction.
[0068] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0069] On the other hand, the present application also provides a computer program product, which includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the method for calculating the essential oil life of an air-conditioning aromatherapy device provided by the above-mentioned methods, the method including: when the air conditioner receives an instruction to turn on the aromatherapy function, obtaining the fragrance gear; based on the fragrance gear, matching the fragrance parameters corresponding to the fragrance gear from a target relationship comparison table, and controlling the aromatherapy module to spray fragrance based on the fragrance parameters; when a first preset trigger condition is met, calculating the remaining amount of the aromatherapy essential oil based on the fragrance parameters and the corresponding fragrance duration; wherein the target relationship comparison table is used to indicate: the fragrance parameters corresponding to different fragrance gears; the first preset trigger condition includes any one of the following: receiving an instruction to turn off the aromatherapy function, receiving a gear switching instruction.
[0070] On the other hand, the present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the above-mentioned methods for calculating the essential oil life of an air-conditioning aromatherapy device, the method comprising: when the air conditioner receives an instruction to turn on the aromatherapy function, obtaining the fragrance gear; based on the fragrance gear, matching the fragrance parameters corresponding to the fragrance gear from a target relationship comparison table, and controlling the aromatherapy module to spray fragrance based on the fragrance parameters; when a first preset trigger condition is met, calculating the remaining amount of the aromatherapy essential oil based on the fragrance parameters and the corresponding fragrance duration; wherein the target relationship comparison table is used to indicate: the fragrance parameters corresponding to different fragrance gears; the first preset trigger condition includes any one of the following: receiving an instruction to turn off the aromatherapy function, receiving a gear switching instruction.
[0071] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0072] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0073] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for calculating the life of essential oil in an air conditioning aromatherapy device, characterized in that: Applied to an air conditioner, the method comprises: When the air conditioner receives an instruction to turn on the aromatherapy function, obtaining a fragrance spraying gear; Matching a fragrance parameter corresponding to the fragrance gear from a target relationship comparison table based on the fragrance gear, and controlling the fragrance module to spray fragrance based on the fragrance parameter; When the first preset trigger condition is met, the remaining amount of the aromatherapy essential oil is calculated based on the fragrance spraying parameter and the corresponding fragrance spraying time; Among them, the target relationship comparison table is used to indicate: the fragrance parameters corresponding to different fragrance gears; the first preset trigger condition includes any one of the following: receiving an aromatherapy function off instruction, receiving a gear switching instruction.
2. The method for calculating the life of essential oil in an air-conditioning aromatherapy device according to claim 1, characterized in that: The fragrance spraying parameters include at least one of the following: atomization duration, dormancy duration, and essential oil consumption rate; The method of matching a fragrance parameter corresponding to the fragrance gear from a target relationship comparison table based on the fragrance gear, and controlling the fragrance module to spray fragrance based on the fragrance parameter, includes: Matching the atomization duration corresponding to the fragrance gear, the dormancy duration corresponding to the fragrance gear, and the essential oil consumption rate corresponding to the fragrance gear from the target relationship comparison table; The aromatherapy module is controlled to spray aroma according to the atomization time corresponding to the aromatherapy gear and the sleep time corresponding to the aromatherapy gear.
3. The method for calculating the life of essential oil in an air conditioning aromatherapy device according to claim 2, characterized in that: When receiving an aromatherapy function closing instruction or a gear switching instruction, the remaining amount of the aromatherapy essential oil is calculated based on the aromatherapy parameters and the corresponding aromatherapy time, including: When receiving an aromatherapy function closing instruction or a gear switching instruction, obtaining the number of spraying gears and the corresponding aromatherapy duration; Calculate the product of the fragrance spraying time and the essential oil consumption rate corresponding to the fragrance spraying gear to obtain the current essential oil consumption; The difference between the last remaining amount of essential oil and the current essential oil consumption is calculated to obtain the current remaining amount of essential oil.
4. The method for calculating the life of essential oil in an air-conditioning aromatherapy device according to any one of claims 1 to 3, characterized in that: After calculating the remaining amount of the aromatherapy essential oil based on the aromatherapy parameters and the corresponding aromatherapy duration, the method further includes: When the remaining amount of the aromatherapy essential oil is less than a preset remaining amount threshold, a prompt message is generated, and the user is reminded based on the prompt message.
5. The method for calculating the life of essential oil in an air-conditioning aromatherapy device according to claim 4, characterized in that: After generating the prompt information and reminding the user based on the prompt information, the method further includes: When the second preset trigger condition is met, obtaining the residual amount of essential oil reported by the user device, and calculating a target ratio of the actual consumption of the essential oil to the theoretical consumption of the essential oil based on the residual amount of essential oil; The essential oil consumption rate corresponding to each fragrance spraying gear in the target relationship table is adjusted based on the target ratio.
6. A device for calculating the life of essential oil in an air conditioning aromatherapy device, characterized in that: The device comprises: An acquisition module, used for acquiring a fragrance spraying gear position when the air conditioner receives an aromatherapy function activation instruction; A determination module, configured to match a fragrance spraying parameter corresponding to the fragrance spraying gear from a target relationship comparison table based on the fragrance spraying gear; A control module, used for controlling the aromatherapy module to spray aroma based on the aromatherapy parameters; A calculation module, configured to calculate the remaining amount of the aromatherapy essential oil based on the fragrance spraying parameters and the corresponding fragrance spraying time when the first preset trigger condition is met; Among them, the target relationship comparison table is used to indicate: the fragrance parameters corresponding to different fragrance gears; the first preset trigger condition includes any one of the following: receiving an aromatherapy function off instruction, receiving a gear switching instruction.
7. The essential oil life calculation device for an air-conditioning aromatherapy device according to claim 6, characterized in that: The fragrance spraying parameters include at least one of the following: atomization duration, dormancy duration, and essential oil consumption rate; The determination module is specifically used to match the atomization duration corresponding to the fragrance gear, the dormancy duration corresponding to the fragrance gear, and the essential oil consumption rate corresponding to the fragrance gear from the target relationship comparison table; The control module is specifically used to control the aromatherapy module to spray fragrance according to the atomization time corresponding to the fragrance spraying gear and the sleep time corresponding to the fragrance spraying gear.
8. The essential oil life calculation device for an air-conditioning aromatherapy device according to claim 7, characterized in that: The acquisition module is further used to acquire the number of spraying gears and the corresponding spraying duration when receiving an aromatherapy function closing instruction or a gear switching instruction; The calculation module is specifically used to calculate the product of the fragrance spraying time and the essential oil consumption rate corresponding to the fragrance spraying gear to obtain the current essential oil consumption; The calculation module is specifically used to calculate the difference between the last remaining amount of essential oil and the current essential oil consumption to obtain the current remaining amount of essential oil.
9. An air conditioner, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps of the method for calculating the life of essential oil in an air-conditioning aromatherapy device as claimed in any one of claims 1 to 5 are implemented.
10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the steps of the method for calculating the life of essential oil in an air-conditioning aromatherapy device as claimed in any one of claims 1 to 5 are implemented.