Energy determination method and device for smart home equipment, equipment and storage medium

By adopting the method of working together between servers and clients in smart home devices, dynamically adjusting the power supply energy, solving the problem that smart home devices cannot use energy efficiently, and achieving refined management of energy use and cost reduction.

CN119861578APending Publication Date: 2025-04-22GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411743026.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-04-22

AI Technical Summary

Technical Problem

Existing smart home devices cannot use energy efficiently, resulting in higher energy costs and greater impact on the environment.

Method used

The server receives the response frame sent by the smart home device, determines the initial energy curve, and sends it to the client for optimization processing, generates the target energy curve, and finally feeds the target energy curve to the smart home device, and dynamically adjusts its power supply energy.

Benefits of technology

It realizes refined management of energy use, optimizes energy use efficiency, reduces energy consumption and costs, and reduces the impact on the environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119861578A_ABST
    Figure CN119861578A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an energy determination method and device for smart home equipment, equipment and a storage medium. A server receives a response frame sent by the smart home equipment; determining an initial energy curve corresponding to the smart home device according to the response frame; sending the initial energy curve to a client, so that the client generates a target energy curve according to the initial energy curve; receiving a target energy curve sent by the client; and sending the target energy curve to the smart home device, so that the smart home device determines a target power supply energy source corresponding to the smart home device by using the target energy curve. According to the embodiment of the invention, the energy curve is optimized, and the target power supply energy is determined according to the optimized energy curve, so that the smart home equipment can reduce unnecessary energy consumption, thereby achieving an energy-saving effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart home technology, and in particular to a method and device for determining energy for smart home equipment, an electronic device, and a storage medium. Background Art

[0002] Energy conservation and emission reduction is a major trend in the current Canadian HVAC (Heating, Ventilation and Air Conditioning) market. With the increasing awareness of environmental protection and the rise in energy costs, users and businesses are paying more and more attention to how to use energy more efficiently to reduce energy costs and reduce the impact on the environment. However, current smart home devices cannot use energy efficiently, which leads to higher energy costs and greater impact on the environment.

[0003] Therefore, how to optimize the energy usage of smart home devices to reduce energy costs and reduce the impact on the environment is an issue that needs to be urgently addressed in this field. Summary of the invention

[0004] The embodiment of the present application provides a method for determining energy of a smart home device to solve the problem that existing smart home devices cannot use energy efficiently.

[0005] Correspondingly, an embodiment of the present application also provides an energy determination device for a smart home device, an electronic device, and a storage medium to ensure the implementation and application of the above method.

[0006] In order to solve the above problems, the embodiment of the present application discloses a method for determining energy of a smart home device, which is applied to a server, wherein the server is respectively connected to the smart home device and a client for communication, and the smart home device has a plurality of corresponding power supply energy sources, and the method comprises:

[0007] Receiving a response frame sent by the smart home device;

[0008] Determine an initial energy curve corresponding to the smart home device according to the response frame;

[0009] Sending the initial energy curve to the client, so that the client generates a target energy curve according to the initial energy curve;

[0010] receiving the target energy curve sent by the client;

[0011] The target energy curve is sent to the smart home device, so that the smart home device uses the target energy curve to determine the target power supply energy corresponding to the smart home device.

[0012] Optionally, the response frame includes a device status corresponding to the smart home device, the power supply energy has corresponding prices in different time periods, and determining the initial energy curve corresponding to the smart home device according to the response frame includes:

[0013] Analyze the device status to obtain the usage habits corresponding to the smart home device;

[0014] The initial energy curve is determined according to usage habits corresponding to the smart home device.

[0015] Optionally, sending the target energy curve to the smart home device includes:

[0016] Determining energy usage information corresponding to the smart home device according to the target energy curve;

[0017] generating a transmission frame according to the energy usage information; the transmission frame comprising a plurality of data bits for storing the energy usage information;

[0018] The sending frame is sent to the smart home device, so that the smart home device determines the target power supply energy of the smart home device in different time periods based on the data bits of the sending frame.

[0019] The embodiment of the present application also discloses a method for determining energy of a smart home device, which is applied to a smart home device, wherein the smart home device is communicatively connected to a server, and the smart home device has a plurality of corresponding power supply energy sources, and the method comprises:

[0020] Receiving a sending frame sent by the server;

[0021] Parsing the transmitted frame to obtain energy usage information corresponding to the smart home device;

[0022] The target power energy is determined according to the energy usage information, and the smart home device is controlled to switch from the initial power energy to the target power energy; the initial power energy is the power energy used before the target power energy is determined.

[0023] Optionally, the transmission frame has a corresponding target energy curve, and the parsing of the transmission frame to obtain energy usage information corresponding to the smart home device includes:

[0024] Parse the sent frame to obtain the target power energy corresponding to the smart home device in different time periods, the start time and duration corresponding to the target power energy, and the switching percentage of the target power energy in different time periods.

[0025] Optionally, determining a target power supply energy source according to the energy usage information, and controlling the smart home device to switch from an initial power supply energy source to the target power supply energy source, includes:

[0026] Determine the initial power supply energy corresponding to the smart home device at the current moment;

[0027] Determine the target power supply energy corresponding to the smart home device at the next moment according to the target power supply energy corresponding to the smart home device and the start time corresponding to the target power supply energy;

[0028] The initial power supply energy source is switched to the target power supply energy source according to the switching percentage of the target power supply energy source.

[0029] Optionally, after determining the target power energy source according to the energy usage information and controlling the smart home device to switch from the initial power energy source to the target power energy source, the method further includes:

[0030] A response frame corresponding to the sent frame is sent to the server, so that the server adjusts the target energy curve based on the response frame.

[0031] Optionally, the smart home device has a corresponding device state, and before receiving the sending frame sent by the server, the method further includes:

[0032] Receiving an initial energy curve sent by the server; the initial energy curve is determined based on a device state corresponding to the smart home device;

[0033] An initial power supply energy corresponding to the smart home device is determined according to the initial energy curve, so that the smart home device can operate normally based on the initial power supply energy.

[0034] The embodiment of the present application also discloses an energy determination device for a smart home device, which is applied to a server, wherein the server is respectively connected to the smart home device and a client for communication, and the smart home device has a plurality of corresponding power supply energy sources, and the device comprises:

[0035] A response frame receiving module, used to receive a response frame sent by the smart home device;

[0036] An initial energy curve determining module, configured to determine an initial energy curve corresponding to the smart home device according to the response frame;

[0037] An initial energy curve sending module, used for sending the initial energy curve to the client, so that the client generates a target energy curve according to the initial energy curve;

[0038] A target energy curve receiving module, configured to receive the target energy curve sent by the client;

[0039] The target energy curve sending module is used to send the target energy curve to the smart home device, so that the smart home device uses the target energy curve to determine the target power supply energy corresponding to the smart home device.

[0040] The embodiment of the present application further discloses an energy determination device for a smart home device, which is applied to a smart home device, wherein the smart home device is communicatively connected to a server, and the smart home device has a plurality of corresponding power supply energy sources, and the device comprises:

[0041] A sending frame receiving module, used for receiving a sending frame sent by the server;

[0042] A sending frame parsing module, used to parse the sending frame to obtain energy usage information corresponding to the smart home device;

[0043] A control module is used to determine a target power energy source according to the energy usage information, and control the smart home device to switch from an initial power energy source to the target power energy source; the initial power energy source is the power energy source used before determining the target power energy source.

[0044] An embodiment of the present application also discloses an electronic device, including: a processor; and a memory, on which executable code is stored. When the executable code is executed, the processor executes the energy determination method of a smart home device as described in any one of the embodiments of the present application.

[0045] The embodiments of the present application also disclose one or more machine-readable media on which executable codes are stored. When the executable codes are executed, the processor executes the energy determination method for a smart home device as described in any one of the embodiments of the present application.

[0046] Compared with the prior art, the embodiments of the present application have the following advantages:

[0047] In an embodiment of the present application, the server receives a response frame sent by the smart home device; determines an initial energy curve corresponding to the smart home device based on the response frame; sends the initial energy curve to the client, so that the client generates a target energy curve based on the initial energy curve; receives the target energy curve sent by the client; sends the target energy curve to the smart home device, so that the smart home device uses the target energy curve to determine the target power supply energy corresponding to the smart home device. In an embodiment of the present application, the smart home device receives a sending frame sent by the server; parses the sending frame to obtain energy usage information corresponding to the smart home device; determines the target power supply energy based on the energy usage information, and controls the smart home device to switch from the initial power supply energy to the target power supply energy; the initial power supply energy is the power supply energy used before determining the target power supply energy.

[0048] The server in the embodiment of the present application receives and analyzes the response frame sent by the smart home device, determines the initial energy curve of the device, and sends it to the client for further optimization. The client generates a target energy curve based on the initial energy curve, which takes into account multiple factors such as the usage habits of the device, thereby realizing refined management of energy use. The optimized energy curve can more accurately reflect the energy consumption requirements of the device in different time periods, avoiding the energy waste that may exist in the traditional fixed power supply mode. The server feeds back the optimized target energy curve to the smart home device, and the device dynamically adjusts its power supply energy according to the curve, thereby minimizing energy consumption while ensuring normal operation. This intelligent energy management method not only improves energy utilization efficiency, but also saves energy costs for users, and has important economic and environmental significance. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 is a flowchart of a method for determining energy for a smart home device according to an embodiment of the present application;

[0050] Figure 2 is a flowchart of another embodiment of a method for determining energy for a smart home device of the present application;

[0051] Figure 3 It is a flowchart of energy determination of a smart home device of the present application;

[0052] Figure 4 It is a structural block diagram of an embodiment of an energy determination device for a smart home device of the present application;

[0053] Figure 5 is a structural block diagram of another embodiment of an energy determination device for a smart home device of the present application;

[0054] Figure 6 It is a schematic diagram of the structure of a device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0055] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0056] Reference Figure 1 , is a flowchart of an embodiment of a method for determining energy of a smart home device of the present application, which is applied to a server, wherein the server is respectively connected to the smart home device and the client for communication, and the smart home device has a plurality of corresponding power supply energy sources, including the following steps:

[0057] In a smart home scenario, a family needs multiple smart home devices, and each smart home device can use multiple power sources. Therefore, in the embodiment of the present application, it is necessary to confirm that each smart home device determines the target power source among multiple power sources. For example, in the embodiment of the present application, the power source can be electricity, natural gas, etc.

[0058] Step 101: receiving a response frame sent by the smart home device;

[0059] In the embodiment of the present application, the smart home device has a thermostat and a main controller. The thermostat has a WIFI (Wireless Fidelity, wireless local area network) module. The main controller is the decision-making center of the smart home device, responsible for adjusting the working state of the smart home device, that is, controlling the power supply energy corresponding to the smart home device. In the smart home device, the WiFi module needs to interact with the main controller. Specifically, the WiFi module sends a transmission frame to the main controller, and the main controller returns a response frame to the WiFi module after receiving the transmission.

[0060] In the communication protocol, a send frame refers to a data packet sent by the sender (such as a thermostat), which contains the information to be transmitted, and a response frame refers to a confirmation data packet sent by the receiver (such as a main controller) to inform the sender whether the data packet has been successfully received. Usually, each send frame corresponds to a response frame.

[0061] The WiFi module and the main controller in the embodiment of the present application use a roll call method to exchange data, that is, when the WiFi module sends a send frame to the main controller, the main controller will reply with a response frame after receiving it.

[0062] In the embodiment of the present application, when the WiFi module receives the response frame sent by the main controller, it forwards the response frame to the server. The server can monitor the status of the smart home device in real time through the response frame. For example, whether the thermostat is working properly, whether the main controller successfully receives data, etc.

[0063] Step 102: determining an initial energy curve corresponding to the smart home device according to the response frame;

[0064] The initial energy curve in the embodiment of the present application is a preliminary description of the energy consumption pattern of the smart home device over a period of time. The response frame may include the device status corresponding to the smart home device, for example, the current energy consumption, operation mode, historical data, etc. of the smart home device.

[0065] Based on the data in the response frame, the server can calculate the energy consumption pattern of the smart home device over a period of time, that is, the initial energy curve.

[0066] Specifically, the x-axis of the initial energy curve is time, and the y-axis is the price required for the power supply energy used. Each power supply energy corresponds to a curve.

[0067] Step 103: sending the initial energy curve to the client, so that the client generates a target energy curve according to the initial energy curve;

[0068] After the server obtains the response frame sent by the WiFi module, the client will call the server's interface to achieve the communication connection between the server and the client.

[0069] The server and client belong to different systems. In order to facilitate data exchange and processing between different systems, it is necessary to ensure data standardization and consistency. JSON (JavaScript Object Notation, a data exchange format) is easy for people to read and write, and it is also easy for machines to parse and generate. In addition, its data size is small and the transmission efficiency is high, making it suitable for data transmission in a network environment.

[0070] In the energy determination process of smart home devices, real-time and efficiency are key, and the use of JSON format can ensure fast data transmission and processing. Therefore, in the embodiment of the present application, when data is exchanged between the server and the client, the relevant data needs to be converted into JSON values ​​before transmission.

[0071] The server converts the initial energy curve into a JSON value and sends it to the client through the interface called by the client. The server converts the target energy curve data into JSON format and sends it to the client through the network interface. This process usually involves the HTTP protocol, and the server sends the JSON data to the client as the body of the HTTP response.

[0072] When the client receives the HTTP response sent by the server, it will parse the JSON data and obtain the relevant data of the initial energy curve. The client can perform further processing based on this data, such as displaying it to the user.

[0073] In an embodiment of the present application, the initial energy curve displayed to the user by the client is an adjustable coordinate point corresponding to each power supply energy in different time periods. The user can adjust the position of the coordinate point on the client interface to obtain the target energy curve.

[0074] In the embodiment of the present application, users of smart home devices can clearly see the energy usage in each time period based on the client, and the visual interface is clear and concise.

[0075] Furthermore, users can participate in the energy management of smart home devices through the client. Users can adjust the initial energy curve according to their own energy usage habits and preferences, so that the main controller can select the power supply energy that the user is accustomed to in a specific time period.

[0076] Step 104: receiving the target energy curve sent by the client;

[0077] When the user obtains the target energy curve after adjusting the initial energy curve in the client interface, the client will automatically send the target energy curve to the server, and the server receives the target energy curve sent by the client through the network interface.

[0078] Step 105: Send the target energy curve to the smart home device, so that the smart home device uses the target energy curve to determine the target power supply energy corresponding to the smart home device.

[0079] The server sends the target energy curve to the smart home device through the network interface. After receiving the target energy curve, the smart home device will adjust its operation mode and energy allocation according to the data in the curve to use the corresponding target power supply energy in different time periods to optimize energy use and meet user needs. For example, electricity will be used from 0 to 6 o'clock, and natural gas will be used from 6 to 12 o'clock.

[0080] In the embodiment of the present application, an initial energy curve is generated by a server, and a target energy curve is obtained by optimizing the initial energy curve through a client. The target power supply energy used by the smart power supply device in different time periods is determined according to the optimized target energy curve. The smart home device can reduce unnecessary energy consumption, thereby achieving energy saving effects.

[0081] The server in the embodiment of the present application receives and analyzes the response frame sent by the smart home device, determines the initial energy curve of the device, and sends it to the client for further optimization. The client generates a target energy curve based on the initial energy curve, which takes into account multiple factors such as the usage habits of the device, thereby realizing refined management of energy use. The optimized energy curve can more accurately reflect the energy consumption requirements of the device in different time periods, avoiding the energy waste that may exist in the traditional fixed power supply mode. The server feeds back the optimized target energy curve to the smart home device, and the device dynamically adjusts its power supply energy according to the curve, thereby minimizing energy consumption while ensuring normal operation. This intelligent energy management method not only improves energy utilization efficiency, but also saves energy costs for users, and has important economic and environmental significance.

[0082] In one embodiment of the present application, the response frame includes a device status corresponding to the smart home device, and the power supply energy has corresponding prices in different time periods. The step 102 of determining the initial energy curve corresponding to the smart home device according to the response frame includes:

[0083] Analyze the device status to obtain the usage habits corresponding to the smart home device;

[0084] The initial energy curve is determined according to usage habits corresponding to the smart home device.

[0085] In related technologies, servers usually need to obtain real-time energy price information from power grid companies or energy price data providers. This information usually includes electricity prices and natural gas prices in different time periods, as well as possible complex price structures such as tiered electricity prices and peak and valley electricity prices.

[0086] After obtaining real-time energy price information, the server needs to calculate the energy usage cost in real time based on the energy usage of smart home devices and generate an energy usage plan.

[0087] However, the server needs to obtain the latest energy price information from the power grid company or energy price data provider regularly (such as every minute or every hour). Each data interaction requires network communication, data parsing and storage, which will take up a lot of network bandwidth and computing resources. In addition, processing complex energy price structures (such as tiered electricity prices, peak and valley electricity prices, etc.) requires complex calculations and logical judgments. For example, when calculating tiered electricity prices, the server needs to calculate the electricity bill step by step based on the user's electricity consumption and tiered electricity price rules, which will also take up a lot of computing resources. In addition, in the process of calculating energy usage costs in real time, complex computing models and algorithms are usually involved to ensure the accuracy and reliability of the calculation results. These complex computing models and algorithms will also take up a lot of computing resources.

[0088] In summary, the real-time calculation process of power grid energy prices in related technologies will lead to the problem of excessive server computing power. Frequent data interaction, complex calculation models, optimization algorithms and other links will occupy a large amount of computing resources, resulting in insufficient server computing power and affecting server performance and stability.

[0089] Therefore, in an embodiment of the present application, an energy usage plan (initial energy curve) is determined by summarizing relevant data on users' use of smart home devices, thereby avoiding the problem of excessive server computing power due to real-time calculations.

[0090] The response frame of the embodiment of the present application includes the device status corresponding to the smart home device. For example, after being used for a certain period of time, the smart home device will obtain information related to the power supply energy used by the user in different time periods, as well as the power supply energy used in the user's area in different time periods, and other information related to the power supply energy.

[0091] Specifically, after obtaining the response frame, the server will analyze the device status corresponding to the smart home device and summarize the user habits and the habits of the user's region. For example, the server can analyze the user's energy usage in different time periods of the day, different days of the week, and different seasons of the year, and then obtain the user's common use of electricity in the morning (0-6 o'clock) and evening (18-24 o'clock), and common use of natural gas during the day (6-18 o'clock), and obtain relevant conclusions about the corresponding prices when the user uses electricity and the corresponding prices when the user uses natural gas.

[0092] For example, the server can analyze the data to find that user 1 often uses electricity in the morning, and the electricity price in the morning is price 1, often uses electricity during the day, and the electricity price during the day is price 2, and often uses natural gas at night, and the electricity price at night is price 3; it can also be found that user 2 often uses natural gas in the morning, and the electricity price in the morning is price 4, often uses natural gas during the day, and the electricity price during the day is price 5, and often uses electricity at night, and the electricity price at night is price 6. Based on this, it can be concluded that in the morning stage, the corresponding prices of electricity and natural gas are what.

[0093] However, at this stage, the server does not directly give the target power supply energy to be used in a certain time period. The server only generates an initial energy curve based on the summarized relevant information. For example, for each time period, the price A corresponding to the use of electricity and the price B corresponding to the use of natural gas are obtained, and then the price curve corresponding to the use of a certain power supply energy in different time periods is obtained, which is the initial energy curve.

[0094] Therefore, the server does not need to obtain the prices corresponding to the relevant power supply energy of the power grid for real-time calculation and then change the power supply energy. It only needs to analyze the device status corresponding to the smart home devices and summarize the user's usage habits to obtain the price curves corresponding to the use of different power supply energy in different time periods. Therefore, it can effectively save the server's computing power, and there is no need for the server to perform complex cloud computing every time to obtain an optimal solution, thereby improving the server's performance and user experience.

[0095] In one embodiment of the present application, the step 105 of sending the target energy curve to the smart home device includes:

[0096] Determining energy usage information corresponding to the smart home device according to the target energy curve;

[0097] generating a transmission frame according to the energy usage information; the transmission frame comprising a plurality of data bits for storing the energy usage information;

[0098] The sending frame is sent to the smart home device, so that the smart home device determines the target power supply energy of the smart home device in different time periods based on the data bits of the sending frame.

[0099] In an embodiment of the present application, the server determines the JSON value corresponding to the target energy curve and sends it to the WiFi module of the smart home device. The WiFi module generates a sending frame based on the received JSON value, uses the data bits of the sending frame to store the JSON value, and sends the sending frame to the main controller of the smart home device. The main controller reads the data bits in the sending frame to control the power supply energy used by the smart home device, so as to achieve energy saving and emission reduction of the smart home device.

[0100] In the embodiment of the present application, the energy usage information specifically refers to the target power supply energy used in different time periods, the setting starting points of different target power supply energy, the step value of the adjustment time interval, and the added value of different target power supply energy. The setting starting point refers to the starting point of the power supply energy use; the step value of the time interval refers to the adjustment duration, and the added value refers to the percentage of switching between different power supply energy sources during the switching process, which needs to be switched gradually.

[0101] Exemplarily, n data bits are used to record the data of the target energy curve. Specifically, the 24 hours of a day can be divided into 12 data bits, that is, n=12. At this time, these 12 data bits can respectively store time periods such as "00:00-02:00 use electricity", "02:00-04:00 use gas", "04:00-06:00 use electricity", "06:00-08:00 use electricity" and the target power supply energy corresponding to different time periods. At this time, the main controller will use electricity as the target power supply energy in the time period of "00:00-02:00".

[0102] Similarly, the server will convert the setting starting point of different target power supply energy, the step value of adjusting the time interval and the increment of different target power supply energy into corresponding JSON values ​​and send them to the WiFi module. The m data bits of the sending frame will be used to store this information. For example, the time period of 00:00-02:00, the power, the setting starting point is 00:00, the step value is 2 hours, and the increment is 0.1. The control process after the main controller reads the data bit is 00:00-02:00: the power usage ratio gradually increases from 0% to 10%.

[0103] Through the energy usage information sent by the server, smart home devices can quickly determine the target power supply energy used in different time periods, and can gradually switch between different power supply energy sources. This can not only optimize the way energy is used and save energy costs, but also ensure a smooth transition of energy use.

[0104] The server in the embodiment of the present application receives and analyzes the response frame sent by the smart home device, determines the initial energy curve of the device, and sends it to the client for further optimization. The client generates a target energy curve based on the initial energy curve, which takes into account multiple factors such as the usage habits of the device, thereby realizing refined management of energy use. The optimized energy curve can more accurately reflect the energy consumption requirements of the device in different time periods, avoiding the energy waste that may exist in the traditional fixed power supply mode. The server feeds back the optimized target energy curve to the smart home device, and the device dynamically adjusts its power supply energy according to the curve, thereby minimizing energy consumption while ensuring normal operation. This intelligent energy management method not only improves energy utilization efficiency, but also saves energy costs for users, and has important economic and environmental significance.

[0105] Reference Figure 2 , shows a flowchart of another embodiment of a method for determining energy of a smart home device of the present application, which is applied to a smart home device, wherein the smart home device is in communication connection with a server, and the smart home device has a plurality of corresponding power supply energy sources, including the following steps:

[0106] Step 201: receiving a transmission frame sent by the server;

[0107] In an embodiment of the present application, the smart home device includes a WiFi module and a main controller. The server determines a corresponding JSON value based on the information sent by the client and sends the JSON value to the WiFi module. The WiFi module then generates a send frame based on the JSON value and sends it to the main controller. Therefore, the main controller in the smart home device receives the send frame generated based on the value sent by the server.

[0108] Step 202: parsing the transmission frame to obtain energy usage information corresponding to the smart home device;

[0109] Each data bit in the transmission frame records the energy usage information. Specifically, the transmission frame uses n data bits to record the target power supply energy used in different time periods, and also uses m data bits to record the setting starting point of different target power supply energy, the step value of the adjustment time interval, and the increment of different target power supply energy. Therefore, the main controller will parse the transmission frame to obtain the energy usage information recorded in the data bit.

[0110] Step 203, determine the target power energy according to the energy usage information, and control the smart home device to switch from the initial power energy to the target power energy; the initial power energy is the power energy used before determining the target power energy.

[0111] In an embodiment of the present application, the main controller will first determine the initial power supply energy corresponding to the smart home device at the current moment. The initial power supply energy is the power supply energy being used by the smart home device at the current moment, that is, the power supply energy being used before the target power supply energy is determined. For example, the current moment is 00:00, and the initial power supply energy is electric energy. Based on the energy usage information in the transmitted frame, the main controller determines the target power supply energy corresponding to the smart home device at the next moment. For example, in the 00:00-02:00 time period, the target power supply energy is electric energy. According to the switching percentage of the target power supply energy, the main controller gradually switches the initial power supply energy to the target power supply energy. For example, in the 00:00-02:00 time period, the proportion of electric energy usage gradually increases from 0% to 10%.

[0112] In one embodiment of the present application, the transmission frame has a corresponding target energy curve, and the step 202 of parsing the transmission frame to obtain energy usage information corresponding to the smart home device includes:

[0113] Parse the sent frame to obtain the target power energy corresponding to the smart home device in different time periods, the start time and duration corresponding to the target power energy, and the switching percentage of the target power energy in different time periods.

[0114] In the embodiment of the present application, the energy usage information specifically refers to the target power supply energy used in different time periods, the setting starting point (start time) of different target power supply energy, the step value (duration) of adjusting the time interval and the added value (switching percentage) of different target power supply energy.

[0115] In one embodiment of the present application, the step 203, determining the target power energy according to the energy usage information, and controlling the smart home device to switch from the initial power energy to the target power energy, includes:

[0116] Determine the initial power supply energy corresponding to the smart home device at the current moment;

[0117] Determine the target power supply energy corresponding to the smart home device at the next moment according to the target power supply energy corresponding to the smart home device and the start time corresponding to the target power supply energy;

[0118] The initial power supply energy source is switched to the target power supply energy source according to the switching percentage of the target power supply energy source.

[0119] The main controller determines the initial power supply energy corresponding to the smart home device at the current moment through the device status information or the current energy usage, and determines the target power supply energy corresponding to the smart home device at the next moment according to the energy usage information in the sent frame.

[0120] The switching percentage refers to the percentage of switching between different power supply energy sources during the switching process. For example, when switching from electricity to gas, the switching percentage may be 0.1, which means that the proportion of electricity use gradually decreases from 100% to 90%, while the proportion of gas use gradually increases from 0% to 10%.

[0121] In the process of switching the initial power supply energy to the target power supply energy, the main controller gradually switches the initial power supply energy to the target power supply energy according to the switching percentage between the target power supply energy. For example, in the time period of 00:00-02:00, the proportion of electricity use gradually decreases from 100% to 90%, and the proportion of gas use gradually increases from 0% to 10%.

[0122] In the embodiment of the present application, the target power supply energy is determined according to the energy usage information, and the smart home device is controlled to switch from the initial power supply energy to the target power supply energy. By determining the initial power supply energy, the target power supply energy and the switching percentage, the main controller can achieve a smooth transition and optimization of energy use, ensuring energy saving, emission reduction and cost optimization of smart home devices.

[0123] In one embodiment of the present application, after determining the target power energy source according to the energy usage information in step 203, and controlling the smart home device to switch from the initial power energy source to the target power energy source, the method further includes:

[0124] A response frame corresponding to the sent frame is sent to the server, so that the server adjusts the target energy curve based on the response frame.

[0125] In an embodiment of the present application, the server adjusts the target energy curve based on the response frame. Specifically, the server sends down the key-value pairs of the corresponding fields according to the target energy curve transmitted online. The WiFi module in the thermostat will make corresponding changes to the frame data bits sent according to the corresponding key-value pairs. At this time, the response frame of the thermostat is changed and returned to the server, and the curve will change accordingly.

[0126] The server in the embodiment of the present application can monitor the device status of smart home devices in real time, analyze energy usage, adjust energy management strategies, and ensure stable operation and energy conservation and emission reduction of smart home devices.

[0127] In one embodiment of the present application, the smart home device has a corresponding device state. Before the step 201 of receiving the transmission frame sent by the server, the method further includes:

[0128] Receiving an initial energy curve sent by the server; the initial energy curve is determined based on a device state corresponding to the smart home device;

[0129] An initial power supply energy corresponding to the smart home device is determined according to the initial energy curve, so that the smart home device can operate normally based on the initial power supply energy.

[0130] In the embodiment of the present application, the steps of determining the initial power supply energy according to the initial energy curve are similar to the steps of determining the target power supply energy based on the target energy curve in the aforementioned steps 202-203, and will not be repeated here.

[0131] If the client does not adjust the initial energy curve to obtain the target energy curve, the main controller will always control the power supply energy used by the smart home device based on the initial energy curve sent by the server to ensure that the smart home device can operate normally based on the initial power supply energy.

[0132] Through this process, smart home devices can operate normally according to the determined initial power supply energy during startup or initial operation, ensuring the stability and reliability of smart home devices.

[0133] In the embodiment of the present application, by optimizing the energy curve and determining the target power supply energy according to the optimized energy curve, the smart home device can reduce unnecessary energy consumption, thereby achieving energy saving effect.

[0134] Reference Figure 3 , is a flow chart of energy determination of a smart home device of the present application, involving a client (App), a server, a WiFi module of a thermostat and a main controller, wherein the server is respectively communicated with the client and the WiFi module of the thermostat, and in the smart home device, the WiFi module of the thermostat is communicated with the main controller.

[0135] App: User interface for interacting with the server and smart home devices.

[0136] Server: Responsible for processing data calculations, generating energy curves, and communicating with clients and smart home devices.

[0137] Thermostat WiFi module: The part of the smart home device that is responsible for wireless communication with the server.

[0138] Main controller: The core controller of smart home devices, responsible for the operation and energy management of the devices.

[0139] like Figure 3 As shown, the specific process of determining the power supply energy of smart home devices is as follows:

[0140] The WiFi module sends a transmit frame to the host controller, requesting device status or other information;

[0141] After receiving the transmission frame, the main controller returns a response frame containing information such as device status;

[0142] After receiving the response frame from the main controller, the WiFi module sends the response frame to the server;

[0143] The App requests the server’s interface through the network to obtain the initial energy curve or other data;

[0144] The server converts the initial energy curve into JSON format and sends it to the App through the network interface;

[0145] The client can adjust the initial energy curve by itself, generate the target energy curve, and return it to the server;

[0146] The server converts the target energy curve into JSON format and sends it to the WiFi module through the network interface;

[0147] After receiving the JSON value of the target energy curve, the WiFi module converts it into a transmission frame and sends it to the main controller;

[0148] After receiving the transmission frame, the main controller adjusts the operation mode and energy allocation of the device according to the energy usage information therein, and returns a response frame to the WiFi module.

[0149] Figure 3 The communication process and data transmission process between the client (App), server, thermostat WiFi module and main controller are described in this paper. Through this process, smart home devices can adjust their operation mode and energy distribution according to the energy curve generated by the server, which can achieve energy management optimization and energy saving and emission reduction.

[0150] In order to make the embodiments of the present application more clearly understood by those skilled in the art, an example is given here for explanation, and the specific contents are as follows:

[0151] Assume that a family has multiple smart home devices, including smart lighting systems, smart appliances, etc. These devices can use a variety of power supply energy, such as electricity and natural gas. In order to optimize energy use and achieve energy conservation and emission reduction, the family uses a smart home system, which includes a server, a client (App), and smart home devices (WiFi module and main controller).

[0152] The thermostat's WiFi module sends a transmit frame to the main controller, requesting the device's status.

[0153] After receiving the transmission frame, the main controller returns a response frame containing information such as current temperature and energy consumption;

[0154] The WiFi module forwards the response frame to the server;

[0155] After receiving the response frame, the server parses the data therein and generates an initial energy curve based on the data, indicating the price curve of electricity and natural gas used in different time periods;

[0156] The server converts the initial energy curve into JSON format and sends it to the client via HTTP protocol;

[0157] After receiving the JSON data, the client parses and displays the initial energy curve;

[0158] The user adjusts the initial energy curve on the App interface, for example, adjusting the morning (0-6 am) electricity price A to the same as the natural gas price B;

[0159] The client generates a target energy curve based on the user's adjustments and sends it to the server;

[0160] receiving a target energy curve sent by a client through a network interface;

[0161] Convert the target energy curve into JSON format and send it to the WiFi module of the smart home device through the network interface;

[0162] After receiving the transmission frame, the main controller parses the data therein and obtains that electricity is used from 0 to 6 o'clock, natural gas is used from 6 to 12 o'clock, electricity is used from 12 to 18 o'clock, and natural gas is used from 18 to 24 o'clock.

[0163] Through the above steps, smart home devices can adjust their operating mode and energy usage according to the energy curve generated by the server, which can not only optimize energy management and save energy and emission reduction, but also effectively save the computing power of the server.

[0164] It should be noted that, for the method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited by the described order of actions, because according to the embodiments of the present application, 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 application.

[0165] On the basis of the above embodiments, this embodiment further provides an energy determination device for a smart home device, which is applied to electronic devices such as terminal devices and servers.

[0166] Reference Figure 4, shows a structural block diagram of an embodiment of an energy determination device for a smart home device of the present application, which is applied to a server, and the server is respectively connected to the smart home device and the client for communication. The smart home device has a variety of corresponding power supply energy sources, and specifically may include the following modules:

[0167] A response frame receiving module 401 is used to receive a response frame sent by the smart home device;

[0168] An initial energy curve determining module 402, configured to determine an initial energy curve corresponding to the smart home device according to the response frame;

[0169] An initial energy curve sending module 403 is used to send the initial energy curve to the client, so that the client generates a target energy curve according to the initial energy curve;

[0170] The target energy curve receiving module 404 is used to receive the target energy curve sent by the client;

[0171] The target energy curve sending module 405 is used to send the target energy curve to the smart home device, so that the smart home device uses the target energy curve to determine the target power supply energy corresponding to the smart home device.

[0172] Reference Figure 5 , shows a structural block diagram of another embodiment of an energy determination device for a smart home device of the present application, which is applied to a smart home device, wherein the smart home device is communicatively connected to a server, and the smart home device has a plurality of corresponding power supply energy sources, and specifically may include the following modules:

[0173] A sending frame receiving module 501 is used to receive a sending frame sent by the server;

[0174] A transmission frame parsing module 502, used to parse the transmission frame to obtain energy usage information corresponding to the smart home device;

[0175] The control module 503 is used to determine the target power energy according to the energy usage information, and control the smart home device to switch from the initial power energy to the target power energy; the initial power energy is the power energy used before determining the target power energy.

[0176] The embodiment of the present application also provides a non-volatile readable storage medium, which stores one or more modules (programs). When the one or more modules are applied to a device, the device can execute instructions (instructions) of each method step in the embodiment of the present application.

[0177] The present application embodiment provides one or more machine-readable media on which instructions are stored, and when executed by one or more processors, an electronic device executes one or more of the methods described in the above embodiments. In the present application embodiment, the electronic device includes various types of devices such as terminal devices and servers (clusters).

[0178] The embodiments of the present disclosure may be implemented as a device configured as desired using any appropriate hardware, firmware, software, or any combination thereof, and the device may include electronic devices such as terminal devices and servers (clusters). Figure 6 An exemplary apparatus 600 that may be used to implement various embodiments described in this application is schematically illustrated.

[0179] For one embodiment, Figure 6 An exemplary apparatus 600 is shown having one or more processors 602, a control module (chip set) 604 coupled to at least one of the processor(s) 602, a memory 606 coupled to the control module 604, a non-volatile memory (NVM) / storage device 608 coupled to the control module 604, one or more input / output devices 610 coupled to the control module 604, and a network interface 612 coupled to the control module 604.

[0180] The processor 602 may include one or more single-core or multi-core processors, and the processor 602 may include any combination of general-purpose processors or special-purpose processors (such as graphics processors, application processors, baseband processors, etc.). In some embodiments, the device 600 can be used as a terminal device, server (cluster), etc. described in the embodiments of the present application.

[0181] In some embodiments, the apparatus 600 may include one or more computer-readable media (e.g., memory 606 or NVM / storage device 608) having instructions 614 and one or more processors 602 combined with the one or more computer-readable media and configured to execute the instructions 614 to implement a module to perform the actions described in the present disclosure.

[0182] For one embodiment, control module 604 may include any suitable interface controller to provide any suitable interface to at least one of processor(s) 602 and / or any suitable device or component in communication with control module 604 .

[0183] The control module 604 may include a memory controller module to provide an interface to the memory 606. The memory controller module may be a hardware module, a software module, and / or a firmware module.

[0184] The memory 606 may be used, for example, to load and store data and / or instructions 614 for the device 600. For one embodiment, the memory 606 may include any suitable volatile memory, such as a suitable DRAM. In some embodiments, the memory 606 may include double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).

[0185] For one embodiment, control module 604 may include one or more input / output controllers to provide an interface to NVM / storage device 608 and input / output device(s) 610 .

[0186] For example, NVM / storage 608 may be used to store data and / or instructions 614. NVM / storage 608 may include any suitable non-volatile memory (e.g., flash memory) and / or may include any suitable non-volatile storage device(s) (e.g., one or more hard disk drives (HDDs), one or more compact disk (CD) drives, and / or one or more digital versatile disk (DVD) drives).

[0187] NVM / storage device 608 may include storage resources that are physically part of the device on which apparatus 600 is installed, or it may be accessible to the device without being part of the device. For example, NVM / storage device 608 may be accessed via input / output device(s) 610 over a network.

[0188] (One or more) input / output devices 610 may provide an interface for the apparatus 600 to communicate with any other appropriate device, and the input / output device 610 may include a communication component, an audio component, a sensor component, etc. The network interface 612 may provide an interface for the apparatus 600 to communicate through one or more networks, and the apparatus 600 may wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and / or protocols, for example, access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, etc., or a combination thereof for wireless communication.

[0189] For one embodiment, at least one of the processor(s) 602 may be packaged together with the logic of one or more controllers (e.g., a memory controller module) of the control module 604. For one embodiment, at least one of the processor(s) 602 may be packaged together with the logic of one or more controllers of the control module 604 to form a system-in-package (SiP). For one embodiment, at least one of the processor(s) 602 may be integrated on the same die with the logic of one or more controllers of the control module 604. For one embodiment, at least one of the processor(s) 602 may be integrated on the same die with the logic of one or more controllers of the control module 604 to form a system-on-chip (SoC).

[0190] In various embodiments, the device 600 may be, but is not limited to, a terminal device such as a server, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). In various embodiments, the device 600 may have more or fewer components and / or different architectures. For example, in some embodiments, the device 600 includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an application-specific integrated circuit (ASIC), and a speaker.

[0191] Among them, the main control chip can be used as a processor or control module in the detection device, sensor data, location information, etc. are stored in a memory or NVM / storage device, the sensor group can be used as an input / output device, and the communication interface may include a network interface.

[0192] 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.

[0193] 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.

[0194] The embodiments of the present application 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 application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes 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 smart home device energy determination terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable smart home device energy determination terminal device generate instructions for implementing the processes in the process. 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.

[0195] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable smart home device energy determination 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.

[0196] These computer program instructions can also be loaded onto a computer or other programmable smart home device energy determination terminal device, so that a series of operation steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable terminal device provide for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0197] Although the preferred embodiments of the present application 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 application.

[0198] 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.

[0199] The above is a detailed introduction to a method and device for determining energy of a smart home device, an electronic device and a storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for determining energy of a smart home device, characterized in that: Applied to a server, the server is respectively connected to the smart home device and the client for communication, the smart home device has a plurality of corresponding power supply energy sources, and the method includes: Receiving a response frame sent by the smart home device; Determine an initial energy curve corresponding to the smart home device according to the response frame; Sending the initial energy curve to the client, so that the client generates a target energy curve according to the initial energy curve; receiving the target energy curve sent by the client; The target energy curve is sent to the smart home device, so that the smart home device uses the target energy curve to determine the target power supply energy corresponding to the smart home device.

2. The method according to claim 1, characterized in that The response frame includes a device state corresponding to the smart home device, the power supply energy has corresponding prices in different time periods, and determining the initial energy curve corresponding to the smart home device according to the response frame includes: Analyze the device status to obtain the usage habits corresponding to the smart home device; The initial energy curve is determined according to usage habits corresponding to the smart home device.

3. The method according to claim 1, characterized in that The sending the target energy curve to the smart home device includes: Determining energy usage information corresponding to the smart home device according to the target energy curve; generating a transmission frame according to the energy usage information; the transmission frame comprising a plurality of data bits for storing the energy usage information; The sending frame is sent to the smart home device, so that the smart home device determines the target power supply energy of the smart home device in different time periods based on the data bits of the sending frame.

4. A method for determining energy of a smart home device, characterized in that: Applied to a smart home device, the smart home device is communicatively connected to a server, and the smart home device has a plurality of corresponding power supply energy sources, and the method comprises: Receiving a sending frame sent by the server; Parsing the transmitted frame to obtain energy usage information corresponding to the smart home device; The target power energy is determined according to the energy usage information, and the smart home device is controlled to switch from the initial power energy to the target power energy; the initial power energy is the power energy used before the target power energy is determined.

5. The method according to claim 4, characterized in that The sending frame has a corresponding target energy curve, and the parsing of the sending frame to obtain energy usage information corresponding to the smart home device includes: Parse the sent frame to obtain the target power energy corresponding to the smart home device in different time periods, the start time and duration corresponding to the target power energy, and the switching percentage of the target power energy in different time periods.

6. The method according to claim 5, characterized in that The step of determining a target power supply energy source according to the energy usage information, and controlling the smart home device to switch from an initial power supply energy source to the target power supply energy source, includes: Determine the initial power supply energy corresponding to the smart home device at the current moment; Determine the target power supply energy corresponding to the smart home device at the next moment according to the target power supply energy corresponding to the smart home device and the start time corresponding to the target power supply energy; The initial power supply energy source is switched to the target power supply energy source according to the switching percentage of the target power supply energy source.

7. The method according to claim 5, characterized in that After determining the target power supply energy according to the energy usage information and controlling the smart home device to switch from the initial power supply energy to the target power supply energy, the method further includes: A response frame corresponding to the sent frame is sent to the server, so that the server adjusts the target energy curve based on the response frame.

8. The method according to claim 4, characterized in that The smart home device has a corresponding device state. Before receiving the sending frame sent by the server, the method further includes: Receiving an initial energy curve sent by the server; the initial energy curve is determined based on a device state corresponding to the smart home device; An initial power supply energy corresponding to the smart home device is determined according to the initial energy curve, so that the smart home device can operate normally based on the initial power supply energy.

9. An energy determination device for a smart home device, characterized in that: Applied to a server, the server is respectively connected to the smart home device and the client in communication, the smart home device has a plurality of corresponding power supply energy sources, and the device comprises: A response frame receiving module, used to receive a response frame sent by the smart home device; An initial energy curve determining module, configured to determine an initial energy curve corresponding to the smart home device according to the response frame; An initial energy curve sending module, used for sending the initial energy curve to the client, so that the client generates a target energy curve according to the initial energy curve; A target energy curve receiving module, configured to receive the target energy curve sent by the client; The target energy curve sending module is used to send the target energy curve to the smart home device, so that the smart home device uses the target energy curve to determine the target power supply energy corresponding to the smart home device.

10. An energy determination device for a smart home device, characterized in that: Applied to a smart home device, the smart home device is connected to a server for communication, and the smart home device has a plurality of corresponding power supply energy sources, and the device comprises: A sending frame receiving module, used for receiving a sending frame sent by the server; A sending frame parsing module, used to parse the sending frame to obtain energy usage information corresponding to the smart home device; A control module is used to determine a target power energy source according to the energy usage information, and control the smart home device to switch from an initial power energy source to the target power energy source; the initial power energy source is the power energy source used before determining the target power energy source.

11. An electronic device, characterized in that: include: processor; and A memory having executable codes stored thereon, which, when executed, enables the processor to execute the energy determination method for a smart home device as described in any one of claims 1-3 or 4-8.

12. One or more machine-readable media having executable codes stored thereon, which, when executed, cause a processor to execute the energy determination method for a smart home device as described in any one of claims 1-3 or 4-8.