Event processing method, device and system

By monitoring the scene events of smart devices to generate linkage rules and automatically trigger linkage events, the problem of complex configuration of smart home devices is solved, and the automation and accuracy of smart care are achieved.

CN115220372BActive Publication Date: 2025-09-19HUAWEI TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110412920.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-16
Publication Date
2025-09-19
Estimated Expiration
2041-04-16

AI Technical Summary

Technical Problem

The linkage configuration of existing smart home devices is complex and does not conform to users' actual usage habits, resulting in poor care effects.

Method used

By monitoring scene events of smart devices, generating linkage rules and automatically triggering linkage events, it reduces user manual configuration and improves the accuracy of care.

Benefits of technology

It achieves automation and accuracy of intelligent care, reduces user configuration complexity, and improves the adaptability of device linkage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115220372B_ABST
    Figure CN115220372B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide an event processing method, device and system. It can be applied to a smart home system to provide intelligent care for family members (such as the elderly and children). The method includes: determining a scene event, the scene event includes one or more first events, the one or more first events are obtained by monitoring one or more first smart devices, the first event includes the first smart device performing a first function, or includes a change in the state of the first smart device; obtaining a first rule, the first rule includes a linkage condition and a linkage event, the linkage condition is related to the scene event, and the linkage event is used to remind users who use one or more first smart devices that there is an abnormality; monitoring one or more first smart devices, if one or more first smart devices meet the linkage condition, then executing the linkage event. Providing intelligent care to users who use smart devices can be achieved by monitoring the smart devices in the scene event.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminals, and in particular to an event processing method, device and system. Background Art

[0002] With the growing popularity of the Internet of Things (IoT) in the home, the number of smart devices, including wearables, is increasing. These devices can be linked together to create diverse smart scenarios, allowing users to experience the convenience of smart home life. According to user surveys, an IoT enthusiast's household may own dozens or even 100 to 200 IoT devices.

[0003] Smart home devices have become an integral part of daily life. Smart homes (or home automation) use IoT technology to connect various electronic devices in the home (such as audio and video equipment, lighting systems, curtain controls, air conditioning controls, security systems, digital cinema systems, audio and video servers, video cabinet systems, and networked appliances). These devices offer a variety of functions, including appliance control, lighting control, telephone remote control, indoor and outdoor remote control, burglar alarms, environmental monitoring, HVAC control, infrared forwarding, and programmable timing control.

[0004] How to improve the intelligent care of smart home devices for users is an urgent problem to be solved. Summary of the Invention

[0005] The embodiment of the present application provides an event processing method, which can provide intelligent care to users who use smart devices by monitoring smart devices in scene events.

[0006] The first aspect of the embodiment of the present application provides an event processing method, which can be executed by an electronic device or by a component of the electronic device (such as a processor, a chip, or a chip system, etc.). The method includes: determining a scene event, the scene event includes one or more first events, the one or more first events are obtained by monitoring one or more first smart devices, the first event includes the first smart device performing a first function, or includes a change in the state of the first smart device; obtaining a first rule, the first rule includes a linkage condition and a linkage event, the linkage condition is related to the scene event, and the linkage event is used to remind users (also referred to as second users) who use one or more first smart devices that there is an abnormality; monitoring one or more first smart devices, and if one or more first smart devices meet the linkage condition, executing the linkage event.

[0007] In an embodiment of the present application, on the one hand, intelligent care can be provided to a second user who uses a smart device by monitoring the smart device in the scene event. The number of times the first user manually sets one or more first events is reduced, and the complexity of creating scene events is reduced. On the other hand, the scene events obtained by monitoring the smart device are more in line with the actual usage habits of the second user, which improves the accuracy of intelligent care and avoids care errors caused by the scene events not conforming to the actual usage habits of the second user. It is understandable that the first user and the second user can be the same user or different users, and the specific details are not limited here.

[0008] Optionally, in a possible implementation of the first aspect, the above steps determine the scene events, including: monitoring the functions performed by one or more first smart devices or the state changes of one or more first smart devices within a first preset time period to obtain one or more second events; one or more second events include one or more first events; and determining that the scene events include one or more first events.

[0009] In this possible implementation, the scene event is recorded by an electronic device, and the first user can determine the scene event through the electronic device and provide intelligent care to the second user who uses the smart device in the scene event.

[0010] Optionally, in a possible implementation of the first aspect, the above steps also include: sending a request message to the cloud device, the request message being used to instruct the cloud device to monitor the functions performed by one or more first smart devices or the status changes of one or more first smart devices within a first preset time period; determining the scene event, including: receiving one or more second events obtained by monitoring sent by the cloud device; one or more second events including one or more first events; determining that the scene event includes one or more first events.

[0011] In this possible implementation, the scene event is recorded by the cloud, which can reduce the memory consumption of the electronic device due to recording the scene event.

[0012] Optionally, in a possible implementation of the first aspect, the above steps determine that the scene event includes the one or more first events, including: presenting the one or more second events; receiving a first operation of a first user; and in response to the first operation, determining the one or more first events among the one or more second events, the number of the first events being less than or equal to the number of the second events.

[0013] In this possible implementation, the first user can filter the monitored second events to obtain one or more first events, reduce the impact of other users' use of the first smart device, monitor the second user's habit of using the first smart device, and increase the accuracy of smart care for the second user.

[0014] Optionally, in a possible implementation of the first aspect, the scene event in the above steps also includes first information associated with the first event, and the first information includes at least one of the location of occurrence of the first event, the identification of the first smart device, the first function, the time interval between at least two first events, and the temporal relationship between at least two first events.

[0015] In this possible implementation, the scene event includes not only the first event but also first information associated with the first event, such as the location of the first event, the identifier of the first smart device, the first function, the time interval between at least two first events, and the temporal relationship between at least two first events. This allows the recorded scene event to have more details, enabling monitoring of each first smart device and, in turn, precise care for the second user.

[0016] Optionally, in a possible implementation manner of the first aspect, obtaining the first rule in the above step includes: receiving a second operation of the first user; and setting the first rule in response to the second operation.

[0017] In this possible implementation, the first user may set a first rule associated with a scene event, and by setting the first rule, intelligent care may be provided to a second user who uses a second smart device.

[0018] Optionally, in a possible implementation of the first aspect, the linkage condition in the above steps is related to the number of occurrences and / or the duration of occurrence of the scene event.

[0019] In this possible implementation, the linkage condition is further limited to be related to the parameters of the scene event, which can also be understood as the linkage condition being related to one or more recorded first events, so that more accurate intelligent care can be achieved.

[0020] Optionally, in a possible implementation of the first aspect, the linkage conditions in the above steps include at least one of the following: the number of occurrences of the scene event is greater than or equal to the first preset threshold; the duration of the occurrence of the scene event is greater than or equal to the second preset threshold; the number of occurrences of the scene event within the second preset time period is greater than or equal to the third preset threshold; the duration of the occurrence of the scene event within the third preset time period is greater than or equal to the fourth preset threshold.

[0021] Optionally, in a possible implementation of the first aspect, the execution linkage event in the above steps includes at least one of the following: sending abnormal information to the terminal device, where the abnormal information is used to alert the second user who uses the one or more first smart devices of the abnormality; stopping the operation of the first smart device; triggering the second smart device to execute the second function.

[0022] In this possible implementation, the first user can determine whether the second user is abnormal based on the linkage conditions. Using the first rule, the first user can promptly detect abnormalities in the second user's use of the smart device, providing a feasible method for intelligent care. For example, if the second user is abnormal, the third user can receive abnormal information and determine the abnormality of the second user based on the abnormal information.

[0023] Optionally, in a possible implementation of the first aspect, the one or more first smart devices in the above steps belong to the same account of the first user. Alternatively, the one or more first smart devices belong to the same local area network.

[0024] In this possible implementation, the scenario event includes one or more first smart devices under the same account, which improves the accuracy of abnormal judgment of the second user in a multi-account scenario.

[0025] Optionally, in a possible implementation manner of the first aspect, the above method can be applied to a smart home scenario, and the smart device is a smart home device.

[0026] In this possible implementation, smart care can be provided to a second user who uses the smart home device.

[0027] Optionally, in a possible implementation of the first aspect, the multiple first smart devices in the above steps include a first smart light in the bedroom, a second smart light in the bathroom, and a smart flush toilet in the bathroom; the scene event includes three first events, the first first event includes the first smart light turning from off to on, the second first event includes the second smart light turning from off to on, and the third first event includes the smart flush toilet performing a flushing function; if one or more smart devices meet the linkage conditions, the linkage event is executed, including: if the number of occurrences of the scene event within the second preset time period is greater than or equal to the third preset threshold, an abnormality message is sent to the terminal device, and the abnormality message is used to remind the second user who uses one or more first smart devices of the abnormality.

[0028] This possible implementation method is an application in a smart home scenario. For example, the second user mentioned above is an elderly person, the scene event is a "getting up in the middle of the night" scene event, the second preset time period is nighttime (24:00 to 06:00), and the third preset threshold is 3 times. The above process can be understood as the number of "getting up in the middle of the night" scene events that occur for the elderly is generally 1 time, but if the number of times the elderly person gets up in the middle of the night on a certain day is greater than 3 times, there is reason to believe that the elderly person is abnormal, and abnormal information is sent to the terminal device, thereby providing intelligent care for the elderly.

[0029] A second aspect of an embodiment of the present application provides an electronic device, comprising: a determining unit, an acquiring unit, a monitoring unit, and an executing unit. The operations performed by each unit in the electronic device are similar to the operations performed by the electronic device in the first aspect or any possible implementation of the first aspect, and are not further described here.

[0030] A third aspect of an embodiment of the present application provides an electronic device, comprising: a processor, the processor being coupled to a memory, the memory being used to store programs or instructions, and when the programs or instructions are executed by the processor, the electronic device implements the method in the above-mentioned first aspect or any possible implementation of the first aspect.

[0031] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed on a computer, the computer executes the method in the aforementioned first aspect or any possible implementation of the first aspect.

[0032] A fifth aspect of the embodiments of the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the method in the aforementioned first aspect or any possible implementation of the first aspect.

[0033] Among them, the technical effects brought about by the second, third, fourth, and fifth aspects or any possible implementation methods thereof can refer to the technical effects brought about by the first aspect or different possible implementation methods of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 An example diagram of a smart home system provided in this application;

[0035] Figure 2 This is an example diagram of the hardware structure of an electronic device provided in this application;

[0036] Figure 3 This is an example diagram of the software structure of an electronic device provided in this application;

[0037] Figure 4A flowchart of the event processing method provided by this application;

[0038] Figure 5-Figure 7 This is an example diagram of an interface for creating a new scene event provided by this application;

[0039] Figure 8 This is an example diagram of a user's walking route in a night-time scenario provided by this application;

[0040] Figure 9A and Figure 9B This is an example diagram of an interface for determining a nighttime waking scenario provided by this application;

[0041] Figure 10-12 This is an example diagram of an interface for setting linkage tasks provided by this application;

[0042] Figure 13 This is an example diagram of an abnormal information interface provided by this application;

[0043] Figure 14 This is another structural diagram of an electronic device in an embodiment of the present application;

[0044] Figure 15 This is another structural diagram of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0045] The embodiment of the present application provides an event processing method, which can provide intelligent care to users who use smart devices by monitoring smart devices in scene events.

[0046] To facilitate understanding, the following first introduces the relevant terms and concepts mainly involved in the embodiments of this application.

[0047] (1) Equipment distribution network

[0048] When an IoT device first connects to a home wireless fidelity (WiFi) network, the home WiFi service set identifier (SSID) and password are sent to the device through an application (APP), enabling the device to connect to the home WiFi and access the internet. The device is then registered and bound to the network.

[0049] (2)IFTTT (if this then that) rules

[0050] This can be thought of as a trigger condition, and that as the device's action or event. Simply put, if one event is triggered, another pre-set event will be executed. In other words, if the trigger condition in an IFTTT rule is met, the corresponding action in the IFTTT rule will be executed. For example, if a smart door lock recognizes that the person at the door has passed biometric authentication (trigger condition), the door will automatically open (execution event).

[0051] The above trigger conditions can also be referred to as trigger events. If device A performs one or more operations in the IFTTT rule, or if the parameters detected by device A meet one or more conditions, device B performs the corresponding operation. In this case, device A can be referred to as the conditional device, and device B can be referred to as the execution device. In an IFTTT rule, there can be one or more conditional devices and one or more execution devices, and this is not limited in the present embodiment.

[0052] For example, an IFTTT rule states: If device A performs one or more actions (or the parameters detected by device A meet one or more conditions), and device C performs one or more actions (or the parameters detected by device C meet one or more conditions), then device B performs the corresponding actions. In this IFTTT rule, devices A and C are both conditional devices, and device B is the execution device.

[0053] For example, another IFTTT rule is: If device A performs one or more actions (or the parameters detected by device A meet one or more conditions), then device B performs the corresponding action, and device D performs the corresponding action. In this IFTTT rule, device A is the conditional device, and devices B and D are the execution devices.

[0054] It should be noted that, in some embodiments, there may be no conditional device in the IFTTT rule, and the execution device may automatically perform the corresponding operation according to, for example, the local time.

[0055] (3) Event

[0056] An event may refer to a device starting a certain function, performing a certain action, or changing from one state to another, etc., and the specifics are not limited here.

[0057] (4) Smart home (or home automation)

[0058] Smart home uses residence as a platform and utilizes integrated wiring technology, network communication technology, security technology, automatic control technology, and audio and video technology to integrate facilities related to home life, build an efficient management system for residential facilities and family schedule affairs, improve home safety, convenience, comfort, and artistry, and achieve an environmentally friendly and energy-saving living environment.

[0059] (5) Family Center

[0060] A home hub is an intermediary device with privacy features. For example, it acts as a forwarding device between a mobile phone and the cloud. It receives messages from mobile phones, removes any privacy-related information from them, and then forwards them to the cloud.

[0061] In a smart home system, users can install smart home related applications (APPs) on their terminals and remotely control smart home devices by operating the APPs on their terminals. Of course, users can also operate and control smart home devices.

[0062] However, the linkage between events requires users to manually configure the linkage scenarios in advance. The configuration operation is complicated, and the configuration effect does not conform to the user's actual usage habits. Inappropriate settings not only fail to bring convenience to users, but may trigger inappropriate linkages and cause interference.

[0063] In order to solve the above problems, the embodiment of the present application provides an event processing method, which records the operations / functions performed by the smart device within a period of time, or the state changes of the smart device, generates scene events, and sets the linkage rules of the scene events. If the linkage conditions are met, the preset linkage event is triggered. On the one hand, it reduces the operations of the user to configure the linkage scene, and on the other hand, it makes the scene events more in line with the user's actual usage habits. Intelligent care for users who use smart devices can be achieved. The method provided in the embodiment of the present application can be applied to smart home scenes, smart office scenes, smart restaurants, smart parking lots and other smart scenes, and the specific details are not limited here. The method provided in the embodiment of the present application is described below using the smart home scene as an example.

[0064] Figure 1 This is an example diagram of a smart home system provided in an embodiment of the present application. The smart home system includes a smart home device 101, an electronic device 102, a home hub 103, and a cloud server 104.

[0065] Optionally, the smart home device 101 and / or electronic device 102 in the local network can establish a connection with the cloud server 104 via a wired, wireless fidelity (WiFi), mobile data network or other connection methods, or establish a connection with the cloud server 104 through a router in the local area network, or connect to the cloud server 104 through the home hub 103. Among them, the cloud server 104 can be a server or server cluster of the home cloud, IoT, etc., which can connect various electronic and electrical devices in the home, unify management, remote monitoring and resource sharing, etc., to achieve an efficient and convenient living environment. If there are multiple smart home devices, multiple smart home devices can be in the same local area network or belong to the same account. It is understandable that a family can also include multiple local area networks or multiple accounts, and each local area network or each account corresponds to one or more smart home devices. For example: Account A includes smart home devices No. 1 to No. 4, and Account B includes smart home devices No. 5 to No. 10. The specific details are not limited here.

[0066] In one possible implementation, the user can send control rules to the home hub 103 through the electronic device 102. After receiving the control rules, the home hub 103 sends the control rules to the smart home device 101. In other embodiments, the smart home device 101 and the electronic device 102 can also communicate with each other wirelessly. For example, the user can operate on the smart home APP installed on the electronic device 102, and remotely control the smart home device 101 by transmitting the control rules through a wireless communication network (for example, 3G network, 4G network, etc.), via Bluetooth or via WiFi. The embodiment of the present application does not limit the specific communication method. Optionally, the user can also operate directly on the smart home device 101 to control the smart home device 101. It should be noted that the control rules can also be understood as control instructions. After receiving the control instructions, the smart home device performs the corresponding operation. It is understandable that the smart home device 101 has been registered on the cloud server 104 and is associated with the electronic device 102. In other words, the smart home device 101 has been successfully paired with the electronic device 102, and the user can control the smart home device 101 through the electronic device 102. For example, the smart home device 101 is associated with a user name, or the smart home device 101 is associated with a device identifier, or the smart home device 101 is associated with a user name. Figure 1 The home hub 103 is shown as being associated. For ease of description, the smart home devices in the embodiments of the present application have been paired with specific electronic devices, specific users or specific home hubs.

[0067] Optionally, after receiving the control rules, the smart home device 101 performs corresponding operations according to the control rules and reports its own status information to the home hub 103. For example, the smart home device 101 is a smart air conditioner, and the smart air conditioner is in standby mode before receiving the control rules. When the smart air conditioner receives the control rules to turn on the cooling mode, the smart air conditioner starts the cooling mode and reports the current cooling mode status information to the home hub 103. In other embodiments, the smart home device 101 can also be an electric rice cooker, an air conditioner, a water heater, a smart door lock, etc. For the convenience of description, the home appliances described in this application all refer to smart home appliances. For different smart home devices, the current status or function may be different.

[0068] The main functions of the aforementioned home hub 103 are: first, it can be used to connect smart home devices 101, electronic devices 102, and cloud server 104, enabling communication between them; second, it can also be used to protect user privacy. For example, the home hub 103 receives information sent by electronic devices 102, removes any privacy-related information from the information, and then forwards it to the cloud server 104. Of course, a smart home system may also not include a home hub, and this is not a limitation here.

[0069] Additionally, home hub 103 can be used to store status information of smart home devices 101. For example, home hub 103 can store the latest status information of smart home devices 101. In another example, home hub 103 can store status information of smart home devices 101 at different time periods, without limitation. Furthermore, if a smart home system does not have a home hub 103, the operations performed by the home hub can be performed by a cloud server.

[0070] In the embodiment of the present application, the smart home device 101 can be a mobile terminal, a household appliance or a sensor, etc. For example, the smart home device 101 can be a smart TV, a smart lamp, a smart socket, an air purifier, a humidifier, a smart water dispenser, a smart range hood, a smart desk lamp, a smart speaker, a smart door lock, a smart power strip, a smart induction cooker, a smart camera, a smart feeder, a smart refrigerator, etc. It can also be a smoke sensor (for detecting whether there is a gas leak in the room), a human body sensor (for sensing whether a human body passes through), a temperature sensor (for detecting the temperature value of a room or an object), a humidity sensor (for detecting the humidity value of a room), a door and window sensor (for sensing whether the doors and windows are open or closed), a PM2.5 air sensor (for detecting the PM2.5 content in the room), etc. The specific functional types of the smart home devices are not limited here.

[0071] In the embodiment of the present application, the electronic device 102 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a notebook computer, an ultra-mobile personal computer (UMPC), a handheld computer, a netbook computer, a personal digital assistant (PDA), a wearable electronic device, a smart watch, or the like, without limitation to the above.

[0072] The embodiments of the present application do not impose any special restrictions on the specific forms of the above-mentioned smart home devices, electronic devices, home hubs and cloud servers.

[0073] The structure of the electronic device 102 in the embodiment of the present application can refer to Figure 2 The structure of the electronic device 102 is shown, and Figure 3 Schematic diagram of the software structure of electronic device 102. It should be noted that electronic device 102 may include more or fewer components than shown, or may combine or separate some components, or arrange components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0074] See also Figure 2 , an example of a structure of an electronic device provided in an embodiment of the present application (taking a smart phone as an example): Figure 2 The block diagram shows a partial structure of the electronic device provided by the embodiment of the present application. Figure 2 The electronic device includes components such as a radio frequency (RF) circuit 210, a memory 220, an input unit 230, a display unit 240, a sensor 250, an audio circuit 260, a wireless fidelity (WiFi) module 270, a processor 280, and a power supply 290. Those skilled in the art will appreciate that Figure 2 The electronic device structure shown in the figure does not constitute a limitation to the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0075] The following combination Figure 2 A detailed introduction to the various components of electronic equipment:

[0076] The RF circuit 210 can be used to receive and send signals during information transmission or calls. Generally, the RF circuit 210 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc. In addition, the RF circuit 210 can also communicate with the network and other devices through wireless communication (e.g. Figure 1 The wireless communications may utilize any communication standard or protocol, including but not limited to global system of mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), long term evolution (LTE), email, short messaging service (SMS), etc.

[0077] The memory 220 can be used to store software programs and modules. The processor 280 executes the various functional applications and data processing of the electronic device by running the software programs and modules stored in the memory 220. The memory 220 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, at least one application required for a function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created based on the use of the electronic device (such as audio data, a phone book, etc.). In addition, the memory 220 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device.

[0078] The input unit 230 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the electronic device. Specifically, the input unit 230 may include a touch panel 231 and other input devices 232. The touch panel 231, also known as a touch screen, can collect user touch operations on or near it (such as operations performed by the user using any suitable object or accessory such as a finger, stylus, etc. on or near the touch panel 231) and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 231 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch direction and detects the signal caused by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 280. It can also receive commands sent by the processor 280 and execute them. In addition, the touch panel 231 can be implemented using various types such as resistive, capacitive, infrared and surface acoustic wave. In addition to the touch panel 231, the input unit 230 may further include other input devices 232. Specifically, the other input devices 232 may include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, power keys, etc.), a trackball, a mouse, and a joystick.

[0079] The display unit 240 can be used to display information input by the user or information provided to the user and various menus of the electronic device. The display unit 240 may include a display panel 241. Optionally, the display panel 241 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel 231 may cover the display panel 241. When the touch panel 231 detects a touch operation on or near it, it is transmitted to the processor 280 to determine the type of touch event. Subsequently, the processor 280 provides corresponding visual output on the display panel 241 according to the type of touch event. Although in Figure 2 In the embodiment, the touch panel 231 and the display panel 241 are used as two independent components to implement the input and output functions of the electronic device. However, in some embodiments, the touch panel 231 and the display panel 241 can be integrated to implement the input and output functions of the electronic device.

[0080] The electronic device may also include at least one sensor 250, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity light sensor, wherein the ambient light sensor may adjust the brightness of the display panel 241 according to the brightness of the ambient light, and the proximity light sensor may turn off the display panel 241 and / or the backlight when the electronic device is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that the electronic device can also be configured with (such as fingerprint sensors, temperature sensors, bone conduction sensors, etc.), they will not be repeated here.

[0081] Audio circuit 260, speaker 261, and microphone 262 provide an audio interface between the user and the electronic device. Audio circuit 260 converts received audio data into electrical signals and transmits them to speaker 261, which then converts them into sound signals for output. Microphone 262, on the other hand, converts collected sound signals into electrical signals, which are then received by audio circuit 260 and converted into audio data. The audio data is then processed by processor 280 and transmitted to, for example, another electronic device via RF circuit 210, or the audio data is output to memory 220 for further processing.

[0082] WiFi is a short-range wireless transmission technology. Electronic devices can help users send and receive emails, browse web pages, and access streaming media through WiFi modules 270. It provides users with wireless broadband Internet access. Figure 2 A WiFi module 270 is shown, but it is understandable that it is not an essential component of the electronic device.

[0083] The processor 280 is the control center of the electronic device. It connects all parts of the electronic device using various interfaces and circuits. By running or executing software programs and / or modules stored in the memory 220 and accessing data stored in the memory 220, it performs various functions of the electronic device and processes data, thereby providing overall monitoring of the electronic device. Optionally, the processor 280 may include one or more processing units. Preferably, the processor 280 may integrate an application processor and a modem processor. The application processor primarily handles the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into the processor 280.

[0084] The electronic device also includes a power supply 290 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 280 through a power management system, thereby managing charging, discharging, and power consumption through the power management system.

[0085] Although not shown, the electronic device may also include a camera, a Bluetooth module, etc., which will not be described in detail here.

[0086] The software system of the electronic device can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the Android system with a layered architecture is used as an example to illustrate the software structure of the electronic device 100.

[0087] Figure 3 It is a software structure block diagram of the electronic device according to an embodiment of the present invention.

[0088] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.

[0089] The application layer can include a series of application packages.

[0090] like Figure 3 As shown, the application layer may include application packages such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.

[0091] In some embodiments of the present application, the application layer may include a first application, which may be a smart home app, that a user may use to configure and manage smart home devices. For example, a user may use the first application to configure IFTTT rules, and multiple smart home devices in a home network may be linked together based on the user-configured IFTTT rules, providing the user with a smart home experience.

[0092] The application framework layer provides an application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0093] like Figure 3 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0094] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.

[0095] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0096] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.

[0097] The phone manager is used to provide communication functions for electronic devices, such as call status management (including answering, hanging up, etc.).

[0098] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0099] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.

[0100] Android Runtime includes core libraries and a virtual machine. Android Runtime is responsible for scheduling and management of the Android system.

[0101] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.

[0102] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.

[0103] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0104] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.

[0105] The media library supports playback and recording of a variety of common audio and video formats, as well as still image files. The media library supports a variety of audio and video coding formats, such as MPEG4, H.264, Moving Picture Experts Group Audio Layer III (MP3), Advanced Audio Coding (AAC), Adaptive Multi Rate (AMR), Joint Photographic Experts Group (JPEG), and Portable Network Graphics (PNG).

[0106] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0107] A 2D graphics engine is a drawing engine for 2D drawings.

[0108] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.

[0109] First, the application scenarios of the method provided in the embodiment of the present application are described. The method provided in the embodiment of the present application can be applied to smart scenarios such as smart home scenarios, smart office scenarios, smart restaurant scenarios, and smart parking scenarios.

[0110] 1. For smart home scenarios

[0111] In the smart home scenario, intelligent care can be provided to users who use smart home devices.

[0112] 1. For the smart care scenario for the elderly, you can record the smart home devices used by the elderly over a period of time, generate scene events based on the recording, and set linkage tasks associated with the scene events. The linkage tasks include linkage conditions (such as preset values) and linkage actions (or linkage events) (such as sending abnormal information).

[0113] For example, the scene event is a scene of an elderly person getting up at night. In daily life, the elderly person normally gets up at night once a day (which can refer to the time period from 24:00 to 06:00). By monitoring the smart home devices used by the elderly person during the time period from 24:00 to 06:00, it can be confirmed that the elderly person will use the first smart light in the bedroom, the second smart light in the bathroom, and the smart flush toilet in the bathroom when getting up at night. That is, the scene of getting up at night can include three first events, the first first event is that the first smart light is turned on (or the first smart light is understood to be changed from the off state to the on state), the second first event is that the second smart light is turned on (or the second smart light is understood to be changed from the off state to the on state), and the third first event is that the smart flush toilet performs the flushing function. When it is subsequently monitored that the elderly person gets up at night more than 3 times a day, that is, the number of times the above three first events occur exceeds the preset value 3 times, an abnormal information is sent to the terminal device to remind the first user of the terminal device: the elderly person's body may be abnormal. That is, the linkage condition is that the number of occurrences of the night-time waking scene within the second preset time period is greater than or equal to the third preset threshold, and the linkage event is sending abnormal information to the terminal device. The second preset time period here can be understood as the night-time waking time period (i.e. 24:00 to 06:00), and the third preset threshold is 3 times.

[0114] Another example scenario involves an elderly person sending their child to school. By monitoring the changes in the functions or states of smart home devices during the elderly person's normal daily routine of sending their child to school, from leaving home (06:00) to returning home (07:00), it can be determined that the elderly person sending their child to school scenario includes two first events: the first first event is the smart door lock being unlocked from inside the house (which can indicate a family member leaving the house), and the second first event is the smart door lock being unlocked from outside the house (which can indicate a family member returning home), with the first first event and the second first event separated by one hour. If the duration of the elderly person sending their child to school from leaving home to returning home exceeds a preset value of two hours (i.e., if the interval between the first first event and the second first event exceeds a preset value of two hours), an exception message is sent to the terminal device, alerting the first user of the terminal device that the elderly person may encounter trouble while sending their child to school. The linkage condition is that the duration of the sending-child-to-school scenario is greater than or equal to a second preset threshold, and the linkage event is the sending of an exception message to the terminal device. The second preset threshold here is two hours.

[0115] For another example, the scene event is the scene of an elderly person making lunch. By monitoring the changes in the functions or states of smart home devices performed by the elderly person in the process of making lunch in daily life, it can be confirmed that the scene of the elderly person making lunch includes two first events. The first first event is the gas tank from off to on, and the second first event is the gas tank from on to off, and the first first event is 40 minutes apart from the second first event. When it is monitored that the usage time of the gas tank exceeds the preset value of 1 hour, an abnormal information is sent to the terminal device to remind the first user of the terminal device: the elderly person may have forgotten to turn off the gas tank, etc. That is, the linkage condition is that the duration of the elderly person making lunch is greater than or equal to the second preset threshold, and the linkage event is to send an abnormal information to the terminal device. The second preset threshold here is 1 hour.

[0116] 2. Smart care scenarios for users who are accustomed to drinking

[0117] For example, the scene event is a drinking scene. When monitoring shows that the number of beer in the smart refrigerator decreases by 1 bottle between 19:00 and 20:00 (i.e., the husband has the habit of taking a bottle of beer from the smart refrigerator for dinner in his daily life), it can be confirmed that the drinking scene includes a first event, and the first event is that the number of beer in the smart refrigerator decreases by 1 bottle. When subsequent monitoring shows that the number of beer in the smart refrigerator decreases by 4 bottles between 19:00 and 20:00 on a certain day, the monitoring of the number of beer can be achieved by monitoring the decrease in the number of beer through a light sensor, a weight sensor or a camera in the smart refrigerator, and then an abnormal information is sent to the terminal device. The first user of the terminal device (e.g., a wife) is reminded that the husband's mood may fluctuate. That is, the linkage condition is that the number of occurrences of the drinking scene within the second preset time period is greater than or equal to the third preset threshold, and the linkage event is to send an abnormal information to the terminal device. The second preset time period here can be understood as 1 hour (i.e., 19:00 to 20:00), and the third preset threshold is 4 times.

[0118] 3. Smart care scenarios for pets

[0119] For example, the scene event is a pet eating scene. By monitoring that the automatic feeder is turned on every 5 hours in daily life (that is, the pet eats once every 5 hours in daily life), it can be confirmed that the pet eating scene includes two first events. The first first event is that the automatic feeder turns on the food release function, and the second first event is that the automatic feeder turns on the food release function, and the first first event and the second first event are 5 hours apart. When it is subsequently monitored that the first first event and the second first event are 8 hours apart (that is, the pet has not eaten for more than 8 hours), an abnormal information is sent to the terminal device to remind the first user of the terminal device (such as the pet's owner): the pet's body or mood is abnormal. That is, the linkage condition is that the duration of the pet eating scene is greater than or equal to the second preset threshold, and the linkage event is to send an abnormal information to the terminal device. The second preset threshold here is 7 hours.

[0120] It is understandable that the above-mentioned smart home scenarios are just examples. In actual applications, there may be other specific scenarios, which are not limited here.

[0121] 2. For smart office scenarios

[0122] For example, the scenario event is a clocking-in scenario. If it is monitored that the company's smart clocking-in machine clocks in the second user (employee A) between 07:00 and 08:00 on working days, it can be confirmed that the clocking-in scenario includes a first event, and the first event is the clocking-in of the second user by the smart clocking-in machine. When the number of occurrences of the first event in a certain week (i.e., five working days) is 1, an abnormality message is sent to the terminal device to remind the first user of the terminal device (such as a leader or human resources person): Employee A is physically or mentally abnormal. That is, the linkage condition is that the number of times Employee A clocks in for work in a week is less than the threshold, and the linkage event is to send an abnormality message to the terminal device. The threshold here can be 4 times.

[0123] 3. For smart restaurant scenarios

[0124] For example, the scene event is a smart restaurant scene. By monitoring customer A ordering breakfast on the smart restaurant mini program in his daily life, it can be confirmed that the smart restaurant scene includes a first event, which is customer A ordering food on the smart restaurant mini program. When the number of occurrences of the first event in a certain week (i.e., five working days) is 0, information is sent to the terminal device, and the information is used to show the care of the smart restaurant to the first user of the terminal device (e.g., customer A). For example, the information is: It is detected that you did not come to our store for breakfast this week. Are you moving or on a business trip? This further reflects the smart care of the smart restaurant for customer A. That is, the linkage condition is that the number of times customer A orders breakfast on the mini program within a week is less than the threshold, and the linkage event is to send an abnormal message to the terminal device. The threshold here can be 3 times.

[0125] 4. For smart parking scenarios

[0126] For example, the scene event is a smart parking scene. In daily life, the license plate of a car with a license plate of Guangdong A666666 (for example, the owner is the wife) is monitored in the parking lot from 19:00 in the evening to 07:00 in the morning. It can be confirmed that the smart parking scene includes two first events. The first first event is that the car enters the parking lot, and the second first event is that the car leaves the parking lot. There is a 12-hour interval between the first first event and the second first event. When it is subsequently monitored that the interval between the first first event and the second first event is 24 hours (that is, the car is parked in the parking lot for more than 24 hours), an abnormal information is sent to the terminal device to remind the first user of the terminal device (for example, the husband): the wife may not be at work normally, and her body or mood may be abnormal. That is, the linkage condition is that the duration of the smart parking scene is greater than or equal to the second preset threshold, and the linkage event is to send an abnormal information to the terminal device. The second preset threshold here can be 10 hours.

[0127] It is understandable that the above-mentioned scenarios are merely examples of the application scenarios of the methods provided in the embodiments of the present application. In actual applications, there may be other scenarios, which are not specifically limited here.

[0128] The following combination Figure 1 The event processing method in the embodiment of the present application is described in detail:

[0129] See also Figure 4 , an embodiment of the event processing method in the embodiment of the present application includes steps 401 to 412.

[0130] Step 401: The electronic device receives a third operation.

[0131] The third operation in the embodiment of the present application can be the operation of the first user (click, voice or filling, etc.), or it can be an instruction operation issued by other devices (such as a server, other electronic devices), etc., and is not limited here.

[0132] For example, the electronic device is a mobile phone, and the third operation is an operation of the first user. Figure 5 (a) is a front view of the mobile phone. The mobile phone display screen displays a smart home app icon 501. The first user can click on the "smart home app icon" 501. Figure 5As shown in (b), the mobile phone responds to the click operation and displays the user interface of the smart home app. The user interface may include the names and icons of the added smart home devices, multiple status bars, etc. Exemplarily, the added smart home devices include: bathroom lights, flush toilets, bedroom lights, smart door locks, smart refrigerators, automatic feeders, etc. The multiple status bars include: Home, Mall, Smart, Mine. Among them, if the first user has not logged in to the smart home app, he or she needs to enter a username and password. The username can be the first user's mobile phone number, WeChat ID or specific name, etc., and the password can be a fingerprint password, digital password, pattern password, voice password, facial password, etc., which are not limited here. After the first user logs in to the smart home app, the user interface may also include a username. Exemplarily, as Figure 5 As shown in (b) in , the user name can be A. Optionally, as Figure 5 As shown in (b), the first user can also click the "+" icon on the user interface to add a smart home device.

[0133] In addition, if Figure 5 As shown in (c) in FIG. 5 , the first user can also click the “Smart” icon 502 in the status bar, as shown in FIG. Figure 5 As shown in (d) in FIG, the mobile phone displays the user interface of "Create Smart" in response to the click operation. The user interface may include two parts: "Set Conditions" and "Set Tasks", as shown in FIG. Figure 5 As shown in (d) in the figure, the first user clicks the "Smart" icon 502 to jump to the "Set Conditions" interface by default. The "Set Conditions" interface includes: one-key execution, weather change, timing, device status change, scene event care conditions, etc. Figure 6 As shown in (a), the first user can also click the ">" icon 601 on the right side of "Scene Event Care Condition", as shown in Figure 6 As shown in (b) in FIG, the mobile phone responds to the click operation and displays the user interface of “Scene Event Care Conditions”. The “Scene Event Care Conditions” interface includes linkage conditions (described in detail later) and scene event management. Figure 6 As shown in (c) in FIG. 1 , the first user can also click the “Scene Event Management” icon 602, as shown in FIG. Figure 6As shown in (d), the mobile phone displays the user interface of "Scene Event Management" in response to the click operation. The "Scene Event Management" interface may include existing scene events, scene event recommendations, creation of new scene events (or creation of recording tasks), etc. Among them, existing scene events include first scene events, second scene events, etc., and the specific scenes of the first scene events and the second scene events and the specific number of smart scenes are not limited here. For example, the first scene event or the second scene event may be a "sending children to school" scene, a "cooking" scene, a "dinner" scene, a "pet feeding" scene, etc. (as described above). Scene event recommendations are used to recommend smart scenes selected by other users to the first user, etc., and creating new scene events is used for the first user to create a new smart scene. As Figure 7 As shown in (a), a “create new scene event” icon is displayed on the display screen of the mobile phone, and the first user can click the “create new scene event” icon 701. In other words, the third operation may include the operation of the first user clicking the “create new scene event” icon 701.

[0134] Step 402: The electronic device creates a recording task in response to the third operation.

[0135] The recording task in the embodiment of the present application includes the name of the scene event and the recording time interval, etc.

[0136] For example, continuing the above example, Figure 7 As shown in (b) in the figure, the mobile phone displays a user interface for creating a new scene event in response to a click operation. The user interface may include the scene event name, area A, monitoring time interval (i.e., the first preset time period), area B, area C, start recording, etc. Among them, the first user can fill in the name of the scene event in area A, fill in the starting time of the monitoring time interval in area B, and fill in the end time of the monitoring time interval in area C. For example, in order to monitor the number of times the second user (e.g., the elderly, children, etc.) goes to the toilet when getting up at night, the first user can fill in "getting up at night" in area A, "24:00" in area B, and "06:00" in area C, as shown in FIG. Figure 7 As shown in (c) in the figure, the mobile phone responds to the filling operation and displays the interface for creating a new scene event filled in by the first user. If the first user confirms that there is no problem, he can click Figure 7 The “Start Recording” icon 702 shown in (d) .

[0137] The first user and the second user in the embodiment of the present application may be the same user or different users (for example, the first user and the second user are father and daughter, etc.), which is not limited here.

[0138] Step 403: The electronic device sends the recording task to the cloud server. This step is optional.

[0139] In this step, the electronic device sends the recording task to the cloud server. The electronic device may forward the recording task to the cloud server through the home hub, or the electronic device may directly send the recording task to the cloud server, etc. The specific details are not limited here.

[0140] Optionally, after the electronic device creates a recording task, if there is Figure 1 In the home hub shown in , electronic devices can send recording tasks to the home hub, which saves and executes the recording tasks. Electronic devices can also send recording tasks to the cloud server, which can save the recording tasks to prevent the local data of the home hub (including recording tasks) from being lost. If there is no home hub in the smart home system, electronic devices can save and execute recording tasks. Or send recording tasks to the cloud server, which saves and executes the recording tasks. Optionally, if the cloud server saves the recording tasks, in order to avoid leakage of the user's private information, information related to the privacy of the first user and / or the second user may not be stored, such as the user's real name, ID number, mobile phone number, etc. Of course, the user's private information can also be replaced by an identifier or nickname.

[0141] Step 404: The cloud server receives the status information sent by the smart home device. This step is optional.

[0142] The execution subject in this step can also be an electronic device or a home hub or other device, which is not limited here.

[0143] Optionally, after receiving the recording task, the cloud server records one or more second events triggered during the monitoring time interval. The second event can be an action / function performed by a smart home device, or a change in the state of a smart home device from one state to another. For example, in the aforementioned scenario, the second event could be the bathroom smart light turning on, or the smart light changing from off to on.

[0144] In other words, the cloud server starts recording at the start time of the monitoring time interval and ends recording at the end time of the monitoring time interval, recording one or more second events that occur between the start time and the end time.

[0145] If the cloud server performs the recording task, the cloud server can receive all smart home devices (such as Figure 5The cloud server receives status information from all smart home devices under A's home account. In other words, the smart home devices notify the cloud server of any status changes that occur during the monitoring time interval. Of course, the smart home devices can also notify the cloud server of any functions or actions performed during the monitoring time interval.

[0146] For example, continuing with the above example, the scene event name of the recording task is "getting up at night", and the monitoring time interval is 24:00 to 06:00.

[0147] Step 405: The cloud server monitors one or more second events obtained by the smart home device. This step is optional.

[0148] The execution subject in this step can also be an electronic device or a home hub or other device, which is not limited here.

[0149] Optionally, the cloud server can record the functions performed or state changes that occur by all smart home devices within the monitoring time interval to obtain one or more second events. In addition, the cloud server can also record the first information of the second event, which can include a quadruple of the second event and the time interval between at least two second events. Of course, if there are multiple second users in the household, the first information can also include a specific user among the multiple second users using the smart home device. The quadruple includes the name of the smart home device {or service name}, the role of the smart home device (Character), the action performed (Action), and the location in the home (Location). The time interval refers to the interval between at least two second events. In addition, the time interval can include at least one of the actual time interval (Delay) between at least two second events, a preset time interval (or a default time interval (Tolerance)), etc. The unit of the time interval can be seconds, minutes, hours, etc., and the specific unit is not limited here. When the unit is not specified in the embodiments of the present application, the default unit is minutes, unless otherwise specified. The cloud server uses the quadruple of one or more second events and / or the time interval as a scene event. Of course, if there are multiple second events, the scene event can be generated in the order of the occurrence of the multiple second events.

[0150] For example, continuing the above example, in the monitoring time interval from 24:00 to 06:00, a total of four smart home devices performed actions or functions (equivalent to four second events). For ease of understanding, the following describes the generation of the scene event "getting up at night" in combination with the room structure of the home, such as Figure 8 As shown in FIG. 1 , an example of a family structure is shown. In the monitoring time interval from 24:00 to 06:00, the walking route of the second user is as follows: Figure 8As shown in the figure, a user gets up from the bedroom, passes through the living room, and then goes to the toilet in the bathroom. 801 is the bedroom light switch, 802 is the living room light switch, 803 is the bathroom light switch, and 804 is the toilet flusher. For example, if the second user is an elderly person, the first second event is the bedroom light switch turning on, the second second event is the living room light switch turning on, the third second event is the bathroom light switch turning on, and the fourth second event is the toilet flusher flushing. Delay represents the actual interval between two adjacent second events. As shown in Table 1 below, the actual interval between the first and second second events is 5 seconds, the actual interval between the second and third second events is 5 seconds, and the actual interval between the third and fourth second events is 5 minutes. The actual interval of 5 minutes between the third and fourth second events means that the toilet flusher flushed 5 minutes after the elderly person turned on the bathroom light switch. Tolerance represents the time interval between events set by the user, either pre-set or subsequently. If pre-set, it can be understood as the default value of the time interval. If set subsequently, it can be understood as an adjusted value for the time interval. Alternatively, a light can be automatically turned on / off by a sensor device, such as an infrared sensor, when it detects the presence of a person nearby. A toilet can also automatically flush when a sensor device, such as an infrared sensor, detects that a person has finished using the toilet.

[0151] For example, the multiple second events and first information obtained by the cloud server monitoring the smart home device may be as shown in Table 1:

[0152] Table 1

[0153] Service Character Action Location Delay Tolerance lamp switch Open bedroom - - lamp switch Open living room 5 seconds 3 seconds lamp switch Open bathroom 5 seconds 3 seconds flush toilet flusher rinse bathroom 5 minutes 10 minutes

[0154] The setting value of Tolerance is not limited here.

[0155] Optionally, after the cloud device monitors one or more second events obtained by the smart home device, it can learn the user using the smart device through the auxiliary device and then generate a scene event related to the user. Exemplarily, the scene event can include the four second events in Table 1.

[0156] Optionally, if there are multiple second users using the smart device, and the first user only wants to care for a specific user among the multiple second users, the smart device used by the specific user can be identified through the auxiliary device.

[0157] The auxiliary device in the embodiment of the present application can identify a specific user through sensors, face recognition or fingerprint recognition, and the specific identification method is not limited here.

[0158] For example, the multiple second events and the first information obtained by the cloud server monitoring the smart home device may also be shown in Table 2:

[0159] Table 2

[0160] Service Character Action Location Delay Tolerance User lamp switch Open bedroom - - Specific users lamp switch Open living room 5 seconds 3 seconds Non-specific users lamp switch Open bathroom 5 seconds 3 seconds Specific users flush toilet flusher rinse bathroom 5 minutes 10 minutes Specific users

[0161] Compared with the first information shown in Table 1, the first information shown in Table 2 has additional user information (User column in Table 2). User information is the identity information of the user who uses the smart device, which can be obtained through the above-mentioned auxiliary equipment. For example, when the smart door lock is turned on, the identity authentication device (such as a face recognition device, a fingerprint recognition device) in the smart door lock identifies that the user of the smart door lock in this smart door lock opening event is an elderly person based on the collected image information, fingerprint information, etc., so that the smart door lock sends the smart door lock opening event and the user information (elderly person) corresponding to this smart door lock opening event to the cloud device. For another example, when the smart light is turned on, the camera in the home identifies that the user of the smart light in this smart light opening event is an elderly person based on the collected video information, so that the smart light sends the opening event to the cloud device, and the camera sends the user information (elderly person) to the cloud device, and the cloud device obtains the smart light opening event and the user information corresponding to this smart light opening event.

[0162] For example, among the four second events shown in Table 2, the Users corresponding to the first, third and fourth second events are all specific users, such as the elderly. The User corresponding to the second second event is a non-specific user, such as a father. During the monitoring time interval (for example, 24:00-6:00), although the living room light performs the turn-on function, the living room light is used by a non-specific user. The cloud device can automatically delete the second event corresponding to the non-specific user to obtain the scene event corresponding to the specific user as shown in Table 3. In this way, the first user does not need to manually delete the monitored second events that are not related to the scene event.

[0163] For example, a structural diagram of the scene event "getting up at night" may be shown in Table 3:

[0164] Table 3

[0165] Service Character Action Location Delay Tolerance User lamp switch Open bedroom - - Specific users lamp switch Open bathroom 10 seconds 6 seconds Specific users flush toilet flusher rinse bathroom 5 minutes 10 minutes Specific users

[0166] The three first events included in the scenario events in Table 3 represent one fewer second event than the four second events in Table 2, meaning the second second event in Table 2 is removed. Accordingly, the interval between the first and second first events in Table 3 is equivalent to the interval between the first and third second events in Table 2. This means that when a second event is deleted, the cloud device can automatically adjust the Delay and Tolerance values. Specifically, the Delay for the third second event (bathroom light on) in Table 2 records the interval between the third second event (bathroom light on) and the second second event (living room light on). Since the user corresponding to the second second event (living room light on) is non-specific, when the living room light on event is deleted from Table 3, the Delay for the second first event (bathroom light on) in Table 3 should be adjusted to the interval between the second first event (bathroom light on) and the first first event (bedroom light on), which is 10 seconds, as shown in Table 3.

[0167] Step 406: The cloud server sends the monitored one or more second events to the electronic device. This step is optional.

[0168] Optionally, after recording one or more second events detected by the smart home device, the cloud server transmits the one or more second events detected by the cloud server to the electronic device. If the smart home system includes a home hub, the cloud server may also transmit the one or more second events detected by the cloud server to the electronic device via the home hub.

[0169] Of course, in addition to the above-mentioned methods, the electronic device can also obtain the second event by directly recording the status information of the smart home device (that is, the second event can be obtained without going through the cloud server or home hub), which is not limited here.

[0170] Optionally, if in step 405 , the cloud server obtains a scene event (eg, the night-waking scene event shown in Table 3), the scene event may be directly sent to the electronic device.

[0171] Step 407: The electronic device receives the first operation. This step is optional.

[0172] Optionally, after the cloud server monitors the one or more second events, it may send the one or more second events to the smart home app. The electronic device may present the one or more second events to the first user, that is, the first user may view the one or more second events monitored by the cloud server through the smart home app.

[0173] Optionally, after the cloud server monitors and obtains the scene event, it can send the monitored scene event to the smart home app. The electronic device can present the scene event to the first user, that is, the first user can view the scene event monitored by the cloud server through the smart home app.

[0174] The first operation in the embodiment of the present application can be a delete or add operation, a click operation, a fill operation or an edit operation of the first user. It can also be an instruction operation issued by other devices (such as a server, other electronic devices), etc., which is not limited here.

[0175] For example, in Figure 6 In the interface (d), after creating a new scene event, you can refresh the interface or restart the smart home app, such as Figure 9A As shown in (a) in the figure, the latest scene event management interface is displayed on the screen of the mobile phone. The newly created "get up at night" scene of the first user is already in the existing scene event. Figure 9A As shown in (b) of FIG. 1 , the first user can click the ">" icon 901. Figure 9A As shown in (c), the mobile phone displays the parameter interface of the "getting up at night" scene in response to the click operation. The parameter interface includes the scene event name, monitoring time interval, scene operation sequence, clearing, re-recording, etc. Among them, the scene operation sequence is similar to Table 1. In addition, the first user can click on the scene operation sequence to delete or add multiple second events, and can also adjust the preset time intervals of area D and area E in the scene operation sequence. In other words, the first operation may include the first user clicking, deleting or adding the second event in the scene operation sequence, and may also include the first user clicking, filling in, and editing area D or area E. For example, the first user thinks Figure 9A In the scene operation sequence shown in (c), the action of turning on the light in the living room is not related to the night-time scene event, that is, the first user believes that the action of turning on the light in the living room in the night-time scene event (for example, it may be triggered by another family member watching TV in the living room) is not necessary. Or the first user knows from the aforementioned auxiliary device that the light in the living room is used by a non-specific user (for example, father, mother, child), then the first user can perform the first operation to delete Figure 9A In the scene operation sequence shown in (c), the light in the living room is turned on, and the scene event of a specific user (such as an elderly person) is obtained. For another example, the first user thinks Figure 9A In the scene operation sequence shown in (c), the preset time interval of 5 minutes shown in area E is too short, that is, the first user believes that the elderly person may need to go to the toilet for a longer time, so the first user can perform the first operation to change the 5 minutes in area E to 10 minutes.

[0176] Optionally, in step 407, the first user can modify or personalize the recorded scene operation sequence, such as deleting, adding, or editing one or more second events or the first information within one or more second events. Thus, if a second event irrelevant or unnecessary to the scene event is recorded within the monitoring event interval of the scene event, the first user can manually delete the irrelevant or unnecessary second event, making the scene event determined in step 408 more realistic.

[0177] Step 408: The electronic device responds to the first operation and determines a scene event. This step is optional.

[0178] Optionally, after receiving the first operation, the electronic device adjusts the first information of the one or more second events monitored in response to the first operation to obtain the one or more first events, and determines that the scene event includes the one or more first events. In other words, the electronic device can determine that the scene event includes one or more first events among the one or more second events based on the selection of the first user. The number of first events is less than or equal to the number of second events.

[0179] Optionally, after the electronic device receives the first operation, the electronic device adjusts the scene event in response to the first operation.

[0180] For example, continuing the above example, Figure 9A As shown in (c), on the parameter interface of the "Getting Up at Night" scene, the first user can delete the second second event in the scene operation sequence, adjust the preset time interval in area D, and / or adjust the preset time interval in area E. In response to the first user's click, edit, and / or fill operation, the electronic device deletes the second second event, adjusts the preset time interval in area D, and / or adjusts the preset time interval in area E. Figure 9B An example of a possible modified scene operation sequence is shown. Figure 9B Compared to Figure 9A In (c), the first user deleted the second second event, that is, the first user deleted the second event of turning on the light in the living room (for example, the first user believes that turning on or off the light is not necessary for the night scene), and obtained the modified scene operation sequence. Figure 9B As shown, the modified scene operation sequence, i.e., the modified nighttime waking scene event, includes three first events: the first first event is the bedroom light switch executing the on function; the second first event is the bathroom light switch executing the on function; and the third first event is the bathroom toilet flusher executing the flush function. The term "function" herein can be understood as the same concept as "action."

[0181] For example, a structural diagram of the scene event "getting up at night" can be shown in Table 3 above. Of course, if multiple users use smart home devices during the monitoring period, the first user can delete the second events generated by other users using smart home devices among the multiple second events, or the aforementioned auxiliary device can be used to identify specific users and delete the events triggered by non-specific users using smart home devices. This reduces the impact of other users using smart home devices on the accurate monitoring of the second user's behavior. For example, the three first events included in the scene events in Table 3 are one less second event than the four second events in Table 2, namely the second second event in Table 2.

[0182] In one possible implementation, the first user can select one or more first events from one or more second events sent by the cloud device as scene events. In another possible implementation, the first user can also perform adjustment operations such as deleting or adding first events from the scene events sent by the cloud device. Of course, the cloud device or electronic device can also automatically adjust the scene events through auxiliary devices, and the specific details are not limited here.

[0183] It is understandable that the scene events in the embodiments of the present application can be generated by a cloud device, an electronic device, or a user's settings, and the specifics are not limited here. If the cloud device generates the scene event, it can be to use one or more second events obtained by monitoring as the scene event, or it can filter the second events through the settings of the auxiliary device or the first user to obtain one or more first events, and determine that the scene event includes one or more first events. The possible ways for electronic devices to generate scene events are similar to the ways for cloud devices to generate scene events, and will not be repeated here.

[0184] Step 409: The electronic device receives a second operation.

[0185] The second operation in the embodiment of the present application is similar to the third operation or the first operation, and can be a click operation or a fill operation of the first user. It can also be an instruction operation issued by other devices (such as a server, other electronic devices), etc., and the specific details are not limited here.

[0186] For example, continuing the above example, Figure 10 As shown in (a), the first user can click the ">" icon 1001 on the right side of "Scene Event Care Condition" in the "Create Smart" interface. Figure 10As shown in (b), the mobile phone responds to the first user's click operation and displays the "Scene Event Care Conditions" interface. The "Scene Event Care Conditions" interface includes the scene event name, the associated conditions associated with the scene event, and the scene event management. The associated conditions include area F, area G, area H, area I, etc. The first user can select the linkage conditions to be set in the drop-down options on the right side of area F, area G, area H, and area I. Take the "getting up at night" scene as an example. Figure 10 As shown in (b), the linkage condition in the "Scene Event Care Condition" interface is: when the scenario event "getting up at night" is executed more than "3" times in "one day", the linkage action is the bound associated IFTTT action. The first user can Figure 10 In (b), select other scene events in area F, select the time area in area G, select "greater than", "less than", "equal to", "greater than or equal to", "less than or equal to", etc. in area H, and select a value in area I.

[0187] In addition, if Figure 11 As shown in (a), the first user can click the "Set Task" icon 1101 in the "Create Smart" interface, as shown in Figure 11 As shown in (b), the mobile phone responds to the first user's click operation and displays an interface including "binding associated IFTTT action". Figure 11 As shown in (c), the first user can also click the "bind associated IFTTT action" icon 1102, as shown in Figure 11 As shown in (d), the mobile phone responds to the click operation of the first user and displays the "Bind IFTTT Action" interface. The interface includes multiple actions or events. For example, the IFTTT action includes: sending a reminder message to the third user, triggering the first smart home device to ring, dialing 120, dialing 110, etc. Figure 12 As shown, the first user can click on the "Send reminder information to the third user" icon 1201 option. In other words, the second operation can include the first user clicking, selecting and / or filling in Figure 10 Region F, Region G, Region H, Region I in (b) and the first user clicks the "Bind IFTTT Action" icon and / or selects Figure 12 The "Send reminder information to users" operation.

[0188] Step 410: The electronic device sets the first rule in response to the second operation.

[0189] After receiving the second operation, the electronic device creates a linkage task related to the scene event in response to the second operation. The linkage task can also be called a first rule. The linkage task includes a linkage condition and a linkage event, and can also be understood as indicating that the linkage task is used to indicate that the linkage event is executed if the linkage condition is met. The linkage condition is related to the number of occurrences and / or the duration of the scene event.

[0190] The linkage conditions in the embodiments of the present application include at least one of the following: the number of occurrences of the scene event is greater than or equal to the first preset threshold; the duration of the scene event is greater than or equal to the second preset threshold; the number of occurrences of the scene event within the second preset time period is greater than or equal to the third preset threshold; the duration of the scene event within the third preset time period is greater than or equal to the fourth preset threshold, etc., wherein the first preset threshold and the third preset threshold have the same unit, which can be seconds, minutes or hours, etc. The second preset threshold and the fourth preset threshold represent quantities. In addition, the first preset threshold and the third preset threshold can be the same or different, and the second preset threshold and the fourth preset threshold can be the same or different. It is understandable that in actual applications, the first preset threshold, the second preset threshold, the third preset threshold or the fourth preset threshold can be set as needed, and the specific details are not limited here.

[0191] In the embodiments of the present application, the execution of a linkage event includes at least one of the following: sending an exception message to a terminal device, which is used to alert the user of one or more first smart home devices of the abnormality; stopping the operation of a smart home device; or triggering another smart home device (e.g., the first smart home device or a second smart home device other than the first smart home device) to execute a second function. For example, in the aforementioned scenario of the elderly person making lunch, the executed linkage event could be turning off the gas tank or opening smart doors and windows for ventilation.

[0192] For example, continuing the above example, take the "getting up at night" scene as an example. Figure 10 As shown in (b), the first user can Figure 10 In (b), select the "Get up at night" event in the F area, select "Within a day" in the G area, select "Greater than" in the H area, and select 3 in the I area. Figure 12As shown, the mobile phone responds to the first user's click operation on the "Send reminder message to third user" icon 1201, and confirms the linkage action (or linkage event). Furthermore, the relevant information of the third user associated with the linkage event can also be set (for example: mobile phone number, email, account number, etc.). Of course, the specific content of the reminder message can also be set. At this point, the linkage task is set successfully. Among them, the linkage condition is: the scene event "getting up at night" is executed "greater than" "3" times in "one day", and the linkage task is: sending a reminder message to the third user. In other words, the linkage task includes: when the scene event "getting up at night" is executed "greater than" "3" times in "one day", a reminder message is sent to the third user. It can be understood that, Figure 10 The linkage condition shown in (b) is related to the number of executions. In practical applications, the linkage condition can also be related to the number of occurrences or time intervals of scene events as described in the examples in the aforementioned scenarios. The specifics are not limited here.

[0193] It should be noted that if you want to set the linkage conditions in the linkage task for an existing scene, you can directly Figure 6 In the interface (c) in the middle, set the linkage conditions (or called scene event care conditions). In other words, if you set the linkage conditions in the linkage task for an existing scene, Figure 6 In (c), there is no need to click the “Scene Event Management” icon 602 .

[0194] The third user in the embodiment of the present application can be the first user who creates a new scene event, or the second user who uses the smart home device, or other users, and the specific details are not limited here.

[0195] Step 411: The electronic device sends the linkage task to the cloud server. This step is optional.

[0196] Optionally, after the electronic device creates a linkage task related to a scene event, it can send the linkage task to the home hub or cloud server. The home hub or cloud server monitors the linkage conditions and / or triggers the linkage task. Of course, the electronic device can also monitor the linkage conditions and / or trigger the linkage task, which is not limited here.

[0197] Step 412: Monitor the smart home devices and execute the linkage event if the linkage conditions are met.

[0198] Optionally, the electronic device or home hub monitors one or more smart home devices, and matches the events triggered by the smart home devices with the specified scene events within the monitoring time interval based on the specified scene events. When a scene operation sequence is matched, it is counted once.

[0199] The above matching process can match the three monitored events based on the timing of multiple first events in the "getting up in the middle of the night" scene as shown in Table 3. If the three monitored events are the same as the three first events in the "getting up in the middle of the night" scene and the timing is consistent, then count once. Of course, the Tolerance match can also be added, that is, if the three monitored events are the same as the three first events in the "getting up in the middle of the night" scene and the timing is consistent, but the time interval between the second event and the third event is greater than 10 seconds (that is, the Tolerance value between the second second event and the third second event in the "getting up in the middle of the night" scene), it is determined that there is no match and no counting is performed.

[0200] For example, continuing the above example, if the specified scene event is the "getting up at night" scene between 24:00 and 06:00, and it occurs 4 times, which exceeds 3 times in the linkage condition, then the linkage event will be executed (for example, a reminder message will be sent to the terminal device to let the third user who uses the terminal device know that the "getting up at night" scene is abnormal). The content and format of the reminder message are not specifically limited here. For example: Figure 13 As shown, the third user's mobile phone receives a reminder message: "Your A's "night waking" scene at home is abnormal. The second user has woken up 4 times between 24:00 and 06:00, which is more than the preset value (3 times). Please pay attention!" Thus, the third user can promptly discover the abnormal physical condition of the second user.

[0201] The method provided in the embodiment of the present application may include Figure 4 In one possible implementation, the method provided in the embodiment of the present application may include steps 401 to 405. In another possible implementation, the method provided in the embodiment of the present application may include steps 406 to 411. In another possible implementation, the method provided in the embodiment of the present application may include steps 406, 409, 410, and 411. In another possible implementation, the method provided in the embodiment of the present application may include steps 401 to 411.

[0202] For example, if a user notices that an elderly person has been getting up frequently at night and wishes to provide intelligent care for them, they initiate recording of a "getting up at night" scenario event before bed on the evening of March 10th. Accordingly, steps 401 through 405 are executed. On the morning of March 11th, the user opens their phone, views the recorded "getting up at night" scenario event, and then creates a linkage task. Accordingly, steps 406 through 410 are executed. Consequently, if the elderly person frequently gets up at night (exceeding a user-set preset value), the user will receive an abnormality notification on their phone. Accordingly, step 412 is executed, thus implementing intelligent care for the elderly person. Furthermore, the user can select one or more recorded second events to determine one or more first events to include in the scenario event. Accordingly, steps 407 and 408 are executed. This entire process, on the one hand, reduces the number of manual user operations and the complexity of creating scenario events. On the other hand, the scenario events generated through recording better align with the elderly person's actual usage habits of various smart home devices when getting up at night, improving the accuracy of intelligent care and avoiding care errors caused by scenario events that do not align with user habits.

[0203] in addition, Figure 4 The step sequence in the embodiment of the present application shown may have other possible situations. For example, step 407 and step 408 may be after step 409, etc., which is not limited here.

[0204] In the embodiments of the present application, on the one hand, by recording one or more first events that occur over a period of time to generate scene events, the complexity of configuring linked scene operations is reduced. Furthermore, by recording the sequence of scene operations, the generated scene events are more consistent with the user's actual usage habits. On the other hand, by setting linked tasks associated with scene events, intelligent care can be provided to users using smart devices.

[0205] The electronic device in the embodiment of the present application is described below. Figure 14 The electronic device can be a local device (e.g., a mobile phone, a camera, etc.) or a cloud device. The electronic device includes: a determination unit 1401, an acquisition unit 1402, a monitoring unit 1403, and an execution unit 1404. The operations performed by each unit in the electronic device are the same as those described above. Figure 4 to Figure 12 The operations performed by the electronic device in the illustrated embodiment are similar and will not be described in detail here.

[0206] See also Figure 15, another embodiment of the electronic device in the embodiment of the present application, the electronic device can be a local device (for example, a mobile phone, a camera, etc.) or a cloud device. The electronic device includes: a determination unit 1501, an acquisition unit 1502, a monitoring unit 1503, an execution unit 1504 and a sending unit 1505. The operations performed by each unit in the electronic device are the same as those described above. Figures 4 to 12 The operations performed by the electronic device in the illustrated embodiment are similar and will not be described in detail here.

[0207] The present application provides an electronic device, which is coupled to a memory and is used to read and execute instructions stored in the memory, so that the electronic device can achieve the above-mentioned Figures 4 to 12 In any embodiment, the steps of the method are performed by an electronic device. In one possible design, the electronic device is a chip or a system on a chip.

[0208] The present application provides a chip system, which includes a processor for supporting an electronic device to implement the functions involved in the above aspects, such as sending or processing the data and / or information involved in the above methods. In one possible design, the chip system also includes a memory for storing necessary program instructions and data. The chip system can be composed of a chip or can include a chip and other discrete devices.

[0209] The present application also provides a processor for coupling with a memory and for executing the methods and functions related to the electronic device in any of the above embodiments.

[0210] The present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a computer, implements the method flow related to the electronic device in any of the above method embodiments. Correspondingly, the computer may be the above electronic device.

[0211] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0212] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0213] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0214] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0215] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0216] The terms "first", "second" etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, and this is merely a way of distinguishing the objects of the same attribute when describing them in the embodiments of the present application. In addition, the terms "comprise" and "have" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0217] The names of the messages / frames / information, modules or units provided in the embodiments of the present application are only examples, and other names may be used as long as the functions of the messages / frames / information, modules or units are the same.

[0218] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The singular forms of "a", "said" and "the" used in the embodiments of the present application are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that in the description of the present application, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship, for example, A / B can represent A or B; "and / or" in the present application is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural.

[0219] As used herein, the words “if” or “when” may be interpreted as “at the time of” or “when” or “in response to determining” or “in response to detecting,” depending on the context. Similarly, the phrases “if it is determined” or “if (stated condition or event) is detected” may be interpreted as “when it is determined” or “in response to the determination” or “when detecting (stated condition or event)” or “in response to detecting (stated condition or event),” depending on the context.

[0220] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. An event processing method, characterized in that: include: Determining a scenario event, where the scenario event includes one or more first events, the one or more first events being obtained by monitoring one or more first smart devices, the first event including a first smart device performing a first function, or including a change in a state of the first smart device; Obtaining a first rule, the first rule including a linkage condition and a linkage event, the linkage condition being related to the scenario event, and the linkage event being used to alert a user of the one or more first smart devices that an abnormality exists; monitoring the one or more first smart devices, and executing the linkage event if the one or more first smart devices meet the linkage condition; The executing of the linkage event includes at least one of the following: Sending abnormal information to the terminal device, where the abnormal information is used to alert a user who uses the one or more first smart devices of the abnormality; Stopping the operation of the first smart device; The second smart device is triggered to execute the second function.

2. The method according to claim 1, characterized in that The determining of the scene event includes: monitoring functions performed by the one or more first smart devices or state changes of the one or more first smart devices within a first preset time period to obtain one or more second events; the one or more second events including the one or more first events; Determining that the scene events include the one or more first events.

3. The method according to claim 1, characterized in that The method further comprises: Sending a request message to a cloud device, wherein the request message is used to instruct the cloud device to monitor the functions performed by the one or more first smart devices or the status changes of the one or more first smart devices within a first preset time period; The determining of the scene event includes: Receiving one or more second events obtained through monitoring and sent by the cloud device; the one or more second events include the one or more first events; Determining that the scene events include the one or more first events.

4. The method according to claim 2 or 3, characterized in that Determining that the scene event includes the one or more first events includes: presenting the one or more second events; receiving a first operation from a first user; In response to the first operation, the one or more first events are determined among the one or more second events, the number of the first events being less than or equal to the number of the second events.

5. The method according to any one of claims 1 to 3, characterized in that The scene event also includes first information associated with the first event, the first information including at least one of the location of occurrence of the first event, the identification of the first smart device, the first function, the time interval between at least two first events, and the temporal relationship between the at least two first events.

6. The method according to any one of claims 1 to 3, characterized in that The obtaining of the first rule includes: receiving a second operation from the first user; In response to the second operation, the first rule is set.

7. The method according to any one of claims 1 to 3, characterized in that The linkage condition is related to the number of occurrences and / or the duration of occurrence of the scene event.

8. The method according to claim 7, characterized in that The linkage condition includes at least one of the following: The number of occurrences of the scene event is greater than or equal to a first preset threshold; The occurrence duration of the scene event is greater than or equal to a second preset threshold; The number of occurrences of the scene event within the second preset time period is greater than or equal to a third preset threshold; The occurrence duration of the scene event within the third preset time period is greater than or equal to a fourth preset threshold.

9. The method according to any one of claims 1 to 3, characterized in that The one or more first smart devices belong to the same account of the first user.

10. The method according to any one of claims 1 to 3, characterized in that The method is applied to a smart home scenario, and the first smart device is a smart home device.

11. The method according to claim 10, characterized in that The multiple first smart devices include a first smart light in the bedroom, a second smart light in the bathroom, and a smart flush toilet in the bathroom; the scene event includes three first events, a first first event includes the first smart light turning off and on, a second first event includes the second smart light turning off and on, and a third first event includes the smart flush toilet performing a flushing function; If the one or more smart devices meet the linkage condition, executing the linkage event includes: If the number of occurrences of the scene event within the second preset time period is greater than or equal to the third preset threshold, an abnormality message is sent to the terminal device, and the abnormality message is used to remind the user who uses the one or more first smart devices of the abnormality.

12. An electronic device, characterized in that: include: A processor is coupled to a memory, the memory stores a program, and when the program instructions stored in the memory are executed by the processor, the method according to any one of claims 1 to 11 is implemented.

13. A computer-readable storage medium, characterized in that The method comprises a program, which, when running on a computer, causes the computer to execute the method according to any one of claims 1 to 11.

14. A computer program product, characterized in that When the computer program product is executed on a computer, the computer is caused to perform the method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Monitoring physical locations using rules and events processing

    US7925606B1