Method, system and device for controlling smart home equipment
By introducing relay devices into the smart home system, receiving and processing scene instructions, the problem of unclear priority of scene instructions execution is solved, and more efficient smart home device control is achieved and user experience is improved.
Patent Information
- Application Number
- CN202411852967.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-16
- Publication Date
- 2025-04-15
AI Technical Summary
When the existing whole-house intelligent system handles scene commands, there is a problem that the priority of scene command execution is unclear when the command conflicts are made, which affects the user experience.
By receiving the scene instructions sent by the smart home controller in the relay device in each scene area, and sending the instructions to other smart home devices, obtaining the scene instructions it is executing. If there is a conflict, determine the conflict target device and output reminder information to the user through the smart home controller. The priority order of scene instructions is determined according to the instruction type, and the target device is controlled to execute the corresponding scene instructions according to the priority order.
The relay device controls the sub-device in each scene area, and controls it according to the scene priority order, supporting scene control mode distinction and priority grading, solving the problem of unclear scene execution priority and improving the user experience.
Smart Images

Figure CN119828488A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart home device control technology, and in particular to a control method for smart home device, a control system for smart home device, a control device for smart home device, a smart home device and a computer-readable storage medium. Background Art
[0002] With the update and iteration of communication technology, the Internet of Things concept of interconnecting everything has entered all aspects of home life. In the field of smart home, as smart products in homes become more and more popular, more comprehensive and more humane management of many smart home products has gradually become a pain point for users. The whole-house smart system centered on the smart control screen has gradually become the first choice for managing smart home devices. The whole-house smart system can control the smart products in the user's home in batches, giving users a better operating experience.
[0003] Currently, the whole-house smart systems on the market support the function of scene setting. However, when the scene command involves a device that is already in operation or a device that is currently executing a scene command, that is, when a command conflict occurs, there is an unclear priority for the execution of the scene command, which affects the user experience. Summary of the invention
[0004] In view of the above problems, embodiments of the present invention are proposed to provide a control method for a smart home device, a control system for a smart home device, a control device for a smart home device, a smart home device and a computer-readable storage medium that overcome the above problems or at least partially solve the above problems.
[0005] In order to solve the above problem, a first aspect of an embodiment of the present invention provides a method for controlling a smart home device, the method comprising:
[0006] The relay device receives a first scene instruction sent by the smart home controller to the relay device in each room area in the home space; the relay device is a smart furniture device in the room area;
[0007] Sending the first scene instruction to other smart home devices in the room area, and obtaining the scene instructions being executed by the other smart home devices and the relay device;
[0008] If the scene instructions being executed by the other smart home devices and the relay device conflict with the first scene instruction, determining a target smart home device in conflict, and outputting a first reminder message to the user through the smart home controller, where the first reminder message is used to remind the user that there is a scene instruction conflict;
[0009] If the second scene instruction sent by the smart home controller is not received after the first reminder information is output, the instruction types of the first scene instruction and the scene instruction being executed are obtained, and the priority order of the first scene instruction and the scene instruction being executed is determined according to the instruction type, and according to the priority order, the target smart home device is controlled to execute the target scene instruction and / or continue to execute the scene instruction being executed.
[0010] Optionally, it also includes:
[0011] If, after outputting the first reminder information, a second scene instruction with a priority order is received from the smart home controller, the target smart home device is controlled according to the priority order to execute the target scene instruction and / or continue to execute the scene instruction being executed.
[0012] Optionally, it also includes:
[0013] After receiving the second scene instruction with priority sent by the smart home controller, the operating status of other smart home devices and the relay device in the room area is recorded, and a second reminder message is output to the user through the smart home controller. The second reminder message is used to remind the user whether to update the scene corresponding to the scene instruction being executed.
[0014] Optionally, the instruction types include: regional scene instructions and panoramic scene instructions;
[0015] The determining, according to the instruction type, a priority order of the first scene instruction and the scene instruction being executed includes:
[0016] If the first scene instruction is a regional scene instruction and the scene instruction being executed is a regional scene instruction, determining that the priority order of the first scene instruction is higher than the priority order of the scene instruction being executed;
[0017] If the first scene instruction is a global scene instruction and the scene instruction being executed is a regional scene instruction, determining that the priority order of the first scene instruction is lower than the priority order of the scene instruction being executed;
[0018] If the first scene instruction is a regional scene instruction and the scene instruction being executed is a global scene instruction, it is determined that the priority order of the first scene instruction is higher than the priority order of the scene instruction being executed.
[0019] A second aspect of an embodiment of the present invention provides a control system for smart home devices, including: a smart home controller and a relay device;
[0020] The smart home controller is used to divide the home space into multiple room areas, determine one smart home device in each of the multiple room areas as a relay device, and send a first scene instruction to the relay device; when the first scene instruction conflicts with the scene instruction being executed by the smart home device, output a first reminder message to the user;
[0021] The relay device is used to receive a first scene instruction sent by the smart home controller, send the first scene instruction to other smart home devices in the room area, and obtain the scene instructions being executed by the other smart home devices and the relay device; if the scene instructions being executed by the other smart home devices and the relay device conflict with the first scene instruction, determine the target smart home device in conflict, and output a first reminder message to the user through the smart home controller, where the first reminder message is used to remind the user that there is a scene instruction conflict; if the second scene instruction sent by the smart home controller is not received after the first reminder message is output, obtain the instruction type of the first scene instruction and the scene instruction being executed, determine the priority order of the first scene instruction and the scene instruction being executed according to the instruction type, and control the target smart home device according to the priority order to execute the target scene instruction and / or continue to execute the scene instruction being executed.
[0022] Optionally, the smart home controller is further configured to send a second scene instruction with a priority order to the relay device after outputting the first reminder information;
[0023] The relay device is also used to, if after outputting the first reminder information, receive a second scene instruction with a priority order sent by the smart home controller, then control the target smart home device according to the priority order, execute the target scene instruction and / or continue to execute the scene instruction being executed.
[0024] Optionally, the smart home controller is further used to output a second reminder message to the user; the second reminder message is used to remind the user whether to update the scene corresponding to the scene instruction being executed;
[0025] The relay device is also used to record the operating status of other smart home devices and the relay device in the room area after receiving the second scene instruction with priority sent by the smart home controller, and output the second reminder information to the user through the smart home controller.
[0026] Optionally, the instruction types include: regional scene instructions and panoramic scene instructions;
[0027] The relay device is used for, if the first scene instruction is a regional scene instruction and the scene instruction being executed is a regional scene instruction, determining that the priority order of the first scene instruction is higher than the priority order of the scene instruction being executed; if the first scene instruction is a global scene instruction and the scene instruction being executed is a regional scene instruction, determining that the priority order of the first scene instruction is lower than the priority order of the scene instruction being executed; if the first scene instruction is a regional scene instruction and the scene instruction being executed is a global scene instruction, determining that the priority order of the first scene instruction is higher than the priority order of the scene instruction being executed.
[0028] According to a third aspect of an embodiment of the present invention, a control device for a smart home device is provided, the device comprising:
[0029] A first instruction receiving module is used to receive a first scene instruction sent by the smart home controller to a relay device in each room area in the home space; the relay device is a smart furniture device in the room area;
[0030] A first instruction sending module, used to send the first scene instruction to other smart home devices in the room area, and obtain the scene instructions being executed by the other smart home devices and the relay device;
[0031] an instruction conflict judgment module, configured to determine a target smart home device in conflict if the scene instructions being executed by the other smart home devices and the relay device conflict with the first scene instruction, and output a first reminder message to the user through the smart home controller, wherein the first reminder message is used to remind the user that there is a scene instruction conflict;
[0032] An instruction execution module is used to obtain the instruction types of the first scene instruction and the scene instruction being executed if the second scene instruction sent by the smart home controller is not received after outputting the first reminder information, and determine the priority order of the first scene instruction and the scene instruction being executed according to the instruction type, and control the target smart home device according to the priority order to execute the target scene instruction and / or continue to execute the scene instruction being executed.
[0033] Optionally, the device further comprises:
[0034] The second instruction receiving module is used to control the target smart home device according to the priority order, execute the target scene instruction and / or continue to execute the scene instruction being executed if a second scene instruction with a priority order is received from the smart home controller after outputting the first reminder information.
[0035] Optionally, the second instruction receiving module includes:
[0036] The scene update submodule is used to record the operating status of other smart home devices and the relay device in the room area after receiving the second scene instruction with priority sent by the smart home controller, and output a second reminder message to the user through the smart home controller, wherein the second reminder message is used to remind the user whether to update the scene corresponding to the scene instruction being executed.
[0037] Optionally, the instruction types include: regional scene instructions and panoramic scene instructions;
[0038] The instruction execution module comprises:
[0039] An instruction priority judgment submodule is used to determine that the priority order of the first scene instruction is higher than the priority order of the scene instruction being executed if the first scene instruction is a regional scene instruction and the scene instruction being executed is a regional scene instruction; if the first scene instruction is a global scene instruction and the scene instruction being executed is a regional scene instruction, then determine that the priority order of the first scene instruction is lower than the priority order of the scene instruction being executed; if the first scene instruction is a regional scene instruction and the scene instruction being executed is a global scene instruction, then determine that the priority order of the first scene instruction is higher than the priority order of the scene instruction being executed.
[0040] According to a fourth aspect of the present invention, there is provided a smart home device, comprising: a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of a method for controlling a smart home device as described above are implemented.
[0041] According to a fifth aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of a method for controlling a smart home device as described above are implemented.
[0042] The technical solution provided by the embodiments of the present invention may have the following beneficial effects:
[0043] An embodiment of the present invention provides a method for controlling smart home devices, the method comprising: a relay device receives a first scene instruction sent by a smart home controller to relay devices in each room area in a home space; the relay device is a smart furniture device in the room area; the first scene instruction is sent to other smart home devices in the room area, and the scene instructions being executed by the other smart home devices and the relay device are obtained; if the scene instructions being executed by the other smart home devices and the relay device conflict with the first scene instruction, a target smart home device in conflict is determined, and a first reminder message is output to a user through the smart home controller, the first reminder message being used to remind the user that there is a scene instruction conflict; if a second scene instruction sent by the smart home controller is not received after the first reminder message is output, the instruction type of the first scene instruction and the scene instruction being executed is obtained, and the priority order of the first scene instruction and the scene instruction being executed is determined according to the instruction type, and according to the priority order, the target smart home device is controlled to execute the target scene instruction and / or continue to execute the scene instruction being executed. All sub-devices in each scene area can be controlled through the relay devices in each scene area, and the regional sub-devices under the relay devices can be controlled separately according to the scene priority order. It supports the execution of scene control mode differentiation and priority grading, solves the problem of unclear scene execution priority, and improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 is a flowchart of a method for controlling a smart home device provided by an embodiment of the present invention;
[0045] Figure 2 is a flowchart of another method for controlling a smart home device provided by an embodiment of the present invention;
[0046] Figure 3 is a structural block diagram of a control system of a smart home device provided by an embodiment of the present invention;
[0047] Figure 4 It is a structural block diagram of a control device for a smart home device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0048] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0049] When a scene command involves a device that is already in operation or is currently executing a scene command, that is, when a command conflict occurs, there is an issue of unclear execution priority of scene commands, which affects the user experience.
[0050] One of the core concepts of the embodiments of the present invention is that the present invention receives the first scene instruction sent by the smart home controller to each room area through the relay device in each scene area, and then sends the scene instruction to other devices in the room area, and obtains the instruction being executed to determine whether there is a command conflict in other devices. If the scene instruction being executed by other smart home devices conflicts with the scene instruction, the smart home controller outputs a reminder message to the user to obtain the priority order defined by the user. Thus, the target scene instruction sent by the smart home controller is received, and the target smart home device is controlled according to the instruction priority order to execute the target scene instruction and / or continue to execute the scene instruction being executed. All sub-devices in each scene area can be controlled by the relay device in each scene area, and the regional sub-devices under the relay device can be controlled separately according to the scene priority order, supporting the execution of scene control mode distinction and priority grading, solving the problem of unclear scene execution priority, and improving the user experience.
[0051] Reference Figure 1 , shows a flowchart of a method for controlling a smart home device provided by an embodiment of the present invention, and the method may specifically include the following steps:
[0052] Step 101, a relay device receives a first scene instruction sent by a smart home controller to a relay device in each room area in a home space; the relay device is a smart furniture device in the room area;
[0053] Smart Home Controller is the core device of the smart home system, responsible for managing and coordinating various smart devices to achieve automatic control, remote operation and scene linkage. It provides users with a convenient, efficient and safe home management experience by integrating sensors, actuators, communication modules and software platforms.
[0054] A relay device is a device used for signal amplification, forwarding or transfer. In this embodiment, the relay device is any smart furniture device in the room area.
[0055] After establishing a whole-house smart system, users can use the smart home controller to customize scene area division. The devices connected to the smart home controller include environmental detection devices (such as millimeter wave radar, sweeping robot, etc.). The smart home controller controls the start of environmental detection devices to scan the home space environment and form an environmental model.
[0056] After generating the environmental model, the user can divide the model into different room areas or different scene areas. After the division is completed, multiple room areas are obtained, and smart home devices are set up in each room area.
[0057] After obtaining multiple room areas, the smart home controller will obtain the average daily online time of the smart home devices in each area, and designate a relay device in different areas based on the average daily online time of each device. The device can communicate directly with the smart home controller. That is, the relay device must meet two requirements: being online for a long time and being able to communicate directly with the smart home controller.
[0058] The relay device can also be selected by the user, and the smart home controller will record the information of the relevant devices. When the user chooses to select the relay device by himself, the devices that can communicate directly with the smart home controller will be displayed, and all devices that can communicate directly with the smart home controller will be sorted from long to short according to the actual online time of each device. When the device selected by the user has a short online time, the user will be reminded of the impact on the experience and a suitable device will be recommended so that the user can choose a more suitable device as a relay device.
[0059] After confirming the relay devices in each area, the smart home controller will issue instructions to let the other devices in the area form a regional network with the relay device. After the network is completed, the other devices in the area will disconnect from the smart home controller, and the other devices in the area will communicate with the smart home controller through the relay device LAN. When the area is re-divided, the above operation will be repeated and the information of the devices in the area will be updated.
[0060] After the relay device completes the regional networking, the relay device in each area will automatically collect the operating status of the sub-devices connected in the area and the executed scene instructions, and report them to the smart home controller in real time.
[0061] In this embodiment, the smart home controller receives the running status of the sub-devices connected to each area and the executed scene instructions, and records them. When the user wants to issue a scene instruction, the smart home controller sends the scene instruction to the relay device, and controls other devices in the area through the relay device.
[0062] Step 102, sending the first scene instruction to other smart home devices in the room area, and obtaining the scene instructions being executed by the other smart home devices and the relay device;
[0063] Scene commands are an advanced feature in smart home systems that define and execute a set of preset device operations. Through scene commands, users can trigger the linkage operation of multiple devices with one click, thereby achieving automated control and personalized experience. They are usually used to achieve specific functions or meet specific needs. For example: "Home Mode": turn on the lights, turn on the air conditioner, play music, and open the curtains. "Away Mode": turn off all lights, turn off electrical appliances, lock the door, and turn on the security system. "Movie Viewing Mode": dim the lights, close the curtains, turn on the projector, and adjust the audio volume.
[0064] In this embodiment, after the relay device receives the first scene instruction issued by the smart home controller, it sends the scene instruction to other smart home devices in the corresponding room area, and obtains the scene instructions being executed by other smart home devices and relay devices in the room area, and sends a query request to each smart home device and relay device to obtain the scene instructions they are currently executing, waits for the response returned by the device, parses the response data, and extracts the scene instructions being executed by each device.
[0065] Step 103: if the scene instructions being executed by the other smart home devices and the relay device conflict with the first scene instruction, determining a target smart home device in conflict, and outputting a first reminder message to the user through the smart home controller, where the first reminder message is used to remind the user that there is a scene instruction conflict;
[0066] Command conflict refers to the situation in which multiple commands are sent to the same device simultaneously or successively in a smart home system, causing the device to fail to execute correctly or the execution results to be inconsistent with expectations. Multiple scenes are triggered at the same time, causing the device to receive conflicting commands. For example, "Home Mode" and "Away Mode" are triggered at the same time, causing confusion in device operation.
[0067] Reminders are used to send notifications or reminders to users, helping them to keep abreast of device status, system events or important information. Through reminders, users can better manage home devices and improve the convenience and safety of their lives.
[0068] In this embodiment, after obtaining the scene instructions being executed by other smart home devices and relay devices, conflict detection is performed, and a reminder message is output to the user when a conflict is detected. According to the specific scene instructions, it is determined which instructions of the smart home devices conflict with each other, and the scene instructions being executed by all devices are traversed to check whether there is a conflict with the first scene instruction. The name or identifier of the device in conflict is recorded, and a reminder message is generated according to the conflicting device and the conflicting instruction, and is output to the user through the smart home controller to remind the user which devices have scene instruction conflicts.
[0069] All scene instructions will be sent to the corresponding sub-devices in the area through the relay device (that is, first confirm the scene execution area, then confirm the scene execution device). When the relay device receives the scene execution command, it will confirm the scene command currently executed in the area. If there is a regional scene being executed and the executed device command conflicts with the latest scene command, the conflicting device status will be fed back to the user for confirmation.
[0070] Step 104: If the second scene instruction sent by the smart home controller is not received after the first reminder information is output, the instruction types of the first scene instruction and the scene instruction being executed are obtained, and the priority order of the first scene instruction and the scene instruction being executed is determined according to the instruction type, and according to the priority order, the target smart home device is controlled to execute the target scene instruction and / or continue to execute the scene instruction being executed.
[0071] The command type refers to the different operation commands sent by the controller or user to the device, which are used to implement functions such as device control, status query, and configuration management, including: regional scene commands and panoramic scene commands.
[0072] The priority order of scene commands refers to the rules for how the system determines the execution order when multiple scene commands are triggered simultaneously or successively. Reasonable priority order can avoid command conflicts, ensure stable operation of the system, and meet the actual needs of users.
[0073] After receiving the reminder message, the user will confirm it and then define the command priority order of the device. The smart home controller will issue the second scene command according to the command priority order.
[0074] If the user does not confirm, the second scene command sent by the smart home controller will not be received, and the regional scene command will be automatically executed first. The user can also manually set the scene execution priority order when the scene definition is sent.
[0075] In this embodiment, after outputting the first reminder information, if the second scene instruction is not received within a certain period of time, the relay device needs to automatically handle the scene instruction conflict according to the instruction type and priority order. The relay device obtains the target smart device instruction type and determines the priority order of the first scene instruction and the scene instruction being executed according to the instruction type.
[0076] Compare the priorities of the first scene instruction and the scene instruction being executed. If the first scene instruction has a higher priority, overwrite the current instruction of the target device. If the scene instruction being executed has a higher priority, continue to execute the current instruction and ignore the first scene instruction.
[0077] The relay controls the target smart home devices according to the defined priority order, executes the target scene instructions or continues to execute the scene instructions being executed.
[0078] For example, a user issues a new regional scene execution command, which includes the dehumidification mode for the air conditioner in the area. However, at this time, the air conditioner is performing a cooling operation due to the previous global scene command, so there will be a command conflict. The relay device will generate a reminder message and send it back to the user for confirmation through the smart home controller. The user will prioritize the commands executed by the conflicting devices, such as the air conditioner responding to the dehumidification command of the regional scene after performing the cooling operation for a preset time.
[0079] Reference Figure 2 , shows a flowchart of another method for controlling a smart home device provided by an embodiment of the present invention, wherein the method may specifically include the following steps:
[0080] Step 201, a relay device receives a first scene instruction sent by a smart home controller to a relay device in each room area in a home space; the relay device is a smart furniture device in the room area;
[0081] In this embodiment, the smart home controller receives the running status of the sub-devices connected to each area and the executed scene instructions, and records them. When the user wants to issue a scene instruction, the smart home controller sends the scene instruction to the relay device, and controls other devices in the area through the relay device.
[0082] Step 202: Send the first scene instruction to other smart home devices in the room area, and obtain the scene instructions being executed by the other smart home devices and the relay device;
[0083] In this embodiment, after the relay device receives the first scene instruction issued by the smart home controller, it sends the scene instruction to other smart home devices in the corresponding room area, and obtains the scene instructions being executed by other smart home devices and relay devices in the room area, and sends a query request to each smart home device and relay device to obtain the scene instructions they are currently executing, waits for the response returned by the device, parses the response data, and extracts the scene instructions being executed by each device.
[0084] Step 203: if the scene instructions being executed by the other smart home devices and the relay device conflict with the first scene instruction, determine the target smart home device in conflict, and output a first reminder message to the user through the smart home controller, where the first reminder message is used to remind the user that there is a scene instruction conflict;
[0085] In this embodiment, after obtaining the scene instructions being executed by other smart home devices and relay devices, conflict detection is performed, and a reminder message is output to the user when a conflict is detected. According to the specific scene instructions, it is determined which instructions of the smart home devices conflict with each other, and the scene instructions being executed by all devices are traversed to check whether there is a conflict with the first scene instruction. The name or identifier of the device in conflict is recorded, and a reminder message is generated according to the conflicting device and the conflicting instruction, and is output to the user through the smart home controller to remind the user which devices have scene instruction conflicts.
[0086] Step 204: If the second scene instruction sent by the smart home controller is not received after the first reminder information is output, the instruction types of the first scene instruction and the scene instruction being executed are obtained, and the priority order of the first scene instruction and the scene instruction being executed is determined according to the instruction type, and according to the priority order, the target smart home device is controlled to execute the target scene instruction and / or continue to execute the scene instruction being executed.
[0087] In this embodiment, after outputting the first reminder information, if the second scene instruction is not received within a certain period of time, the relay device needs to automatically handle the scene instruction conflict according to the instruction type and priority order. The relay device will obtain the target smart device instruction type and determine the priority order of the first scene instruction and the scene instruction being executed according to the instruction type. Compare the priorities of the first scene instruction and the scene instruction being executed. If the first scene instruction has a higher priority, the current instruction of the target device is overwritten. If the scene instruction being executed has a higher priority, the current instruction continues to be executed and the first scene instruction is ignored. The relay controls the target smart home device according to the defined priority order to execute the target scene instruction or continue to execute the scene instruction being executed.
[0088] In some embodiments, the instruction types include: regional scene instructions and panoramic scene instructions; step 204 may include the following sub-steps:
[0089] Sub-step S11, if the first scene instruction is a regional scene instruction and the scene instruction being executed is a regional scene instruction, determining that the priority order of the first scene instruction is higher than the priority order of the scene instruction being executed;
[0090] If the first scene instruction is a global scene instruction and the scene instruction being executed is a regional scene instruction, determining that the priority order of the first scene instruction is lower than the priority order of the scene instruction being executed;
[0091] If the first scene instruction is a regional scene instruction and the scene instruction being executed is a global scene instruction, it is determined that the priority order of the first scene instruction is higher than the priority order of the scene instruction being executed.
[0092] Regional scene commands are an advanced function in smart home systems that are used to define and control the linkage operation of multiple devices in a specific area. Through regional scene commands, users can trigger device operations in the entire area with one click, achieving smarter and more convenient home management.
[0093] Global scene commands are an advanced function in smart home systems that are used to define and control the linkage operations of all devices or multiple areas within the entire home. Different from regional scene commands, global scene commands cover a wider range and are usually used to achieve cross-regional device linkage to meet users' needs for unified management of the entire home environment.
[0094] When defining a scene, the user can choose between two scene control modes: regional scene command and global scene command.
[0095] In this embodiment, when the user defines the priority order, the instruction priority order is executed according to the user's settings. If the user does not confirm that the priority order is undefined, the relay device independently defines the priority order according to the scene instruction type, and the instructions within the regional scene take precedence over the global scene instructions.
[0096] According to the received scene command, the scene command type is obtained. If the scene command received by the relay device is a regional scene command, and the scene command being executed by the target home smart device is a regional scene command, it is determined that the priority order of the scene command received by the relay device is higher than the priority order of the scene command being executed, and the relay device will control the target smart home device to execute the first scene command first.
[0097] If the scene instruction received by the relay device is a global scene instruction, and the scene instruction being executed by the target home smart device is a regional scene instruction, it is determined that the priority order of the scene instruction received by the relay device is lower than the priority order of the scene instruction being executed, and the relay device will control the target smart home device to prioritize the execution of the scene instruction being executed.
[0098] If the scene instruction received by the relay device is a regional scene instruction, and the scene instruction being executed by the target home smart device is a global scene instruction, it is determined that the priority order of the first scene instruction received by the relay device is higher than the priority order of the scene instruction being executed, and the relay device will control the target smart home device to give priority to the first scene instruction.
[0099] Step 205: If, after outputting the first reminder information, a second scene instruction with a priority order is received from the smart home controller, the target smart home device is controlled according to the priority order to execute the target scene instruction and / or continue to execute the scene instruction being executed.
[0100] In this embodiment, when a command conflict occurs, a reminder message will be sent to the user to remind the user device that a scene command conflict occurs. After the reminder message is output, the user will define the scene command priority, and the smart home controller will record its priority order and issue a second scene command with a priority order according to the scene command priority. After the relay device receives the second scene command, it controls the target smart home device to execute the second scene command and / or continue to execute the scene command being executed according to the priority order.
[0101] In some embodiments, step 205 may include the following sub-steps:
[0102] Sub-step S21, after receiving the second scene instruction with priority sent by the smart home controller, record the operating status of other smart home devices and the relay device in the room area, and output a second reminder message to the user through the smart home controller, wherein the second reminder message is used to remind the user whether to update the scene corresponding to the scene instruction being executed.
[0103] In this embodiment, after receiving the second scene instruction with priority order issued by the smart home controller, the relay device obtains the current operating status (such as device status, currently executed instruction, device mode, etc.) of all smart home devices and relay devices in the scene area where the target smart home device is located. The operating status of the device is stored in a status record for subsequent use.
[0104] At the same time, according to the running status of the device and the second scene instruction, a second reminder message is generated, and the second reminder message is output to the user through the smart home controller to remind the user whether the scene corresponding to the scene instruction being executed needs to be updated.
[0105] For example: when the relay device receives a scene control instruction with a scene priority sequence, it will first record the operating status of the sub-devices in the scene area, then issue a new scene control instruction, and generate a new scene with the recorded sub-device operating status before switching, and report it to the user through the smart home centralized controller. The user can redefine the execution priority of the scene and reissue the instruction based on the scene. For devices that have already executed scene instructions but have a conflict with the new instruction, the purpose is to prevent users from ignoring the status of the device that is currently executing the instruction.
[0106] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0107] Reference Figure 3 , showing a structural block diagram of a control system of a smart home device provided by an embodiment of the present invention, comprising: a smart home controller 30 and a relay device 31;
[0108] The smart home controller 30 is used to divide the home space into multiple room areas, determine one smart home device in each of the multiple room areas as a relay device, and send a first scene instruction to the relay device; when the first scene instruction conflicts with the scene instruction being executed by the smart home device, output a first reminder message to the user;
[0109] The relay device 31 is used to receive a first scene instruction sent by the smart home controller, send the first scene instruction to other smart home devices in the room area, and obtain the scene instructions being executed by the other smart home devices and the relay device; if the scene instructions being executed by the other smart home devices and the relay device conflict with the first scene instruction, determine the target smart home device in conflict, and output a first reminder message to the user through the smart home controller, where the first reminder message is used to remind the user that there is a scene instruction conflict; if the second scene instruction sent by the smart home controller is not received after outputting the first reminder message, obtain the instruction type of the first scene instruction and the scene instruction being executed, determine the priority order of the first scene instruction and the scene instruction being executed according to the instruction type, and control the target smart home device according to the priority order to execute the target scene instruction and / or continue to execute the scene instruction being executed.
[0110] Optionally, the smart home controller 30 is further configured to send a second scene instruction with a priority order to the relay device after outputting the first reminder information;
[0111] The relay device 31 is also used to control the target smart home device according to the priority order, execute the target scene instruction and / or continue to execute the scene instruction being executed if a second scene instruction with a priority order is received from the smart home controller after outputting the first reminder information.
[0112] Optionally, the smart home controller 30 is further used to output a second reminder message to the user; the second reminder message is used to remind the user whether to update the scene corresponding to the scene instruction being executed;
[0113] The relay device 31 is also used to record the operating status of other smart home devices and the relay device in the room area after receiving the second scene instruction with priority sent by the smart home controller, and output the second reminder information to the user through the smart home controller.
[0114] Optionally, the instruction types include: regional scene instructions and panoramic scene instructions;
[0115] The relay device 31 is used to determine that the priority order of the first scene instruction is higher than the priority order of the scene instruction being executed if the first scene instruction is a regional scene instruction and the scene instruction being executed is a regional scene instruction; if the first scene instruction is a global scene instruction and the scene instruction being executed is a regional scene instruction, then determine that the priority order of the first scene instruction is lower than the priority order of the scene instruction being executed; if the first scene instruction is a regional scene instruction and the scene instruction being executed is a global scene instruction, then determine that the priority order of the first scene instruction is higher than the priority order of the scene instruction being executed.
[0116] As for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0117] Reference Figure 4 , shows a structural block diagram of a control device for a smart home device provided by an embodiment of the present invention, which may specifically include the following modules:
[0118] The first instruction receiving module 401 is used to receive a first scene instruction sent by the smart home controller to a relay device in each room area in the home space; the relay device is a smart furniture device in the room area;
[0119] The first instruction sending module 402 is used to send the first scene instruction to other smart home devices in the room area, and obtain the scene instructions being executed by the other smart home devices and the relay device;
[0120] The command conflict judgment module 403 is used to determine the target smart home device in conflict if the scene commands being executed by the other smart home devices and the relay device conflict with the first scene command, and output a first reminder message to the user through the smart home controller, wherein the first reminder message is used to remind the user that there is a scene command conflict;
[0121] The instruction execution module 404 is used to obtain the instruction types of the first scene instruction and the scene instruction being executed if the second scene instruction sent by the smart home controller is not received after outputting the first reminder information, and determine the priority order of the first scene instruction and the scene instruction being executed according to the instruction type, and control the target smart home device according to the priority order to execute the target scene instruction and / or continue to execute the scene instruction being executed.
[0122] The device also includes:
[0123] The second instruction receiving module is used to control the target smart home device according to the priority order, execute the target scene instruction and / or continue to execute the scene instruction being executed if a second scene instruction with a priority order is received from the smart home controller after outputting the first reminder information.
[0124] The second instruction receiving module includes:
[0125] The scene update submodule is used to record the operating status of other smart home devices and the relay device in the room area after receiving the second scene instruction with priority sent by the smart home controller, and output a second reminder message to the user through the smart home controller, wherein the second reminder message is used to remind the user whether to update the scene corresponding to the scene instruction being executed.
[0126] The instruction types include: regional scene instructions and panoramic scene instructions; the instruction execution module 404 includes:
[0127] An instruction priority judgment submodule is used to determine that the priority order of the first scene instruction is higher than the priority order of the scene instruction being executed if the first scene instruction is a regional scene instruction and the scene instruction being executed is a regional scene instruction; if the first scene instruction is a global scene instruction and the scene instruction being executed is a regional scene instruction, then determine that the priority order of the first scene instruction is lower than the priority order of the scene instruction being executed; if the first scene instruction is a regional scene instruction and the scene instruction being executed is a global scene instruction, then determine that the priority order of the first scene instruction is higher than the priority order of the scene instruction being executed.
[0128] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0129] The embodiment of the present invention further provides a smart home device, including:
[0130] It includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, each process of the control method embodiment of the above-mentioned smart home device is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0131] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, each process of the above-mentioned control method embodiment of a smart home device is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0132] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0133] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0134] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0135] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0136] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0137] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0138] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0139] The control method of a smart home device, a control system of a smart home device and a control device of a smart home device provided by the present invention are introduced in detail above. Specific examples are used herein to illustrate the principle and implementation mode of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation mode and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A control method for a smart home device, characterized in that: The method comprises: The relay device receives a first scene instruction sent by the smart home controller to the relay device in each room area in the home space; the relay device is a smart furniture device in the room area; Sending the first scene instruction to other smart home devices in the room area, and obtaining the scene instructions being executed by the other smart home devices and the relay device; If the scene instructions being executed by the other smart home devices and the relay device conflict with the first scene instruction, determining a target smart home device in conflict, and outputting a first reminder message to the user through the smart home controller, where the first reminder message is used to remind the user that there is a scene instruction conflict; If the second scene instruction sent by the smart home controller is not received after the first reminder information is output, the instruction types of the first scene instruction and the scene instruction being executed are obtained, and the priority order of the first scene instruction and the scene instruction being executed is determined according to the instruction type, and according to the priority order, the target smart home device is controlled to execute the target scene instruction and / or continue to execute the scene instruction being executed.
2. The method according to claim 1, characterized in that Also includes: If, after outputting the first reminder information, a second scene instruction with a priority order is received from the smart home controller, the target smart home device is controlled according to the priority order to execute the target scene instruction and / or continue to execute the scene instruction being executed.
3. The method according to claim 2, characterized in that Also includes: After receiving the second scene instruction with priority sent by the smart home controller, the operating status of other smart home devices and the relay device in the room area is recorded, and a second reminder message is output to the user through the smart home controller. The second reminder message is used to remind the user whether to update the scene corresponding to the scene instruction being executed.
4. The method according to claim 1, characterized in that: The instruction types include: regional scene instructions and panoramic scene instructions; The determining, according to the instruction type, a priority order of the first scene instruction and the scene instruction being executed includes: If the first scene instruction is a regional scene instruction and the scene instruction being executed is a regional scene instruction, determining that the priority order of the first scene instruction is higher than the priority order of the scene instruction being executed; If the first scene instruction is a global scene instruction and the scene instruction being executed is a regional scene instruction, determining that the priority order of the first scene instruction is lower than the priority order of the scene instruction being executed; If the first scene instruction is a regional scene instruction and the scene instruction being executed is a global scene instruction, it is determined that the priority order of the first scene instruction is higher than the priority order of the scene instruction being executed.
5. A control system for smart home devices, characterized in that: include: Smart home controllers and relay devices; The smart home controller is used to divide the home space into multiple room areas, determine one smart home device in each of the multiple room areas as a relay device, and send a first scene instruction to the relay device; when the first scene instruction conflicts with the scene instruction being executed by the smart home device, output a first reminder message to the user; The relay device is used to receive the first scene instruction sent by the smart home controller, send the first scene instruction to other smart home devices in the room area, and obtain the scene instructions being executed by the other smart home devices and the relay device; if the scene instructions being executed by the other smart home devices and the relay device conflict with the first scene instruction, determine the target smart home device in conflict, and output a first reminder message to the user through the smart home controller, where the first reminder message is used to remind the user that there is a scene instruction conflict; If the second scene instruction sent by the smart home controller is not received after the first reminder information is output, the instruction types of the first scene instruction and the scene instruction being executed are obtained, and the priority order of the first scene instruction and the scene instruction being executed is determined according to the instruction type, and according to the priority order, the target smart home device is controlled to execute the target scene instruction and / or continue to execute the scene instruction being executed.
6. The system according to claim 5, characterized in that The smart home controller is further configured to send a second scene instruction having a priority order to the relay device after outputting the first reminder information; The relay device is also used to, if after outputting the first reminder information, receive a second scene instruction with a priority order sent by the smart home controller, then control the target smart home device according to the priority order, execute the target scene instruction and / or continue to execute the scene instruction being executed.
7. The system according to claim 6, characterized in that The smart home controller is further used to output a second reminder message to the user; the second reminder message is used to remind the user whether to update the scene corresponding to the scene instruction being executed; The relay device is also used to record the operating status of other smart home devices and the relay device in the room area after receiving the second scene instruction with priority sent by the smart home controller, and output the second reminder information to the user through the smart home controller.
8. The system according to claim 5, characterized in that The instruction types include: regional scene instructions and panoramic scene instructions; The relay device is used for, if the first scene instruction is a regional scene instruction and the scene instruction being executed is a regional scene instruction, determining that the priority order of the first scene instruction is higher than the priority order of the scene instruction being executed; if the first scene instruction is a global scene instruction and the scene instruction being executed is a regional scene instruction, determining that the priority order of the first scene instruction is lower than the priority order of the scene instruction being executed; if the first scene instruction is a regional scene instruction and the scene instruction being executed is a global scene instruction, determining that the priority order of the first scene instruction is higher than the priority order of the scene instruction being executed.
9. A control device for a smart home device, characterized in that: The device comprises: A first instruction receiving module is used to receive a first scene instruction sent by the smart home controller to a relay device in each room area in the home space; the relay device is a smart furniture device in the room area; A first instruction sending module, used to send the first scene instruction to other smart home devices in the room area, and obtain the scene instructions being executed by the other smart home devices and the relay device; an instruction conflict judgment module, configured to determine a target smart home device in conflict if the scene instructions being executed by the other smart home devices and the relay device conflict with the first scene instruction, and output a first reminder message to the user through the smart home controller, wherein the first reminder message is used to remind the user that there is a scene instruction conflict; An instruction execution module is used to obtain the instruction types of the first scene instruction and the scene instruction being executed if the second scene instruction sent by the smart home controller is not received after outputting the first reminder information, and determine the priority order of the first scene instruction and the scene instruction being executed according to the instruction type, and control the target smart home device according to the priority order to execute the target scene instruction and / or continue to execute the scene instruction being executed.
10. A smart home device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of a method for controlling a smart home device as described in any one of claims 1 to 4 are implemented.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of a method for controlling a smart home device according to any one of claims 1 to 4 are implemented.