Device control method and apparatus, storage medium, and electronic device
By acquiring the status of devices linked to the formaldehyde purifier, determining and switching to the corresponding status, the problem of devices not being able to link together is solved, the efficiency of linkage control between devices is improved, and changes in formaldehyde release can be addressed.
Patent Information
- Application Number
- CN202211287786.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-20
- Publication Date
- 2025-11-11
- Estimated Expiration
- 2042-10-20
AI Technical Summary
Existing equipment cannot be effectively linked and controlled, resulting in the inability to automatically adjust the working status of the formaldehyde purifier to cope with the increase in formaldehyde release when the temperature changes.
By acquiring the current actions and states of the target second device that is linked with the first device, determining whether they correspond, and controlling the first device to switch to the state corresponding to the current action of the target device when they correspond, the linkage control between devices is realized.
It enables interconnected control between devices, improves the efficiency of formaldehyde purifiers when temperature changes, and effectively addresses changes in formaldehyde release.
Smart Images

Figure CN115657488B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of control technology for home appliances, and in particular to a device control method, apparatus, storage medium, and electronic device. Background Technology
[0002] Excessive formaldehyde levels pose significant health risks, such as respiratory infections, eye irritation and tearing, and may even lead to leukemia and some cancers.
[0003] Formaldehyde release is highly temperature-dependent. The higher the temperature, the stronger the formaldehyde release. Increased indoor temperature leads to the release of formaldehyde from wooden furniture and flooring. Formaldehyde has a boiling point of 19°C; when the temperature exceeds 19°C, the formaldehyde volatilization rate increases by 0.4 times for every 1°C increase in indoor temperature. In summer, when temperatures rise, formaldehyde concentrations can even exceed four times the normal level. Therefore, with increased formaldehyde release, some environmental pollutants generated during summer renovations can be eliminated more quickly, making summer a better time for indoor air pollution control.
[0004] Formaldehyde removal air purifiers remove formaldehyde by filtering it from the air. Therefore, they can only remove formaldehyde from the air and cannot directly remove formaldehyde that has not yet been volatilized from wooden furniture and flooring. Summary of the Invention
[0005] To address the problem of the inability to control devices in conjunction with each other in the prior art, this application provides a device control method, apparatus, storage medium, and electronic device.
[0006] In a first aspect, this application provides a device control method, the method comprising:
[0007] Obtain the current action of the target second device that is linked with the first device, and the current state of the first device;
[0008] Determine whether the current state of the first device corresponds to the current action of the target second device;
[0009] If they correspond, the first device is controlled to switch to the state corresponding to the current action of the target second device.
[0010] In the above embodiments, by acquiring the current action of the target second device linked with the first device and the current state of the first device, a judgment is made on whether the current state of the first device corresponds to the current action of the target second device. When the two correspond, the first device is controlled to switch to the state corresponding to the current action of the target second device, thereby ensuring the linkage control between the first device and the target second device, and thus ensuring that the linkage between the first device and the target second device can achieve more effective functions.
[0011] According to an embodiment of this application, optionally, the above-described device control method further includes:
[0012] Display the configuration page corresponding to the first device;
[0013] Obtain the network configuration operations performed by the user on the configuration page;
[0014] In response to the network configuration operation, the first device is configured to connect to the network.
[0015] According to an embodiment of this application, optionally, in the above-described device control method, before the step of obtaining the current action of the target second device linked with the first device, the method further includes:
[0016] Retrieve all the second devices to be configured and display them on the linkage selection page;
[0017] Obtain the selection actions performed by the user on the linked selection page;
[0018] In response to the selection operation, the second device to be configured corresponding to the selection operation is designated as the target second device to be linked with the first device.
[0019] According to an embodiment of this application, optionally, in the above-described device control method, the first device includes a formaldehyde purifier, and the second device includes an air conditioner.
[0020] According to an embodiment of this application, optionally, in the above-described device control method, the second device further includes a humidity regulating device.
[0021] According to an embodiment of this application, optionally, in the above-described device control method, the step of determining whether the current state of the first device corresponds to the current action of the target second device includes:
[0022] When the current action of the target second device is to switch from a non-heating state to a heating state, and the current state of the first device is a power-off state, it is determined that the current state of the first device corresponds to the current action of the target second device.
[0023] And / or, when the current action of the target second device is switching from heating state to non-heating state, and the current state of the first device is the linkage mode in the power-on state, it is determined that the current state of the first device corresponds to the current action of the target second device.
[0024] According to an embodiment of this application, optionally, in the above-described device control method, the step of controlling the first device to switch to a state corresponding to the current action of the target second device includes:
[0025] When the current action of the second target device is to switch from a non-heating state to a heating state, and the current state of the first device is a power-off state, the linkage mode in which the first device is controlled to switch from the power-off state to the power-on state is activated.
[0026] And / or, when the current action of the target second device is switching from heating state to non-heating state, and the current state of the first device is the linkage mode in the power-on state, control the first device to switch from the linkage mode in the power-on state to the power-off state.
[0027] According to an embodiment of this application, optionally, in the above device control method, after the step of controlling the first device to switch to a state corresponding to the current action of the target second device, the method further includes:
[0028] When a user's control command to operate the first device is detected, the linkage between the first device and the target second device is disconnected;
[0029] Control the first device to execute the control command.
[0030] Secondly, this application also provides a device control apparatus, the apparatus comprising:
[0031] The acquisition module is used to acquire the current action of the target second device that is linked with the first device and the current state of the first device;
[0032] The status determination module is used to determine whether the current status of the first device corresponds to the current action of the target second device;
[0033] The first device control module is used to control the first device to switch to a state corresponding to the current action of the target second device if there is a correspondence.
[0034] According to an embodiment of this application, optionally, the above-described device control apparatus further includes:
[0035] A configuration display module is used to display the configuration page corresponding to the first device;
[0036] The network configuration operation acquisition module is used to acquire the network configuration operations performed by the user on the configuration page;
[0037] The network configuration module is used to perform network configuration on the first device in response to the network configuration operation.
[0038] According to an embodiment of this application, optionally, in the above-described device control device, before the step of obtaining the current action of the target second device linked with the first device, the method further includes:
[0039] The linkage selection page display module is used to obtain all the second devices to be configured and display them on the linkage selection page.
[0040] The selection operation acquisition module is used to acquire the selection operations performed by the user on the linked selection page.
[0041] The linkage configuration module is used to respond to the selection operation and designate the second device to be configured corresponding to the selection operation as the target second device to be linked with the first device.
[0042] According to an embodiment of this application, optionally, in the above-mentioned device control device, the first device includes a formaldehyde purifier, and the second device includes an air conditioner.
[0043] According to an embodiment of this application, optionally, in the above-described device control device, the first device further includes a humidity regulating device.
[0044] According to an embodiment of this application, optionally, in the above-described device control apparatus, the state determination module includes:
[0045] The first judgment unit is used to determine that the current state of the first device corresponds to the current action of the target second device when the current action of the target second device is switching from a non-heating state to a heating state and the current state of the first device is a power-off state.
[0046] And / or, the second judgment unit is used to determine that the current state of the first device corresponds to the current action of the target second device when the current action of the target second device is switching from heating state to non-heating state, and the current state of the first device is the linkage mode in the power-on state.
[0047] According to an embodiment of this application, optionally, in the above-described device control apparatus, the first device control module includes:
[0048] The first control unit is configured to control the first device to switch from the off state to the on state in a linkage mode when the current action of the target second device is switching from the non-heating state to the heating state and the current state of the first device is the off state.
[0049] And / or, a second control unit, configured to control the first device to switch from the linkage mode in the power-on state to the power-off state when the current action of the target second device is switching from the heating state to the non-heating state, and the current state of the first device is the linkage mode in the power-on state.
[0050] According to an embodiment of this application, optionally, the above-described device control apparatus further includes:
[0051] The linkage disconnection control module is used to disconnect the linkage between the first device and the target second device when a control command from the user to operate the first device is detected.
[0052] The control instruction execution control module is used to control the first device to execute the control instructions.
[0053] Thirdly, this application provides a storage medium storing a computer program that can be executed by one or more processors and can be used to implement the device control method described above.
[0054] Fourthly, this application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, which, when executed by the processor, performs the device control method described above.
[0055] Compared with the prior art, one or more embodiments of the above solutions may have the following advantages or beneficial effects:
[0056] This application provides a device control method, apparatus, storage medium, and electronic device. The method includes: acquiring the current action of a target second device linked with a first device and the current state of the first device; determining whether the current state of the first device corresponds to the current action of the target second device; and if they correspond, controlling the first device to switch to the state corresponding to the current action of the target second device. In this embodiment, by acquiring the current action of the target second device linked with the first device and the current state of the first device, and determining whether the current state of the first device corresponds to the current action of the target second device, and controlling the first device to switch to the state corresponding to the current action of the target second device when they correspond, the linkage control between the first device and the target second device is ensured, thereby ensuring that the linkage between the first device and the target second device can achieve more effective functionality. Attached Figure Description
[0057] The present application will be described in more detail below based on embodiments and with reference to the accompanying drawings.
[0058] Figure 1 This is a flowchart illustrating a device control method provided in Embodiment 1 of this application.
[0059] Figure 2 This is a schematic diagram of the structure of a device control apparatus provided in Embodiment 5 of this application.
[0060] Figure 3 This is a connection block diagram of an electronic device provided in Embodiment 7 of this application.
[0061] In the accompanying drawings, the same parts are referred to by the same reference numerals, and the drawings are not drawn to scale. Detailed Implementation
[0062] The following detailed description of the embodiments of this application, in conjunction with the accompanying drawings, will provide a thorough understanding of how this application uses technical means to solve technical problems and achieve corresponding technical effects, enabling its implementation. The embodiments of this application and the various features within them can be combined with each other without conflict, and all resulting technical solutions are within the protection scope of this application.
[0063] Example 1
[0064] This invention provides a device control method; please refer to [link / reference]. Figure 1 The method includes the following steps:
[0065] Step S110: Obtain the current action of the target second device that is linked with the first device and the current state of the first device.
[0066] When the current action of the second target device changes, the current state of the first device can be obtained. This ensures that when the state of the second target device changes, the current actions of the first device and the second target device can be judged, thereby ensuring that the first device can be controlled based on the current action of the second target device.
[0067] Step S120: Determine whether the current state of the first device corresponds to the current action of the target second device;
[0068] According to an embodiment of this application, optionally, in the above-described device control method, the first device includes a formaldehyde purifier, and the second device includes an air conditioner.
[0069] Optionally, in the above device control method, step S120, which determines whether the current state of the first device corresponds to the current action of the target second device, includes:
[0070] Step S131: When the current action of the target second device is switching from a non-heating state to a heating state, and the current state of the first device is a power-off state, determine that the current state of the first device corresponds to the current action of the target second device;
[0071] Step S132: When the current action of the target second device is switching from heating state to non-heating state, and the current state of the first device is the linkage mode in the power-on state, determine that the current state of the first device corresponds to the current action of the target second device.
[0072] Step S130: If they correspond, control the first device to switch to the state corresponding to the current action of the target second device.
[0073] When the air conditioner enters the heating mode, by obtaining the current action of the target second device linked with the first device, it can be determined that the current state of the air conditioner has changed from other states to the heating mode. At this time, if the formaldehyde purifier is found to be in the off state, it can be determined that the current state of the formaldehyde purifier corresponds to the current state of the air conditioner, and then the formaldehyde purifier can be controlled to turn on.
[0074] And / or, when the air conditioner enters the heating mode, by obtaining the current action of the target second device linked with the first device, it can be determined that the current state of the air conditioner has changed from other states to non-heating mode. At this time, if the linkage mode of the formaldehyde purifier being turned on is obtained, it can be determined that the current state of the formaldehyde purifier corresponds to the current state of the air conditioner, and then the formaldehyde purifier can be controlled to turn off.
[0075] The current state of the first device includes both the powered-off state and the linked mode when the device is powered on. Linkage is a specific mode when the first device is in the linked mode while powered on. The first device can only link with the second device when it is in the linked mode while powered on. If the first device is powered off, the first device and the target second device cannot link.
[0076] In summary, this application provides a device control method, comprising: acquiring the current action of a target second device linked with a first device and the current state of the first device; determining whether the current state of the first device corresponds to the current action of the target second device; and if they correspond, controlling the first device to switch to the state corresponding to the current action of the target second device. In the above embodiments, by acquiring the current action of the target second device linked with the first device and the current state of the first device, and determining whether the current state of the first device corresponds to the current action of the target second device, and controlling the first device to switch to the state corresponding to the current action of the target second device when they correspond, the linkage control between the first device and the target second device is ensured, thereby ensuring that the linkage between the first device and the target second device can achieve more effective functionality.
[0077] Example 2
[0078] Based on Example 1, this example illustrates the method in Example 1 through specific implementation cases.
[0079] The above-mentioned equipment control method further includes:
[0080] Display the configuration page corresponding to the first device;
[0081] Obtain the network configuration operations performed by the user on the configuration page;
[0082] In response to the network configuration operation, the first device is configured to connect to the network.
[0083] The configuration page corresponding to the first device is displayed, allowing the user to configure the first device. The configuration page may include network configuration options, where the user can perform network configuration operations. Understandably, the configuration page may also include other types of configuration options, where the user can perform corresponding operations. Upon receiving a network configuration operation performed by the user on the configuration page, the system responds to the network configuration operation by configuring the first device for network connectivity, thereby completing the network configuration of the first device.
[0084] According to an embodiment of this application, optionally, in the above-described device control method, before the step of obtaining the current action of the target second device linked with the first device, the method further includes:
[0085] Retrieve all the second devices to be configured and display them on the linkage selection page;
[0086] Obtain the selection actions performed by the user on the linked selection page;
[0087] In response to the selection operation, the second device to be configured corresponding to the selection operation is designated as the target second device to be linked with the first device.
[0088] Understandably, after the formaldehyde purifier is successfully connected to the network, a linkage setting option will appear on the interface corresponding to the formaldehyde purifier. Clicking on the linkage device will display a linkage selection page, which shows all the second devices to be configured. On the linkage selection page, the user can select a specific air conditioner that is already connected to the network, thus establishing a linkage relationship between that air conditioner and the formaldehyde purifier.
[0089] Example 3
[0090] Based on Example 1, this example illustrates the method in Example 1 through specific implementation cases.
[0091] According to an embodiment of this application, optionally, in the above device control method, after the step of controlling the first device to switch to a state corresponding to the current action of the target second device, the method further includes:
[0092] When a user's control command to operate the first device is detected, the linkage between the first device and the target second device is disconnected;
[0093] Control the first device to execute the control command.
[0094] In the above embodiments, by detecting the user's control command to operate the first device, the linkage between the first device and the target second device can be disconnected, and the first device can execute the control command. This ensures that any manual operation by the user on the first device will end the linkage, and that the first device can no longer be affected by the state of the target second device after the user's operation.
[0095] Example 4
[0096] Based on Example 1, this example illustrates the method in Example 1 through specific implementation cases.
[0097] Step S110: Obtain the current action of the target second device that is linked with the first device and the current state of the first device;
[0098] Step S120: Determine whether the current state of the first device corresponds to the current action of the target second device;
[0099] Step S130: If they correspond, control the first device to switch to the state corresponding to the current action of the target second device.
[0100] The first device includes a formaldehyde purifier, and the second device also includes a humidity control device.
[0101] Since the board is in a high-temperature and high-humidity environment, which can promote the volatilization of formaldehyde in the board, the step of determining whether the current state of the first device corresponds to the current action of the target second device includes:
[0102] When the current action of the target second device is switching from a non-humidification state to a humidification state, and the current state of the first device is a power-off state, it is determined that the current state of the first device corresponds to the current action of the target second device.
[0103] When the current action of the target second device is switching from a non-dehumidification state to a dehumidification state, and the current state of the first device is the linkage mode in the power-on state, it is determined that the current state of the first device corresponds to the current action of the target second device.
[0104] When the humidity control device enters the humidification mode, by obtaining the current action of the target second device linked with the first device, it can be determined that the current state of the humidity control device has changed from other states to humidification mode. At this time, if the formaldehyde purifier is found to be in the off state, it can be determined that the current state of the formaldehyde purifier corresponds to the current state of the humidity control device, and then the formaldehyde purifier can be controlled to start.
[0105] When the humidity control device enters dehumidification mode, by obtaining the current action of the target second device linked with the first device, it can be determined that the current state of the humidity control device has changed from other states to dehumidification mode. At this time, if the linkage mode of the formaldehyde purifier being turned on is obtained, it can be determined that the current state of the formaldehyde purifier corresponds to the current state of the humidity control device, and then the formaldehyde purifier can be controlled to standby.
[0106] Example 5
[0107] Please refer to Figure 2 This application provides a device control apparatus 200, which includes:
[0108] The device includes:
[0109] The acquisition module is used to acquire the current action of the target second device that is linked with the first device and the current state of the first device;
[0110] The first device status acquisition module is used to acquire the current status of the first device when the current action of the target second device changes;
[0111] The status determination module is used to determine whether the current status of the first device corresponds to the current action of the target second device;
[0112] The first device control module is used to control the first device to switch to a state corresponding to the current action of the target second device if there is a correspondence.
[0113] According to an embodiment of this application, optionally, the above-described device control apparatus further includes:
[0114] A configuration display module is used to display the configuration page corresponding to the first device;
[0115] The network configuration operation acquisition module is used to acquire the network configuration operations performed by the user on the configuration page;
[0116] The network configuration module is used to perform network configuration on the first device in response to the network configuration operation.
[0117] According to an embodiment of this application, optionally, in the above-described device control device, before the step of obtaining the current action of the target second device linked with the first device, the method further includes:
[0118] The linkage selection page display module is used to obtain all the second devices to be configured and display them on the linkage selection page.
[0119] The selection operation acquisition module is used to acquire the selection operations performed by the user on the linked selection page.
[0120] The linkage configuration module is used to respond to the selection operation and designate the second device to be configured corresponding to the selection operation as the target second device to be linked with the first device.
[0121] According to an embodiment of this application, optionally, in the above-mentioned device control device, the first device includes a formaldehyde purifier, and the second device includes an air conditioner.
[0122] According to an embodiment of this application, optionally, in the above-described device control device, the first device further includes a humidity regulating device.
[0123] According to an embodiment of this application, optionally, in the above-described device control apparatus, the state determination module includes:
[0124] The first judgment unit is used to determine whether the current state of the first device corresponds to the current action of the target second device when the current action of the target second device is heating and the current state of the first device is off.
[0125] The second judgment unit is used to determine whether the current state of the first device corresponds to the current action of the target second device when the current action of the target second device is in a non-heating state and the current state of the first device is in the linkage mode of the power-on state.
[0126] According to an embodiment of this application, optionally, the above-described device control apparatus further includes:
[0127] The linkage disconnection control module is used to disconnect the linkage between the first device and the target second device when a control command from the user to operate the first device is detected.
[0128] The control instruction execution control module is used to control the first device to execute the control instructions.
[0129] In summary, this application provides a device control apparatus, comprising: an acquisition module for acquiring the current action of a target second device linked with a first device and the current state of the first device; a state judgment module for judging whether the current state of the first device corresponds to the current action of the target second device; and a first device control module for controlling the first device to switch to the state corresponding to the current action of the target second device if they correspond. In the above embodiments, by acquiring the current action of the target second device linked with the first device and the current state of the first device, and judging whether the current state of the first device corresponds to the current action of the target second device, and controlling the first device to switch to the state corresponding to the current action of the target second device when they correspond, the linkage control between the first device and the target second device is ensured, thereby ensuring that the linkage between the first device and the target second device can achieve more effective functionality.
[0130] Example 6
[0131] This embodiment also provides a computer-readable storage medium, such as flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, server, App application store, etc., which stores a computer program. When the computer program is executed by a processor, it can implement the method steps in the above embodiments. The specific implementation process of the above method steps can be found in the above embodiments, and will not be repeated here.
[0132] Example 7
[0133] This application provides an electronic device, which may be a mobile phone, computer, or tablet computer, etc., including a memory and a processor. The memory stores a calculator program, which, when executed by the processor, implements the device control method as described in Embodiment 1. It can be understood that... Figure 3 As shown, the electronic device 300 may further include: a processor 301, a memory 302, a multimedia component 303, an input / output (I / O) interface 304, and a communication component 305.
[0134] The processor 301 is used to execute all or part of the steps in the device control method as described in Embodiment 1. The memory 302 is used to store various types of data, which may include, for example, instructions for any application or method in the electronic device, as well as application-related data.
[0135] The processor 301 may be implemented as an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field-programmable gate array (FPGA), a controller, a microcontroller, a microprocessor, or other electronic components, and is used to execute the device control method in Embodiment 1 above.
[0136] The memory 302 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0137] Multimedia component 303 may include a screen, which may be a touchscreen, and an audio component for outputting and / or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signals may be further stored in memory or transmitted via a communication component. The audio component also includes at least one speaker for outputting audio signals.
[0138] I / O interface 304 provides an interface between processor 301 and other interface modules, such as keyboards, mice, and buttons. These buttons can be virtual or physical buttons.
[0139] The communication component 305 is used for wired or wireless communication between the electronic device 300 and other devices. Wireless communication includes, for example, Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination thereof. Therefore, the corresponding communication component 305 may include: a Wi-Fi module, a Bluetooth module, or an NFC module.
[0140] In summary, this application provides a device control method, apparatus, storage medium, and electronic device. The method includes: acquiring the current action of a target second device linked with a first device and the current state of the first device; determining whether the current state of the first device corresponds to the current action of the target second device; and if they correspond, controlling the first device to switch to the state corresponding to the current action of the target second device. In the above embodiments, by acquiring the current action of the target second device linked with the first device and the current state of the first device, and determining whether the current state of the first device corresponds to the current action of the target second device, and controlling the first device to switch to the state corresponding to the current action of the target second device when they correspond, the linkage control between the first device and the target second device is ensured, thereby ensuring that the linkage between the first device and the target second device can achieve more effective functionality.
[0141] In the several embodiments provided in this application, it should be understood that the disclosed systems and methods can also be implemented in other ways. The system and method embodiments described above are merely illustrative.
[0142] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0143] Although the embodiments disclosed in this application are as described above, the content is merely for the purpose of facilitating understanding of this application and is not intended to limit this application. Any person skilled in the art to which this application pertains may make any modifications and changes in the form and details of the implementation without departing from the spirit and scope disclosed in this application; however, the scope of patent protection of this application shall still be determined by the scope defined in the appended claims.
Claims
1. A device control method, characterized in that, The method includes: The current action of the target second device linked with the first device is obtained, and when the current action of the target second device changes, the current state of the first device is obtained. The first device includes a formaldehyde purifier, and the second device includes an air conditioner. Determine whether the current state of the first device corresponds to the current action of the target second device; if they correspond, control the first device to switch to the state corresponding to the current action of the target second device, including: When the current action of the target second device is to switch from a non-heating state to a heating state, and the current state of the first device is a power-off state, it is determined that the current state of the first device corresponds to the current action of the target second device, and then the linkage mode in which the first device switches from the power-off state to the power-on state is controlled. And / or, when the current action of the target second device is to switch from heating state to non-heating state, and the current state of the first device is the linkage mode in the power-on state, it is determined that the current state of the first device corresponds to the current action of the target second device, and then the first device is controlled to switch from the linkage mode in the power-on state to the power-off state.
2. The method according to claim 1, characterized in that, The method further includes: Display the configuration page corresponding to the first device; Obtain the network configuration operations performed by the user on the configuration page; In response to the network configuration operation, the first device is configured to connect to the network.
3. The method according to claim 1, characterized in that, Before the step of obtaining the current action of the target second device linked with the first device, the method further includes: Retrieve all the second devices to be configured and display them on the linkage selection page; Obtain the selection actions performed by the user on the linked selection page; In response to the selection operation, the second device to be configured corresponding to the selection operation is designated as the target second device to be linked with the first device.
4. The method according to claim 1, characterized in that, The second device also includes a humidity control device.
5. The method according to claim 1, characterized in that, After the step of controlling the first device to switch to a state corresponding to the current action of the target second device, the method further includes: When a user's control command to operate the first device is detected, the linkage between the first device and the target second device is disconnected; Control the first device to execute the control command.
6. A device control apparatus, characterized in that, The device includes: The acquisition module is used to acquire the current action of the target second device linked with the first device, and when the current action of the target second device changes, acquire the current state of the first device, wherein the first device includes a formaldehyde purifier and the second device includes an air conditioner. The status determination module is used to determine whether the current status of the first device corresponds to the current action of the target second device, including: when the current action of the target second device is switching from a non-heating state to a heating state, and the current status of the first device is a power-off state, determining that the current status of the first device corresponds to the current action of the target second device; and / or, when the current action of the target second device is switching from a heating state to a non-heating state, and the current status of the first device is a linkage mode in the power-on state, determining that the current status of the first device corresponds to the current action of the target second device. A first device control module is configured to control the first device to switch to a state corresponding to the current action of the target second device if a corresponding action is specified. This includes: when the current action of the target second device is switching from a non-heating state to a heating state, and the current state of the first device is a power-off state, controlling the first device to switch from the power-off state to a linkage mode in the power-on state; and / or, when the current action of the target second device is switching from a heating state to a non-heating state, and the current state of the first device is a linkage mode in the power-on state, controlling the first device to switch from the linkage mode in the power-on state to a power-off state.
7. A storage medium, characterized in that, The computer program stored in the storage medium, when executed by one or more processors, is used to implement the method as described in any one of claims 1-5.
8. An electronic device, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program that, when executed by the processor, performs the method as described in any one of claims 1-5.
Citation Information
Patent Citations
Method and system for achieving linkage between different household electrical appliances
CN106873551A
Formaldehyde removal device, control method, air conditioner and computer readable storage medium
CN113883701A