Search

CN-121995778-A - Equipment control method and electronic equipment

CN121995778ACN 121995778 ACN121995778 ACN 121995778ACN-121995778-A

Abstract

The application provides a device control method and electronic device, relates to the technical field of terminals, and aims to reduce user editing parameters and steps for editing a control mode and improve efficiency and convenience for editing the control mode. In the method, the first device acquires a first control mode which is met by the use condition of the user and meets the preset condition in at least one control mode, and displays a first page related to the first control mode when the first device is in a preset state, and responds to the triggering operation of the user on a first control on the first page, acquires at least one first parameter of the adjusted first control mode, and updates the first control mode according to the at least one first parameter after adjustment. Wherein the at least one first parameter is used to change the state of the at least one second device in the first control mode.

Inventors

  • YE JIANMENG

Assignees

  • 华为技术有限公司

Dates

Publication Date
20260508
Application Date
20241106

Claims (13)

  1. 1. A device control method is characterized by being applied to a first device, wherein the first device is used for controlling at least one second device, the first device comprises at least one control mode, each control mode corresponds to at least one second device, the at least one second device is used for running under the condition that the control mode is started, different control modes realize different functions, and the method comprises the following steps: Acquiring a first control mode, wherein the first control mode meets a preset condition by the use condition of a user; displaying a first page related to the first control mode under the condition that the first equipment is in a preset state, wherein the first page comprises a first control used for adjusting the first control mode; responding to the triggering operation of the user on the first control, and acquiring at least one first parameter of the adjusted first control mode, wherein the at least one first parameter is used for changing the state of at least one second device in the first control mode; And updating the first control mode according to the at least one adjusted first parameter.
  2. 2. The method of claim 1, wherein the control pattern further corresponds to at least one sensor for acquiring data for the first device to control a corresponding second device in accordance with the acquired data; The condition that the usage condition of the first control mode by the user meets the preset condition comprises that the usage frequency of the first control mode is larger than the preset usage frequency in the preset statistical time, or the usage frequency of the first control mode is highest in the usage frequency of each control mode in the preset statistical time, or any one sensor corresponding to the first control mode is closed in the preset statistical time.
  3. 3. The method according to claim 1 or 2, wherein the first device being in a preset state comprises any one of a device time of the first device reaching a preset reminder time, a distance of the user from the first device for the first time after the first control mode is acquired being within a preset range, and a distance of the user from the first device for the first time being within a preset range if the device time of the first device reaches the preset reminder time.
  4. 4. The method of any of claims 1-3, wherein the first page further comprises a second control for maintaining at least one first parameter of the first control mode, the method further comprising: At least one first parameter of the first control mode is maintained in response to a user triggering operation of the second control.
  5. 5. The method of any of claims 1-4, wherein the obtaining at least one first parameter of the adjusted first control mode in response to a user triggering operation of the first control comprises: Responding to the triggering operation of a user on the first control, and acquiring the adjusted probability of each second device in the at least one second device in the first control mode, wherein the adjusted probability of each second device is determined according to the historical operation of the user on the first control mode; acquiring an adjustment operation of each second device in at least one second device with the adjusted probability larger than a preset probability, wherein the adjustment operation is used for changing the state of the corresponding second device; and acquiring at least one first parameter of the adjusted first control mode according to the adjustment operation of each second device in the at least one second device.
  6. 6. The method of any of claims 1-5, wherein the obtaining at least one first parameter of the adjusted first control mode in response to a user triggering operation of the first control comprises: responding to the triggering operation of the user on the first control, and displaying a second page, wherein the second page comprises at least one first parameter in the first control mode and adjustment controls corresponding to the at least one first parameter respectively; And responding to the triggering operation of the user on the adjustment control corresponding to the at least one first parameter respectively, and acquiring the at least one first parameter of the adjusted first control mode.
  7. 7. The method of claim 6, wherein the plurality of first parameters in the first control mode correspond to different groups for simultaneously controlling a plurality of second devices corresponding to each first parameter in the same group, wherein the second page includes a plurality of third controls for switching groups, and wherein the method further comprises: And under the condition that the second page displays at least one first parameter of a group corresponding to a first third control in the plurality of third controls, responding to the triggering operation of a user on a second third control in the plurality of third controls, and displaying at least one first parameter of the group corresponding to the second third control and an adjustment control respectively corresponding to at least one first parameter of the group corresponding to the second third control on the second page.
  8. 8. The method of claim 7, wherein the group comprises a plurality of sub-groups, the sub-groups are used for simultaneously controlling a plurality of second devices corresponding to each first parameter under the same sub-group, the second page comprises a plurality of fourth controls for switching the sub-groups if the number of the sub-groups is less than or equal to a preset group number, and the method further comprises: And under the condition that the second page displays at least one first parameter of the subgroup corresponding to the first fourth control in the plurality of fourth controls, responding to the triggering operation of the user on the second fourth control in the plurality of fourth controls, and displaying at least one first parameter of the subgroup corresponding to the second fourth control and an adjustment control corresponding to the at least one first parameter of the subgroup corresponding to the second fourth control on the second page.
  9. 9. The method of claim 8, wherein the second page includes a fifth control for expanding the plurality of subgroups if the number of subgroups is greater than a preset number of subgroups, the method further comprising: Responding to the triggering operation of the user on the fifth control, and displaying a sixth control for switching each subgroup in a plurality of subgroups corresponding to the fifth control; And responding to the triggering operation of a user on the target control in the plurality of sixth controls, and displaying at least one first parameter of the subgroup corresponding to the target control and the adjustment control corresponding to the at least one first parameter of the subgroup corresponding to the target control.
  10. 10. The method of any of claims 7-9, wherein the second page includes a seventh control for determining use of the adjusted at least one first parameter, wherein the updating the first control pattern based on the adjusted at least one first parameter includes: Acquiring a modification script corresponding to the first control mode according to the at least one adjusted first parameter, wherein the modification script is used for modifying the first control mode; And responding to the triggering operation of the user on the seventh control, and executing a modification script corresponding to the first control mode to update the first control mode.
  11. 11. An electronic device comprising a memory, one or more processors, the memory coupled to the processors, wherein the memory has stored therein computer program code comprising computer instructions that, when executed by the processors, cause the electronic device to perform the device control method of any of claims 1-10.
  12. 12. A computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the device control method of any of claims 1-10.
  13. 13. A computer program product, characterized in that the computer program product, when run on a computer, causes the computer to carry out the device control method according to any one of claims 1-10.

Description

Equipment control method and electronic equipment Technical Field The present application relates to the field of terminal technologies, and in particular, to an apparatus control method and an electronic apparatus. Background The intelligent home device comprises a home-returning scene, a home-leaving scene, a movie-watching scene, a guest-receiving scene and the like, wherein various aspects of daily life are covered, a user can customize different scenes according to own requirements, for example, a plurality of household appliances such as light, a curtain and an air conditioner can be combined into one scene at will, and the devices are controlled simultaneously through a key or a voice command, so that intelligent management of the home device is realized, for example, in the home-returning scene, the user can automatically and orderly open devices such as a vestibule lamp, a living room lamp, the curtain and a television after opening the door, and a warm home-returning atmosphere is created. At present, when a user is dissatisfied with a certain scene and wants to modify, the user needs to open corresponding application software on the terminal equipment, enter a scene page, select the scene to be modified, enter the scene page, select the equipment to be adjusted on the scene page, select the parameters to be adjusted from a plurality of parameters related to the equipment to adjust, and finally click for storage. Disclosure of Invention The application provides a device control method and electronic device, which can acquire a control mode meeting preset conditions, acquire parameters after the control mode is adjusted under the condition that a user indicates to adjust the control mode so as to update the control mode, reduce the steps of searching the control mode to be adjusted and the parameters to be adjusted by the user, and improve the efficiency and convenience of modifying the control mode. In order to achieve the above purpose, the embodiment of the present application adopts the following technical scheme: In a first aspect, a device control method is provided, applied to a first device, where the first device is configured to control at least one second device, and the first device includes at least one control mode, where each control mode corresponds to at least one second device, and where the at least one second device is configured to operate when the control mode is on; in the device control method, first equipment acquires a first control mode, then, under the condition that the first equipment is in a preset state, the first equipment displays a first page related to the first control mode, then, the first equipment responds to the triggering operation of a user on a first control to acquire at least one first parameter of the adjusted first control mode, and finally, the first equipment updates the first control mode according to the at least one adjusted first parameter. The at least one control mode comprises a first control mode, and the first control mode is met by the use condition of a user to meet preset conditions. The first control mode may be a control mode frequently edited by a user among the at least one control mode, or may be a control mode extremely dissatisfied by the user among the at least one control mode. Wherein the first page includes a first control for adjusting the first control mode. Wherein the at least one first parameter is used to change the state of the at least one second device in the first control mode. By way of example, the first device may be a central control device, e.g., a smart remote control, a switch panel, etc., and the second device may be a smart home device, e.g., a light, an air conditioner, a curtain, a sound box, etc. The control mode may be different application scenarios, for example, a home-returning scenario, a guest-meeting scenario, a movie-watching scenario, a getting-up scenario, and the like, where the different application scenarios may control the corresponding second device to implement the corresponding function, for example, in the home-returning scenario, after a user opens a door, the user turns on a vestibule lamp first, after entering a living room, turns on the living room lamp and turns off the vestibule lamp, in the getting-up scenario, after the first device detects that the device time reaches the alarm time set at 6 points, turns on an alarm clock, and after the first device detects that the user gets out of bed, the first device turns off the alarm clock. The first device may be in a preset state, or the first device may detect that the user is approaching, when the first device reaches a preset prompting time. According to the equipment control method, the first control mode is obtained through the preset condition, the first control used for adjusting the first control mode is displayed when the first equipment is in the preset state, after the user clicks the first control, the first parameter adjus