Control method, control device and Internet of Things system for smart home equipment
By obtaining the working status and logical constraint information of smart home devices, determining the target logical constraint rules, and judging whether the device attributes are adjustable, the problem of inconsistent control logic of different types of devices is solved, and unified management and high intelligence of smart home devices are achieved. .
Patent Information
- Application Number
- CN202111355655.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-16
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-11-16
AI Technical Summary
The existing technology lacks universal control logic to uniformly manage different models of smart home devices, resulting in inconsistent functional control logic and difficulty in achieving unified management.
By obtaining the working status information and logical constraint information of smart home devices, determine the target logical constraint rules, determine whether the affected attributes are adjustable based on the controllable information, and execute the control method on the Internet of Things platform to realize smart homes with different functions. Unified control of equipment.
It realizes universal control logic for different types of smart home equipment, ensures the rationality and intelligence of the control logic of the equipment, and solves the problem of the lack of unified control logic in the existing technology.
Smart Images

Figure CN114137844B
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home devices, and more specifically, to a control method, a control device, a computer-readable storage medium, a processor, and an Internet of Things system for smart home devices. Background Art
[0002] With the development and popularization of smart home devices, the methods and technologies of human-computer interaction are also constantly evolving and improving. Typically, real-time interaction is achieved through screens and smart home devices. For example, the screens can be mobile phones, mobile screens, computers, TVs, and smart device built-in screens, etc. In the existing technical solutions, the connection of smart home devices to the screens can be developed and implemented based on the functional models of smart home devices and the rules of the screens themselves, so as to complete the adaptation and functional control of smart home devices on the screens.
[0003] But in real life, for the same category of smart home devices, different models of smart home devices have corresponding functions. In other words, for different models of smart home devices, the control logic of their functions is also different.
[0004] Therefore, there is an urgent need for a method to control smart home devices through universal control logic.
[0005] The above information disclosed in the background technology section is only used to enhance the understanding of the background technology of the technology described in this article. Therefore, the background technology may contain certain information that does not form the prior art known in this country for those skilled in the art. Summary of the invention
[0006] The main purpose of the present application is to provide a control method, a control device, a computer-readable storage medium, a processor and an Internet of Things system for smart home devices, so as to solve the problem in the prior art of lacking a universal control logic for controlling smart home devices.
[0007] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a control method for a smart home device is provided, comprising: obtaining working status information and corresponding logical constraint information of the smart home device, the logical constraint information comprising at least one logical constraint rule, the logical constraint rule comprising at least preset working status information, affected attribute information and controllable information; determining a target logical constraint rule at least based on the working status information and the preset working status information in the logical constraint rule; determining whether the affected attribute information corresponding to the smart home device is adjustable based on the controllable information in the target logical constraint rule; and when the controllable information indicates that it is not adjustable, determining that the affected attribute information corresponding to the smart home device is not adjustable; and when the controllable information indicates that it is adjustable, determining that the affected attribute information is adjustable.
[0008] Optionally, the logical constraint rule also includes preset functional attribute information. Before determining the target logical constraint rule at least based on the working status information and the preset working status information in the logical constraint rule, the control method also includes: determining the functional attribute information of the smart home device according to the working status information, the functional attribute information being information of the function corresponding to the working status information, and determining the target logical constraint rule at least based on the working status information and the preset working status information in the logical constraint rule, including: when the functional attribute information matches the preset functional attribute information in the logical constraint rule, determining the logical constraint rule as the preset logical constraint rule; when the working status information matches the preset working status information in the preset logical constraint rule, determining the preset logical constraint rule as the target logical constraint rule.
[0009] Optionally, the logical constraint rules also include predetermined information, and the predetermined information is used to characterize the priority order of the logical constraint rules. When there are multiple target logical constraint rules determined, whether the affected attribute information corresponding to the smart home device is adjustable is determined according to the controllable information in the target logical constraint rules, including: prioritizing the multiple target logical constraint rules according to the predetermined information; and determining whether the affected attribute information corresponding to the smart home device is adjustable according to the controllable information of the target logical constraint rule with the highest priority.
[0010] Optionally, in the case where the controllable information representation is adjustable, determining that the affected attribute information is adjustable includes: determining a predetermined adjustment range of the affected attribute information corresponding to the smart home device according to the preset functional attribute information in the target logic constraint rule, and the predetermined adjustment range is a preset adjustment range; determining a target adjustment range according to the preset working status information and the predetermined adjustment range in the target logic constraint rule, and the target adjustment range is the adjustment range of the affected attribute information corresponding to the preset working status information, the maximum value of the target adjustment range is less than or equal to the maximum value of the predetermined adjustment range, and the minimum value of the target adjustment range is greater than or equal to the minimum value of the predetermined adjustment range.
[0011] Optionally, determining whether the affected attribute information corresponding to the smart home device is adjustable is performed based on the controllable information in the target logic constraint rule, including: when the working status information is alarm information, determining that each affected attribute information of the smart home device is not adjustable.
[0012] Optionally, after determining whether the affected attribute information corresponding to the smart home device is adjustable according to the controllable information in the target logical constraint rule, the control method further includes: sending a determination result representing whether the affected attribute information corresponding to the smart home device is adjustable to a display screen; and according to the determination result, controlling the display screen to display the attribute identifier in a predetermined state, the predetermined state including at least one of the following: a first state and a second state, the first state being a state in which the affected attribute information can be adjusted, the second state being a state in which the affected attribute information cannot be adjusted, and the attribute identifier being an identifier representing the affected attribute information.
[0013] Optionally, after controlling the display screen to display the attribute identifier in a predetermined state according to the determination result, the control method further includes: receiving a predetermined operation acting on the attribute identifier; when the predetermined state of the attribute identifier is the first state, adjusting the affected attribute information of the smart home device in response to the predetermined operation; and when the predetermined state of the attribute identifier is the second state, not responding to the predetermined operation.
[0014] According to another aspect of the present application, a control device for a screen end of a smart home device is provided, comprising: an acquisition unit, used to acquire working status information and corresponding logical constraint information of the smart home device, the logical constraint information including at least one logical constraint rule, and the logical constraint rule including at least preset working status information, affected attribute information and controllable information; a first determination unit, used to determine a target logical constraint rule based at least on the working status information and the preset working status information in the logical constraint rule; a second determination unit, used to determine whether the affected attribute information corresponding to the smart home device is adjustable based on the controllable information in the target logical constraint rule, and when the controllable information indicates that it is not adjustable, determine that the affected attribute information corresponding to the smart home device is not adjustable, and when the controllable information indicates that it is adjustable, determine that the affected attribute information is adjustable.
[0015] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein the program executes any one of the control methods described.
[0016] According to another aspect of the present application, a processor is provided, wherein the processor is used to run a program, wherein the program executes any one of the control methods when running.
[0017] According to one aspect of the present application, an Internet of Things system is provided, comprising: a smart home device; and an Internet of Things platform, wherein the Internet of Things platform is used to execute any one of the control methods described.
[0018] Using the technical solution of the present application, in the control method of the smart home device, first, the working state information and the corresponding logical constraint information of the smart home device are obtained, wherein the logical constraint information includes at least one logical constraint rule, then, at least according to the obtained working state information and the preset working state information in the logical constraint rule, the target logical constraint rule is determined, and finally, according to the controllable information in the target logical constraint rule, whether the affected attribute information corresponding to the smart home device is adjustable is determined. In this solution, whether the affected attribute information is adjustable is determined according to the current working state information of the smart home device, and when the controllable information indicates that it is not adjustable, it is determined that the affected attribute information corresponding to the smart home device is not adjustable, and when the controllable information indicates that it is adjustable, it is determined that the affected attribute information is adjustable, that is, for smart home devices with different functions, the smart home devices can be controlled by universal control logic, which ensures that the control logic of the smart home device is relatively reasonable and the smart home device has a high degree of intelligence, thereby solving the problem of the lack of universal control logic to control smart home devices in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0020] Figure 1 A schematic diagram showing a method for controlling a smart home device according to an embodiment of the present application is shown;
[0021] Figure 2 A schematic diagram showing a control device for a smart home device according to an embodiment of the present application is shown;
[0022] Figure 3 A schematic diagram of a smart home device development process according to an embodiment of the present application is shown;
[0023] Figure 4 A flow chart showing a method for controlling a smart home device according to an embodiment of the present application is shown;
[0024] Figure 5 A flow chart of a method for controlling a smart home device according to yet another embodiment of the present application is shown. DETAILED DESCRIPTION
[0025] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] It should be understood that when an element (such as a layer, film, region, or substrate) is described as being "on" another element, the element may be directly on the other element, or there may be intermediate elements. Moreover, in the specification and claims, when an element is described as being "connected" to another element, the element may be "directly connected" to the other element, or "connected" to the other element through a third element.
[0029] As mentioned in the background technology, the prior art lacks a universal control logic for controlling smart home devices. In order to solve the above problem, in a typical embodiment of the present application, a control method, a control device, a computer-readable storage medium, a processor and an Internet of Things system for smart home devices are provided.
[0030] According to an embodiment of the present application, a method for controlling a smart home device is provided.
[0031] Figure 1 1 is a flow chart of a control method for a smart home device according to an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:
[0032] Step S101, obtaining the working state information and corresponding logic constraint information of the smart home device, wherein the logic constraint information includes at least one logic constraint rule, and the logic constraint rule includes at least preset working state information, affected attribute information, and controllable information;
[0033] Step S102, determining a target logical constraint rule at least according to the working status information and the preset working status information in the logical constraint rule;
[0034] Step S103, based on the controllable information in the target logic constraint rule, determine whether the affected attribute information corresponding to the smart home device is adjustable. If the controllable information indicates that it is not adjustable, determine that the affected attribute information corresponding to the smart home device is not adjustable. If the controllable information indicates that it is adjustable, determine that the affected attribute information is adjustable.
[0035] In the control method of the above-mentioned smart home device, first, the working state information and the corresponding logic constraint information of the above-mentioned smart home device are obtained, wherein the above-mentioned logic constraint information includes at least one logic constraint rule, then, at least according to the above-mentioned working state information obtained and the above-mentioned preset working state information in the above-mentioned logic constraint rule, the target logic constraint rule is determined, and finally, according to the above-mentioned controllable information in the above-mentioned target logic constraint rule, whether the above-mentioned affected attribute information corresponding to the above-mentioned smart home device is adjustable is determined. In this scheme, whether the above-mentioned affected attribute information is adjustable is determined according to the current working state information of the above-mentioned smart home device, and when the above-mentioned controllable information indicates that it is not adjustable, it is determined that the above-mentioned affected attribute information corresponding to the above-mentioned smart home device is not adjustable, and when the above-mentioned controllable information indicates that it is adjustable, it is determined that the above-mentioned affected attribute information is adjustable, that is, for smart home devices with different functions, the smart home devices can be controlled by universal control logic, which ensures that the control logic of the smart home device is relatively reasonable and the smart home device has a high degree of intelligence, thereby solving the problem of the lack of universal control logic to control smart home devices in the prior art.
[0036] Specifically, the control method of the above-mentioned smart home device can be applied to the Internet of Things platform. The above-mentioned smart home device can be a washing machine, an air conditioner, a refrigerator, etc., which will not be described one by one here.
[0037] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0038] In one embodiment of the present application, the above-mentioned logical constraint rule also includes preset function attribute information. Before determining the target logical constraint rule at least according to the above-mentioned working state information and the above-mentioned preset working state information in the above-mentioned logical constraint rule, the above-mentioned control method also includes: determining the above-mentioned function attribute information of the above-mentioned smart home device according to the above-mentioned working state information, the above-mentioned function attribute information is information of the function corresponding to the above-mentioned working state information, and determining the target logical constraint rule at least according to the above-mentioned working state information and the above-mentioned preset working state information in the above-mentioned logical constraint rule, including: when the above-mentioned function attribute information matches the above-mentioned preset function attribute information in the above-mentioned logical constraint rule, determining the above-mentioned logical constraint rule as the preset logical constraint rule; when the above-mentioned working state information matches the above-mentioned preset working state information in the above-mentioned preset logical constraint rule, determining the above-mentioned preset logical constraint rule as the above-mentioned target logical constraint rule. In this scheme, the predetermined logical constraint rule is first determined according to the above-mentioned function attribute information and the above-mentioned preset function attribute information in the above-mentioned logical constraint rule, and then the target logical constraint rule is determined according to the working state information and the above-mentioned preset working state information in the predetermined logical constraint rule, so that the search scope can be gradually narrowed, so as to determine the above-mentioned target logical constraint rule more quickly.
[0039] In a specific embodiment of the present application, the above-mentioned functional attribute information refers to the status attribute of the smart home device according to which the logical constraint rules are filtered, that is, the above-mentioned functional attribute information can be the functional attribute of the smart home device, and can also be the alarm information generated by the smart home device; the above-mentioned working status information refers to the status value reported by the above-mentioned functional attribute information, that is, when judging the logical constraint rules, it is necessary to verify according to the status value of the specific attribute; the above-mentioned affected attribute information refers to how to adjust or control the affected attribute information after the logical constraint rules are triggered according to the above-mentioned functional attribute information to achieve the logic to be displayed or the effect to be achieved; the above-mentioned controllable information refers to whether a control instruction can be issued to control the above-mentioned affected attribute information after the logical constraint rules are triggered according to the functional attribute information.
[0040] Specifically, based on the above-mentioned working status information, it can be determined that when the current state of the above-mentioned smart home device is the above-mentioned working status information, the corresponding functional attribute information is the information of the function corresponding to the above-mentioned working status information. For example, when the above-mentioned working status information of the above-mentioned smart home device is shutdown, its corresponding functional attribute information may be power on / off; when the above-mentioned working status information of the above-mentioned smart home device is cooling mode, its corresponding functional attribute information may be working mode.
[0041] In the case where there are multiple target logical constraint rules determined, in order to facilitate timely determination of which target logical constraint rule to execute first, in another embodiment of the present application, the above-mentioned logical constraint rules also include predetermined information, and the above-mentioned predetermined information is used to characterize the priority order of the above-mentioned logical constraint rules. In the case where there are multiple target logical constraint rules determined, whether the above-mentioned affected attribute information corresponding to the above-mentioned smart home device is adjustable is determined according to the above-mentioned controllable information in the above-mentioned target logical constraint rules, including: prioritizing the multiple target logical constraint rules according to the above-mentioned predetermined information; determining whether the above-mentioned affected attribute information corresponding to the above-mentioned smart home device is adjustable according to the above-mentioned controllable information of the above-mentioned target logical constraint rule with the highest priority.
[0042] Specifically, the above-mentioned logical constraint rules also include predetermined information, and the above-mentioned predetermined information is used to characterize the priority order of the above-mentioned logical constraint rules, that is, when multiple target logical constraint rules are determined, priority sorting can be used to timely determine which logical constraint rule to execute first. For example, when two target logical constraint rules are triggered, the two target logical constraint rules are: the first one: working mode, cooling mode, temperature, controllable, high; the second one: working mode, cooling mode, wind speed, uncontrollable, medium; through priority sorting, it can be determined that the priority of the first one is higher than the priority of the second one, that is, the first target logical constraint rule is executed first, and then the second target logical constraint rule is executed.
[0043] In another embodiment of the present application, when the controllable information indicates that the above-mentioned affected attribute information is adjustable, determining that the above-mentioned affected attribute information is adjustable includes: determining the predetermined adjustment range of the above-mentioned affected attribute information corresponding to the above-mentioned smart home device according to the above-mentioned preset functional attribute information in the above-mentioned target logic constraint rule, and the above-mentioned predetermined adjustment range is a preset adjustment range; determining the target adjustment range according to the above-mentioned preset working state information and the above-mentioned predetermined adjustment range in the above-mentioned target logic constraint rule, and the above-mentioned target adjustment range is the adjustment range of the above-mentioned affected attribute information corresponding to the above-mentioned preset working state information, and the maximum value of the above-mentioned target adjustment range is less than or equal to the maximum value of the above-mentioned predetermined adjustment range, and the minimum value of the above-mentioned target adjustment range is greater than or equal to the minimum value of the above-mentioned predetermined adjustment range. In this embodiment, first, the predetermined adjustment range is determined according to the above-mentioned preset functional attribute information, and then the target adjustment range is determined according to the preset working state information, so that the determined target adjustment range is relatively reasonable, and further avoids the problem that the subsequent user adjusts the affected attribute information too large or too small without knowing the adjustment range of the above-mentioned affected attribute information, resulting in damage to the above-mentioned smart home device or waste of resources, and further ensures that the user's use experience is good.
[0044] Specifically, for example, when the above-mentioned preset functional attribute information of the above-mentioned smart home device is the working mode and the above-mentioned preset working status information is the cooling mode, according to the above-mentioned preset functional attribute information, the predetermined adjustment range of the temperature of the above-mentioned smart home device in the working mode is -30 to 30 degrees Celsius, and -30 to 30 degrees Celsius is the adjustment range that has been set for the above-mentioned smart home device when leaving the factory; and according to the above-mentioned preset working status information, it can be determined that in the cooling mode, the target adjustment range of the above-mentioned smart home device is -30 to 0 degrees Celsius.
[0045] In order to further improve the security of the above-mentioned smart home devices, in an embodiment of the present application, whether the above-mentioned affected attribute information corresponding to the above-mentioned smart home devices is adjustable is determined according to the above-mentioned controllable information in the above-mentioned target logic constraint rules, including: when the above-mentioned working status information is an alarm information, determining that all the above-mentioned affected attribute information of the above-mentioned smart home devices are not adjustable.
[0046] In the actual application process, when the above-mentioned smart home device is in an alarm state, all functional attributes are uncontrollable, that is, the preset functional attribute information is all defined alarm information, the relationship between attributes is OR (or), the affected attributes are all controllable functional attributes, and whether they are controllable is uncontrollable.
[0047] In a specific embodiment of the present application, when the working status information of the above-mentioned smart home device is alarm information, it can be determined based on the above-mentioned alarm information what is the cause of the above-mentioned smart home device being in the alarm state, that is, the cause of the alarm state can be determined as the above-mentioned preset functional attribute information. For example, when the above-mentioned smart home device is caused by excessive voltage, the above-mentioned functional attribute information is excessive voltage, and the above-mentioned working status information can be alarm information. According to the two attributes of excessive voltage and alarm information, they are matched with the preset functional attribute information and the preset working status information in the logical constraint rule, and then the target logical constraint rule is determined.
[0048] In another embodiment of the present application, after determining whether the above-mentioned affected attribute information corresponding to the above-mentioned smart home device is adjustable according to the above-mentioned controllable information in the above-mentioned target logic constraint rule, the above-mentioned control method further includes: sending a determination result representing whether the above-mentioned affected attribute information corresponding to the above-mentioned smart home device is adjustable to a display screen; according to the above-mentioned determination result, controlling the above-mentioned display screen to display the attribute identifier in a predetermined state, and the above-mentioned predetermined state includes at least one of the following: a first state, a second state, the above-mentioned first state is a state in which the above-mentioned affected attribute information can be adjusted, the above-mentioned second state is a state in which the above-mentioned affected attribute information cannot be adjusted, and the above-mentioned attribute identifier is an identifier representing the above-mentioned affected attribute information. In this scheme, the above-mentioned display screen is controlled to display the attribute identifier corresponding to the above-mentioned affected attribute information through the above-mentioned predetermined state, and the subsequent user adjusts the above-mentioned affected attribute according to the above-mentioned attribute identifier when the above-mentioned affected attribute can be adjusted.
[0049] In a specific embodiment of the present application, based on the above-mentioned determination result, the above-mentioned display screen can also be controlled to only display the attribute identifiers in the first state, that is, only display the attribute identifiers of the above-mentioned affected attribute information that can be adjusted; for the attribute identifiers in the second state, that is, the attribute identifiers of the above-mentioned affected attribute information that cannot be adjusted, they can be displayed on the above-mentioned display screen or not. Specifically, whether to display them can be achieved according to the display rules of the above-mentioned display screen, and this is not limited in the present application.
[0050] In order to further facilitate users to control the above-mentioned smart home devices, in another embodiment of the present application, after controlling the above-mentioned display screen to display the attribute identifier in a predetermined state according to the above-mentioned determination result, the above-mentioned control method also includes: receiving a predetermined operation acting on the above-mentioned attribute identifier, and when the above-mentioned predetermined state of the above-mentioned attribute identifier is the above-mentioned first state, adjusting the above-mentioned affected attribute information of the above-mentioned smart home device in response to the above-mentioned predetermined operation; when the above-mentioned predetermined state of the above-mentioned attribute identifier is the above-mentioned second state, not responding to the above-mentioned predetermined operation.
[0051] In a specific embodiment of the present application, the above-mentioned logical constraint rules may also include invalid information, that is, after the logical constraint rules are triggered, under the premise that the above-mentioned smart home device or system platform does not support the predetermined operation, the feedback is a description of the reason why the above-mentioned affected attribute information cannot be adjusted. For example, when the above-mentioned predetermined state of the above-mentioned attribute identifier is the above-mentioned second state, the above-mentioned display screen displays the above-mentioned attribute identifier, and the user clicks or touches the above-mentioned attribute identifier, but the above-mentioned smart home device does not respond. At this time, the user may also be prompted with the reason why the above-mentioned smart home device did not respond.
[0052] In another specific embodiment of the present application, the above-mentioned logical constraint rules also include information on the relationship between attributes, that is, the information on the relationship between attributes can constrain multiple functional attribute information. According to the information on the relationship between attributes, it can be determined whether the logical rule is triggered by the current functional attribute information or any functional attribute information. The relationship between attributes can be either OR or AND.
[0053] The embodiment of the present application also provides a control device for a smart home device. It should be noted that the control device for a smart home device in the embodiment of the present application can be used to execute the control method for a smart home device provided in the embodiment of the present application. The control device for a smart home device provided in the embodiment of the present application is introduced below.
[0054] Figure 2 Schematic diagram of a control device for a smart home device according to an embodiment of the present application. Figure 2 As shown, the device comprises:
[0055] An acquisition unit 10 is used to acquire the working state information of the smart home device and the corresponding logic constraint information, wherein the logic constraint information includes at least one logic constraint rule, and the logic constraint rule includes at least preset working state information, affected attribute information, and controllable information;
[0056] A first determining unit 20, configured to determine a target logical constraint rule at least according to the working state information and the preset working state information in the logical constraint rule;
[0057] The second determination unit 30 is used to determine whether the above-mentioned affected attribute information corresponding to the above-mentioned smart home device is adjustable according to the above-mentioned controllable information in the above-mentioned target logic constraint rule. When the above-mentioned controllable information indicates that it is not adjustable, it is determined that the above-mentioned affected attribute information corresponding to the above-mentioned smart home device is not adjustable. When the above-mentioned controllable information indicates that it is adjustable, it is determined that the above-mentioned affected attribute information is adjustable.
[0058] In the control device of the above-mentioned smart home device, the acquisition unit is used to obtain the working status information and corresponding logical constraint information of the above-mentioned smart home device, the above-mentioned logical constraint information includes at least one logical constraint rule, and the above-mentioned logical constraint rule includes at least preset working status information, affected attribute information and whether it is controllable information; the first determination unit is used to determine the target logical constraint rule at least based on the above-mentioned working status information and the above-mentioned preset working status information in the above-mentioned logical constraint rule; the second determination unit is used to determine whether the above-mentioned affected attribute information corresponding to the above-mentioned smart home device is adjustable according to the above-mentioned whether it is controllable information in the above-mentioned target logical constraint rule, and when the above-mentioned whether it is controllable information indicates that it is not adjustable, it is determined that the above-mentioned affected attribute information corresponding to the above-mentioned smart home device is not adjustable, and when the above-mentioned whether it is controllable information indicates that it is adjustable, it is determined that the above-mentioned affected attribute information is adjustable. In this solution, whether the affected attribute information is adjustable is determined according to the current working status information of the smart home device. When the controllable information indicates that it is not adjustable, the affected attribute information corresponding to the smart home device is determined to be not adjustable. When the controllable information indicates that it is adjustable, the affected attribute information is determined to be adjustable. This means that smart home devices with different functions can be controlled by universal control logic, which ensures that the control logic of the smart home devices is relatively reasonable and that the smart home devices are highly intelligent, thereby solving the problem in the prior art of lack of universal control logic to control smart home devices.
[0059] Specifically, the control method of the above-mentioned smart home device can be applied to the Internet of Things platform. The above-mentioned smart home device can be a washing machine, an air conditioner, a refrigerator, etc., which will not be described one by one here.
[0060] In one embodiment of the present application, the above-mentioned logical constraint rule also includes preset functional attribute information, and the above-mentioned control device also includes a third determination unit, which is used to determine the above-mentioned functional attribute information of the above-mentioned smart home device according to the above-mentioned working state information before determining the target logical constraint rule at least according to the above-mentioned working state information and the above-mentioned preset working state information in the above-mentioned logical constraint rule, wherein the above-mentioned functional attribute information is information of the function corresponding to the above-mentioned working state information, and the above-mentioned first determination unit also includes a first determination module and a second determination module, wherein the above-mentioned first determination module is used to determine the above-mentioned logical constraint rule as the preset logical constraint rule when the above-mentioned functional attribute information matches the above-mentioned preset functional attribute information in the above-mentioned logical constraint rule; and the above-mentioned second determination module is used to determine the above-mentioned preset logical constraint rule as the above-mentioned target logical constraint rule when the above-mentioned working state information matches the above-mentioned preset working state information in the above-mentioned preset logical constraint rule. In this scheme, the predetermined logical constraint rule is determined according to the above-mentioned functional attribute information and the above-mentioned preset functional attribute information in the above-mentioned logical constraint rule, and then the target logical constraint rule is determined according to the working state information and the above-mentioned preset working state information in the predetermined logical constraint rule, so that the search scope can be gradually narrowed, so as to determine the above-mentioned target logical constraint rule more quickly.
[0061] In a specific embodiment of the present application, the above-mentioned functional attribute information refers to the status attribute of the smart home device according to which the logical constraint rules are filtered, that is, the above-mentioned functional attribute information can be the function of the smart home device, and can also be the alarm information generated by the smart home device; the above-mentioned working status information refers to the status value reported by the above-mentioned functional attribute information, that is, when judging the logical constraint rules, it is necessary to verify according to the status value of the specific attribute; the above-mentioned affected attribute information refers to how to adjust or control the affected attribute information after the logical constraint rules are triggered according to the above-mentioned functional attribute information to achieve the logic to be displayed or the effect to be achieved; the above-mentioned controllable information refers to whether a control instruction can be issued to control the above-mentioned affected attribute information after the logical constraint rules are triggered according to the functional attribute information.
[0062] Specifically, based on the above-mentioned working status information, it can be determined that when the current state of the above-mentioned smart home device is the above-mentioned working status information, the corresponding functional attribute information is the information of the function corresponding to the above-mentioned working status information. For example, when the above-mentioned working status information of the above-mentioned smart home device is shutdown, its corresponding functional attribute information may be power on / off; when the above-mentioned working status information of the above-mentioned smart home device is cooling mode, its corresponding functional attribute information may be working mode.
[0063] In the case where there are multiple target logical constraint rules determined, in order to facilitate timely determination of which target logical constraint rule to execute first, in another embodiment of the present application, the above-mentioned logical constraint rules also include predetermined information, and the above-mentioned predetermined information is used to characterize the priority order of the above-mentioned logical constraint rules. In the case where there are multiple target logical constraint rules determined, the above-mentioned second determination unit also includes a sorting module and a third determination module, wherein the above-mentioned sorting module is used to prioritize the multiple target logical constraint rules according to the above-mentioned predetermined information; the above-mentioned third determination module is used to determine whether the above-mentioned affected attribute information corresponding to the above-mentioned smart home device is adjustable according to the above-mentioned controllable information of the above-mentioned target logical constraint rule with the highest priority.
[0064] Specifically, the above-mentioned logical constraint rules also include predetermined information, and the above-mentioned predetermined information is used to characterize the priority order of the above-mentioned logical constraint rules, that is, when multiple target logical constraint rules are determined, priority sorting can be used to timely determine which logical constraint rule to execute first. For example, when two target logical constraint rules are triggered, the two target logical constraint rules are: the first one: working mode, cooling mode, temperature, controllable, high; the second one: working mode, cooling mode, wind speed, uncontrollable, medium; through priority sorting, it can be determined that the priority of the first one is higher than the priority of the second one, that is, the first target logical constraint rule is executed first, and then the second target logical constraint rule is executed.
[0065] In another embodiment of the present application, the second determination unit further includes a fourth determination module and a fifth determination module, wherein the fourth determination module is used to determine the predetermined adjustment range of the affected attribute information corresponding to the smart home device according to the preset functional attribute information in the target logic constraint rule, and the predetermined adjustment range is a preset adjustment range; the fifth determination module is used to determine the target adjustment range according to the preset working state information and the predetermined adjustment range in the target logic constraint rule, and the target adjustment range is the adjustment range of the affected attribute information corresponding to the preset working state information, the maximum value of the target adjustment range is less than or equal to the maximum value of the predetermined adjustment range, and the minimum value of the target adjustment range is greater than or equal to the minimum value of the predetermined adjustment range. In this embodiment, the predetermined adjustment range is determined according to the preset functional attribute information, and then the target adjustment range is determined according to the preset working state information, so that the determined target adjustment range is relatively reasonable, and further avoids the problem that the subsequent user adjusts the affected attribute information too large or too small without knowing the adjustment range of the affected attribute information, causing damage to the smart home device or wasting resources, and further ensures that the user's use experience is good.
[0066] Specifically, for example, when the above-mentioned preset functional attribute information of the above-mentioned smart home device is the working mode and the above-mentioned preset working status information is the cooling mode, according to the above-mentioned preset functional attribute information, the predetermined adjustment range of the temperature of the above-mentioned smart home device in the working mode is -30 to 30 degrees Celsius, and -30 to 30 degrees Celsius is the adjustment range that has been set for the above-mentioned smart home device when leaving the factory; and according to the above-mentioned preset working status information, it can be determined that in the cooling mode, the target adjustment range of the above-mentioned smart home device is -30 to 0 degrees Celsius.
[0067] In order to further improve the security of the above-mentioned smart home device, in an embodiment of the present application, the above-mentioned second determination unit also includes a sixth determination module, which is used to determine that all of the above-mentioned affected attribute information of the above-mentioned smart home device are not adjustable when the above-mentioned working status information is alarm information.
[0068] In the actual application process, when the above-mentioned smart home device is in an alarm state, all functional attributes are uncontrollable, that is, the preset functional attribute information is all defined alarm information, the relationship between attributes is OR (or), the affected attributes are all controllable functional attributes, and whether they are controllable is uncontrollable.
[0069] In a specific embodiment of the present application, when the working status information of the above-mentioned smart home device is alarm information, it can be determined based on the above-mentioned alarm information what is the cause of the above-mentioned smart home device being in the alarm state, that is, the cause of the alarm state can be determined as the above-mentioned preset functional attribute information. For example, when the above-mentioned smart home device is caused by excessive voltage, the above-mentioned functional attribute information is excessive voltage, and the above-mentioned working status information can be alarm information. According to the two attributes of excessive voltage and alarm information, they are matched with the preset functional attribute information and the preset working status information in the logical constraint rule, and then the target logical constraint rule is determined.
[0070] In another embodiment of the present application, after determining whether the above-mentioned affected attribute information corresponding to the above-mentioned smart home device is adjustable according to the above-mentioned controllable information in the above-mentioned target logic constraint rule, the above-mentioned control device also includes a sending unit and a control unit, wherein the above-mentioned sending unit is used to send the determination result representing whether the above-mentioned affected attribute information corresponding to the above-mentioned smart home device is adjustable to the display screen; the above-mentioned control unit is used to control the above-mentioned display screen to display the attribute identifier in a predetermined state according to the above-mentioned determination result, and the above-mentioned predetermined state includes at least one of the following: a first state and a second state, the above-mentioned first state is a state in which the above-mentioned affected attribute information can be adjusted, the above-mentioned second state is a state in which the above-mentioned affected attribute information cannot be adjusted, and the above-mentioned attribute identifier is an identifier representing the above-mentioned affected attribute information. In this scheme, the above-mentioned display screen is controlled to display the attribute identifier corresponding to the above-mentioned affected attribute information through the above-mentioned predetermined state, and the subsequent user adjusts the above-mentioned affected attribute according to the above-mentioned attribute identifier when the above-mentioned affected attribute can be adjusted.
[0071] In a specific embodiment of the present application, based on the above-mentioned determination result, the above-mentioned display screen can also be controlled to only display the attribute identifiers in the first state, that is, only display the attribute identifiers of the above-mentioned affected attribute information that can be adjusted; for the attribute identifiers in the second state, that is, the attribute identifiers of the above-mentioned affected attribute information that cannot be adjusted, they can be displayed on the above-mentioned display screen or not. Specifically, whether to display them can be achieved according to the display rules of the above-mentioned display screen, and this is not limited in the present application.
[0072] In order to further facilitate users to control the above-mentioned smart home devices, in another embodiment of the present application, after controlling the above-mentioned display screen to display the attribute identifier in a predetermined state according to the above-mentioned determination result, the above-mentioned control device also includes a receiving unit, a first response unit and a second response unit, wherein the above-mentioned receiving unit is used to receive a predetermined operation acting on the above-mentioned attribute identifier; the above-mentioned first response unit is used to adjust the above-mentioned affected attribute information of the above-mentioned smart home device in response to the above-mentioned predetermined operation when the above-mentioned predetermined state of the above-mentioned attribute identifier is the above-mentioned first state; the above-mentioned second response unit is used to not respond to the above-mentioned predetermined operation when the above-mentioned predetermined state of the above-mentioned attribute identifier is the above-mentioned second state.
[0073] In a specific embodiment of the present application, the above-mentioned logical constraint rules may also include invalid information, that is, after the logical constraint rules are triggered, under the premise that the above-mentioned smart home device or system platform does not support the predetermined operation, the feedback is a description of the reason why the above-mentioned affected attribute information cannot be adjusted. For example, when the above-mentioned predetermined state of the above-mentioned attribute identifier is the above-mentioned second state, the above-mentioned display screen displays the above-mentioned attribute identifier, and the user clicks or touches the above-mentioned attribute identifier, but the above-mentioned smart home device does not respond. At this time, the user may also be prompted with the reason why the above-mentioned smart home device did not respond.
[0074] In another specific embodiment of the present application, the above-mentioned logical constraint rules also include information on the relationship between attributes, that is, the information on the relationship between attributes can constrain multiple functional attribute information. According to the information on the relationship between attributes, it can be determined whether the logical rule is triggered by the current functional attribute information or any functional attribute information. The relationship between attributes can be either OR or AND.
[0075] The control device of the above-mentioned smart home equipment includes a processor and a memory. The above-mentioned acquisition unit, the first determination unit and the second determination unit, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.
[0076] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the problem of the lack of universal control logic to control smart home devices in the prior art can be solved by adjusting kernel parameters.
[0077] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0078] An embodiment of the present invention provides a storage medium on which a program is stored. When the program is executed by a processor, the control method of the above-mentioned smart home device is implemented.
[0079] An embodiment of the present invention provides a processor, which is used to run a program, wherein the control method of the smart home device is executed when the program is run.
[0080] An embodiment of the present invention provides an Internet of Things system, including: a smart home device; an Internet of Things platform, and the Internet of Things platform is used to execute any one of the above-mentioned control methods.
[0081] The above-mentioned Internet of Things system includes the above-mentioned smart home device and the above-mentioned Internet of Things platform, and the above-mentioned Internet of Things platform is used to execute any one of the above-mentioned control methods. In the above-mentioned control method, first, the working state information and the corresponding logical constraint information of the above-mentioned smart home device are obtained, wherein the above-mentioned logical constraint information includes at least one logical constraint rule, and then, at least according to the above-mentioned working state information obtained and the above-mentioned preset working state information in the above-mentioned logical constraint rule, the target logical constraint rule is determined, and finally, according to the above-mentioned controllable information in the above-mentioned target logical constraint rule, it is determined whether the above-mentioned affected attribute information corresponding to the above-mentioned smart home device is adjustable. In this scheme, whether the above-mentioned affected attribute information is adjustable is determined according to the current working state information of the above-mentioned smart home device, and when the above-mentioned controllable information indicates that it is not adjustable, it is determined that the above-mentioned affected attribute information corresponding to the above-mentioned smart home device is not adjustable, and when the above-mentioned controllable information indicates that it is adjustable, it is determined that the above-mentioned affected attribute information is adjustable, that is, for smart home devices with different functions, the smart home devices can be controlled by universal control logic, which ensures that the control logic of the smart home device is relatively reasonable and the smart home device has a high degree of intelligence, thereby solving the problem of the lack of universal control logic to control smart home devices in the prior art.
[0082] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the following will be described in conjunction with specific embodiments:
[0083] Example 1
[0084] like Figure 3 As shown, the developer creates a product on the open platform, then adds the functional attributes of the smart home device, and configures the logical constraint information between the attributes; then the open platform generates the communication protocol and corresponding logic files involved in the smart home; for the electric control board developers, it is necessary to develop and implement the functional attributes of the electric control board according to the communication protocol of the open platform, and complete the logical rules between the attributes; after the development of the smart home device is completed, the user can complete the configuration of the smart home device through the application (Application, APP) and account binding; the smart home device connects to the Internet of Things platform and reports the basic information and working status information of the smart home device; the application end synchronizes the basic information and working status information of the smart home device from the Internet of Things platform, and loads the corresponding logic file according to the basic information, and then parses the logical constraint rules according to the working status information. When the logical constraint rules are triggered, the interface design (User Interface Design, UI) is displayed according to the control logic of the smart home device defined by the developer.
[0085] Example 2
[0086] like Figure 4 As shown in the figure, it is a specific process of parsing the logical constraint rules according to the working status information of the smart home device: first, the Internet of Things platform loads the logical constraint information and obtains the working status information of the smart home device. Secondly, the corresponding functional attribute information is determined according to the working status information of the smart home device. Then, the predetermined logical constraint rules are determined according to the functional attribute information of the smart home device and the preset functional attribute information in the logical constraint rules. Then, the target logical constraint rules are determined according to the working status information of the smart home device and the preset working status information in the predetermined logical constraint rules. After the target logical constraint rules are determined, the controllable information in the target logical constraint rules is determined. Whether the affected attribute information can be controlled. When the affected attribute information cannot be adjusted, the affected attribute information is controlled to not receive control instructions. When the affected attribute information can be adjusted, the predetermined adjustment range of the smart home device is determined according to the preset functional attribute information in the target logical constraint rule. For example, the predetermined adjustment range of the smart home device is -30 to 30 degrees Celsius. The target adjustment range is determined according to the working status information of the smart home device and the predetermined adjustment range. That is, in cooling mode, the target adjustment range of the smart home device is -30 to 0 degrees Celsius, and in heating mode, the target adjustment range of the smart home device is 0 to 30 degrees Celsius.
[0087] like Figure 5As shown, first, the Internet of Things platform loads the logical constraint information and obtains the working status information of the smart home device. Secondly, the corresponding functional attribute information is determined according to the working status information of the smart home device. Then, the predetermined logical constraint rule is determined according to the functional attribute information of the smart home device and the preset functional attribute information in the logical constraint rule. Then, the target logical constraint rule is determined according to the working status information of the smart home device and the preset working status information in the predetermined logical constraint rule. After determining the target logical constraint rule, it is determined whether the affected attribute information can be controlled according to the controllable information in the target logical constraint rule. When the affected attribute information can be adjusted, the control display screen displays the attribute identifier in the first state; when the affected attribute information cannot be adjusted, the control display screen displays the attribute identifier in the second state, that is, clicking or touching the attribute identifier does not respond. For example, after the preset function attribute reports the status of the smart home device, the affected attribute information is uncontrollable. For example, the logical constraint rule of the smart home device is: the preset function attribute information is power on and off, the preset working status information is shutdown, the affected attribute information is setting the wind speed, and whether the affected attribute is controllable is uncontrollable; at this time, for the APP side, when the device is turned off, the APP interface will disable the wind speed button according to the logical constraint rules, that is, there is no response when clicking and no control instructions can be issued; for the product electronic control board, after the current state is set to shutdown, if a control instruction to set the wind speed is received, the product electronic control board will not perform any operation.
[0088] An embodiment of the present invention provides a device, the device including a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, at least the following steps are implemented:
[0089] Step S101, obtaining the working state information and corresponding logic constraint information of the smart home device, wherein the logic constraint information includes at least one logic constraint rule, and the logic constraint rule includes at least preset working state information, affected attribute information, and controllable information;
[0090] Step S102, determining a target logical constraint rule at least according to the working status information and the preset working status information in the logical constraint rule;
[0091] Step S103, based on the controllable information in the target logic constraint rule, determine whether the affected attribute information corresponding to the smart home device is adjustable. If the controllable information indicates that it is not adjustable, determine that the affected attribute information corresponding to the smart home device is not adjustable. If the controllable information indicates that it is adjustable, determine that the affected attribute information is adjustable.
[0092] The devices in this article can be servers, PCs, PADs, mobile phones, etc.
[0093] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the following method steps:
[0094] Step S101, obtaining the working state information and corresponding logic constraint information of the smart home device, wherein the logic constraint information includes at least one logic constraint rule, and the logic constraint rule includes at least preset working state information, affected attribute information, and controllable information;
[0095] Step S102, determining a target logical constraint rule at least according to the working status information and the preset working status information in the logical constraint rule;
[0096] Step S103, based on the controllable information in the target logic constraint rule, determine whether the affected attribute information corresponding to the smart home device is adjustable. If the controllable information indicates that it is not adjustable, determine that the affected attribute information corresponding to the smart home device is not adjustable. If the controllable information indicates that it is adjustable, determine that the affected attribute information is adjustable.
[0097] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0098] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0099] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0100] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0101] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for 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 invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0102] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
[0103] 1) In the control method of the smart home device of the present application, first, the working state information and the corresponding logic constraint information of the smart home device are obtained, wherein the logic constraint information includes at least one logic constraint rule, then, at least according to the obtained working state information and the preset working state information in the logic constraint rule, the target logic constraint rule is determined, and finally, according to the controllable information in the target logic constraint rule, whether the affected attribute information corresponding to the smart home device is adjustable is determined. In this scheme, whether the affected attribute information is adjustable is determined according to the current working state information of the smart home device, and when the controllable information indicates that it is not adjustable, it is determined that the affected attribute information corresponding to the smart home device is not adjustable, and when the controllable information indicates that it is adjustable, it is determined that the affected attribute information is adjustable, that is, for smart home devices with different functions, the smart home devices can be controlled by universal control logic, which ensures that the control logic of the smart home device is relatively reasonable and the smart home device has a high degree of intelligence, thereby solving the problem of the lack of universal control logic to control smart home devices in the prior art.
[0104] 2) In the control device of the smart home device of the present application, the acquisition unit is used to obtain the working status information and corresponding logical constraint information of the above-mentioned smart home device, the above-mentioned logical constraint information includes at least one logical constraint rule, and the above-mentioned logical constraint rule includes at least preset working status information, affected attribute information and whether it is controllable information; the first determination unit is used to determine the target logical constraint rule at least based on the above-mentioned working status information and the above-mentioned preset working status information in the above-mentioned logical constraint rule; the second determination unit is used to determine whether the above-mentioned affected attribute information corresponding to the above-mentioned smart home device is adjustable according to the above-mentioned whether it is controllable information in the above-mentioned target logical constraint rule, and when the above-mentioned whether it is controllable information indicates that it is not adjustable, it is determined that the above-mentioned affected attribute information corresponding to the above-mentioned smart home device is not adjustable, and when the above-mentioned whether it is controllable information indicates that it is adjustable, it is determined that the above-mentioned affected attribute information is adjustable. In this solution, whether the affected attribute information is adjustable is determined according to the current working status information of the smart home device. When the controllable information indicates that it is not adjustable, the affected attribute information corresponding to the smart home device is determined to be not adjustable. When the controllable information indicates that it is adjustable, the affected attribute information is determined to be adjustable. This means that smart home devices with different functions can be controlled by universal control logic, which ensures that the control logic of the smart home devices is relatively reasonable and that the smart home devices are highly intelligent, thereby solving the problem in the prior art of lack of universal control logic to control smart home devices.
[0105] 3) The Internet of Things system of the present application includes the above-mentioned smart home device and the above-mentioned Internet of Things platform, and the above-mentioned Internet of Things platform is used to execute any of the above-mentioned control methods. In the above-mentioned control method, first, the working state information and the corresponding logical constraint information of the above-mentioned smart home device are obtained, wherein the above-mentioned logical constraint information includes at least one logical constraint rule, and then, at least according to the above-mentioned working state information obtained and the above-mentioned preset working state information in the above-mentioned logical constraint rule, the target logical constraint rule is determined, and finally, according to the above-mentioned controllable information in the above-mentioned target logical constraint rule, it is determined whether the above-mentioned affected attribute information corresponding to the above-mentioned smart home device is adjustable. In this scheme, whether the above-mentioned affected attribute information is adjustable is determined according to the current working state information of the above-mentioned smart home device, and when the above-mentioned controllable information indicates that it is not adjustable, it is determined that the above-mentioned affected attribute information corresponding to the above-mentioned smart home device is not adjustable, and when the above-mentioned controllable information indicates that it is adjustable, it is determined that the above-mentioned affected attribute information is adjustable, that is, for smart home devices with different functions, the smart home devices can be controlled by universal control logic, which ensures that the control logic of the smart home device is more reasonable and the smart home device has a high degree of intelligence, thereby solving the problem of the lack of universal control logic to control smart home devices in the prior art.
[0106] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A control method for a smart home device, characterized in that: include: Acquire working state information and corresponding logic constraint information of the smart home device, wherein the logic constraint information includes at least one logic constraint rule, and the logic constraint rule includes at least preset working state information, affected attribute information, and controllable information; Determine a target logical constraint rule at least according to the working state information and the preset working state information in the logical constraint rule; According to the controllable information in the target logic constraint rule, determine whether the affected attribute information corresponding to the smart home device is adjustable; wherein, when the controllable information indicates that it is not adjustable, determine that the affected attribute information corresponding to the smart home device is not adjustable, and when the controllable information indicates that it is adjustable, determine that the affected attribute information is adjustable; Wherein, the logic constraint rule further includes preset function attribute information. Before determining the target logic constraint rule at least according to the working state information and the preset working state information in the logic constraint rule, the control method further includes: According to the working status information, the functional attribute information of the smart home device is determined, where the functional attribute information is information about the function corresponding to the working status information. Determining a target logical constraint rule at least according to the working state information and the preset working state information in the logical constraint rule includes: In the case where the function attribute information matches the preset function attribute information in the logic constraint rule, determining that the logic constraint rule is a predetermined logic constraint rule; In a case where the working status information matches the preset working status information in the predetermined logical constraint rule, the predetermined logical constraint rule is determined to be the target logical constraint rule.
2. The control method according to claim 1, characterized in that: The logic constraint rule also includes predetermined information, and the predetermined information is used to characterize the priority order of the logic constraint rule. When there are multiple target logic constraint rules, Determining whether the affected attribute information corresponding to the smart home device is adjustable according to the controllable information in the target logic constraint rule includes: According to the predetermined information, the plurality of target logic constraint rules are prioritized; Whether the affected attribute information corresponding to the smart home device is adjustable is determined according to the controllable information of the target logical constraint rule with the highest priority.
3. The control method according to claim 1, characterized in that: In the case where the controllable information indicates that the information is adjustable, after determining that the affected attribute information is adjustable, the method further includes: Determine, according to the preset functional attribute information in the target logical constraint rule, a predetermined adjustment range of the affected attribute information corresponding to the smart home device, wherein the predetermined adjustment range is a preset adjustment range; According to the preset working status information and the predetermined adjustment range in the target logic constraint rule, the target adjustment range is determined, the target adjustment range being the adjustment range of the affected attribute information corresponding to the preset working status information, the maximum value of the target adjustment range being less than or equal to the maximum value of the predetermined adjustment range, and the minimum value of the target adjustment range being greater than or equal to the minimum value of the predetermined adjustment range.
4. The control method according to any one of claims 1 to 3, characterized in that: In the process of determining whether the affected attribute information corresponding to the smart home device is adjustable according to the controllable information in the target logic constraint rule, the method further includes: When the working status information is warning information, it is determined that each of the affected attribute information of the smart home device is not adjustable.
5. The control method according to any one of claims 1 to 3, characterized in that: After determining whether the affected attribute information corresponding to the smart home device is adjustable according to the controllable information in the target logic constraint rule, the control method further includes: Sending a determination result indicating whether the affected attribute information corresponding to the smart home device is adjustable to a display screen; According to the determination result, the display screen is controlled to display the attribute identifier in a predetermined state, and the predetermined state includes at least one of the following: a first state and a second state, the first state is a state in which the affected attribute information can be adjusted, and the second state is a state in which the affected attribute information cannot be adjusted, and the attribute identifier is an identifier that represents the affected attribute information.
6. The control method according to claim 5, characterized in that: After controlling the display screen to display the attribute identifier in a predetermined state according to the determination result, the control method further includes: receiving a predetermined operation to be performed on the attribute identifier; When the predetermined state of the attribute identifier is the first state, in response to the predetermined operation, adjusting the affected attribute information of the smart home device; In a case where the predetermined state identified by the attribute is the second state, no response is made to the predetermined operation.
7. A control device for smart home equipment, characterized in that: include: an acquisition unit, configured to acquire working state information of the smart home device and corresponding logic constraint information, wherein the logic constraint information includes at least one logic constraint rule, and the logic constraint rule includes at least preset working state information, affected attribute information, and controllable information; A first determining unit, configured to determine a target logical constraint rule at least according to the working state information and the preset working state information in the logical constraint rule; A second determination unit is configured to determine whether the affected attribute information corresponding to the smart home device is adjustable according to the controllable information in the target logic constraint rule; wherein, when the controllable information indicates that the affected attribute information corresponding to the smart home device is not adjustable, it is determined that the affected attribute information is not adjustable; and when the controllable information indicates that the affected attribute information is adjustable, it is determined that the affected attribute information is adjustable; Wherein, the logic constraint rule further includes preset function attribute information, and the control device further includes a third determination unit, which is used to determine the function attribute information of the smart home device according to the working state information before determining the target logic constraint rule at least according to the working state information and the preset working state information in the logic constraint rule, wherein the function attribute information is information of the function corresponding to the working state information; The first determination unit also includes a first determination module and a second determination module, wherein the first determination module is used to determine that the logical constraint rule is a predetermined logical constraint rule when the functional attribute information matches the preset functional attribute information in the logical constraint rule; and the second determination module is used to determine that the predetermined logical constraint rule is the target logical constraint rule when the working status information matches the preset working status information in the predetermined logical constraint rule.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the control method according to any one of claims 1 to 6.
9. A processor, characterized in that: The processor is used to run a program, wherein the program executes the control method described in any one of claims 1 to 6 when running.
10. An Internet of Things system, characterized in that: include: Smart home devices; An Internet of Things platform, wherein the Internet of Things platform is used to execute the control method described in any one of claims 1 to 6.
