CN115685769A - Intelligent household equipment control method and device, electronic equipment and storage medium - Google Patents

Intelligent household equipment control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115685769A
CN115685769A CN202110838683.8A CN202110838683A CN115685769A CN 115685769 A CN115685769 A CN 115685769A CN 202110838683 A CN202110838683 A CN 202110838683A CN 115685769 A CN115685769 A CN 115685769A
Authority
CN
China
Prior art keywords
target
attribute
value
intelligent household
control instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110838683.8A
Other languages
Chinese (zh)
Inventor
王先庆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202110838683.8A priority Critical patent/CN115685769A/en
Publication of CN115685769A publication Critical patent/CN115685769A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Selective Calling Equipment (AREA)

Abstract

The invention provides an intelligent household equipment control method, an intelligent household equipment control device, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving a target control instruction sent by user equipment; under the conditions that target business logic constraint exists between a current value of a first target attribute of target intelligent household equipment and a target value of a second target attribute of the target intelligent household equipment carried by a target control instruction and the value of the first target attribute is allowed to be adjusted, sending a first instruction to the target intelligent household equipment to adjust the current value of the first target attribute and remove the target business logic constraint; and under the condition that the target service logic constraint is removed, sending a target control instruction to the target intelligent household equipment. The intelligent household equipment control method, the intelligent household equipment control device, the electronic equipment and the storage medium provided by the embodiment of the invention can ensure the successful execution of the target control instruction, improve the success rate of controlling the target intelligent household equipment and improve the user experience.

Description

Intelligent household equipment control method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of intelligent home furnishing, in particular to an intelligent household equipment control method and device, electronic equipment and a storage medium.
Background
Under the intelligent home scene, the user can mainly include two kinds of control modes to intelligent domestic equipment through intelligent terminal: the first is a small-cycle control mode, and the intelligent terminal can control intelligent household equipment through a household intelligent gateway in a household domain network; the second mode is a large-cycle control mode, the intelligent terminal is not in a home domain network, the application instruction can be sent to the cloud through the mobile internet, and the cloud platform forwards the application instruction to the home intelligent gateway connected with the cloud platform through the mobile internet, so that the control of the intelligent household equipment is realized.
However, in the above control manner, a situation may occur that some functions of the intelligent home device cannot be called due to a wrong logical relationship or an absence of the logic relationship, and the control of the intelligent home device fails, so that the user cannot obtain an expected service, and user experience is affected.
Disclosure of Invention
The invention provides an intelligent household equipment control method, an intelligent household equipment control device, electronic equipment and a storage medium, which are used for overcoming the defect that control failure is easy to occur in the prior art and realizing intelligent household equipment control with high success rate.
The invention provides an intelligent household equipment control method, which comprises the following steps:
receiving a target control instruction sent by user equipment;
under the condition that a target business logic constraint exists between the current value of the first target attribute of the target intelligent household equipment and the target value of the second target attribute of the target intelligent household equipment carried by the target control instruction and the value of the first target attribute is allowed to be adjusted, sending a first instruction to the target intelligent household equipment to adjust the current value of the first target attribute and remove the target business logic constraint;
and sending the target control instruction to the target intelligent household equipment under the condition that the target business logic constraint is removed.
According to the intelligent household device control method provided by the invention, a target business logic constraint exists between a current value of a first target attribute of a target intelligent household device and a target value of a second target attribute of the target intelligent household device carried by a target control instruction, and the adjustment of the value of the first target attribute is allowed, and the method comprises the following steps:
under the condition that the second target attribute is subjected to business logic constraint, determining a current value of a first target attribute of the target intelligent household equipment based on a preset constraint list, wherein the target business logic constraint exists between the current value of the first target attribute of the target intelligent household equipment and a target value of the second target attribute of the target intelligent household equipment carried by the target control instruction, and the value of the first target attribute is allowed to be adjusted;
wherein the constraint list is used to describe business logic constraints between the value of the second target attribute of the target intelligent home device and other attributes of the target intelligent home device, and whether to allow adjustment of the value of the first target attribute.
According to the intelligent household device control method provided by the invention, after receiving the target control instruction sent by the user equipment, the method further comprises the following steps:
and sending the target control instruction to the target intelligent household equipment under the condition that the second target attribute is not restricted by service logic.
According to the intelligent household device control method provided by the invention, after receiving the target control instruction sent by the user equipment, the method further comprises the following steps:
and sending the target control instruction to the target intelligent household equipment under the condition that target business logic constraint does not exist between the current value of the first target attribute of the target intelligent household equipment and the target value of the second target attribute of the target intelligent household equipment carried by the target control instruction.
According to the method for controlling the intelligent household equipment provided by the invention, after receiving the target control instruction sent by the user equipment, the method further comprises the following steps:
under the condition that a target service logic constraint exists between a current value of a first target attribute of the target intelligent household equipment and a target value of a second target attribute of the target intelligent household equipment carried by the target control instruction and the value of the first target attribute is not allowed to be adjusted, returning a target execution result of the target control instruction to the user equipment;
and the target execution result is used for indicating the execution failure of the target control instruction.
According to the method for controlling the intelligent household equipment, the method for determining the current value of the first target attribute of the target intelligent household equipment based on the constraint list, wherein a target business logic constraint exists between the current value of the first target attribute of the target intelligent household equipment and the target value of the second target attribute of the target intelligent household equipment carried by the target control instruction, and the adjustment of the value of the first target attribute is allowed comprises the following steps:
querying the constraint list based on the current value of the first target attribute and the target value of the second target attribute;
under the condition that a target service logic constraint exists between a current value of a first target attribute of the target intelligent household equipment and a target value of a second target attribute of the target intelligent household equipment carried by the target control instruction in the constraint list, querying the constraint list based on the first target attribute;
determining a value that allows adjustment of the first target property.
According to an intelligent home device control method provided by the present invention, before sending a first instruction to a target intelligent home device in a case that a target business logic constraint exists between a current value of a first target attribute of the target intelligent home device and a target value of a second target attribute of the target intelligent home device carried by a target control instruction and the value of the first target attribute is allowed to be adjusted, the method further comprises:
and establishing the constraint list based on the business logic of the target intelligent household equipment.
The present invention also provides an intelligent home appliance control apparatus, comprising:
the instruction receiving module is used for receiving a target control instruction sent by user equipment;
a constraint processing module, configured to send a first instruction to the target intelligent home device to adjust a current value of a first target attribute and remove a target service logic constraint when a target service logic constraint exists between the current value of the first target attribute of the target intelligent home device and a target value of a second target attribute of the target intelligent home device carried by the target control instruction and the adjustment of the value of the first target attribute is allowed;
and the instruction sending module is used for sending the target control instruction to the target intelligent household equipment under the condition that the target service logic constraint is removed.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the steps of the intelligent household device control method.
The present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the intelligent home device control method as claimed in any one of the above.
According to the intelligent household equipment control method, the intelligent household equipment control device, the electronic equipment and the storage medium, under the condition that the target business logic constraint exists between the current value of the first target attribute of the target intelligent household equipment and the target value of the second target attribute of the target intelligent household equipment carried by the target control instruction and the value of the first target attribute is allowed to be adjusted, the first instruction is sent to the target intelligent household equipment, so that the target intelligent household equipment executes the first instruction, the current value of the first target attribute is adjusted, the target business logic constraint is removed, and after the target business logic constraint is removed, the target control instruction is sent to the target intelligent household equipment, so that the target intelligent household equipment executes the target control instruction, the successful execution of the target control instruction can be ensured, the success rate of controlling the target intelligent household equipment can be improved, and the user experience is improved.
Drawings
In order to more clearly illustrate the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flow chart of an intelligent household appliance control method provided by the present invention;
FIG. 2 is a schematic diagram of a device model of a prior art intelligent home device;
FIG. 3 is a schematic diagram of a constraint list provided by the present invention;
FIG. 4 is a schematic diagram of a device model of an intelligent home device provided by the present invention;
fig. 5 is a schematic flow chart of a control method for intelligent home appliances provided by the present invention;
fig. 6 is a schematic structural diagram of an intelligent household appliance control device provided by the invention;
fig. 7 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the embodiments of the present invention, it should be noted that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of describing the embodiments of the present invention and simplifying the description, but do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the embodiments of the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance, and not order.
In the description of the embodiments of the present invention, it should be noted that, unless explicitly stated or limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. Specific meanings of the above terms in the embodiments of the present invention may be understood as specific cases by those of ordinary skill in the art.
In order to facilitate an understanding of the following embodiments of the present invention, business logic constraints and a device model of a prior art intelligent home device are first described.
The control of the smart home devices is typically implemented based on device models of the smart home devices. Fig. 2 shows a generic plant model. As shown in fig. 2, the model mainly contains elements such as device type, attribute, and operation.
Device type deviceType: refers to the identification of the device type.
Property: and describing various attributes which can be accessed by the equipment, including attributes representing the working state of the equipment, objective environment attributes acquired by measuring and other modes, and the like. Each attribute is described by fields such as name (name), data type (dataType), value range (valueRange), readable identifier (readable), writable identifier (writeable), and the like.
Operation: various operations that the device provides to the outside and can be called are described.
According to the user requirements, two modes for determining the target household appliance and the function are provided:
mode 1: the user actively sends a household appliance control command, and the command clearly indicates the intelligent household appliance to be operated and the specific function. After the cloud platform or the home intelligent gateway receives the instruction, the target household appliance equipment and the function can be directly analyzed.
Mode 2: the household appliance control instruction sent by the user does not explicitly indicate the target household appliance and the specific function, or the user does not actively send the control instruction, but the cloud platform or the home intelligent gateway infers the user requirement according to the preset logic. Under the circumstance, the cloud platform or the home intelligent gateway needs to perform reasoning analysis by combining the equipment model according to the user requirements, and obtain the intelligent home equipment capable of providing the service required by the user and the specific functions of the intelligent home equipment.
In the actual use process of the intelligent household equipment, certain business logic constraints may exist among certain functions or parameters. In some cases, it may be a many-to-one or one-to-many relationship between the property of the constraint and the property being constrained. For example, the function a and the function B are mutually exclusive (i.e., cannot be called by a user at the same time), and the function C and the function D are preconditions for executing the function E, and the current value of the function F affects the value ranges of the function G and the function H. When the intelligent household equipment is controlled, the control can be successfully carried out only by following the logic relation to obtain the required service; otherwise, invalid controls may occur, such as functions not being able to be invoked and/or parameter settings being out of range. A function may be represented by a value of an attribute and performed by adjusting the value of the attribute.
For example, the refrigerator can adjust the temperature of the refrigerating chamber and the freezing chamber only on the premise that the 'holiday' mode and the 'smart' mode are both closed; when the washing machine runs different washing programs, the adjustment value ranges of parameters such as water temperature, rotating speed and the like are different.
Business logic constraints mainly include 3 common logical relationships:
the precondition is as follows: the value of one (or more) attribute is the premise of operating another (or more) attribute; for example, the "holiday" mode and the "smart" mode of a refrigerator are off, which are a prerequisite for regulating the temperature of the cold and freezer compartments.
Mutual exclusion: the values of two or more attributes cannot be simultaneously specific values; for example, the "heating" and "keep warm" functions of an electric water heater cannot be turned on simultaneously.
Adjusting the value range: the value of one (or more) attribute(s) causes the value range of another (or more) attribute(s) to change; for example, the value of the washing program attribute of the washing machine affects the value ranges of parameters such as water temperature and rotating speed.
As shown in fig. 2, the attributes and operations in the model are parallel and completely independent, and do not exhibit logical relationships.
In order to overcome the problems in the prior art, the invention provides an intelligent household device control method, an intelligent household device control device, an electronic device and a storage medium.
Fig. 1 is a schematic flowchart of a control method for an intelligent home device according to the present invention. An intelligent home appliance control method according to an embodiment of the present invention is described below with reference to fig. 1. As shown in fig. 1, the method includes: step 101, receiving a target control instruction sent by user equipment.
Specifically, an execution subject of the intelligent household device control method provided by the embodiment of the invention is an intelligent household device control device. The intelligent household equipment control device can be electronic equipment such as a server or a household intelligent gateway.
The user equipment may be implemented in various forms. For example, the user equipment described in the embodiments of the present application may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet), a PMP (portable multimedia player), a navigation device, a smart band, a smart hand, a digital camera, and the like, and a stationary terminal such as a desktop computer and the like. In the following, it is assumed that the user equipment is a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present application can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
When the user needs to control the target intelligent household device, the user can send a target control instruction to the intelligent household device control device through the user device. The intelligent household appliance control device receives the target control instruction.
And target control instructions for controlling the target intelligent household device to implement a certain function, for example, to change the value of a certain attribute. The target intelligent household device can successfully execute the target control instruction, and the function can be realized.
The target control instruction may carry information of a target value of the second target attribute of the target intelligent home appliance. And target control instructions for adjusting the value of the second target attribute of the target smart home device from the current value to the target value.
And 102, under the condition that a target service logic constraint exists between the current value of the first target attribute of the target intelligent household equipment and the target value of the second target attribute of the target intelligent household equipment carried by the target control instruction and the adjustment of the value of the first target attribute is allowed, sending a first instruction to the target intelligent household equipment to adjust the current value of the first target attribute and remove the target service logic constraint.
Specifically, the intelligent home device control apparatus may obtain status information reported by the target intelligent home device. The status information may include current values of various attributes of the target intelligent home device.
It is understood that the first target property and the second target property are both properties of the target smart home device.
The intelligent household appliance control device may determine, based on the current values of the various attributes of the target intelligent household appliance, whether the process of the intelligent household appliance executing the target control instruction and adjusting the value of the second target attribute from the current value to the target value cannot be executed or fails to execute due to the business logic constraint and the influence of other attributes, so that the adjustment of the value of the second target attribute from the current value to the target value cannot be achieved.
The current value of the first target attribute of the target intelligent household device and the target value of the second target attribute of the target intelligent household device have no business logic constraint, and represent that the current state of the target intelligent household device allows the execution of user instructions; and a business logic constraint exists between the current value of the first target attribute of the target intelligent household device and the target value of the second target attribute of the target intelligent household device, and the business logic constraint indicates that the current state of the target intelligent household device does not allow the user instruction to execute.
Alternatively, the process of determining that the smart home device executes the target control command and adjusting the value of the second target attribute from the current value to the target value may be determined by determining whether a business logic constraint exists between the current value of the first target attribute of the target smart home device and the target value of the second target attribute of the target smart home device, and whether the process cannot be executed or fails to be executed due to the business logic constraint existing and being affected by other attributes, so that the adjustment of the value of the second target attribute from the current value to the target value cannot be achieved.
If business logic constraint exists between the current value of some other attributes of the target intelligent household device and the target value of the second target attribute of the target intelligent household device, it may be determined that the target intelligent household device executes the target control instruction, and the process of adjusting the value of the second target attribute from the current value to the target value is affected by other attributes due to the business logic constraint, and the target control instruction cannot be executed or fails to be executed, so that it is impossible to adjust the value of the second target attribute from the current value to the target value.
It will be appreciated that some of the other attributes described above are first target attributes. The business logic constraint existing between the current value of the first target attribute of the target intelligent household device and the target value of the second target attribute of the target intelligent household device is a target business logic constraint. The number of the first target attributes may be one or more.
It should be noted that, for each attribute for which a business logic constraint exists between the target intelligent home device and other attributes, it can be predetermined whether the value of the attribute allows the intelligent home device control apparatus to automatically adjust. Business logic constraint exists between a certain attribute of the target intelligent household equipment and other attributes, specifically, business logic constraint exists between a certain value of the attribute and certain values of other attributes, and the adjustment of the value of the attribute to be a certain value can be influenced and constrained by the certain values of the other attributes.
After determining that there is a business logic constraint between the current value of the first target attribute of the target intelligent home device and the target value of the second target attribute of the target intelligent home device, it may be further determined whether to allow the intelligent home device control apparatus to automatically adjust the value of the first target attribute based on the name of the first target attribute to ensure that the value of the second target attribute is successfully adjusted from the current value to the target value.
For each first target attribute, if the intelligent home appliance control device is allowed to automatically adjust the value of the first target attribute, it may be determined that the value of the first target attribute is allowed to be adjusted.
After determining to allow the intelligent home device control apparatus to automatically adjust the value of the first target attribute, the intelligent home device control apparatus may transmit a first instruction to the target intelligent home device.
First instructions for adjusting the value of the first target attribute from a current value to a new current value different from the current value. There is no business logic constraint between the new current value and the target value of the second target attribute.
After receiving the first command, the target intelligent home device may execute the first command to adjust the value of the first target attribute from the current value to a new current value different from the current value. Because no business logic constraint exists between the new current value of the first target attribute and the target value of the second target attribute, the target business logic constraint is removed, the target intelligent household equipment is not influenced to execute the target control instruction any more, and the process of adjusting the value of the second target attribute from the current value to the target value is realized.
It should be noted that, when the value of a certain attribute of the target intelligent home device changes, the intelligent home device control apparatus automatically updates the state of the attribute affected by the attribute in the device object according to the constraint list, and shields the invokable function and the unsettable parameter value.
And 103, sending a target control instruction to the target intelligent household equipment under the condition that the target business logic constraint is removed.
Specifically, the intelligent home device control apparatus may determine, based on the state information reported by the target intelligent home device, that the value of the first target attribute of the target intelligent home device has been adjusted to the new current value, and may determine that the target service logic constraint has been removed.
After the target business logic constraint is released, the intelligent home device control apparatus may issue a target control instruction to the target intelligent home device, so that the target intelligent home device executes the target control instruction.
After the target smart home device receives the target control instruction, since the value of the first target attribute is changed, there is no business logic constraint between the new current value of the first target attribute and the target value of the second target attribute, and thus the target smart home device can correctly execute the target control instruction, and successfully implement the adjustment of the value of the second target attribute of the target smart home device to the target value.
According to the embodiment of the invention, under the conditions that the target business logic constraint exists between the current value of the first target attribute of the target intelligent household equipment and the target value of the second target attribute of the target intelligent household equipment carried by the target control instruction and the adjustment of the value of the first target attribute is allowed, the first instruction is sent to the target intelligent household equipment, so that the target intelligent household equipment executes the first instruction, adjusts the current value of the first target attribute, removes the target business logic constraint, and sends the target control instruction to the target intelligent household equipment after the target business logic constraint is removed, so that the target intelligent household equipment executes the target control instruction, the successful execution of the target control instruction can be ensured, the success rate of controlling the target intelligent household equipment can be improved, and the user experience is improved.
Based on the content of any one of the above embodiments, determining that there is a target service logic constraint between a current value of a first target attribute of a target intelligent home device and a target value of a second target attribute of the target intelligent home device carried by a target control instruction, and allowing adjustment of the value of the first target attribute includes: and under the condition that the second target attribute is restricted by service logic, determining the current value of the first target attribute of the target intelligent household equipment based on a preset restriction list, wherein the target service logic restriction exists between the current value of the first target attribute of the target intelligent household equipment and the target value of the second target attribute of the target intelligent household equipment carried by the target control instruction, and the value of the first target attribute is allowed to be adjusted.
Wherein the constraint list is used for describing business logic constraints between the values of the second target attribute of the target intelligent household device and other attributes of the target intelligent household device, and whether the values of the first target attribute are allowed to be adjusted.
In particular, business logic constraints between the value of the second target attribute of the target intelligent home device and other attributes of the target intelligent home device, and whether to allow adjustment of the value of the first target attribute, may be described by a constraint list.
The preset constraint list ConstraintList may be used to describe a value of a certain item (or multiple items) of an attribute, and influence on other attributes of the same device. The influence modes comprise the mutual exclusion, the precondition, the value range change and the like.
Fig. 3 shows a constraint list ConstraintList.
As shown in fig. 3, for each business logic constraint [ m ] in the ConstraintList list, the following information may be included:
current property list currentproperty list: a list of attributes of the constraint is generated.
Optionally, for each of the attributes P i Described with the following subfields:
name: attribute P i The name of (a);
the current value currentValue: attribute P i Values v that affect other attributes i
Affected attribute list affectedPropertyList: and (4) attribute list subjected to current attribute value constraint.
For each affected property P j The following sub-field descriptions may be employed:
name: the name of the affected attribute.
Readable permission readable: at P i Value v i Under the influence of P j Whether it is readable.
Writable permission writeable: at P i Value v i Under the influence of P j Whether writable.
Value range: at P i Value vi influence, P j The actual available value ranges.
Automatic execution identification autoFlag: when the current state of the target smart home device does not allow the change of the constrained property P j When the value is taken, whether the identification allows the intelligent household equipment control device to automatically change the equipment state is identified so as to ensure the attribute P j Successful change of the value. autoFlag = True, indicating that the intelligent home appliance control device is allowed to automatically execute; autoFlag = False, indicating no allowance.
It can be understood that the attribute P i As a second target property, property P i Value v of i Is a target value of a second target attribute, subject to attribute P i Value v of i Property of influence P j Is a first target attribute.
Based on the constraint list ConstraintList, the preconditions, mutual exclusion, and value range adjustment 3 logical relationships can be expressed as:
the precondition is as follows: when the values of the property A and the property B are both False, the property C, currentProperty [0], is allowed to be set as the property A, currentValue = False; currentProperty [1] is attribute B, currentValue = False; the name of the afectidproperty [1] is property C, writeable = True (i.e., user settings are allowed).
Mutual exclusion: property A and property B are mutually exclusive-currentProperty is property A, currentValue = True; the name of the affectedProperty [1] is attribute B, the valueRange is { False }, that is, the value cannot be set to True at the same time.
Adjusting the value range: attribute A takes the value v k When the value range of the attribute B is reduced from 0-100 to 40-60, the step length is 1 and remains unchanged, the value range of the attribute C is reduced from 0-1000 to 300-500, the step length is 10 and remains unchanged, namely currentProperty is the attribute A, currentValue = v k ;affectedProperty[1]Name of (1) is attribute B, valurange is (minValue =40, maxvalue =60, step = 1); affectedProperty [2 ]]Is attribute C, and valurange is (minValue =300, maxvalue =500, step = 10).
Based on the constraint list, it may be determined whether there is a business logic constraint between a current value of a first target attribute of a target smart home device and a target value of a second target attribute of the target smart home device, and whether the smart home device control apparatus is allowed to automatically adjust the value of the first target attribute.
Based on the result of the above judgment, it can be determined that a target business logic constraint exists between the current value of the first target attribute of the target intelligent household device and the target value of the second target attribute of the target intelligent household device carried by the target control instruction, and the value of the first target attribute is allowed to be adjusted.
According to the embodiment of the invention, under the condition that the second target attribute is subjected to business logic constraint, the current value of the first target attribute of the target intelligent household equipment is determined based on the constraint list, the target business logic constraint exists between the current value of the first target attribute of the target intelligent household equipment and the target value of the second target attribute of the target intelligent household equipment carried by the target control instruction, and the value of the first target attribute is allowed to be adjusted, so that the target control instruction executed by the intelligent household equipment can be more conveniently and accurately determined, and the process of adjusting the value of the second target attribute from the current value to the target value is determined.
Based on the content of any of the above embodiments, after receiving the target control instruction sent by the user equipment, the method further includes: and under the condition that the second target attribute is not restricted by the service logic, sending a target control instruction to the target intelligent household equipment.
Specifically, as shown in fig. 4, in order to identify whether a certain attribute is constrained by service logic, in the embodiment of the present application, a "constraint flag" field is further added in an attribute description field of the device model, and is used to identify whether the attribute is included in the service logic constraint, including as a "current attribute" and a "constrained attribute".
After receiving the target control instruction, the smart home device control apparatus may determine whether the second target attribute is constrained by the service logic based on a constraintFlag field of the second target attribute in the device model.
If the second target attribute is not constrained by the service logic, it indicates that no service logic constraint exists between any value of the second target attribute and other values, and a process of executing a target control instruction by the target intelligent household device and adjusting the value of the second target attribute from a current value to the target value can be determined.
After determining that the second target attribute is not constrained by the service logic, the intelligent home device control apparatus may issue a target control instruction to the target intelligent home device.
After the target intelligent household device receives the target control instruction, since the second target attribute and any other attribute have no business logic constraint, the value of the second target attribute is adjusted without being influenced by any other attribute, the target intelligent household device can correctly execute the target control instruction, and the adjustment of the value of the second target attribute of the target intelligent household device to the target value is successfully realized.
It can be understood that before determining whether business logic constraint exists between the current value of the first target attribute of the target intelligent home device and the target value of the second target attribute of the target intelligent home device, it may first determine whether the second target attribute is subject to business logic constraint based on the constrainflag field of the second target attribute in the device model. And under the condition that the second target attribute is subject to business logic constraint, executing a step of judging whether business logic constraint exists between the current value of the first target attribute of the target intelligent household equipment and the target value of the second target attribute of the target intelligent household equipment.
According to the embodiment of the invention, the target control instruction is sent to the target intelligent household equipment under the condition that the second target attribute is not constrained by the service logic, so that the target intelligent household equipment executes the target control instruction, the target intelligent household equipment can be determined to execute the target control instruction more quickly and accurately without being constrained by any service logic, the efficiency of controlling the target intelligent household equipment can be improved, and the user experience is improved.
Based on the content of any of the above embodiments, after receiving the target control instruction sent by the user equipment, the method further includes: and under the condition that no target business logic constraint exists between the current value of the first target attribute of the target intelligent household equipment and the target value of the second target attribute of the target intelligent household equipment carried by the target control instruction, sending the target control instruction to the target intelligent household equipment.
Specifically, in the case that the second target attribute is subject to business logic constraints, it may be determined whether business logic constraints exist between the current value of the first target attribute of the target intelligent home device and the target value of the second target attribute of the target intelligent home device, and a process of executing the target control instruction by the intelligent home device and adjusting the value of the second target attribute from the current value to the target value may be implemented whether the execution cannot be performed or the execution fails due to the influence of other attributes due to the existence of the business logic constraints, so that the adjustment of the value of the second target attribute from the current value to the target value cannot be implemented.
If no business logic constraint exists between the current value of each other attribute of the target intelligent household device and the target value of the second target attribute of the target intelligent household device, the process that the target intelligent household device executes the target control instruction and the value of the second target attribute is adjusted to the target value from the current value can be determined, and the target control instruction can be normally executed without being influenced by other attributes due to the fact that no business logic constraint exists, so that the value of the second target attribute is adjusted to the target value from the current value.
After determining that the target business logic constraint does not exist between the current value of the first target attribute of the target intelligent household device and the target value of the second target attribute of the target intelligent household device carried by the target control instruction, the intelligent household device control apparatus may issue the target control instruction to the target intelligent household device.
After the target smart home devices receive the target control command, although business logic constraints exist between other values (which are different from the target value) of the second target attribute and other attributes, no business logic constraint exists between the target value of the second target attribute and the current value of each first target attribute, and the adjustment of the value of the second target attribute is not affected by any other attribute.
According to the embodiment of the invention, the target control instruction is sent to the target intelligent household equipment under the condition that the target business logic constraint does not exist between the current value of the first target attribute of the target intelligent household equipment and the target value of the second target attribute of the target intelligent household equipment carried by the target control instruction, so that the target intelligent household equipment can be determined to execute the target control instruction more quickly and accurately without any business logic constraint, the efficiency of controlling the target intelligent household equipment can be improved, and the user experience is improved.
Based on the content of any of the above embodiments, after receiving the target control instruction sent by the user equipment, the method further includes: and under the condition that target business logic constraint exists between the current value of the first target attribute of the target intelligent household equipment and the target value of the second target attribute of the target intelligent household equipment carried by the target control instruction and the value of the first target attribute is not allowed to be adjusted, returning a target execution result of the target control instruction to the user equipment.
And the target execution result is used for indicating the execution failure of the target control instruction.
Specifically, after determining that there is a business logic constraint between the current value of the first target attribute of the target smart home device and the target value of the second target attribute of the target smart home device, it may be further determined whether to allow the smart home device control apparatus to automatically adjust the value of the first target attribute based on the name of the first target attribute to ensure that the value of the second target attribute is successfully adjusted from the current value to the target value.
For any first target attribute, if the intelligent household appliance control device is not allowed to automatically adjust the value of the first target attribute, it may be determined that the adjustment of the value of the first target attribute is not allowed.
After determining that the value of the first target attribute is not allowed to be adjusted, the intelligent home device control apparatus may return a target execution result indicating that the target control instruction execution fails to the user device, to prompt the user that the target control instruction execution fails, without issuing the target control instruction to the intelligent home device.
It can be understood that, in the case that the intelligent home device control apparatus is not allowed to automatically adjust the value of the first target attribute, even if the target control instruction is issued to the intelligent home device, the intelligent home device executes the target control instruction, and the process of adjusting the value of the second target attribute from the current value to the target value cannot be executed or fails to be executed due to the influence of other attributes due to the business logic constraint, so that the adjustment of the value of the second target attribute from the current value to the target value cannot be achieved, and therefore, the target control instruction does not need to be issued to the intelligent home device, thereby avoiding the damage of the intelligent home device caused by the failure to execute the target control instruction, the failure in executing the target control instruction, or the repeated attempts to execute the target control instruction, and prolonging the service life of the intelligent home device.
Optionally, when the target execution result of the target control instruction is returned to the user equipment, the reason of the execution failure of the target control instruction may also be returned together. The reason for the failure of the target control instruction execution, i.e. the target business logic constraints.
According to the embodiment of the invention, under the conditions that the target service logic constraint exists between the current value of the first target attribute of the target intelligent household equipment and the target value of the second target attribute of the target intelligent household equipment carried by the target control instruction and the value of the first target attribute is not allowed to be adjusted, the target execution result of the target control instruction is returned to the user equipment, and the target control instruction is not sent to the intelligent household equipment, so that the damage of the intelligent household equipment caused by the reason that the target control instruction cannot be executed, the target control instruction is failed to be executed or the target control instruction is repeatedly tried to be executed and the like can be avoided, the service life of the intelligent household equipment can be prolonged, the user can know the execution failure of the target control instruction more timely, and the user experience is improved.
Based on the content of any of the foregoing embodiments, determining, based on the constraint list, that there is a target business logic constraint between the current value of the first target attribute of the target intelligent home device and the target value of the second target attribute of the target intelligent home device carried by the target control instruction, and allowing the value of the first target attribute to be adjusted includes: the list of constraints is queried based on the current value of the first target attribute and the target value of the second target attribute.
Specifically, the constraint list may be queried based on the current value of the first target attribute and the target value of the second target attribute, and whether a business logic constraint exists between the current value of the first target attribute of the target intelligent home device and the target value of the second target attribute of the target intelligent home device may be determined.
If the constraint list stores a business logic constraint between a current value of a first target attribute of the target intelligent home device and a target value of a second target attribute of the target intelligent home device, it may be determined that the target business logic constraint exists.
If the constraint list does not store the business logic constraint between the current value of the first target attribute of the target intelligent household device and the target value of the second target attribute of the target intelligent household device, it may be determined that the target business logic constraint does not exist.
And under the condition that a target service logic constraint exists between a current value of a first target attribute of the target intelligent household equipment and a target value of a second target attribute of the target intelligent household equipment carried by the target control command in the constraint list, querying the constraint list based on the first target attribute.
Specifically, after determining that the target business logic constraint exists, the constraint list may be queried based on the first target attribute to determine whether to allow adjustment of the value of the first target attribute.
A value is determined that allows adjustment of the first target property.
Specifically, based on the first target attribute, the constraint list is queried, and the value of the automatic execution identifier autoFlag of the first target attribute is obtained.
If the automatic execution of the first target attribute identifies autoFlag = True, indicating that the value of the first target attribute is allowed to be adjusted; autoFlag = False, indicating that the value of the first target attribute is not allowed to be adjusted.
According to the embodiment of the invention, the constraint list is inquired based on the current value of the first target attribute and the target value of the second target attribute, under the condition that the constraint list has the target business logic constraint between the current value of the first target attribute of the target intelligent household equipment and the target value of the second target attribute of the target intelligent household equipment carried by the target control instruction, the constraint list is inquired based on the first target attribute, the value of the first target attribute which is allowed to be adjusted is determined, the target control instruction executed by the intelligent household equipment can be more conveniently and accurately determined, and the process of adjusting the target value of the second target attribute from the current value is determined, whether the value of the second target attribute cannot be adjusted from the current value to the target value due to the business logic constraint or the influence of other attributes, so that the successful execution of the target control instruction can be ensured, the success rate of controlling the target intelligent household equipment can be improved and the user experience can be improved by issuing the first instruction to the intelligent household equipment and timely removing the target business logic constraint.
Based on the content of any of the foregoing embodiments, in a case that there is a target business logic constraint between a current value of a first target attribute of a target intelligent home device and a target value of a second target attribute of the target intelligent home device carried by a target control instruction, and the value of the first target attribute is allowed to be adjusted, before sending the first instruction to the target intelligent home device, the method further includes: and establishing a constraint list based on the business logic of the target intelligent household equipment.
Specifically, before step 102, the intelligent home device control apparatus may obtain, in advance, each service logic constraint of the target intelligent home device according to the service logic of the target intelligent home device or the intelligent home device of the same model as the target intelligent home device.
After obtaining the business logic constraints of the target intelligent home device, a constraint list describing business logic constraints between the value of the second target attribute of the target intelligent home device and other attributes of the target intelligent home device and whether to allow adjustment of the value of the first target attribute may be established based on the business logic constraints of the target intelligent home device.
The embodiment of the invention establishes the constraint list based on the service logic of the target intelligent household equipment, thereby more conveniently and accurately determining the target control instruction executed by the intelligent household equipment based on the constraint list, and whether the process of adjusting the value of the second target attribute from the current value to the target value cannot be executed or fails to execute due to the fact that the service logic constraint exists and the target value is influenced by other attributes, so that the value of the second target attribute cannot be adjusted from the current value to the target value, thereby issuing the first instruction to the intelligent household equipment, timely removing the target service logic constraint, ensuring the successful execution of the target control instruction, improving the success rate of controlling the target intelligent household equipment and improving the user experience.
In order to facilitate understanding of the above-described embodiments of the present invention, a flow of controlling the target smart home device will be described below with reference to fig. 5.
As shown in fig. 5, the process of controlling the target smart home device may include the following steps:
step1: a constraint list constraint List is predefined at the cloud platform.
Step2: when a user issues an instruction (through APP, voice, touch screen and other modes), the attribute P of the device D is required to be set 0 Is taken from v 0 Becomes v k In time, the cloud platform first queries the attribute P 0 The constraintFlag field of (1). If constraintFlag = False, it indicates that there is no P and P 0 Related constraint (refers to property P) 0 Not constrained by service logic), the cloud platform issues a control instruction to the device D according to the user requirement, and sends the attribute P 0 Is set as v k The control flow is finished; otherwise, step3 is executed downward.
Step3: the cloud platform queries the constraintList, and obtains the ConsistentList and the P 0 Associated business logic constraints including P 0 As constraints for the "current property" and the "constrained property".
Step4: if there is a restriction "will P 0 Is set as v k "business logic constraints, e.g. P 0 Unsettable (i.e. writeable = False) or P 0 The valuables do not contain v k And the cloud platform needs to traverse the business logic constraints one by one. If all the constrained auto flag = True, step5 is executed downwards; otherwise, the current state of the equipment is described as incapable of realizing the user instruction, the instruction issuing failure and the specific failure reason are fed back to the user, and the control flow is ended.
Step5: for each constraint "will P 0 Is set as v k And the service logic constraint of auto flag = True, the cloud platform automatically issues an instruction to the device D one by one, and the device state is adjusted to allow the P to be adjusted 0 Is set as v k (ii) a And the updated equipment state is sent to control terminals such as a mobile phone APP.
Step6: after the equipment state adjustment is completed, the cloud platform sends a control instruction to the equipment D, and sends the P 0 Value v k . If there is no current attribute containing P 0 And the current value is v k Business logic constraint of (2), account for P 0 Value v k The other attributes are not influenced, and the control flow is finished; otherwise, step7 is executed downward.
Step7: after the cloud platform receives the instruction execution success feedback fed back by the device D, the cloud platform contains P according to the current attribute 0 And the current value is v k The business logic constraint of the mobile phone is realized, the state of the affected attribute is automatically updated, the updated equipment state data is sent to the control end such as the mobile phone APP, and the control process is finished.
It is understood that the cloud platform is an intelligent home appliance control device.
In Step2, a user issues an instruction, namely the user sends the instruction to the intelligent household equipment control device through user equipment, wherein the instruction is a target control instruction; a device D which is a target intelligent household device; attribute P 0 Is a second target attribute; v. of 0 As an attribute P 0 Current value of v k Is attribute P 0 The target value of (a); and the cloud platform issues a control instruction to the equipment D according to the user requirement, and the cloud platform issues a target control instruction to the equipment D.
In Step4, "will P" is restricted 0 Is set as v k "the business logic constraint is a target business logic constraint.
In Step5, the cloud platform automatically issues the instructions to the device D one by one, which are the first instructions. Device state adjustment to allow P 0 Is set as v k The target business logic constraints can be lifted.
In Step6, the control instruction issued by the cloud platform to the device D is a target control instruction.
In order to facilitate understanding of the above embodiments of the present invention, the following describes a control flow of the smart home device by way of an example.
In one particular climate control scenario, assume that the current ambient temperature in the user's home is 30 ℃. The target intelligent household equipment is an air conditioner, and the cloud platform is an intelligent household equipment control device.
The business logic constraints related to the present scenario include the following 2:
when the value of the switch attribute on of the air conditioner is False (indicating shutdown), the mode attribute mode and the target temperature attribute targetTemp of the air conditioner are not readable and can not be set;
when the mode attribute mode of the air conditioner takes a value of 3 (indicating ventilation) or 4 (indicating dehumidification), the target temperature attribute targetTemp is not settable.
The two business logic constraints are shown in table 1.
Table 1 business logic constraint list
Figure BDA0003178118170000201
The method comprises the following specific steps:
step1: and establishing a constraint list constraintList of the air-conditioning equipment on the cloud platform.
And 2, step: and the air conditioning equipment sends an online notification to the cloud platform and registers the online notification to the cloud platform.
And 3, step3: the air conditioner reports the state data, and the current working mode of the air conditioner is assumed to be ventilation, namely mode =3.
And 4, step4: after receiving the state data reported by the air conditioner, the cloud platform queries the constraintList, updates the state of the air conditioning equipment, sets the writeable of the target temperature attribute targetTemp to False, and sends the state data of the air conditioning equipment to the APP.
And 5: and the APP updates the air conditioner control interface and forbids the function of setting the target temperature.
And 6: and the user issues a target control instruction through the APP, and the room temperature is reduced to 24 ℃.
And 7: the cloud platform queries a target temperature attribute targetTemp of the air conditioner, and finds constraintFlag = True of the attribute.
And 8: the cloud platform queries the constraintList to obtain 2 logical constraints associated with the targetTemp. The air conditioner belongs to a starting working state, and the constraint 1 is not established; according to the constraint 2, in the case where it is determined that the current mode =3, the target temperature is not allowed to be set.
And step 9: the cloud platform further queries to find autoFlag = True for constraint 2. Next, the cloud platform issues an instruction to the air conditioner to switch the mode from ventilation to cooling, i.e., mode =1.
Step 10: and the air conditioner receives the control instruction, completes mode switching and reports an execution result.
Step 11: and the cloud platform receives the execution result reported by the air conditioner, determines that the logic constraint 2 is not satisfied, updates the air conditioner state, sets the writeable of the targetTemp attribute to True, and sends the air conditioner state data to the APP.
Step 12: and the cloud platform issues a control instruction to the air conditioner, and the target temperature targetTemp is set to 24 degrees.
Step 13: and the APP updates the air conditioner control interface and starts the function of setting the target temperature.
The following describes the intelligent home appliance control apparatus provided by the present invention, and the intelligent home appliance control apparatus described below and the intelligent home appliance control method described above may be referred to in correspondence with each other.
Fig. 6 is a schematic structural diagram of an intelligent household appliance control device according to an embodiment of the present invention. Based on the content of any of the above embodiments, as shown in fig. 6, the apparatus includes an instruction receiving module 601, a constraint processing module 602, and an instruction sending module 603, where:
an instruction receiving module 601, configured to receive a target control instruction sent by a user equipment;
a constraint processing module 602, configured to send a first instruction to a target intelligent home device to adjust a current value of a first target attribute and remove a target service logic constraint when a target service logic constraint exists between the current value of the first target attribute of the target intelligent home device and a target value of a second target attribute of the target intelligent home device carried by a target control instruction and the value of the first target attribute is allowed to be adjusted;
and the instruction sending module 603 is configured to send a target control instruction to the target intelligent home device when the target service logic constraint is removed.
Specifically, the instruction receiving module 601, the constraint processing module 602, and the instruction transmitting module 603 are electrically connected in sequence.
When the user needs to control the target intelligent household device, the user can send a target control instruction to the intelligent household device control device through the user device. The intelligent home appliance control device may receive the target control command through the command receiving module 601.
The constraint processing module 602 may determine whether a process of executing a target control command by the smart home device and adjusting the value of the second target attribute from the current value to the target value due to the business logic constraint is affected by other attributes, and the process cannot be executed or the execution fails, so that the adjustment of the value of the second target attribute from the current value to the target value cannot be achieved.
If business logic constraint exists between the current value of some other attributes of the target smart home device and the target value of the second target attribute of the target smart home device, the constraint processing module 602 may determine that the target smart home device executes the target control command, and the process of adjusting the value of the second target attribute from the current value to the target value may be affected by other attributes due to the business logic constraint, and the target control command cannot be executed or fails to be executed, so that it is impossible to adjust the value of the second target attribute from the current value to the target value.
After determining that there is a business logic constraint between the current value of the first target attribute of the target intelligent home device and the target value of the second target attribute of the target intelligent home device, the constraint processing module 602 may further determine whether to allow the intelligent home device control apparatus to automatically adjust the value of the first target attribute based on the name of the first target attribute to ensure that the value of the second target attribute is successfully adjusted from the current value to the target value.
After determining that the intelligent home device control apparatus is allowed to automatically adjust the value of the first target property, the constraint processing module 602 may transmit a first instruction to the target intelligent home device.
After the target service logic constraint is released, the instruction sending module 603 may issue a target control instruction to the target intelligent home device, so that the target intelligent home device executes the target control instruction.
Optionally, the constraint processing module 602 may include:
the determining submodule is used for determining the current value of the first target attribute of the target intelligent household equipment based on a preset constraint list under the condition that the second target attribute is constrained by service logic, wherein target service logic constraint exists between the current value of the first target attribute of the target intelligent household equipment and the target value of the second target attribute of the target intelligent household equipment carried by the target control instruction, and the value of the first target attribute is allowed to be adjusted;
wherein the constraint list is used for describing business logic constraints between the values of the second target attribute of the target intelligent household device and other attributes of the target intelligent household device, and whether the values of the first target attribute are allowed to be adjusted.
Optionally, the constraint processing module 602 is further configured to send a target control instruction to the target smart home device if the second target attribute is not constrained by the service logic.
Optionally, the constraint processing module 602 is further configured to send the target control instruction to the target intelligent home device when there is no target service logic constraint between the current value of the first target attribute of the target intelligent home device and the target value of the second target attribute of the target intelligent home device carried by the target control instruction.
Optionally, the constraint processing module 602 is further configured to return a target execution result of the target control instruction to the user equipment when a target service logic constraint exists between a current value of the first target attribute of the target intelligent home device and a target value of the second target attribute of the target intelligent home device carried by the target control instruction and the value of the first target attribute is not allowed to be adjusted;
and the target execution result is used for indicating the execution failure of the target control instruction.
Optionally, the determining sub-module may include:
a first querying unit configured to query the constraint list based on a current value of the first target attribute and a target value of the second target attribute;
a second query unit, configured to query the constraint list based on the first target attribute when a target service logic constraint exists in the constraint list between a current value of the first target attribute of the target intelligent home device and a target value of a second target attribute of the target intelligent home device carried by the target control instruction;
a determination unit for determining a value allowing adjustment of the first target property.
Optionally, the intelligent household appliance control device may further include:
and the list establishing module is used for establishing a constraint list based on the service logic of the target intelligent household equipment.
The intelligent household device control apparatus provided in the embodiment of the present invention is configured to execute the intelligent household device control method according to the present invention, and the implementation manner of the intelligent household device control apparatus is consistent with that of the intelligent household device control method provided in the present invention, and the same beneficial effects can be achieved, and details are not repeated here.
The intelligent household appliance control device is used for the intelligent household appliance control method of the foregoing embodiments. Therefore, the descriptions and definitions in the intelligent home device control method in the foregoing embodiments may be used for understanding the execution modules in the embodiments of the present invention.
According to the embodiment of the invention, under the condition that the target business logic constraint exists between the current value of the first target attribute of the target intelligent household equipment and the target value of the second target attribute of the target intelligent household equipment carried by the target control instruction and the adjustment of the value of the first target attribute is allowed, the first instruction is sent to the target intelligent household equipment, so that the target intelligent household equipment executes the first instruction, adjusts the current value of the first target attribute, the target business logic constraint is removed, and after the target business logic constraint is removed, the target control instruction is sent to the target intelligent household equipment, so that the target intelligent household equipment executes the target control instruction, the successful execution of the target control instruction can be ensured, the success rate of controlling the target intelligent household equipment can be improved, and the user experience is improved.
Fig. 7 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 7: a processor (processor) 710, a communication Interface (Communications Interface) 720, a memory (memory) 730, and a communication bus 740, wherein the processor 710, the communication Interface 720, and the memory 730 communicate with each other via the communication bus 740. The processor 710 may invoke logic instructions stored in the memory 730 and executable on the processor 710 to perform the intelligent home device control method provided by the above-described method embodiments, the method comprising: receiving a target control instruction sent by user equipment; under the condition that a target business logic constraint exists between a current value of a first target attribute of the target intelligent household equipment and a target value of a second target attribute of the target intelligent household equipment carried by a target control instruction and the value of the first target attribute is allowed to be adjusted, sending a first instruction to the target intelligent household equipment to adjust the current value of the first target attribute and remove the target business logic constraint; and under the condition that the target service logic constraint is removed, sending a target control instruction to the target intelligent household equipment.
In addition, the logic instructions in the memory 730 can be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The processor 710 in the electronic device provided in the embodiment of the present invention may call the logic instruction in the memory 730, and the implementation manner of the electronic device is consistent with the implementation manner of the intelligent home device control method provided in the present invention, and the same beneficial effects may be achieved, which is not described herein again.
In another aspect, an embodiment of the present invention further provides a computer program product, where the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer, the computer can execute the intelligent home device control method provided by the above-mentioned method embodiments, where the method includes: receiving a target control instruction sent by user equipment; under the conditions that target business logic constraint exists between a current value of a first target attribute of target intelligent household equipment and a target value of a second target attribute of the target intelligent household equipment carried by a target control instruction and the value of the first target attribute is allowed to be adjusted, sending a first instruction to the target intelligent household equipment to adjust the current value of the first target attribute and remove the target business logic constraint; and under the condition that the target service logic constraint is removed, sending a target control instruction to the target intelligent household equipment.
When the computer program product provided by the embodiment of the present invention is executed, the method for controlling an intelligent home device is implemented, and the specific implementation manner of the method is consistent with the implementation manner described in the embodiment of the foregoing method, and the same beneficial effects can be achieved, and details are not described herein again.
In yet another aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to perform the intelligent home device control method provided in the foregoing embodiments, the method including: receiving a target control instruction sent by user equipment; under the conditions that target business logic constraint exists between a current value of a first target attribute of target intelligent household equipment and a target value of a second target attribute of the target intelligent household equipment carried by a target control instruction and the value of the first target attribute is allowed to be adjusted, sending a first instruction to the target intelligent household equipment to adjust the current value of the first target attribute and remove the target business logic constraint; and under the condition that the target business logic is restrained and released, sending a target control instruction to the target intelligent household equipment.
When the computer program stored on the non-transitory computer-readable storage medium provided in the embodiment of the present invention is executed, the method for controlling an intelligent home device is implemented, and a specific implementation manner of the method is consistent with the implementation manner described in the embodiment of the foregoing method, and the same beneficial effects can be achieved, which is not described herein again.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. Based on the understanding, the above technical solutions substantially or otherwise contributing to the prior art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the various embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, and not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. An intelligent household device control method, comprising:
receiving a target control instruction sent by user equipment;
under the condition that a target business logic constraint exists between the current value of the first target attribute of the target intelligent household equipment and the target value of the second target attribute of the target intelligent household equipment carried by the target control instruction and the value of the first target attribute is allowed to be adjusted, sending a first instruction to the target intelligent household equipment to adjust the current value of the first target attribute and remove the target business logic constraint;
and sending the target control instruction to the target intelligent household equipment under the condition that the target business logic constraint is removed.
2. The intelligent home device control method according to claim 1, wherein determining that there is a target business logic constraint between a current value of a first target attribute of the target intelligent home device and a target value of a second target attribute of the target intelligent home device carried by the target control instruction, and allowing adjustment of the value of the first target attribute comprises:
under the condition that the second target attribute is constrained by service logic, determining the current value of the first target attribute of the target intelligent household equipment based on a preset constraint list, wherein the target service logic constraint exists between the current value of the first target attribute of the target intelligent household equipment and the target value of the second target attribute of the target intelligent household equipment carried by the target control instruction, and the value of the first target attribute is allowed to be adjusted;
wherein the constraint list is used to describe business logic constraints between the value of the second target attribute of the target intelligent home device and other attributes of the target intelligent home device, and whether to allow adjustment of the value of the first target attribute.
3. The intelligent home device control method according to claim 1, wherein after receiving the target control instruction sent by the user device, the method further comprises:
and sending the target control instruction to the target intelligent household equipment under the condition that the second target attribute is not restricted by service logic.
4. The intelligent household appliance control method according to claim 1, wherein after receiving the target control instruction sent by the user equipment, the method further comprises:
and sending the target control instruction to the target intelligent household equipment under the condition that target business logic constraint does not exist between the current value of the first target attribute of the target intelligent household equipment and the target value of the second target attribute of the target intelligent household equipment carried by the target control instruction.
5. The intelligent household appliance control method according to any one of claims 1 to 4, wherein after receiving the target control instruction sent by the user equipment, the method further comprises:
under the condition that a target service logic constraint exists between the current value of the first target attribute of the target intelligent household equipment and the target value of the second target attribute of the target intelligent household equipment carried by the target control instruction and the value of the first target attribute is not allowed to be adjusted, returning a target execution result of the target control instruction to the user equipment;
and the target execution result is used for indicating that the target control instruction fails to execute.
6. The intelligent home device control method according to claim 2, wherein the determining, based on the constraint list, a current value of a first target attribute of the target intelligent home device, and a target business logic constraint between a target value of a second target attribute of the target intelligent home device carried by the target control instruction, and allowing adjustment of the value of the first target attribute comprises:
querying the constraint list based on the current value of the first target attribute and the target value of the second target attribute;
under the condition that a target service logic constraint exists between a current value of a first target attribute of the target intelligent household equipment and a target value of a second target attribute of the target intelligent household equipment carried by the target control instruction in the constraint list, querying the constraint list based on the first target attribute;
determining a value that allows adjustment of the first target property.
7. The intelligent home device control method according to claim 2 or 6, wherein in a case where a target business logic constraint exists between a current value of a first target attribute of the target intelligent home device and a target value of a second target attribute of the target intelligent home device carried by the target control instruction and the adjustment of the value of the first target attribute is allowed, the method further comprises:
and establishing the constraint list based on the business logic of the target intelligent household equipment.
8. An intelligent home appliance control apparatus, comprising:
the instruction receiving module is used for receiving a target control instruction sent by user equipment;
a constraint processing module, configured to send a first instruction to the target intelligent home device to adjust a current value of a first target attribute and remove a target service logic constraint when a target service logic constraint exists between the current value of the first target attribute of the target intelligent home device and a target value of a second target attribute of the target intelligent home device carried by the target control instruction and the value of the first target attribute is allowed to be adjusted;
and the instruction sending module is used for sending the target control instruction to the target intelligent household equipment under the condition that the target service logic constraint is removed.
9. An electronic device comprising a memory, a processor and a computer program stored on said memory and executable on said processor, characterized in that said processor, when executing said program, carries out the steps of the intelligent home device control method according to any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the intelligent home device control method according to any one of claims 1 to 7.
CN202110838683.8A 2021-07-23 2021-07-23 Intelligent household equipment control method and device, electronic equipment and storage medium Pending CN115685769A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110838683.8A CN115685769A (en) 2021-07-23 2021-07-23 Intelligent household equipment control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110838683.8A CN115685769A (en) 2021-07-23 2021-07-23 Intelligent household equipment control method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115685769A true CN115685769A (en) 2023-02-03

Family

ID=85044343

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110838683.8A Pending CN115685769A (en) 2021-07-23 2021-07-23 Intelligent household equipment control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115685769A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108549246A (en) * 2018-05-16 2018-09-18 海尔优家智能科技(北京)有限公司 Control method, apparatus, equipment and the readable storage medium storing program for executing of household electrical appliances operating status
US20190098113A1 (en) * 2017-09-27 2019-03-28 Johnson Controls Technology Company Web services platform with integration and interface of smart entities with enterprise applications
CN111880446A (en) * 2020-07-20 2020-11-03 海尔优家智能科技(北京)有限公司 Control instruction sending method and control instruction receiving method
CN112422380A (en) * 2020-11-18 2021-02-26 青岛海尔科技有限公司 Target device control method and device, storage medium and electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190098113A1 (en) * 2017-09-27 2019-03-28 Johnson Controls Technology Company Web services platform with integration and interface of smart entities with enterprise applications
CN108549246A (en) * 2018-05-16 2018-09-18 海尔优家智能科技(北京)有限公司 Control method, apparatus, equipment and the readable storage medium storing program for executing of household electrical appliances operating status
CN111880446A (en) * 2020-07-20 2020-11-03 海尔优家智能科技(北京)有限公司 Control instruction sending method and control instruction receiving method
CN112422380A (en) * 2020-11-18 2021-02-26 青岛海尔科技有限公司 Target device control method and device, storage medium and electronic device

Similar Documents

Publication Publication Date Title
CN105588299B (en) A kind of control method and control device of VRF Air Conditioning System
WO2020206693A1 (en) Smart home scheduling method, apparatus and system, server and storage medium
CN108549246B (en) Method, device and equipment for controlling running state of household appliance and readable storage medium
CN109257259A (en) Scene inter-linked controlling method, device and household appliance
WO2015085724A1 (en) Smart furniture control method, control system and remote server
CN110515307B (en) Method for controlling intelligent household equipment and network equipment
US20140165160A1 (en) Method and apparatus for controlling access between home device and external server in home network system
CN106161151B (en) A kind of control method and equipment of smart home
CN107807965B (en) Operation control method, resource sharing apparatus, and computer-readable storage medium
CN109373542A (en) Multi-split air conditioner and its control method, device and computer readable storage medium
CN111770156B (en) Linkage control method and device and computer readable storage medium
CN104456851A (en) Control system, method, unit, terminal and domestic electric appliance for indoor air quality
US20220022022A1 (en) Device discovery method and apparatus, control terminal, and internet of things auxiliary device
CN110531633A (en) Cooperative control method and device, storage medium based on smart home operating system
CN113485134A (en) Device control method and apparatus, storage medium, and electronic device
JP2021103888A (en) Notification control device, notification control system, notification control method, and program
CN111538250A (en) Control method of household appliance, electronic device and computer readable storage medium
CN105426212B (en) Dynamic updating method and device for virtual equipment composition
CN107770009B (en) Control device, method, storage medium and equipment
CN106161164B (en) Method and system for controlling household appliances by mobile terminal
CN110864406A (en) Intelligent air conditioner and intelligent air conditioner control method
CN115685769A (en) Intelligent household equipment control method and device, electronic equipment and storage medium
CN104730977A (en) Method for storing and reading capacity code of air conditioner and air conditioner
CN109828475A (en) The inter-linked controlling method of treadmill and air-conditioning, device, storage medium and server
CN108134720B (en) Equipment self-adaptive control method and device and server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination