Scene processing method and device for smart home, and medium
Through the scene processing method of smart home, scene configuration information is obtained and judged, execution objects are determined, and device operations are controlled, which solves the problem that automated scenarios cannot be executed when the device network is abnormal, and improves user experience and scene processing efficiency.
Patent Information
- Application Number
- CN202411141262.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-11-01
AI Technical Summary
In existing smart home technology, automation scenarios cannot be successfully executed when the device network is abnormal, affecting the user experience.
Provide a smart home scene processing method, by obtaining the scene configuration information of the target scene, determine whether the current environment information meets the triggering conditions, and determine and control the execution object based on the preset action information, including local devices and networked devices, ensuring that it is on the network. Preset actions can still be performed in the event of an exception.
Improve the efficiency of scene processing and user experience, ensure the satisfaction of user needs, and can execute target scenarios even in abnormal situations of device network, improving user comfort and satisfaction.
Smart Images

Figure CN118890232A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart home technology, and specifically provides a scene processing method, device and medium for a smart home. Background Art
[0002] 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.
[0003] In the current smart home technology architecture, the core control and logic processing functions mainly rely on cloud servers. This means that smart home devices must maintain a continuous connection to the Internet in order to perform corresponding automation tasks according to the preset scene configuration. However, once the device is offline or the network is interrupted, the automation scene under cloud control will not be executed smoothly, which will affect the user experience. Summary of the invention
[0004] In order to overcome the above defects, the present application is proposed to provide a solution or at least partially solve the technical problem that the existing method cannot smoothly execute the target scene when the device network is abnormal. The present application provides a scene processing method, device and medium for a smart home.
[0005] In a first aspect, the present application provides a scene processing method for a smart home, the method comprising:
[0006] Acquire scene configuration information of the target scene, wherein the scene configuration information includes trigger conditions and preset action information;
[0007] Determine whether the current environment information meets the trigger condition, where the trigger condition is a preset condition for triggering the execution of the scene;
[0008] If yes, determining an execution object based on the preset action information, the execution object being a smart home device that executes the preset action;
[0009] The execution object is controlled to perform a corresponding operation based on the preset action information.
[0010] In one embodiment of the present application, the smart home device includes a first type of device and a second type of device; and determining the execution object based on the preset action information includes:
[0011] Determining a scene type of the target scene based on the preset action information;
[0012] When the scenario type is the first type, the execution object is the first type of device;
[0013] When the scenario type is the second type, the execution object is the second type of device;
[0014] When the scenario type is the third type, the execution objects are the first type of devices and the second type of devices.
[0015] In one embodiment of the present application, the first type is a local scene type; the first type of device is a local device;
[0016] The controlling the execution object to perform a corresponding operation based on the preset action information includes: controlling the local device to perform a corresponding operation according to the preset action information.
[0017] In one embodiment of the present application, the second type is a cloud scenario type; the second type of device is a networked device;
[0018] The controlling the execution object to perform a corresponding operation based on the preset action information includes: controlling the networked device to perform a corresponding operation according to the preset action information.
[0019] In one embodiment of the present application, the third type is a hybrid scenario type, the first type of device is a local device, and the second type of device is a networked device;
[0020] The controlling the execution object to perform a corresponding operation based on the preset action information includes:
[0021] Determining the networking status of the second-category device;
[0022] When the networking state is normal, controlling the local device and the networking device to respectively perform corresponding operations according to the preset action information;
[0023] When the networking state is an abnormal state, the local device is controlled to perform a corresponding operation according to the preset action information.
[0024] In one embodiment of the present application, the scene configuration information of the target scene is obtained by the following steps:
[0025] Get the scene configuration template;
[0026] Selecting at least one trigger condition in the scenario configuration template;
[0027] Preset action information is configured for the at least one trigger condition to obtain scene configuration information of the target scene.
[0028] In one embodiment of the present application, the method is applied to a scene controller, wherein the scene controller includes a master controller and a slave controller; the method further includes:
[0029] Establishing a communication link between the master controller and the slave controller;
[0030] The master controller sends the scene configuration information to the slave controller via the communication link;
[0031] When an abnormality occurs in the main controller, the slave controller controls the execution object to execute the preset action information based on the scene configuration information.
[0032] In one embodiment of the present application, the method also includes: when the main controller eliminates the abnormality, the slave controller sends temporary scene information to the main controller through the communication link; and the main controller controls the execution object to execute the preset action information based on the temporary scene information.
[0033] In a second aspect, a computer device is provided, comprising:
[0034] at least one processor;
[0035] and, a memory communicatively coupled to the at least one processor;
[0036] Wherein, a computer program is stored in the memory, and when the computer program is executed by the at least one processor, it is the aforementioned smart home scene processing method.
[0037] In a third aspect, a computer-readable storage medium is provided, wherein a plurality of program codes are stored in the computer-readable storage medium, wherein the program codes are suitable for being loaded and run by a processor to execute any of the aforementioned smart home scene processing methods.
[0038] The above one or more technical solutions of this application have at least one or more of the following Beneficial effects:
[0039] The scene processing method of the smart home in this application includes: obtaining the scene configuration information of the target scene, the scene configuration information includes trigger conditions and preset action information; judging whether the current environmental information meets the trigger conditions, the trigger conditions are preset conditions for triggering the execution of the scene; if so, determining the execution object based on the preset action information, the execution object is the smart home device that performs the preset action; and controlling the execution object to perform the corresponding operation based on the preset action information. In this way, users can easily create and customize target scenes that meet user needs, making the home environment more in line with personal needs and preferences, and improving user comfort and satisfaction. At the same time, even in the case of network anomalies of the device, the target scene that meets user needs can be executed, which improves the scene processing efficiency and the user's experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The disclosure of the present application will become more easily understood with reference to the accompanying drawings. It is easy for those skilled in the art to understand that these drawings are only for illustrative purposes and are not intended to limit the scope of protection of the present application. In addition, similar numbers in the drawings are used to represent similar components, among which:
[0041] Figure 1 It is a schematic diagram of the hardware environment of a scene processing method of a smart home in one embodiment of the present application;
[0042] Figure 2 It is a main flow chart of a scene processing method of a smart home in one embodiment of the present application;
[0043] Figure 3 It is a complete flow chart of a scene processing method of a smart home in one embodiment of the present application;
[0044] Figure 4 is a schematic diagram of communication between a master controller and a slave controller in one embodiment of the present application;
[0045] Figure 5 It is a schematic diagram of the main structural block diagram of a scene processing device of a smart home in one embodiment of the present application;
[0046] Figure 6 It is a schematic diagram of the structure of a computer device in one embodiment of the present application. DETAILED DESCRIPTION
[0047] Some embodiments of the present application are described below with reference to the accompanying drawings. Those skilled in the art should understand that these embodiments are only used to explain the technical principles of the present application and are not intended to limit the protection scope of the present application.
[0048] In the description of the present application, "module" and "processor" may include hardware, software or a combination of the two. A module may include hardware circuits, various suitable sensors, communication ports, memory, and may also include software parts, such as program code, or a combination of software and hardware. The processor may be a central processing unit, a microprocessor, an image processor, a digital signal processor or any other suitable processor. The processor has data and / or signal processing functions. The processor may be implemented in software, hardware or a combination of the two. Non-temporary computer-readable storage media include any suitable medium that can store program code, such as a disk, a hard disk, an optical disk, a flash memory, a read-only memory, a random access memory, etc. The term "A and / or B" means all possible combinations of A and B, such as only A, only B or A and B. The term "at least one A or B" or "at least one of A and B" has a similar meaning to "A and / or B" and may include only A, only B or A and B. The singular terms "one" and "the" may also include plural forms.
[0049] The current traditional methods cannot successfully execute the technical problem of the target scenario when the device network is abnormal, resulting in a poor user experience.
[0050] To this end, the present application proposes a scene processing method, device and medium for a smart home.
[0051] According to one aspect of the embodiments of the present application, a scene processing method for a smart home is provided. The scene processing method for a smart home is widely used in whole-house intelligent digital control application scenarios such as smart home, smart home, smart home device ecology, and smart residence ecology. Optionally, in this embodiment, the scene processing method for a smart home can be applied to Figure 1 In the hardware environment composed of the terminal device 10 and the server 20 shown in FIG. Figure 1 As shown, the server 20 is connected to the terminal device 10 via a network, and can be used to provide services (such as application services, etc.) for the terminal or a client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server 20. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data computing services for the server 20.
[0052] The network may include but is not limited to at least one of the following: wired network, wireless network. The wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the wireless network may include but is not limited to at least one of the following: WI FI (Wireless Fidelity), Bluetooth. The terminal device 10 may be but is not limited to a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing device, a smart dishwasher, a smart projection device, a smart TV, a smart clothes drying rack, a smart curtain, a smart audio and video, a smart socket, a smart speaker, a smart fresh air device, a smart kitchen and bathroom device, a smart bathroom device, a smart sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purification device, a smart steamer, a smart microwave oven, a smart kitchen treasure, a smart purifier, a smart water dispenser, a smart door lock, etc.
[0053] See attached Figure 2 , Figure 2 It is a flowchart of the main steps of a scene processing method for a smart home according to an embodiment of the present application.
[0054] The scene processing method of the smart home of the present application can be applied to a scene controller, where the scene controller can be a smart home gateway, an edge computing device, a smart router or a dedicated automation controller, etc., without specific limitation.
[0055] like Figure 2 As shown, the scene processing method of the smart home in the embodiment of the present application mainly includes the following steps S10 to S40.
[0056] Step S10: Acquire scene configuration information of the target scene, where the scene configuration information includes trigger conditions and preset action information.
[0057] The target scenario refers to a specific situation or state that the user wants to achieve, such as leaving home mode, sleeping mode, etc.
[0058] The scene configuration information contains all the necessary information of the target scene, which is used to describe how the scene should be triggered and what operations should be performed.
[0059] Trigger conditions refer to the preset conditions for the activation of a scene, such as a specific time point, a state change detected by a sensor, etc.
[0060] The preset action information describes the operation that the main controller should perform when the trigger condition is met.
[0061] Step S20: Determine whether the current environment information meets the trigger condition, where the trigger condition is a preset condition for triggering the execution of the scene.
[0062] Current environmental information refers to the real-time data and status information used by the smart home system to determine whether the scene trigger conditions are met. This data can be collected through sensors and other smart devices installed in the home.
[0063] Step S30: If yes, determine the execution object based on the preset action information, where the execution object is the smart home device that executes the preset action.
[0064] Step S40: controlling the execution object to perform a corresponding operation based on the preset action information.
[0065] Based on the above steps S10 to S40, first obtain the scene configuration information of the target scene, the scene configuration information includes trigger conditions and preset action information; determine whether the current environmental information meets the trigger conditions; if so, determine the execution object based on the preset action information; and control the execution object to perform corresponding operations based on the preset action information. In this way, users can easily create and customize target scenes that meet user needs, making the home environment more in line with personal needs and preferences, and improving user comfort and satisfaction. At the same time, even in the case of network anomalies of the device, the target scene that meets user needs can be executed, improving the scene processing efficiency and user experience.
[0066] The above steps S10 to S40 are further explained below.
[0067] Specifically, the above step S10 can be implemented through the following steps S101 to S103.
[0068] Step S101: Obtain a scene configuration template.
[0069] The scene configuration template is a scene template pre-built into the smart home system.
[0070] Specifically, the user selects a scene configuration template in an application or platform of the smart home system, thereby obtaining the scene configuration template.
[0071] Step S102: Select at least one trigger condition in the scene configuration template.
[0072] After selecting a scene configuration template, define at least one trigger condition in the trigger condition setting position in the template. The trigger condition defines when the scene will be activated. The trigger condition can be a time point, a device status change (such as a door or window sensor opening / closing), an environmental change (such as light intensity or ambient temperature and humidity reaching a certain threshold), etc. The trigger condition defines when the scene will be activated.
[0073] Step S103: configuring preset action information for at least one trigger condition, and obtaining scene configuration information of the target scene.
[0074] The corresponding execution action information configured by the user for the trigger condition is obtained. The execution action information may include controlling smart devices (such as turning on and off lights, adjusting temperature, starting home appliances, etc.), or more complex operations (such as sending notifications, playing music, etc.), which are not specifically limited. Among them, the user can configure one action for one trigger condition, or multiple actions for one trigger condition, which are not specifically limited.
[0075] The above is a further description of step S10 , and the following is a further description of step S20 .
[0076] For the above step S20, the scene controller may collect real-time data from various sensors and devices, which constitute the current environment information, such as the reading of the temperature sensor, the reading of the humidity sensor, etc. Then, the collected current environment information is compared with the trigger condition in the target scene configuration information. If the current environment information matches the trigger condition, it is considered that the trigger condition is met. If not, it is considered that the trigger condition is not met, and the subsequent steps will not be executed.
[0077] The above is a further description of step S20 , and the following is a further description of step S30 .
[0078] Specifically, the smart home devices include first-category devices and second-category devices, and the above step S30 can be implemented through the following steps S301 to S304.
[0079] Step S301: determining the scene type of the target scene based on preset action information.
[0080] The scene type is a scene category classified according to the execution dependency of preset action information in the target scene. Different scene types correspond to different execution objects and execution strategies.
[0081] The scene types include local scene types, cloud scene types, and hybrid scene types.
[0082] Local scene type means that all actions can be completed independently by local devices without relying on cloud services. For example, turning off smart home devices, adjusting the volume, etc.
[0083] Cloud scenario type means that all actions need to rely on cloud services to complete, for example, obtaining weather forecasts, sending notification messages, etc.
[0084] Hybrid scenarios refer to scenarios where some actions are completed independently by the local device, while others rely on cloud services to complete. For example, turning on the lights and playing music (completed by the local device) and sending a safety reminder SMS through the cloud service.
[0085] Step S302: When the scene type is the first type, the execution object is the first type of device.
[0086] The first type is the local scene type, and the first type of device is a local device.
[0087] Specifically, when the scene type is a local scene type, the execution object is a local device.
[0088] Step S303: When the scene type is the second type, the execution object is the second type of device.
[0089] The second type is the cloud scene type, and the second type of device is the Internet-connected device.
[0090] Specifically, when the scene type is a cloud scene type, the execution object is a networked device.
[0091] Step S304: when the scenario type is the third type, the execution objects are the first type of devices and the second type of devices.
[0092] The third type is the mixed scenario type, and the third type of devices includes local devices and networked devices.
[0093] Specifically, when the scene type is a mixed scene type, both the local device and the networked device are execution objects.
[0094] The above is a further description of step S30 , and the following is a further description of step S40 .
[0095] In a specific embodiment of the present application, the first type is a local scene type; the first type of device is a local device; and controlling the execution object to perform a corresponding operation based on the preset action information includes: controlling the local device to perform a corresponding operation according to the preset action information.
[0096] Specifically, when the scene type of the target scene is a local scene type, the corresponding local device can be controlled to perform the corresponding operation according to the preset action information in the scene configuration information. The characteristic of the local scene type is that all actions can be completed independently by the local device without relying on cloud services. This type of scene is suitable for scenes that need to work normally even without an Internet connection, which improves the reliability and response speed of the device.
[0097] In a specific embodiment of the present application, the second type is a cloud scene type; the second type of device is a networked device; and controlling the execution object to perform a corresponding operation based on the preset action information includes: controlling the networked device to perform a corresponding operation according to the preset action information.
[0098] Specifically, when the scene type of the target scene is a cloud scene type, the corresponding networked device can be controlled to perform corresponding operations according to the preset action information in the scene configuration information. The characteristic of the cloud scene type is that all actions in the scene need to rely on cloud services to complete. This type of scene is suitable for scenes that need to interact with the cloud, such as obtaining external data, sending notifications, etc.
[0099] In a specific embodiment of the present application, the third type is a mixed scenario type, the first type of device is a local device, and the second type of device is a networked device. Controlling the execution object to perform a corresponding operation based on the preset action information can be implemented through the following steps S401 to S403.
[0100] Step S401: Determine the networking status of the second type of device.
[0101] Specifically, it is determined whether the networking status of the networking device is normal, wherein the disconnected and offline states are both abnormal networking states.
[0102] Step S402: When the networking state is normal, the local device and the networking device are controlled to perform corresponding operations according to preset action information.
[0103] Specifically, when the networking status of the networked device is normal, it means that the networked device can work normally. At this time, the local device can be controlled to perform actions related to the local device, and the networked device can be controlled to perform actions related to the networked device.
[0104] Step S403: When the network connection state is abnormal, the local device is controlled to perform corresponding operations according to the preset action information.
[0105] Specifically, when the networking status of a networked device is abnormal, it means that the networked device cannot work normally. At this time, the action that the networked device needs to perform is bypassed, and the local device is controlled to perform actions related to the local device.
[0106] When the network status is abnormal, the local device is controlled to perform corresponding operations according to the preset action information, ensuring that some actions can still be performed even when the network is unstable or disconnected, thereby improving the reliability of the system and enhancing the user experience.
[0107] For example, Figure 3 FIG. 1 is a complete flow chart of a scene processing method for a smart home in one embodiment of the present application. Figure 3 As shown, the scene processing method of the smart home of the present application can be implemented through the following steps S100 to S700.
[0108] Step S100: The user creates a scene, thereby obtaining scene configuration information corresponding to the target scene.
[0109] Step S200: monitor environmental information and execute step S300 when a trigger condition is met.
[0110] Step S300: Determine whether the execution action in the scene configuration information must request a cloud service, if so, execute step S500, otherwise execute step S400.
[0111] Step S400: The local device executes a preset action corresponding to the target scene.
[0112] Step S500: Determine whether the networked device is connected to the network normally. If so, execute step S600; otherwise, execute steps S700 and S800.
[0113] Step S600: The networked device requests cloud services and executes corresponding actions.
[0114] Step S700: bypassing actions that rely on cloud services.
[0115] Step S800: The local device executes a preset action corresponding to the target scene.
[0116] In a specific embodiment of the present application, the scene controller includes a master controller and a slave controller; the method also includes: establishing a communication link between the master controller and the slave controller; the master controller sends the scene configuration information to the slave controller through the communication link; when there is an abnormality in the master controller, the slave controller controls the execution object to execute preset action information based on the scene configuration information.
[0117] The scene controller in this application may include at least two redundant controllers, one of which is a master controller and the other is a slave controller. The master controller is the core controller in the smart home system, responsible for receiving and processing scene configuration information and controlling the execution of the scene. The slave controller is an auxiliary controller, which is usually in standby mode, but can take over the control task when an abnormality occurs in the master controller.
[0118] For example, Figure 4 It can be used as an example of communication between the master controller and the slave controller. Specifically, a stable communication connection is established between the master controller and the slave controller, and the communication link can be wireless (such as Wi-Fi, Bluetooth, Zigbee, etc.) or wired (such as Ethernet). The master controller sends the scene configuration information to the slave controller for backup through the communication link. When the master controller fails or is abnormal, the slave controller takes over the control task, and the slave controller controls the execution object to perform the preset action according to the scene configuration information previously received.
[0119] The collaboration mechanism between the master controller and the slave controller ensures that the target scenario can still be executed correctly even when an abnormality occurs in the master controller. The existence of the slave controller improves the stability and reliability of the system, thereby improving the user experience.
[0120] In a specific embodiment of the present application, the method further includes: when the main controller eliminates the abnormality, the slave controller sends temporary scene information to the main controller through the communication link; and the main controller continues to control the execution object to execute the preset action information.
[0121] Temporary scene information refers to all scenes and related information executed by the slave controller as a temporary host control during the period when the master controller is abnormal.
[0122] Specifically, when the main controller eliminates the exception, the slave controller sends temporary scene information to the main controller via the communication link. After receiving the temporary scene information from the slave controller, the main controller takes over the scene control task again to continue controlling the execution object to perform preset actions according to the scene configuration information.
[0123] This ensures that even if the main controller fails, the scene can still be executed correctly, and the main controller can seamlessly take over the control task after returning to normal, improving the stability and continuity of the system.
[0124] It should be pointed out that although the various steps in the above embodiments are described in a specific order, those skilled in the art can understand that in order to achieve the effect of the present application, different steps do not have to be executed in such an order. They can be executed simultaneously (in parallel) or in other orders. These changes are within the scope of protection of the present application.
[0125] Furthermore, the present application also provides a scene processing device for a smart home.
[0126] See attached Figure 5 , Figure 5 It is a main structural block diagram of a scene processing device for a smart home according to an embodiment of the present application.
[0127] like Figure 5 As shown, the scene processing device of the smart home in the embodiment of the present application mainly includes an acquisition module 11, a judgment module 12, a determination module 13 and a control module 14. In some embodiments, one or more of the acquisition module 11, the judgment module 12, the determination module 13 and the control module 14 can be combined into one module.
[0128] In some embodiments, the acquisition module 11 may be configured to acquire scene configuration information of the target scene, where the scene configuration information includes trigger conditions and preset action information.
[0129] The determination module 12 may be configured to determine whether the current environment information satisfies the trigger condition, where the trigger condition is a preset condition for triggering the execution of the scene.
[0130] The determination module 13 may be configured to determine an execution object based on preset action information when the current environment information meets the trigger condition, where the execution object is a smart home device that executes the preset action.
[0131] The control module 14 may be configured to control the execution object to perform a corresponding operation based on the preset action information.
[0132] In one implementation, the description of the specific implementation functions can refer to steps S10 to S40.
[0133] The scene processing device of the smart home is used to execute Figure 2 The embodiment of the scene processing method for the smart home shown in the figure has similar technical principles, technical problems solved and technical effects produced. Technical personnel in this technical field can clearly understand that for the convenience and conciseness of description, the specific working process and related instructions of the scene processing device of the smart home can refer to the contents described in the embodiment of the scene processing method for the smart home, and will not be repeated here.
[0134] Further, it should be understood that since the setting of each module is only for illustrating the functional units of the device of the present application, the physical devices corresponding to these modules may be the processor itself, or a part of the software in the processor, a part of the hardware, or a part of the combination of software and hardware. Therefore, the number of each module in the figure is only schematic.
[0135] It is understood by those skilled in the art that each module in the device can be adaptively split or merged. Such splitting or merging of specific modules will not cause the technical solution to deviate from the principle of the present application, and therefore, the technical solutions after splitting or merging will fall within the protection scope of the present application.
[0136] It is understood by those skilled in the art that all or part of the processes in the method for implementing the above-mentioned embodiment of the present application can also be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device, medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electrical carrier signal, telecommunication signal and software distribution medium, etc. that can carry the computer program code.
[0137] Furthermore, the present application also provides a computer device, which may include at least one processor; and a memory connected to the at least one processor; wherein a computer program is stored in the memory, and when the computer program is executed by the at least one processor, the scene processing method of the smart home described in any of the above embodiments is implemented. Figure 6 As shown, Figure 6 exemplarily shows the structure of a computer device, which includes a processor 100 and a memory 200.
[0138] Furthermore, the present application also provides a computer-readable storage medium. In a computer-readable storage medium embodiment according to the present application, the computer-readable storage medium can be configured to store a program for executing the scene processing method of the smart home of the above-mentioned method embodiment, and the program can be loaded and run by the processor to implement the above-mentioned scene processing method of the smart home. For ease of explanation, only the parts related to the embodiment of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present application. The computer-readable storage medium can be a memory device formed by various electronic devices. Optionally, the computer-readable storage medium in the embodiment of the present application is a non-temporary computer-readable storage medium.
[0139] So far, the technical solutions of the present application have been described in conjunction with the specific implementations shown in the accompanying drawings, but it is easy for those skilled in the art to understand that the protection scope of the present application is obviously not limited to these specific implementations. Without departing from the principles of the present application, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present application.
Claims
1. A scene processing method for a smart home, characterized in that: The method comprises: Acquire scene configuration information of the target scene, wherein the scene configuration information includes trigger conditions and preset action information; Determine whether the current environment information meets the trigger condition, where the trigger condition is a preset condition for triggering the execution of the scene; If yes, determining an execution object based on the preset action information, the execution object being a smart home device that executes the preset action; The execution object is controlled to perform a corresponding operation based on the preset action information.
2. The scene processing method of smart home according to claim 1, characterized in that: The smart home device includes a first type of device and a second type of device; and determining the execution object based on the preset action information includes: Determining a scene type of the target scene based on the preset action information; When the scenario type is the first type, the execution object is the first type of device; When the scenario type is the second type, the execution object is the second type of device; When the scenario type is the third type, the execution objects are the first type of devices and the second type of devices.
3. The scene processing method of smart home according to claim 2, characterized in that: The first type is a local scene type; The first type of device is a local device; The controlling the execution object to perform a corresponding operation based on the preset action information includes: controlling the local device to perform a corresponding operation according to the preset action information.
4. The scene processing method of smart home according to claim 2, characterized in that: The second type is a cloud scenario type; The second type of equipment is a networked device; The controlling the execution object to perform a corresponding operation based on the preset action information includes: controlling the networked device to perform a corresponding operation according to the preset action information.
5. The scene processing method of smart home according to claim 2, characterized in that: The third type is a hybrid scenario type, the first type of device is a local device, and the second type of device is a networked device; The controlling the execution object to perform a corresponding operation based on the preset action information includes: Determining the networking status of the second-category device; When the networking state is normal, controlling the local device and the networking device to respectively perform corresponding operations according to the preset action information; When the networking state is an abnormal state, the local device is controlled to perform a corresponding operation according to the preset action information.
6. The scene processing method of smart home according to claim 1, characterized in that: Obtain the scene configuration information of the target scene by following the steps below: Get the scene configuration template; Selecting at least one trigger condition in the scenario configuration template; Preset action information is configured for the at least one trigger condition to obtain scene configuration information of the target scene.
7. The scene processing method of smart home according to claim 1, characterized in that: Applied to a scene controller, the scene controller includes a master controller and a slave controller; the method further includes: Establishing a communication link between the master controller and the slave controller; The master controller sends the scene configuration information to the slave controller via the communication link; When an abnormality occurs in the main controller, the slave controller controls the execution object to perform a corresponding operation based on the preset action information.
8. The scene processing method of smart home according to claim 7, characterized in that: The method also includes: when the main controller eliminates the abnormality, the slave controller sends temporary scene information to the main controller through the communication link; and the main controller controls the execution object to perform corresponding operations based on the preset action information and the temporary scene information.
9. A computer device, characterized in that: include: at least one processor; and, a memory communicatively coupled to the at least one processor; Wherein, a computer program is stored in the memory, and when the computer program is executed by the at least one processor, the scene processing method of the smart home described in any one of claims 1 to 8 is implemented.
10. A computer-readable storage medium storing a plurality of program codes, characterized in that: The program code is suitable for being loaded and run by a processor to execute the scene processing method of a smart home according to any one of claims 1 to 8.
Citation Information
Patent Citations
Equipment control method and device, electronic equipment and storage medium
CN116820013A
Household equipment control method and device, household equipment and storage medium
CN117055362A
