CN117872772A - Automatic policy processing method, electronic equipment and storage medium - Google Patents

Automatic policy processing method, electronic equipment and storage medium Download PDF

Info

Publication number
CN117872772A
CN117872772A CN202410107534.8A CN202410107534A CN117872772A CN 117872772 A CN117872772 A CN 117872772A CN 202410107534 A CN202410107534 A CN 202410107534A CN 117872772 A CN117872772 A CN 117872772A
Authority
CN
China
Prior art keywords
equipment
strategy
automation
policy
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410107534.8A
Other languages
Chinese (zh)
Inventor
崔倩
王雷
陈熙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ecoflow Technology Ltd
Original Assignee
Ecoflow Technology Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ecoflow Technology Ltd filed Critical Ecoflow Technology Ltd
Priority to CN202410107534.8A priority Critical patent/CN117872772A/en
Publication of CN117872772A publication Critical patent/CN117872772A/en
Pending legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)

Abstract

The application provides an automatic policy processing method, electronic equipment and a storage medium, wherein the automatic policy processing method comprises the following steps: when the electronic equipment is connected with external equipment, acquiring a first equipment type of the external equipment; when the first device type is the target device type, entering a strategy disabling state to disable running an automation strategy of the electronic device; the automatic strategy is used for indicating the electronic equipment to execute corresponding actions when the operation conditions are met; receiving a control instruction of external equipment; and executing corresponding actions according to the control instructions. The method can solve the problem of conflict of automation strategies among different devices.

Description

Automatic policy processing method, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of energy storage, and particularly relates to an automatic policy processing method, electronic equipment and a storage medium.
Background
With the popularization of electronic devices, various electronic devices gradually enter thousands of households. Currently, a few electronic devices support setting automation policies. For example, a user may set an automation policy on the power distribution equipment that saves electricity fees. When the distribution equipment runs the automatic strategy for saving the electricity charge, solar energy and the electric quantity of the energy storage equipment are used for supplying power to families in a time period with high electricity price in the daytime, and commercial power is used for charging the energy storage equipment in a time period with low electricity price in the evening. For another example, the user may set an automation policy for power conservation on the energy storage device, such as setting the power-on-demand ratio to 80%. When the energy storage device runs the electricity-keeping automation strategy, under the condition that the commercial power is connected, once the electric quantity of the energy storage device is detected to be lower than 80%, the discharge is stopped, and the energy storage device enters a charging state.
However, when data/energy interactions are performed between various electronic devices, there may be situations where the automation policies set by the various electronic devices conflict. For example, the power distribution device is connected with the energy storage device, and the power distribution device is provided with the above automatic policy for saving electricity charge, and the energy storage device is provided with the above automatic policy for protecting electricity, which may cause that the power distribution device cannot fully utilize the electric quantity of the energy storage device in a time period with high electricity price in the daytime.
Disclosure of Invention
The embodiment of the application provides an automatic policy processing method, electronic equipment and a storage medium, so as to solve the problem of conflict of automatic policies among different equipment.
In a first aspect, the present application provides an automated policy processing method, applied to an electronic device, including: when the electronic equipment is connected with external equipment, acquiring a first equipment type of the external equipment; when the first device type is the target device type, entering a strategy disabling state to disable running an automation strategy of the electronic device; the automatic strategy is used for indicating the electronic equipment to execute corresponding actions when the operation conditions are met; receiving a control instruction of external equipment; and executing corresponding actions according to the control instructions.
Aiming at the situation that the automatic strategies of a plurality of electronic devices possibly collide, when data/energy interaction is carried out among the plurality of electronic devices, namely when the electronic devices are connected with the external devices, a first device type of the external devices is obtained, and further corresponding management and control processing is carried out on the automatic strategies configured by the electronic devices according to the first device type.
When the first equipment type is the target equipment type, entering a strategy forbidden state to prohibit operation of an automation strategy of the electronic equipment, avoiding abnormal events caused by conflict of the automation strategy of the electronic equipment and the automation strategy of the external equipment connected with the electronic equipment, ensuring effective implementation of the related automation strategy, effectively avoiding out of control of energy management, and improving the utilization rate of the energy so as to reduce the electricity cost of a user to the greatest extent. When the electronic equipment enters a strategy disabled state, the electronic equipment can receive a control instruction of the external equipment and respond to the control instruction of the external equipment to execute actions indicated by the control instruction so as to ensure normal work.
In one possible implementation, the electronic device stores a first list, the method further comprising: when the first device type is recorded in the first list, the first device type is determined to be the target device type.
The first list recorded with the target device type is stored, and whether the first device type is the target device type can be rapidly and accurately determined through the first list.
In one possible implementation, the electronic device stores priorities of different device types, the method further comprising: acquiring a first priority corresponding to a first equipment type; and when the first priority is higher than the second priority of the electronic device, determining the first device type as the target device type.
When the first equipment type is determined, priority among the equipment is considered, so that the first equipment type is determined more reasonably, and further, the control processing of the automation strategy can be realized more accurately later.
In one possible implementation, the method further includes: receiving an automatic strategy configuration instruction triggered by a user; when the electronic equipment is in a strategy forbidden state, the electronic equipment does not respond to the automatic strategy configuration instruction, or executes the configuration action corresponding to the automatic strategy configuration instruction and forbids the operation of the automatic strategy corresponding to the automatic strategy configuration instruction.
During the operation of the electronic device, an automation policy configuration instruction triggered by a user may be received. When an automation policy configuration instruction is received, the current state of the electronic device needs to be determined, and when the electronic device is in a policy disabled state, the electronic device does not respond to the automation policy configuration instruction, or a configuration action corresponding to the automation policy configuration instruction is executed and the operation of an automation policy corresponding to the automation policy configuration instruction is forbidden, so that the conflict between the updated automation policy and the automation policy of the external device is avoided.
In one possible implementation, the method further includes: and when the electronic equipment is not in the policy disabled state, executing the configuration action corresponding to the automatic policy configuration instruction.
When the electronic equipment is not in the strategy disabled state, the strategy running environment of the current electronic equipment is indicated to be reliable, and the configuration action corresponding to the automatic strategy configuration instruction can be executed.
In one possible implementation, the method further includes: and when the electronic device is disconnected with the external devices of all the target device types, exiting the policy disabled state.
When the electronic device is disconnected from all external devices of the target device type, i.e. there is currently no automation policy that conflicts with the automation policy of the electronic device, the current policy running environment of the electronic device is reliable, and the automation policy of the electronic device can be executed.
In one possible implementation, when the first device type is the target device type, entering a policy disabled state to disable running an automation policy of the electronic device includes: when the first equipment type is the target equipment type, determining a target automation strategy which conflicts with the first equipment type; the target automation policy is disabled.
And when the electronic equipment enters a strategy forbidden state, the target automation strategy which is in conflict with the first equipment type can be forbidden to operate, the automation strategy which is not in conflict with the first equipment type is allowed, and the corresponding function is better provided for the user on the premise of avoiding abnormal events, so that the normal operation is ensured.
In one possible implementation, the method further includes: and executing a first prompting operation when entering the strategy disabling state.
And when entering the policy disabled state, executing a first prompting operation to prompt a user.
In a second aspect, the present application provides an electronic device, the electronic device comprising a memory and a processor, the memory being coupled to the processor, the memory being configured to store a computer program, the processor being configured to implement an automated policy handling method as in any one of the preceding claims when the computer program is executed.
In a third aspect, the present application provides a computer readable storage medium having a computer program stored thereon, the computer program when executed by a processor implementing the automated policy handling method of any one of the above.
Drawings
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application.
Fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 3 is a schematic flow chart of an automated policy processing method according to an embodiment of the present application.
Fig. 4 is a flowchart of a method for determining a device type of an external device according to an embodiment of the present application.
Fig. 5 is a flowchart of a method for prohibiting operation of a target automation policy according to an embodiment of the present application.
Fig. 6 is a flowchart of a method for adjusting an automation policy according to an embodiment of the present application.
Fig. 7 is a schematic diagram of a user interface provided in an embodiment of the present application.
Detailed Description
It should be noted that the terms "first" and "second" in the specification, claims and drawings of this application are used for distinguishing between similar objects and not for describing a particular sequential or chronological order. In the description and claims of the present application and in the drawings, "/" means or, unless otherwise indicated, for example, A/B may mean A or B. For example, a and/or B may represent: a exists alone, A and B exist together, and B exists alone. In addition, the term "plurality" in the description and claims of the present application and in the drawings means two or more than two.
It is understood that the connection relationships described in this application refer to direct or indirect connections. For example, a may be directly connected to B, or may be indirectly connected to B through one or more other electrical components, for example, a may be directly connected to C, and C may be directly connected to B, so that a connection between a and B is achieved through C.
It should be further noted that the method disclosed in the embodiments of the present application or the method shown in the flowchart, including one or more steps for implementing the method, may be performed in an order that the steps may be interchanged with one another, and some steps may be deleted without departing from the scope of the claims.
Some embodiments will be described below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
When data/energy interactions are performed between multiple electronic devices, there may be situations where the automation policies of the multiple electronic devices conflict. The power distribution device is connected with the energy storage device, and the power distribution device is provided with the above automatic policy for saving the electricity charge, and the energy storage device is provided with the above automatic policy for protecting electricity, which may cause that the power distribution device cannot fully utilize the electric quantity of the energy storage device in a time period with high electricity prices in the daytime, and the power distribution device cannot effectively implement the automatic policy for saving the electricity charge.
In view of this, the present application provides an automation policy processing method, which is configured to perform corresponding management and control processing on an automation policy configured by an electronic device when data/energy interaction is performed between a plurality of electronic devices, so as to avoid occurrence of an abnormal event caused by collision of the automation policy of the electronic device with an automation policy of an external device connected with the electronic device, ensure effective implementation of the related automation policy, effectively avoid energy management runaway, and improve energy utilization rate to reduce electricity cost of a user to the greatest extent.
Referring to fig. 1, an application scenario of an automated policy processing method according to an embodiment of the present application is exemplarily described.
As shown in fig. 1, an application scenario includes a first electronic device 10 and a second electronic device 20. When the first electronic device 10 and the second electronic device 20 perform data/energy interaction, the first electronic device 10 and/or the second electronic device 20 may execute the method for processing an automation policy provided in the embodiments of the present application, so as to perform corresponding control processing on the automation policy configured by the first electronic device 10 and the second electronic device 20.
It will be appreciated that the number of electronic devices in the application scenario shown in fig. 1 is merely an example. In practical applications, the number of electronic devices performing data/energy interaction may be set according to practical requirements, which is not limited in this application. The application scenario may further include a third electronic device (not shown), where the third electronic device may perform data/energy interaction with the first electronic device 10 and/or the second electronic device 20, and the third electronic device may execute the method for processing an automation policy provided in the embodiment of the present application, so as to perform corresponding management and control processing on the automation policy configured by the third electronic device.
The electronic devices in the application scenario may be configured with corresponding automation policies. The Automated Policy may be an Automated Policy that performs a set of rules related to the Policy by Automated judgment to reach a preset result target. The result goal of the automation policy preset is achieved by automatically executing a set of related rules. A rule is understood to be a combination of conditions (conditions) and actions (actions), a rule being used to express a set action that should be automatically performed after a set condition is satisfied, the rule being related to an automation policy, the rule being used to achieve a result goal preset by the automation policy.
In particular, the automation policies may include, but are not limited to: conditional automation policies and configuration items. The condition automation policy indicates what condition is reached to perform the corresponding action, for example, 2 a.m. is automatically updated, 2 a.m. is a time condition, and the automatic update is an action. The configuration item may be used to indicate that the action performed, such as the alternating current (Alternating Current, AC) output is normally open, and may also be used to indicate some parameter, such as indicating that the upper limit of charging power is 200W. The automation policy may include the above-described electricity-fee-saving automation policy or the above-described electricity-protecting automation policy, for example.
The electronic devices in the application scenario may include, but are not limited to: distribution equipment, power supply equipment and consumer.
Wherein the power distribution device can be used for realizing central control management. The power distribution equipment can be connected into an internal power grid so as to supply power for electric equipment of the internal power grid by connecting power supply equipment such as a commercial power grid, energy storage equipment and power generation equipment.
Wherein the power generation device may include, but is not limited to: photovoltaic power generation module, fan power generation module, oil power generator etc. possess equipment of generating capacity.
It will be appreciated that when the power supply device is included in the application scenario for data/energy interaction described above, the application scenario may include, but is not limited to: photovoltaic power supply scene (including large-scale photovoltaic power station scene, medium and small-scale distributed photovoltaic power station scene and household photovoltaic system scene etc.), fan power supply scene, energy storage power supply scene (including large-scale energy storage power station scene, medium and small-scale distributed energy storage power station scene and household photovoltaic power generation system scene etc.).
Among other things, powered devices may include, but are not limited to: intelligent household equipment and energy storage device. Smart home devices include loads common in various families, such as refrigerators, air conditioners, lights, and the like. When the power distribution device charges the energy storage device, the energy storage device can also be regarded as electric equipment of the internal power grid.
The power distribution device may include a power conversion device. The power conversion equipment is used for converting the received direct current or alternating current to obtain power required by the load. For example, the power conversion device may perform ac-dc conversion on the received dc power of the battery module or the dc power input by the solar module, and then output ac power to supply power to the load, or may perform voltage conversion on the ac power input by the generator, and then output dc/ac power to supply power to the load, or may perform voltage conversion on the received dc power of the battery module or the dc power input by the solar module, and then output dc power to supply power to the load. The power conversion device may include, but is not limited to: photovoltaic inverters, energy storage converters, and the like.
The energy storage device may include, but is not limited to: any one of the intelligent household equipment, vehicle-mounted equipment, household energy storage equipment, mobile energy storage equipment, self-mobile equipment and other equipment is provided with a battery.
In the above application scenario, the plurality of electronic devices performing data/energy interaction may be different device types, or may be the same device type, or when the number of electronic devices performing data/energy interaction is 3 or more, some of the electronic devices in the application scenario are the same device type, and some of the electronic devices are different device types, which is not specifically limited in this application.
The following exemplarily describes the structure of the electronic device in the application scenario described above.
Referring to fig. 2, an exemplary structure of an electronic device 200 according to an embodiment of the present application is described. The electronic device 200 may be any of the electronic devices shown in the above embodiments.
The electronic device 200 comprises a processor 202, a memory 201 and a computer program 211 stored in the memory 201 and executable on the processor 202.
In the embodiment of the present application, the processor 202 may implement steps related to the method for processing an automation policy in the embodiment of the present application when executing the computer program 211, which may include, but is not limited to: steps S301 to S304 shown in fig. 3, steps S41 to S43 shown in fig. 4, steps S51 to S53 shown in fig. 5, and steps S61 to S63 shown in fig. 6.
In some embodiments, the computer program 211 may include an automation policy configured by the electronic device 200, and when the processor 202 executes the computer program 211, the automation policy may be executed to perform an action corresponding to the automation policy.
When the processor 202 executes the computer program 211, it is determined that the electronic device 200 is currently in the policy disabled state, the execution of the automation policy of the electronic device 200 is prohibited, and when it is determined that the electronic device 200 is not currently in the policy disabled state, the execution of the automation policy of the electronic device 200 is permitted.
The processor 202 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 201 may be an internal storage unit of the electronic device 200, such as a hard disk or a memory of the electronic device 200. The memory 201 may also be an external storage device of the electronic device 200, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the electronic device 200. Further, the memory 201 may also include both internal storage units and external storage devices of the electronic device 200. The memory 201 is used to store computer programs and other programs and data required by the electronic device 200. The memory 201 may also be used to temporarily store data that has been output or is to be output.
In some embodiments, the electronic device 200 may also include an input device. Input devices are used to receive user input, including but not limited to: touch input, voice input, key input, etc. Input devices may include, but are not limited to: a touch panel (also referred to as a touch screen), a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, etc.
In some embodiments, the input device may further include a communication module, and the communication module is used to perform communication connection with other terminal devices, so as to obtain information transmitted by the other terminal devices through the communication module.
The electronic device 200 may receive, through an input device, an adjustment action of the user on the automation policy, such as modifying the charging power, and may further obtain an automation policy configuration instruction corresponding to the adjustment action.
In some embodiments, the electronic device 200 may also include an output device. The output device is used for outputting corresponding information. Such as providing a corresponding visual output to the user via the input device, or providing a corresponding speech output to the user via the input device, etc. Output devices may include, but are not limited to: one or more of a touch panel and a speaker, etc.
The electronic device 200 may include, but is not limited to, a processor 202, a memory 201. It will be appreciated by those skilled in the art that fig. 2 is merely an example of an electronic device 200 and is not intended to limit the electronic device 200, and may include more or fewer components than shown, or may combine certain components, or different components, e.g., the electronic device 200 may further include an input-output device, a network external device, a bus, etc.
The beneficial effects of the electronic device 200 provided in the embodiment of the present application may refer to the beneficial effects of the automated policy processing method provided in the embodiment of the present application, and are not described herein.
The method for processing the automation policy provided by the embodiment of the application can be applied to the application scene, can be applied to other scenes needing to process the automation policy, and is not limited to the application scene. The method for processing an automation policy provided in the embodiment of the present application may be performed by the electronic device 200, and specifically, may be performed by the processor 202 in the electronic device 200.
Referring to fig. 3, a flow of an automation policy processing method provided in an embodiment of the present application is exemplarily described. The method is applied to the electronic equipment, and the automatic policy processing method comprises steps S301 to S304.
In step S301, when the electronic device is connected to an external device, a first device type of the external device is acquired.
The external device refers to other electronic devices connected to the electronic device. The external device may be independent of the electronic device. The first electronic device is an external device of the second electronic device as described above. The electronic device may establish a communication/electrical connection with the external device such that data/energy interactions may be performed between the electronic device and the external device.
It may be appreciated that in the above application scenario, any electronic device has its corresponding device type, which may include a target device type and a non-target device type.
The target device type is a device type of a specified external device set based on the electronic device.
In some embodiments, a device type of an external device having a specified function may be configured as a target device type, for example, a device type of an electronic device (such as a power distribution device, a center control screen, or the like) that implements a center control management function may be configured as a target device type.
In some embodiments, the target device types for different electronic devices may include the same device type or different device types. For example, assuming that the electronic device a and the electronic device C are both connected to the electronic device B, the device type of the electronic device B may be a target device type for the electronic device a, and a non-target device type for the electronic device C.
In the embodiment of the present application, when the electronic device is connected to the external device, the manner in which the electronic device obtains the first device type of the external device may include, but is not limited to: interface detection and communication identification. For example, after the external device is connected to the electronic device, the electronic device may determine the first device type of the external device through a detection signal fed back by the access identification circuit at the interface. Alternatively, after the communication connection (for example, can bus connection) is established with the external device, the electronic device may identify the first device type of the external device through information (for example, SN code) fed back by the external device. Or after the communication connection is established with the external device, the electronic device can determine the device type of the external device through the instruction sent by the external device, for example, when receiving the policy disabling instruction sent by the external device, the electronic device determines that the first device type of the external device is the target device type.
Step S302, when the first device type is the target device type, entering a strategy disabling state to disable running of an automation strategy of the electronic device; the automation policy is used for indicating the electronic device to execute the corresponding action when the operation condition is met.
And when the first device type is the target device type, the electronic device enters a strategy disabling state.
In some embodiments, the electronic device disables all automation policies of the electronic device when the electronic device enters a policy disabled state. Specifically, the electronic device may record the automation policies configured by the electronic device, and further prohibit running all the automation policies after entering the policy disable state.
In other embodiments, the electronic device may disable the automation policy of the run section when the electronic device enters the policy disabled state. For example, an automation policy that conflicts with the first device type may be prohibited from running, allowing an automation policy that does not conflict with the first device type to be run. Specific details will be described in detail below.
Step S303, receiving a control instruction of an external device.
When the electronic device enters a policy disabled state, it may receive a control instruction from the external device.
The control instruction may be an instruction output by the external device to execute the automation policy configured by the external device, and may be an instruction output by the external device in response to an operation of the user, which is not particularly limited in this application.
When the electronic device enters a policy disabled state, the electronic device prohibits running of its own automation policy, but may respond to a control instruction of the external device, thereby ensuring normal operation.
Step S304, corresponding actions are executed according to the control instructions.
The electronic device responds to the control instruction of the external device and executes the action indicated by the control instruction.
The automatic policy processing method provided by the embodiment of the application comprises the following technical effects:
aiming at the situation that the automatic strategies of a plurality of electronic devices possibly collide, when data/energy interaction is carried out among the plurality of electronic devices, namely when the electronic devices are connected with the external devices, a first device type of the external devices is obtained, and further corresponding management and control processing is carried out on the automatic strategies configured by the electronic devices according to the first device type.
When the first equipment type is the target equipment type, entering a strategy forbidden state to prohibit operation of an automation strategy of the electronic equipment, avoiding abnormal events caused by conflict of the automation strategy of the electronic equipment and the automation strategy of the external equipment connected with the electronic equipment, ensuring effective implementation of the related automation strategy, effectively avoiding out of control of energy management, and improving the utilization rate of the energy so as to reduce the electricity cost of a user to the greatest extent. When the electronic equipment enters a strategy disabled state, the electronic equipment can receive a control instruction of the external equipment and respond to the control instruction of the external equipment to execute actions indicated by the control instruction so as to ensure normal work.
The following describes a method for determining a device type of an external device by an electronic device.
In the embodiment of the application, the electronic device stores a first list. Wherein the first list is used to record the target device type. The automated policy processing method provided by the application further comprises the following steps: when the first device type is recorded in the first list, the first device type is determined to be the target device type.
When the first device type is not recorded in the first list, the first device type is determined to be a non-target device type.
In some embodiments, the electronic device may also store a second list. Wherein the second list is used to record non-target device types. The automated policy processing method provided by the application further comprises the following steps: when the first device type is not recorded in the second list, the first device type is determined to be the target device type.
When the first device type is recorded in the second list, the first device type is determined to be a non-target device type.
In other words, the electronic device may store a blacklist (e.g., a first list) and/or a whitelist (e.g., a second list).
In other embodiments, the electronic device stores priorities of different device types, and the device type of the external device may be determined based on the priorities.
Referring to fig. 4, a method flow for determining a device type of an external device according to an embodiment of the present application is exemplarily described.
Step S41, a first priority corresponding to the first equipment type is obtained.
In the embodiment of the application, the electronic device stores priorities of different device types, and when the first device type is obtained, the priority corresponding to the first device type (named as first priority) and the priority of the electronic device (named as second priority) can be determined.
In step S43, when the first priority is higher than the second priority of the electronic device, the first device type is determined to be the target device type.
When the first priority corresponding to the first equipment type is higher than the second priority of the electronic equipment, and the first equipment type is determined to be the target equipment type, the electronic equipment enters a strategy forbidden state so as to receive a control instruction of the external equipment.
And when the first priority corresponding to the first equipment type is lower than the second priority of the electronic equipment, or when the first priority corresponding to the first equipment type and the second priority of the electronic equipment are the same level, determining that the first equipment type is a non-target equipment type. At this time, if the electronic device is not connected to external devices of other target device types, the electronic device is not in a policy disabled state, and the electronic device may run its automation policies.
Referring to fig. 5, step S302 may include:
in step S51, when the first device type is the target device type, a target automation policy conflicting with the first device type is determined.
When the first device type is the target device type, the electronic device determines a target automation policy which conflicts with the first device type in all the configured automation policies.
Step S53, the operation of the target automation policy is prohibited.
After determining the target automation policy conflicting with the first device type, the target automation policy is prohibited from running in step S51.
In some embodiments, the electronic device may store the third list and the fourth list. The third list is used for recording the automation policies included by the external device, and the fourth list is used for recording the automation policies conflicting with each other. When the electronic device obtains the first device type of the external device, determining an automation strategy included in the first device type according to the third list, and marking the automation strategy as the external automation strategy. And determining a target automation strategy which conflicts with the external automation strategy in all the automation strategies configured by the electronic equipment according to the fourth list, and further prohibiting the operation of the target automation strategy, wherein the automation strategy which does not conflict with the external automation strategy in all the automation strategies configured by the electronic equipment can allow the operation.
In other embodiments, the electronic device may store the fifth list. The fifth list is used for recording target automation strategies corresponding to different target device types. When the first equipment type is determined to be the target equipment type, the target automation strategy corresponding to the first equipment type can be queried from the fifth list, so that the target automation strategy is forbidden to be operated, and other automation strategies except the target automation strategy in all the automation strategies configured by the electronic equipment can be allowed to be operated.
In some embodiments, the electronic device performs a first hint operation upon entering a policy disabled state. And responding to entering the strategy disabling state, executing a first prompting operation, and outputting a corresponding prompt through an output device of the first prompting operation to inform a user that the strategy is currently in the strategy disabling state or inform the user that all or part of the automatic strategies of the current electronic equipment are forbidden to run.
In some embodiments, the policy disabled state is exited when the electronic device is disconnected from all external devices of the target device type, i.e., the electronic device is not in the policy disabled state.
When the electronic device is disconnected from the external devices of all the target device types, the electronic device may not be connected to the external device, or the device type of the external device to which the electronic device is connected is not the target device type.
In some embodiments, when the electronic device is not in a policy disabled state and an operation condition of any automation policy is satisfied, an action corresponding to the automation policy is executed. That is, when the electronic device is not in the policy disabled state, the automation policy of the electronic device may be allowed to be operated, so as to execute an action corresponding to the automation policy when the operation condition of the automation policy is satisfied.
In the running process of the electronic equipment, a user can adjust the automation strategy of the electronic equipment, wherein the adjustment of the automation strategy which is configured by the electronic equipment can be performed, and the new automation strategy can be added into the electronic equipment. Wherein adjusting the automation policy that the electronic device has been configured may include, but is not limited to: modification of a parameter or condition, deletion of a parameter or condition, addition of a parameter or condition.
Referring to fig. 6, a method flow for adjusting an automation policy according to an embodiment of the present application is exemplarily described.
Step S61, receiving an automatic strategy configuration instruction triggered by a user.
The electronic equipment can receive the input of the user through the input device, and further acquire an automatic strategy configuration instruction triggered by the user. Illustratively, the user may input an automation policy configuration instruction to the electronic device by way of an application program, a central control screen, a direct operation device, etc. on the mobile phone.
The automation policy configuration instruction may instruct to adjust the configured automation policy, or instruct to add the automation policy to the electronic device.
Step S63, when the electronic equipment is in a strategy disabled state, the electronic equipment does not respond to the automatic strategy configuration instruction, or the configuration action corresponding to the automatic strategy configuration instruction is executed and the operation of the automatic strategy corresponding to the automatic strategy configuration instruction is forbidden.
When the electronic equipment receives the automatic policy configuration instruction, the electronic equipment can detect the current state. If the electronic device is currently in the policy disabled state, the electronic device may perform a configuration action corresponding to the automation policy configuration instruction, add or change the automation policy, but not enable (run) the automation policy, and maintain the policy disabled state. And allowing the updated automation strategy to be started after the strategy forbidden state is left.
Or the electronic device may acquire the configuration instruction of the automation policy, but not execute the configuration action corresponding to the configuration instruction of the automation policy, that is, may not update the automation policy temporarily, and execute the configuration action corresponding to the configuration instruction of the automation policy to update the automation policy after leaving the policy disabled state, and allow the updated automation policy to be enabled.
Alternatively, the electronic device may not respond directly to the automated policy configuration instructions.
In some embodiments, in the process of adjusting the automation policy of the electronic device, if the electronic device detects that the electronic device is currently in the policy disabled state, the output device may prompt the user in a text, voice broadcast or other manner, and the corresponding automation policy may be modified, but the modified automation policy is temporarily not validated. The output device may be located on the electronic device (e.g., a display screen of the electronic device) or may be another device separate from the electronic device (e.g., a user's cell phone, tablet computer, etc.). As shown in fig. 7, the electronic device may send a status hint instruction to the user's handset after entering the policy disabled state. After receiving the state prompt instruction, the mobile phone of the user displays a prompt box 701 on a user interface 700 of the mobile phone, and the prompt box 701 prompts the user to "the current policy disabled state, and the page setting is temporarily disabled".
In some embodiments, when the electronic device is not in a policy disabled state, a configuration action corresponding to the automated policy configuration instruction is performed. That is, when the electronic device is not in the policy disabled state, the user is allowed to adjust the automation policy of the electronic device, and the electronic device executes the configuration action corresponding to the automation policy configuration instruction to adjust the corresponding automation policy.
The embodiment of the application also provides an automatic policy processing device, which is applied to electronic equipment and comprises:
the type acquisition module is used for acquiring a first equipment type of the external equipment when the electronic equipment is connected with the external equipment;
the policy disabling module is used for entering a policy disabling state to disable running of an automation policy of the electronic device when the first device type is the target device type; the automatic strategy is used for indicating the electronic equipment to execute corresponding actions when the operation conditions are met;
the instruction receiving module is used for receiving a control instruction of the external equipment;
and the action execution module is used for executing corresponding actions according to the control instructions.
In some embodiments, the electronic device stores a first list, and the apparatus further includes:
and the type discriminating module is used for determining the first equipment type as the target equipment type when the first equipment type is recorded in the first list.
In some embodiments, the electronic device stores priorities of different device types, and the apparatus further includes:
the priority acquisition module is used for acquiring a first priority corresponding to the first equipment type;
and the type discriminating module is used for determining the first equipment type as the target equipment type when the first priority is higher than the second priority of the electronic equipment.
In some embodiments, the apparatus further comprises:
the instruction triggering module is used for receiving an automatic policy configuration instruction triggered by a user;
the first configuration module is used for not responding to the automation policy configuration instruction when the electronic equipment is in a policy disabled state, or executing the configuration action corresponding to the automation policy configuration instruction and prohibiting the operation of the automation policy corresponding to the automation policy configuration instruction.
In some embodiments, the apparatus further comprises:
and the second configuration module is used for executing the configuration action corresponding to the automatic policy configuration instruction when the electronic equipment is not in the policy disabled state.
In some embodiments, the apparatus further comprises:
and the mode exit module is used for exiting the strategy forbidden state when the electronic equipment is disconnected with the external equipment of all the target equipment types.
In some embodiments, the policy disabling module is specifically configured to:
when the first equipment type is the target equipment type, determining a target automation strategy which conflicts with the first equipment type;
the target automation policy is disabled.
In some embodiments, the apparatus further comprises:
and the state prompting module is used for executing a first prompting operation when entering the strategy forbidden state.
Finally, it should be noted that the above embodiments are only for illustrating the technical solution of the present application and are not limiting. In practical application, the technical scheme described in any embodiment of the present application may be implemented to add or delete or alter/replace part of the content. Although the present application has been described in detail with reference to preferred embodiments, those skilled in the art will understand that modifications and equivalents may be made to the technical solutions of the present application without departing from the spirit and scope of the technical solutions of the present application.

Claims (10)

1. An automatic policy processing method applied to an electronic device, comprising the following steps:
when the electronic equipment is connected with external equipment, acquiring a first equipment type of the external equipment;
when the first equipment type is a target equipment type, entering a strategy disabling state to disable running of an automation strategy of the electronic equipment; the automation strategy is used for indicating the electronic equipment to execute corresponding actions when the electronic equipment meets the operation conditions;
receiving a control instruction of the external equipment;
and executing corresponding actions according to the control instructions.
2. The method of claim 1, wherein the electronic device stores a first list, the method further comprising:
and when the first equipment type is recorded in the first list, determining that the first equipment type is the target equipment type.
3. The method of claim 1, wherein the electronic device stores priorities for different device types, the method further comprising:
acquiring a first priority corresponding to the first equipment type;
and when the first priority is higher than the second priority of the electronic equipment, determining that the first equipment type is a target equipment type.
4. A method according to any one of claims 1 to 3, wherein the method further comprises:
receiving an automatic strategy configuration instruction triggered by a user;
when the electronic equipment is in a strategy forbidden state, the electronic equipment does not respond to the automatic strategy configuration instruction, or executes a configuration action corresponding to the automatic strategy configuration instruction and forbids to run the automatic strategy corresponding to the automatic strategy configuration instruction.
5. The method of claim 4, wherein the method further comprises:
and when the electronic equipment is not in a strategy forbidden state, executing the configuration action corresponding to the automatic strategy configuration instruction.
6. The method of claim 1, wherein the method further comprises:
and when the electronic equipment is disconnected with all the external equipment of the target equipment type, exiting the strategy disabling state.
7. The method of claim 1, wherein the entering a policy disabled state to disable running an automation policy of the electronic device when the first device type is a target device type comprises:
when the first equipment type is a target equipment type, determining a target automation strategy which conflicts with the first equipment type;
and prohibiting the target automation strategy from running.
8. The method of claim 1, wherein the method further comprises:
and executing a first prompting operation when entering the strategy disabling state.
9. An electronic device comprising a memory and a processor, the memory being connected to the processor, the memory being for storing a computer program, the processor being for implementing the automated policy handling method according to any one of claims 1 to 8 when the computer program is executed.
10. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements an automated policy handling method according to any of claims 1 to 8.
CN202410107534.8A 2024-01-25 2024-01-25 Automatic policy processing method, electronic equipment and storage medium Pending CN117872772A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410107534.8A CN117872772A (en) 2024-01-25 2024-01-25 Automatic policy processing method, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410107534.8A CN117872772A (en) 2024-01-25 2024-01-25 Automatic policy processing method, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117872772A true CN117872772A (en) 2024-04-12

Family

ID=90588156

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410107534.8A Pending CN117872772A (en) 2024-01-25 2024-01-25 Automatic policy processing method, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117872772A (en)

Similar Documents

Publication Publication Date Title
US20180248379A1 (en) Extending black-start availability using energy storage systems
JP2012235541A (en) Charge/discharge control apparatus, charge/discharge control program and charge/discharge control method
CN103858070A (en) Power-off threshold voltage adjustment method, starting up method and electronic equipment using same
KR101456318B1 (en) Load control method for load contol apparatus
CN111725879A (en) Light-storage combined power supply mobile energy storage system and control method thereof
CN113432207A (en) Communication control method and device for indoor and outdoor units of air conditioner, air conditioner and storage medium
CN115117953A (en) Bidirectional charger, power supply system, power supply management method and device
CN104617592B (en) The control method and device of energy-storage system
CN106230009B (en) A kind of Energy Management System and method of family energy storaging product
CN114977340A (en) Battery charging method, device, equipment and storage medium of charging cabinet
CN117872772A (en) Automatic policy processing method, electronic equipment and storage medium
CN115332653B (en) Self-adaptive random series-parallel battery system
CN114243789B (en) Micro-grid control method and device, micro-grid main controller and storage medium
CN217282262U (en) Bidirectional charger and power supply system
CN114331757A (en) Energy management method, energy management device, computer equipment and computer readable storage medium
JP2018196245A (en) DC power supply system
CN107276071B (en) Management method of residential power grid management system based on smart power grid
CN114616736A (en) Energy management system and method
CN112363560A (en) Control and distribution method and device of photovoltaic power generation system
CN117220323B (en) Method and device for controlling network connection and disconnection
CN110970974A (en) Mobile power supply output mode adjusting method and device, server and storage medium
CN110620426A (en) Power supply switching device and method
CN113465132B (en) Start control method and device for air conditioner, air conditioner and storage medium
CN115514012B (en) Control method and device of island microgrid system and electronic equipment
CN215300255U (en) Power supply system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination