CN117749843A - Scene triggering method and device, storage medium and electronic device - Google Patents

Scene triggering method and device, storage medium and electronic device Download PDF

Info

Publication number
CN117749843A
CN117749843A CN202211145107.6A CN202211145107A CN117749843A CN 117749843 A CN117749843 A CN 117749843A CN 202211145107 A CN202211145107 A CN 202211145107A CN 117749843 A CN117749843 A CN 117749843A
Authority
CN
China
Prior art keywords
scene
triggering
condition
environment information
execution
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
CN202211145107.6A
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
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing 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, Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202211145107.6A priority Critical patent/CN117749843A/en
Publication of CN117749843A publication Critical patent/CN117749843A/en
Pending legal-status Critical Current

Links

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

  • Telephone Function (AREA)

Abstract

The application discloses a triggering method and device of a scene, a storage medium and an electronic device, and relates to the technical field of smart families, wherein the triggering method of the scene comprises the following steps: receiving first environment information reported by first equipment; acquiring historical environment information reported by first equipment under the condition that the first environment information meets the triggering condition of a first scene, wherein the historical environment information is the first environment information reported by the first equipment last time; determining whether the historical environmental information meets a trigger condition of the first scene; under the condition that the historical environment information does not meet the triggering condition of the first scene, triggering and executing the first scene, by adopting the technical scheme, the problems that the equipment frequently reports the attribute state, the intelligent scene execution is triggered continuously and repeatedly and the like are solved.

Description

Scene triggering method and device, storage medium and electronic device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and apparatus for triggering a scene, a storage medium, and an electronic apparatus.
Background
With the development of the capability of the internet of things, a user creates an intelligent scene at an APP end, intelligent scene data is synchronized to an independent intelligent device gateway device in the user home by a scene center after being processed by the scene center in the cloud service of the internet of things, and the user can set different conditions to trigger intelligent scene execution.
In the prior art, a certain state of a device is used as a trigger condition of a scene, and when the condition is met, the scene is executed, so that command control is performed on a target device. When the scene triggering condition is more than, less than or equal to the judging condition, the equipment reports the attribute state frequently, so that scene execution is performed continuously and repeatedly, a user is easy to take the scene triggering condition as service failure, and bad experience is caused.
Aiming at the problems that in the related art, equipment frequently reports attribute states, intelligent scene execution is triggered continuously and repeatedly, and the like, no effective solution is proposed yet.
Disclosure of Invention
The embodiment of the application provides a scene triggering method and device, a storage medium and an electronic device, which at least solve the problems that in the related technology, equipment frequently reports attribute states, continuous and repeated triggering of intelligent scene execution occurs, and the like.
According to an embodiment of the present application, there is provided a method for triggering a scene, including: receiving first environment information reported by first equipment; acquiring historical environment information reported by first equipment under the condition that the first environment information meets the triggering condition of a first scene, wherein the historical environment information is the first environment information reported by the first equipment last time; determining whether the historical environmental information meets a trigger condition of the first scene; and triggering and executing the first scene under the condition that the historical environment information does not meet the triggering condition of the first scene.
In an exemplary embodiment, before acquiring the historical environmental information reported by the first device, the method further includes: acquiring an execution record of the first scene, wherein the execution record is used for indicating a historical execution record in the condition of starting the first scene; determining the execution times of the first scene according to the execution record, and determining the magnitude relation between the execution times and a preset threshold; and determining whether to acquire the historical environment information reported by the first equipment according to the size relation.
In an exemplary embodiment, determining whether to acquire the historical environment information reported by the first device according to the size relationship includes: acquiring historical environment information reported by the first equipment under the condition that the size relation indicates that the execution times are larger than the preset threshold value; and under the condition that the size relation indicates that the execution times are equal to the preset threshold value, prohibiting to acquire the historical environment information reported by the first equipment, and triggering to execute the first scene.
In an exemplary embodiment, in triggering execution of the first scenario, the method further comprises: determining whether a second scene being executed exists in a target area in which the first device is located; determining second scene information of a second scene being executed in the target area, wherein the second scene information includes: third device information of a third device, and a second execution action of the third device; acquiring first scene information of the first scene, wherein the first scene information comprises: second device information of a second device, a first execution action of the second device; and determining whether to send a control instruction to the second device according to the second device information, the first execution action, the third device information and the second execution action, wherein the control instruction is used for indicating the second device to execute the first execution action.
In an exemplary embodiment, determining whether to send a control instruction to the second device according to the second device information, the first performed action, the third device information, and the second performed action includes: determining whether the first execution action and the second execution action are opposite execution actions in the case that the second device information is consistent with the third device information; and prohibiting the transmission of the control instruction to the second device when the first execution action and the second execution action are opposite execution actions.
In an exemplary embodiment, before determining whether the first environmental information satisfies the trigger condition of the first scenario, the method further includes: acquiring an operation instruction of a target object for creating the first scene; determining a plurality of trigger conditions of the first scene according to the operation instruction, and determining whether the trigger conditions have conflict or not; and under the condition that the triggering conditions conflict, sending prompt information to the terminal equipment of the target object so that the target object adjusts the triggering conditions of the first scene according to the prompt information.
In an exemplary embodiment, after determining whether the first environmental information satisfies a trigger condition of a first scene, the method further includes: acquiring second environment information reported by the first equipment and determining whether the second environment information meets the triggering condition of the first scene or not under the condition that the first environment information does not meet the triggering condition of the first scene; and triggering and executing the first scene under the condition that the second environment information meets the triggering condition of the first scene.
According to another embodiment of the embodiments of the present application, there is also provided a triggering device of a scene, including: the receiving module is used for receiving the first environment information reported by the first equipment; the acquisition module is used for acquiring the historical environment information reported by the first equipment under the condition that the first environment information meets the triggering condition of the first scene, wherein the historical environment information is the first environment information reported by the first equipment last time; the determining module is used for determining whether the historical environment information meets the triggering condition of the first scene; and the triggering module is used for triggering and executing the first scene under the condition that the historical environment information does not meet the triggering condition of the first scene.
According to a further aspect of the embodiments of the present application, there is also provided a computer readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the triggering method of the above scenario when running.
According to still another aspect of the embodiments of the present application, there is further provided an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the method for triggering a scene described above through the computer program.
In the embodiment of the application, first environment information reported by first equipment is received; acquiring historical environment information reported by first equipment under the condition that the first environment information meets the triggering condition of a first scene, wherein the historical environment information is the first environment information reported by the first equipment last time; determining whether the historical environmental information meets a trigger condition of the first scene; triggering execution of the first scene under the condition that the historical environment information does not meet the triggering condition of the first scene; by adopting the technical scheme, the problems that the equipment frequently reports the attribute state, the execution of the intelligent scene is triggered continuously and repeatedly are solved, and the like are solved; the first scene is triggered only when the historical environment information does not accord with the triggering condition, so that the first scene can be accurately triggered, and the problem that the first scene triggers multiple executions due to a mechanism of frequently reporting the attribute state by the equipment is avoided.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic diagram of a hardware environment of a triggering method of a scenario according to an embodiment of the present application;
FIG. 2 is a flow chart of a method of triggering a scenario according to an embodiment of the present application;
FIG. 3 is a flow chart of a method of triggering a scenario according to an alternative embodiment of the present application;
FIG. 4 is a block diagram of the triggering device of one scenario in accordance with an embodiment of the present application;
fig. 5 is a block diagram (two) of the structure of a trigger device of a scenario according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiment of the application, a method for triggering a scene is provided. The triggering method of the scene is widely applied to full-house intelligent digital control application scenes such as intelligent Home (Smart Home), intelligent Home equipment ecology, intelligent Home (Intelligence House) ecology and the like. Alternatively, in the present embodiment, the triggering method of the above scenario may be applied to a hardware environment constituted by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be used to provide services (such as application services and the like) for a terminal or a client installed on the terminal, a database may be set on the server or independent of the server, for providing data storage services for the server 104, and cloud computing and/or edge computing services may be configured on the server or independent of the server, for providing data computing services for the server 104.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: a wide area network, a metropolitan area network, a local area network, and the wireless network may include, but is not limited to, at least one of: WIFI (Wireless Fidelity ), bluetooth. The terminal device 102 may not be limited to a PC, a mobile phone, a tablet computer, an intelligent air conditioner, an intelligent smoke machine, an intelligent refrigerator, an intelligent oven, an intelligent cooking range, an intelligent washing machine, an intelligent water heater, an intelligent washing device, an intelligent dish washer, an intelligent projection device, an intelligent television, an intelligent clothes hanger, an intelligent curtain, an intelligent video, an intelligent socket, an intelligent sound box, an intelligent fresh air device, an intelligent kitchen and toilet device, an intelligent bathroom device, an intelligent sweeping robot, an intelligent window cleaning robot, an intelligent mopping robot, an intelligent air purifying device, an intelligent steam box, an intelligent microwave oven, an intelligent kitchen appliance, an intelligent purifier, an intelligent water dispenser, an intelligent door lock, and the like.
In this embodiment, a method for triggering a scene is provided and applied to the computer terminal, and fig. 2 is a flowchart of a method for triggering a scene according to an embodiment of the present application, where the flowchart includes the following steps:
step S202, receiving first environment information reported by a first device;
it should be noted that, the first environmental information includes, but is not limited to: the temperature, humidity, presence or absence of a user, and air quality are not limited in this embodiment of the present invention.
It should be noted that the first device is one or more devices, which is not limited in this embodiment of the present invention.
Step S204, acquiring historical environment information reported by the first equipment under the condition that the first environment information meets the triggering condition of a first scene, wherein the historical environment information is the first environment information reported by the first equipment last time;
step S206, determining whether the historical environment information meets the triggering condition of the first scene;
step S208, triggering execution of the first scene in a case where the historical environment information does not satisfy the triggering condition of the first scene.
Through the steps, first environment information reported by the first equipment is received; acquiring historical environment information reported by first equipment under the condition that the first environment information meets the triggering condition of a first scene, wherein the historical environment information is the first environment information reported by the first equipment last time; determining whether the historical environmental information meets a trigger condition of the first scene; triggering and executing the first scene under the condition that the historical environment information does not meet the triggering condition of the first scene, so that the problems that in the related art, the equipment frequently reports attribute states, continuous and repeated triggering of intelligent scene execution and the like can occur are solved. The first scene is triggered only when the historical environment information does not accord with the triggering condition, so that the first scene can be accurately triggered, and the problem that the first scene triggers multiple executions due to a mechanism of frequently reporting the attribute state by the equipment is avoided.
It should be noted that, the environmental information of the target area corresponding to the first device may be determined by the first environmental information reported by the first device in the step S202, so that the first device may be one or more devices in the target area.
In an exemplary embodiment, before obtaining the historical environmental information reported by the first device, the method further includes: acquiring an execution record of the first scene, wherein the execution record is used for indicating a historical execution record in the condition of starting the first scene; determining the execution times of the first scene according to the execution record, and determining the magnitude relation between the execution times and a preset threshold; and determining whether to acquire the historical environment information reported by the first equipment according to the size relation.
It should be noted that, only in the case of opening the first scene, the first scene can be executed when the environment information is detected to satisfy the trigger condition; the preset threshold is "0". Therefore, under the condition that the history execution record is acquired, whether the first scene is executed for the first time is determined according to whether the execution times of the first scene is 0, and further whether the history environment information reported by the first equipment is acquired is determined.
In the actual solution, there may be a case of closing the first scene, when the first scene is closed, the execution record of the first scene is emptied, and when the first scene is opened next time, the execution record of the first scene is recorded again.
In an exemplary embodiment, determining whether to acquire the historical environment information reported by the first device according to the size relationship includes: acquiring historical environment information reported by the first equipment under the condition that the size relation indicates that the execution times are larger than the preset threshold value; and under the condition that the size relation indicates that the execution times are equal to the preset threshold value, prohibiting to acquire the historical environment information reported by the first equipment, and triggering to execute the first scene.
It can be appreciated that in an actual solution, there may be a case where the number of executions is greater than the preset threshold, or there may be a case where the number of executions is equal to the preset threshold; when the execution times are larger than the preset threshold value, determining that the first scene is triggered to be executed, so that the historical environment information reported by the first equipment is acquired at the moment, and determining whether to trigger the first scene according to whether the historical environment information meets the triggering condition; and determining that the first scene is triggered under the condition that the execution times are equal to the preset threshold value, and therefore, directly triggering the execution of the first scene under the condition that the first environment information meets the triggering condition.
For example, a scenario in which the cooling mode of the air conditioner is turned on at more than 25 ℃ is exemplified. When the first environmental information reported by the first device is 28 ℃, determining that the first environmental information meets the trigger condition of the first scene, determining whether the first scene has been triggered to execute after the first scene is started, and acquiring the historical environmental information reported by the first device to be 27 ℃ when the first scene is determined to be triggered to execute after the first scene is started, wherein the historical environmental information also meets the trigger condition, so that the first scene can be determined to have been triggered to execute, and the first scene is prevented from being repeatedly triggered to execute.
For example, a scenario in which the cooling mode of the air conditioner is turned on at more than 25 ℃ is exemplified. When the first environmental information reported by the first device is 28 ℃, determining that the first environmental information meets the triggering condition of the first scene, determining whether the first scene has been triggered to execute the first scene after the first scene is started, and acquiring the historical environmental information reported by the first device to be 24 ℃ when the first environmental information is determined to be triggered to execute the first scene after the first scene is started, wherein the historical environmental information does not meet the triggering condition, so that the first scene can be determined to be not triggered to execute, and the first scene is triggered to execute.
In an exemplary embodiment, the triggering process of executing the first scene further includes: determining whether a second scene being executed exists in a target area in which the first device is located; determining second scene information of a second scene being executed in the target area, wherein the second scene information includes: third device information of a third device, and a second execution action of the third device; acquiring first scene information of the first scene, wherein the first scene information comprises: second device information of a second device, a first execution action of the second device; and determining whether to send a control instruction to the second device according to the second device information, the first execution action, the third device information and the second execution action, wherein the control instruction is used for indicating the second device to execute the first execution action.
It can be understood that a plurality of scenes can be executed simultaneously in the target area, when the first scene is triggered to be executed, whether a second scene which is being executed exists at the moment is determined, if the second scene which is being executed exists in the target area, whether the execution action of the device corresponding to the first scene conflicts with the execution action of the device corresponding to the second scene is determined, and if the conflict exists, the triggering execution of the first scene is forbidden, so that the technical effect of reducing control instructions which frequently control the same device to execute the conflict can be achieved.
It should be noted that, in the case where the user does not set the priority of the scene in advance, the priority of the scene is determined according to the trigger time of the scene, that is, the earlier the trigger time of the scene, the higher the priority; in the case where the user sets the priority of the scene in advance, the priority of the scene is determined according to the priority set in advance by the user, and in the above embodiment, the user does not set the priorities of the first scene and the second scene in advance.
In an exemplary embodiment, determining whether to send a control instruction to the second device according to the second device information, the first performed action, the third device information, and the second performed action includes: determining whether the first execution action and the second execution action are opposite execution actions in the case that the second device information is consistent with the third device information; and prohibiting the transmission of the control instruction to the second device when the first execution action and the second execution action are opposite execution actions.
It can be understood that whether the device to be controlled in the first scene and the second scene is the same device is determined according to the second device information and the third device information, if the device to be controlled in the first scene and the second scene is the same device, whether the first execution action and the second execution action have conflict is determined, and if the conflict exists, the control instruction is forbidden to be sent to the device in the first scene.
Further, inserting the first execution action into the last of the scene execution sequence if the first execution action and the second execution action are opposite execution actions; before a control instruction is sent to the equipment in the first scene according to the first execution action, determining whether the second scene is closed, and sending the control instruction to the equipment in the first scene according to the first execution action under the condition that the second scene is closed.
In an exemplary embodiment, before determining whether the first environmental information meets the trigger condition of the first scenario, the method further includes: acquiring an operation instruction of a target object for creating the first scene; determining a plurality of trigger conditions of the first scene according to the operation instruction, and determining whether the trigger conditions have conflict or not; and under the condition that the triggering conditions conflict, sending prompt information to the terminal equipment of the target object so that the target object adjusts the triggering conditions of the first scene according to the prompt information.
That is, in the case of creating the first scene, a plurality of trigger conditions for triggering the first scene may be set, in the case of setting the plurality of trigger conditions, whether or not there is a conflict in the plurality of trigger conditions is determined, and in the case of a conflict in the plurality of trigger conditions, a reminder is issued to the target object so that the target object adjusts the trigger conditions of the first scene.
In an exemplary embodiment, after determining whether the first environment information meets the trigger condition of the first scene, the method further includes: acquiring second environment information reported by the first equipment and determining whether the second environment information meets the triggering condition of the first scene or not under the condition that the first environment information does not meet the triggering condition of the first scene; and triggering and executing the first scene under the condition that the second environment information meets the triggering condition of the first scene.
In order to better understand the process of the triggering method of the above scenario, the following description is further provided with reference to an optional embodiment to describe the implementation method flow of the triggering of the above scenario, but is not limited to the technical solution of the embodiment of the present application.
In this embodiment, a method for triggering a scene is provided, and fig. 3 is a flowchart of a method for triggering a scene according to an alternative embodiment of the present application, as shown in fig. 3, specifically including the following steps:
step S301: the user logs in the application, enters a scene function, configures a condition scene and opens the scene;
step S302: recording the last reported equipment condition state value as a history value;
step S303: monitoring a condition state value of the device;
step S304: monitoring whether the condition state value of the trigger device meets the trigger condition, and executing step S303 under the condition that the trigger condition is not met; executing step S305 in the case that the triggering condition is met;
step S305: determining whether the first trigger condition is satisfied, executing step S306 if the non-first trigger condition is satisfied, otherwise, executing step S308;
step S306: acquiring a historical value;
step S307: determining whether the history value meets the trigger condition, executing steps S303-S306 when the history value meets the trigger condition, and executing step S308 when the history value does not meet the trigger condition;
step S308: the scene is triggered.
According to the embodiment, when the trigger equipment meets the setting conditions, repeated execution of the scene due to the fact that the equipment reports the state meeting the conditions for many times can be effectively avoided, resource waste is reduced, the purpose that a user sets the scene expectation is achieved, and user satisfaction is improved.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the embodiments of the present application.
FIG. 4 is a block diagram of the triggering device of one scenario in accordance with an embodiment of the present application; as shown in fig. 4, includes:
a receiving module 42, configured to receive first environmental information reported by a first device;
an obtaining module 44, configured to obtain, when the first environmental information meets a trigger condition of a first scenario, historical environmental information reported by the first device, where the historical environmental information is first environmental information reported by the first device last time;
a determining module 46, configured to determine whether the historical environmental information meets a triggering condition of the first scenario;
and the triggering module 48 is configured to trigger execution of the first scenario when the historical environmental information does not meet the triggering condition of the first scenario.
Through the device, the first environment information reported by the first equipment is received; acquiring historical environment information reported by first equipment under the condition that the first environment information meets the triggering condition of a first scene, wherein the historical environment information is the first environment information reported by the first equipment last time; determining whether the historical environmental information meets a trigger condition of the first scene; triggering and executing the first scene under the condition that the historical environment information does not meet the triggering condition of the first scene, so that the problems that in the related art, the equipment frequently reports attribute states, continuous and repeated triggering of intelligent scene execution and the like can occur are solved. The first scene is triggered only when the historical environment information does not accord with the triggering condition, so that the first scene can be accurately triggered, and the problem that the first scene triggers multiple executions due to a mechanism of frequently reporting the attribute state by the equipment is avoided.
In an exemplary embodiment, the obtaining module 44 is configured to obtain an execution record of the first scene, where the execution record is used to indicate a historical execution record in a case where the first scene is turned on; determining the execution times of the first scene according to the execution record, and determining the magnitude relation between the execution times and a preset threshold; and determining whether to acquire the historical environment information reported by the first equipment according to the size relation.
In an exemplary embodiment, an obtaining module 44, configured to obtain, when the size relationship indicates that the execution number is greater than the preset threshold, historical environment information reported by the first device; and under the condition that the size relation indicates that the execution times are equal to the preset threshold value, prohibiting to acquire the historical environment information reported by the first equipment, and triggering to execute the first scene.
In one exemplary embodiment, a determining module 46 is configured to determine whether a second scene being executed exists in a target area in which the first device is located; determining second scene information of a second scene being executed in the target area, wherein the second scene information includes: third device information of a third device, and a second execution action of the third device; acquiring first scene information of the first scene, wherein the first scene information comprises: second device information of a second device, a first execution action of the second device; and determining whether to send a control instruction to the second device according to the second device information, the first execution action, the third device information and the second execution action, wherein the control instruction is used for indicating the second device to execute the first execution action.
In an exemplary embodiment, the determining module 46 is configured to determine whether the first execution action and the second execution action are opposite execution actions if the second device information is consistent with the third device information; and prohibiting the transmission of the control instruction to the second device when the first execution action and the second execution action are opposite execution actions.
In one exemplary embodiment, fig. 5 is a block diagram of the structure of a trigger device of one scenario according to an embodiment of the present application (ii); as shown in fig. 5, the apparatus further includes: a sending module 52, configured to obtain an operation instruction of a target object for creating the first scene; determining a plurality of trigger conditions of the first scene according to the operation instruction, and determining whether the trigger conditions have conflict or not; and under the condition that the triggering conditions conflict, sending prompt information to the terminal equipment of the target object so that the target object adjusts the triggering conditions of the first scene according to the prompt information.
In an exemplary embodiment, the triggering module 48 is configured to obtain, if the first environmental information does not meet the triggering condition of the first scenario, second environmental information reported by the first device, and determine whether the second environmental information meets the triggering condition of the first scenario; and triggering and executing the first scene under the condition that the second environment information meets the triggering condition of the first scene.
Embodiments of the present application also provide a storage medium including a stored program, wherein the program performs the method of any one of the above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store program code for performing the steps of:
s1, receiving first environment information reported by first equipment;
s2, acquiring historical environment information reported by the first equipment under the condition that the first environment information meets the triggering condition of a first scene, wherein the historical environment information is the first environment information reported by the first equipment last time;
s3, determining whether the historical environment information meets the triggering condition of the first scene;
and S4, triggering and executing the first scene under the condition that the historical environment information does not meet the triggering condition of the first scene.
Embodiments of the present application also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, receiving first environment information reported by first equipment;
s2, acquiring historical environment information reported by the first equipment under the condition that the first environment information meets the triggering condition of a first scene, wherein the historical environment information is the first environment information reported by the first equipment last time;
s3, determining whether the historical environment information meets the triggering condition of the first scene;
and S4, triggering and executing the first scene under the condition that the historical environment information does not meet the triggering condition of the first scene.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be centralized on a single computing device, or distributed across a network of computing devices, or they may alternatively be implemented in program code executable by computing devices, such that they may be stored in a memory device for execution by the computing devices and, in some cases, the steps shown or described may be performed in a different order than what is shown or described, or they may be implemented as individual integrated circuit modules, or as individual integrated circuit modules. Thus, the present application is not limited to any specific combination of hardware and software.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.

Claims (10)

1. A method for triggering a scene, comprising:
receiving first environment information reported by first equipment, and determining whether the first environment information meets a triggering condition of a first scene;
acquiring historical environment information reported by first equipment under the condition that the first environment information meets the triggering condition of a first scene, wherein the historical environment information is the first environment information reported by the first equipment last time;
determining whether the historical environmental information meets a trigger condition of the first scene;
and triggering and executing the first scene under the condition that the historical environment information does not meet the triggering condition of the first scene.
2. The method for triggering a scenario according to claim 1, wherein before obtaining the historical environmental information reported by the first device, the method further comprises:
acquiring an execution record of the first scene, wherein the execution record is used for indicating a historical execution record in the condition of starting the first scene;
determining the execution times of the first scene according to the execution record, and determining the magnitude relation between the execution times and a preset threshold;
and determining whether to acquire the historical environment information reported by the first equipment according to the size relation.
3. The method for triggering a scene according to claim 2, wherein determining whether to acquire the historical environmental information reported by the first device according to the size relationship comprises:
acquiring historical environment information reported by the first equipment under the condition that the size relation indicates that the execution times are larger than the preset threshold value;
and under the condition that the size relation indicates that the execution times are equal to the preset threshold value, prohibiting to acquire the historical environment information reported by the first equipment, and triggering to execute the first scene.
4. The method of triggering a scene according to claim 1, wherein after determining whether the first environmental information satisfies a triggering condition of a first scene, the method further comprises:
acquiring second environment information reported by the first equipment and determining whether the second environment information meets the triggering condition of the first scene or not under the condition that the first environment information does not meet the triggering condition of the first scene;
and triggering and executing the first scene under the condition that the second environment information meets the triggering condition of the first scene.
5. The method for triggering a scene according to claim 1, wherein in triggering the execution of the first scene, the method further comprises:
determining whether a second scene being executed exists in a target area in which the first device is located;
determining second scene information of a second scene being executed in the target area, wherein the second scene information includes: third device information of a third device, and a second execution action of the third device;
acquiring first scene information of the first scene, wherein the first scene information comprises: second device information of a second device, a first execution action of the second device;
and determining whether to send a control instruction to the second device according to the second device information, the first execution action, the third device information and the second execution action, wherein the control instruction is used for indicating the second device to execute the first execution action.
6. The method of triggering a scene according to claim 5, wherein determining whether to send a control instruction to the second device based on the second device information, the first performed action, the third device information, and the second performed action comprises:
determining whether the first execution action and the second execution action are opposite execution actions in the case that the second device information is consistent with the third device information;
and prohibiting the transmission of the control instruction to the second device when the first execution action and the second execution action are opposite execution actions.
7. The method of triggering a scene according to claim 1, wherein before determining whether the first context information satisfies the triggering condition of the first scene, the method further comprises:
acquiring an operation instruction of a target object for creating the first scene;
determining a plurality of trigger conditions of the first scene according to the operation instruction, and determining whether the trigger conditions have conflict or not;
and under the condition that the triggering conditions conflict, sending prompt information to the terminal equipment of the target object so that the target object adjusts the triggering conditions of the first scene according to the prompt information.
8. A scene triggering device, comprising:
the receiving module is used for receiving the first environment information reported by the first equipment;
the acquisition module is used for acquiring the historical environment information reported by the first equipment under the condition that the first environment information meets the triggering condition of the first scene, wherein the historical environment information is the first environment information reported by the first equipment last time;
the determining module is used for determining whether the historical environment information meets the triggering condition of the first scene;
and the triggering module is used for triggering and executing the first scene under the condition that the historical environment information does not meet the triggering condition of the first scene.
9. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program when run performs the method of any of the preceding claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 7 by means of the computer program.
CN202211145107.6A 2022-09-20 2022-09-20 Scene triggering method and device, storage medium and electronic device Pending CN117749843A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211145107.6A CN117749843A (en) 2022-09-20 2022-09-20 Scene triggering method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211145107.6A CN117749843A (en) 2022-09-20 2022-09-20 Scene triggering method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN117749843A true CN117749843A (en) 2024-03-22

Family

ID=90259665

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211145107.6A Pending CN117749843A (en) 2022-09-20 2022-09-20 Scene triggering method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN117749843A (en)

Similar Documents

Publication Publication Date Title
CN114697150B (en) Command issuing method and device, storage medium and electronic device
CN116107975A (en) Control method and device of equipment, storage medium and electronic device
CN117316179A (en) Device state determining method and device based on digital twin and storage medium
CN117749843A (en) Scene triggering method and device, storage medium and electronic device
CN116527503A (en) Method and device for determining upgrade strategy, storage medium and electronic device
CN114992970B (en) Method and device for sending cleaning instruction, storage medium and electronic device
CN116383172A (en) Data backtracking method, storage medium and electronic device
CN116225834A (en) Alarm information sending method and device, storage medium and electronic device
CN115296977B (en) Fault information processing method and device, storage medium and electronic device
CN117857621A (en) Data pushing method and device, storage medium and electronic equipment
CN115296947B (en) Control command response method and device, storage medium and electronic device
CN115296948B (en) Scene information updating method and device, storage medium and electronic device
CN116366671A (en) Data synchronization method and device, storage medium and electronic device
CN116132209A (en) Scene construction method and device, storage medium and electronic device
CN115001885B (en) Equipment control method and device, storage medium and electronic device
CN116382107A (en) Equipment instruction acquisition method and device, storage medium and electronic device
CN116242031A (en) Method and device for determining maintenance time, storage medium and electronic device
CN116436861A (en) Message sending method and device, storage medium and electronic device
CN117527459A (en) Control method and device of intelligent equipment, storage medium and electronic device
CN117573522A (en) Method and device for determining starting duration, storage medium and electronic device
CN116483449A (en) Equipment awakening method and device, storage medium and electronic device
CN115047797A (en) Equipment operation method and device combined with behavior preference and storage medium
CN116246624A (en) Voice control method and device of intelligent equipment, storage medium and electronic device
CN116389436A (en) Broadcasting method and device of processing result, storage medium and electronic device
CN116431333A (en) Execution method and device of task to be executed, storage medium and electronic device

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