CPC G06F 3/04847 (2013.01) [G06F 16/24 (2019.01); H04L 67/306 (2013.01); G16Y 10/75 (2020.01)] | 17 Claims |
1. A scene-operation method, comprising:
acquiring, from a scene correspondence, a plurality of scenes corresponding to a scene-trigger condition, wherein each scene of the plurality of scenes comprises multiple operations corresponding to respective smart devices in the scene, and the method configures an electronic device to realize data interaction with the smart devices as controlled devices;
wherein the scene correspondence is pre-stored, and comprises a plurality of scene-trigger conditions and at least one scene corresponding to each of the plurality of scene-trigger conditions;
acquiring a priority of each scene of the plurality of scenes, wherein the acquiring a priority of each scene of the plurality of scenes comprises:
acquiring, from a correspondence between the plurality of scenes and description information of the plurality of scenes, preset operation instructions of each smart device in each scene, comprising:
searching the description information of the scene corresponding to each of the plurality of scenes corresponding to the scene-trigger condition in the correspondence between the plurality of scenes and description information of the plurality of scenes;
parsing the description information of the scene to determine the preset operation instructions of each smart device corresponding to the scene;
wherein the description information of each scene comprises multiple operations corresponding to respective smart devices in the scene;
acquiring historical operation data of each smart device under the scene-trigger condition; and
determining the priority of each scene according to the historical operation data and the preset operation instructions of each smart device;
sorting the plurality of scenes according to the priority of each scene, and obtaining an execution sequence for the plurality of scenes;
finding a scene with an order in the execution sequence meeting a preset standard as a forbidden scene; and
executing the plurality of scenes according to the execution sequence, wherein the executing the plurality of scenes according to the execution sequence comprises:
sending operation instructions, when executing each scene, to the respective smart devices in the scene.
|