Event message pushing method and device for smart home
By comparing the event information of smart home devices, the problem of untimely pushing of smart home devices is solved, and the accurate update and timely push of device information is achieved, improving the user experience.
Patent Information
- Application Number
- CN202411122091.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2024-12-06
AI Technical Summary
The existing technology cannot promptly push smart home device event information, affecting the user experience.
By obtaining the target events sent by smart home manufacturers, comparing the device list associated with the target device list and family member account based on the data mapping list, updating the device list, and sending device event update messages to the smart voice assistant platform to ensure the consistency of device information and timely.
It realizes accurate updates and timely pushes of event information for smart home devices, enhances user experience, and ensures that the smart voice assistant platform can operate customized scenarios based on the latest device status.
Smart Images

Figure CN119094550A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of smart homes, and in particular to a method and device for pushing event messages of a smart home. Background Art
[0002] In recent years, with the rapid development of Internet of Things technology, the explosive growth in the number and categories of smart terminal devices has made the connection and collaboration between devices a real and urgent need for users. The architecture of smart life is moving towards connection and collaboration, and smart home has emerged. Smart home is the embodiment of Internet of Things under the influence of the Internet. For example, it has become a natural thing to control the smart home IoT devices of the home through smart voice speaker services. In order to accurately know the real-time status of home smart devices and facilitate the smart voice assistant platform to realize customized scene operation based on the device status, the relevant technology cannot push the device event information of smart home manufacturers in a timely manner, which in turn affects the user experience. Summary of the invention
[0003] In view of this, the present invention provides a method and device for pushing event messages of a smart home to solve the problem in the related art that the device event information of the smart home manufacturer cannot be pushed in time, thereby affecting the user experience.
[0004] According to a first aspect, an embodiment of the present disclosure provides a method for pushing event messages of a smart home, the method comprising:
[0005] Obtaining a first target event sent by a smart home manufacturer, wherein the first target event carries a family member account identifier and a target device list of the smart home manufacturer;
[0006] Based on the first data mapping list, query the family account identifier corresponding to the family member account and the device list associated with the family member account identifier;
[0007] Compare the device list associated with the family member account ID with the target device list;
[0008] Based on the inconsistent results of the list comparison, the device list is updated in the first data mapping list, and a device event update message is sent to the intelligent voice assistant platform.
[0009] By executing the above implementation method, the background server first obtains the first target event related to the device sent by the smart home manufacturer, and compares the relevant target device list information based on the first data mapping list, so as to accurately know the event information related to the home smart device, and then promptly updates the device information in the pre-created first data mapping list, and finally sends the event update message to the smart voice assistant platform in a timely manner, which is conducive to enhancing the user experience.
[0010] In an optional implementation, based on the inconsistent list comparison result, updating the device list in the first data mapping list includes:
[0011] If the target device list includes a newly added device that does not appear in the first data mapping list, add the target device to the first data mapping list;
[0012] If the first data mapping list includes redundant devices that do not appear in the target device list, the target device is removed from the first data mapping list.
[0013] By executing the above implementation, by comparing the target device list and the first data mapping list, it is ensured that the target devices in the smart home manufacturer are consistent with the devices in the first data mapping list, which is conducive to enhancing the user experience.
[0014] In an optional implementation manner, the method for pushing event messages of a smart home in an embodiment of the present invention further includes:
[0015] Obtaining a second target event sent by the target object, where the second target event carries a home-related device update message;
[0016] Based on the home-associated device update message, the home-associated device update message is updated in the first data mapping list and the second data mapping list, and the home-associated device update message is sent to the intelligent voice assistant platform.
[0017] By executing the above implementation, by comparing the target device list and the first data mapping list, it is ensured that the target devices in the smart home manufacturer are consistent with the devices in the first data mapping list, which is conducive to enhancing the user experience.
[0018] In an optional implementation manner, the method for pushing event messages of a smart home in an embodiment of the present invention further includes:
[0019] Acquire a third target event sent by the target device, where the third target event carries a smart home manufacturer account identifier, a target device identifier, target device specifications, and a state change identifier of a device state change caused by a target object when using the target device;
[0020] Based on the smart home manufacturer account identifier, querying the family member account identifier from the second data mapping list;
[0021] Querying the family identifier and the family member role corresponding to the family member account identifier from the first data mapping list;
[0022] Based on the family ID and family member role corresponding to the family member account ID, a permission usage message is sent to the intelligent voice assistant platform to allow the target object to use the target device.
[0023] By executing the above implementation method, the background server obtains the third target event sent by the target device, and queries the relevant third-party member account identifier (family member account identifier) based on the pre-generated second data mapping list, and then queries the relevant family identifier and family member role from the first data mapping list, which is helpful to confirm whether the family or family members of the relevant target object have the authority to use the target device, and ultimately facilitates the intelligent voice assistant platform to implement customized scene operation based on the device status, thereby enhancing the user experience.
[0024] In an optional implementation, in the smart home event message push method in the embodiment of the present invention, the first data mapping list is generated based on the family list, family account identification, smart home manufacturer account identification, family member account identification, device list, and family member roles, wherein the device list includes multiple devices, each device includes device attribute information, and the device attribute information includes: device identification, device type, and device name.
[0025] In an optional implementation, in the smart home event message push method in the embodiment of the present invention, the second data mapping list is generated based on the smart manufacturer account identifier and the family member list.
[0026] According to a second aspect, an embodiment of the present disclosure provides an event message push device for a smart home, the device comprising:
[0027] A first acquisition module is used to acquire a first target event sent by a smart home manufacturer, wherein the first target event carries a family member account identifier and a target device list of the smart home manufacturer;
[0028] A first query module, configured to query, based on the first data mapping list, the family account identifier corresponding to the family member account and the device list associated with the family member account identifier;
[0029] A data comparison module, used to compare the device list associated with the family member account identifier and the target device list;
[0030] The first updating module is used to update the device list in the first data mapping list based on the inconsistent results of the list comparison, and send a device event update message to the intelligent voice assistant platform.
[0031] According to a third aspect, an embodiment of the present disclosure provides a computer device, including:
[0032] The memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the event message push method for a smart home in the first aspect of the claim or any embodiment of the first aspect by executing the computer instructions.
[0033] According to the fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to enable a computer to execute the event message push method for a smart home in the first aspect or any implementation of the first aspect.
[0034] According to a fifth aspect, an embodiment of the present disclosure provides a computer program product, including computer instructions, which are used to enable a computer to execute the event message push method for a smart home in the first aspect or any implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0036] Figure 1 is a flow chart of a method for pushing event messages in a smart home according to an embodiment of the present invention;
[0037] Figure 2 is a flow chart of another method for pushing event messages of a smart home according to an embodiment of the present invention;
[0038] Figure 3 is the family mapping data corresponding to the third-party account (family member account) according to an embodiment of the present invention;
[0039] Figure 4 is a flow chart of another method for pushing event messages in a smart home according to an embodiment of the present invention;
[0040] Figure 5 is a structural block diagram of an event message push device for a smart home according to an embodiment of the present invention;
[0041] Figure 6 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0043] According to an embodiment of the present invention, an embodiment of a method for pushing event messages for a smart home is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0044] In this embodiment, a method for pushing event messages of a smart home is provided, which can be used for computer devices, such as mobile phones, tablet computers, desktop computers, portable notebooks, servers, etc. Figure 1 is a flow chart of a method for pushing event messages of a smart home according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0045] Step S101, obtaining a first target event sent by a smart home manufacturer, wherein the first target event carries a family member account identifier and a target device list of the smart home manufacturer.
[0046] Specifically, the smart home manufacturers mentioned above refer to companies that produce and develop smart home devices and applications. These companies are committed to using advanced technology and the Internet of Things to improve the safety, comfort and convenience of the home, and smart home manufacturers can provide a variety of smart devices. The smart devices in the smart home manufacturers can remotely control the skill applications of the smart devices of the smart home manufacturers through the smart voice assistant platform. The first target event mentioned above is the first target event related to the target device sent by the smart home manufacturer. The first target event contains the family member account identifier of the event body. The family member account identifier can also be considered as a third-party account ID. The family member account identifier can be represented by member_id or third_account_id. Having a family member account identifier indicates that the members of the family have registered an account to use the target device and have the authority to use the target device. The target device list includes multiple target devices, and each target device includes a device ID, a device type and a device name. For example, the target device device entry attribute is information: device_id: String device ID, device_spec: String device type, device_name: String device name.
[0047] The first target event in the embodiment of the present disclosure may be one or more. If there are multiple first target events, each first target event carries a family member account identifier and a target device list in the smart manufacturer.
[0048] Step S102: Based on the first data mapping list, query the family account identifier corresponding to the family member account and the device list associated with the family member account identifier.
[0049] Step S103, comparing the device list associated with the family member account identifier and the target device list.
[0050] Specifically, the first data mapping list may be a data mapping list generated under each third-party account.
[0051] As an example, the first data mapping list is generated based on a family list, a family account identifier, a smart home manufacturer account identifier, a family member account identifier, a device list, and a family member list, wherein the device list contains multiple devices, each device contains device attribute information, and the device attribute information includes: device identifier, device type, and device name.
[0052] Exemplarily, the following first data mapping list is established for each third-party account, and its attributes are as follows:
[0053] third_account_id: String Family member account ID (third-party account ID);
[0054] homes:Array A list of homes owned by the third-party account. The properties of each home entry are as follows:
[0055] home_id: String family account identifier (family ID);
[0056] smart_account_id:String smart home manufacturer account ID (smart home manufacturer account ID);
[0057] role:StringThe role of the third-party account in the family. If it is the family owner, it is "owner"; if it is a family member, it is "member".
[0058] devices:Array A list of devices that can be viewed and operated, that is, the available device management domain of the third-party account in the family. If the third-party account role is "owner", this parameter is ignored because the owner has the management rights of all family devices. If the third-party account role is "member", it is a list of devices that the account can view and operate in the family. The device list can contain multiple devices. The attributes of each device entry are as follows:
[0059] device_id:String device ID;
[0060] device_spec:String device type;
[0061] device_name:String device name.
[0062] Because the first data mapping list is generated based on the family list, family identifier (home_id), smart home manufacturer account identifier (smart_account_id), family member account identifier (third_account_id or member_id), and device list (device entry), the family account identifier (home_id) corresponding to the family member account can be queried based on the first data mapping list.
[0063] Further, on this basis, based on the first data mapping list that has been formed, a list of devices associated with the home account identifier (home_id) is queried.
[0064] Therefore, based on the pre-generated first data mapping list, the device list associated with the corresponding home account identifier can be quickly obtained. If the background server receives the first target event, and cannot find the (third_account_id or member_id) from the first data mapping list using the (third_account_id or member_id) of the first event body as the key, the first target event can be ignored. If the (home_id) still does not exist after continuing to query the (third_account_id or member_id), it indicates that the third-party account did not enable the home when using the smart home voice skill during authorization, and the event can be ignored.
[0065] Specifically, the data configuration for each household in the first data mapping list is: {home_id, smart_account_id, third_account_owner}.
[0066] home_id is the home ID where the smart home device is deployed;
[0067] smart_account_id is the account ID of the smart home manufacturer;
[0068] third_account_owner is the third-party account ID of the family owner;
[0069] There is a one-to-one mapping relationship between home_id, smart_account_id, and third_account_owner, that is, one family is bound to one smart home manufacturer account ID, and one family has only one home owner of a third-party account. (Home ID of smart home device, account ID of smart home manufacturer, third-party account ID of home owner)
[0070] Each family has family member configuration: {home_id, member_ids}.
[0071] home_id is the home ID where smart home devices are deployed;
[0072] member_ids is a list of family members;
[0073] There is a one-to-many mapping relationship between a family and its family members. In addition to having only one family owner, a family can also have multiple family members. The array members of member_ids are also third-party account IDs.
[0074] Each family has a device management domain configuration for family members: {home_id, member_id, device_ids}.
[0075] home_id is the home ID where the smart home device is deployed;
[0076] member_id is the family member ID, and its value is the third-party account ID;
[0077] device_ids is a list of smart home devices within the home.
[0078] Family members generally do not own all the devices in the family. The family owner can configure some of the devices in the family to specific family members, and the family member can only view and control the device list assigned to him by the family owner. There is a one-to-many mapping relationship between family members and devices.
[0079] Step S104: based on the inconsistent list comparison results, update the device list in the first data mapping list, and send a device event update message to the intelligent voice assistant platform.
[0080] Specifically, based on the query of the first data mapping list, the family account identifier (home_id) corresponding to the family member account (third_account_id or member_id) and the device list (device entry) associated with the family member account identifier (third_account_id or member_id) are obtained, and then the device list (device entry) is compared with the target device list to confirm whether the target device list in the first data mapping list is consistent with the target device list sent by the smart home manufacturer. If the two are inconsistent, the first data mapping list needs to be updated again. For example, after comparison, it is found that based on the first data mapping list, the target device list contains new devices that do not appear in the first data mapping list, and the target device is added to the first data mapping list, or, after comparison, the first data mapping list contains redundant devices that do not appear in the target device list, and the target device is removed from the first data mapping list.
[0081] In the smart home event message push method of the disclosed embodiment, the background server first obtains the first target event related to the device sent by the smart home manufacturer, and compares the relevant target device list information based on the first data mapping list, so as to accurately know the event information related to the home smart device, and then timely updates the device information in the pre-created first data mapping list, and finally sends the event update message to the smart voice assistant platform in a timely manner, which is conducive to enhancing the user experience.
[0082] In an optional implementation, step S104, based on the inconsistent list comparison result, updating the device list in the first data mapping list includes:
[0083] Step a1: if the target device list includes a newly added device that does not appear in the first data mapping list, add the target device to the first data mapping list.
[0084] For example, the target device list includes 5 devices, while the target device list includes 4 devices, indicating that there is one more device in the target device list. At this time, the newly added target device needs to be updated in the first data list.
[0085] Step a2: if the first data mapping list contains redundant devices that do not appear in the target device list, remove the target device from the first data mapping list.
[0086] For example, there are 4 devices in the target device list and 5 devices in the first data mapping list, which means that there is one more device in the first data mapping list. In this case, the redundant target devices need to be removed from the first data mapping list.
[0087] The disclosed embodiment compares the target device list with the first data mapping list to ensure that the target devices in the smart home manufacturer are consistent with the devices in the first data mapping list, which is beneficial to enhancing the user experience.
[0088] In this embodiment, a method for pushing event messages of a smart home is provided, which can be used for computer devices, such as mobile phones, tablet computers, desktop computers, portable notebooks, servers, etc. Figure 2 is a flow chart of a method for pushing event messages of a smart home according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0089] Step S201, obtaining a second target event sent by a target object, where the second target event carries a home-related device update message.
[0090] Specifically, the family-related device update message is usually a message for updating the increase or decrease of the family-related devices to which the third-party account (family member account) belongs. The target object here is the mobile terminal used by each family user.
[0091] like Figure 3 As shown, a third-party account has Family 1 and Family 2, where Family 1 is the role of the family owner and Family 2 is the role of the family member. The account ID of the smart home manufacturer of Family 1 is Smart Home Manufacturer Account 1, and the account ID of the smart home manufacturer of Family 2 is Smart Home Manufacturer Account 2. The smart devices that can be managed and used by the third-party account are Smart Device 1_1, Smart Device 1_2 of Family 1, and Smart Device 2_1 of Family 2. Smart Device 2_2 of Family 2 does not belong to the management domain of the third-party account and cannot be managed and used.
[0092] Step S202: Based on the home update message, the home-associated device update message is updated in the first data mapping list and the second data mapping list, and the home-associated device update message is sent to the intelligent voice assistant platform.
[0093] Specifically, the first data mapping list has been introduced above and will not be described again. The second data mapping list may be a data mapping list generated by the smart home manufacturer and the third account list.
[0094] As an example, the second data mapping list is generated based on the smart manufacturer account identifier and the family member list.
[0095] Specifically, in order to enable the received events of the smart home manufacturer to be quickly located to the third-party account (member_id or third_account_id), the following second data mapping list B is established, and its attributes are as follows:
[0096] smart_account_id:String Smart home manufacturer account ID
[0097] third_account_ids:Array A list of associated third-party accounts, whose array members are third-party account IDs.
[0098] In order to quickly query and locate, a first data mapping list is established, the collection type is a dictionary, third_account_id is used as the key, and the first data mapping list A is used as the value.
[0099] In order to quickly query and locate, a second data mapping list B set is established, the set type is a dictionary, smart_account_id is used as the key, and the second data mapping list B is used as the value.
[0100] exist Figure 3 In the example, a third-party account has Family 1 and Family 2, where Family 1 is the role of the family owner and Family 2 is the role of the family member. The account ID of the smart home manufacturer of Family 1 is Smart Home Manufacturer Account 1, and the account ID of the smart home manufacturer of Family 2 is Smart Home Manufacturer Account 2. The smart devices that can be managed and used by the third-party account are Smart Device 1_1, Smart Device 1_2 of Family 1, and Smart Device 2_1 of Family 2. Smart Device 2_2 of Family 2 does not belong to the management domain of the third-party account and cannot be managed or used.
[0101] The first data mapping list A is as follows:
[0102]
[0103] The second data mapping list is as follows:
[0104]
[0105] Since there are two smart home manufacturer accounts, the second data mapping list B has two records.
[0106] Specifically, when a user uses the smart home voice skills of a smart device of a smart home manufacturer on the smart voice assistant platform, the backend server will receive the first target event of the user using the smart home, which carries a third-party account ID (third_account_id or member_id). The backend server queries the family list related to the account based on the third_account_id.
[0107] In this embodiment, a method for pushing event messages of a smart home is provided, which can be used for computer devices, such as mobile phones, tablet computers, desktop computers, portable notebooks, servers, etc. Figure 4 is a flow chart of a method for pushing event messages of a smart home according to an embodiment of the present invention. Figure 4 As shown, the process includes the following steps:
[0108] Step S401, obtaining a third target event sent by the target device, the third target event carries the smart home manufacturer account identifier, target device specifications, and a state change identifier of a device state change caused by a target object when using the target device.
[0109] Specifically, the device status change event of the smart home manufacturer locates the device based on the smart home manufacturer account ID and device ID. The device status change event body triggered by a smart home manufacturer contains the following data: {smart_account_id, device_id, device_spec, data:{...}}.
[0110] Among them, smart_account_id is the smart home manufacturer account ID, device_id is the device ID, device_spec is the device specification, and data is the specific attribute name and data of the device change. It has different values according to different device types.
[0111] Step S402: Based on the smart home manufacturer account identifier, query the family member account identifier from the second data mapping list.
[0112] Specifically, if the identifier is not found in the second data mapping list B using the event body smart_account_id of the third target event as the key, the event can be ignored.
[0113] Step S403: query the family identifier and family member role corresponding to the family member account identifier from the first data mapping list.
[0114] Step S404: Based on the family identification and family member role corresponding to the family member account identification, a permission usage message is sent to the intelligent voice assistant platform to allow the target object to use the target device.
[0115] Specifically, if the identifier is found in the second data mapping list B by using the event body smart_account_id of the third target event as the key, the first data mapping list A with the third_account_id as the key is queried from the first data mapping list A by using the member entries of the third_account_ids array of the second data mapping list B as the key. If it does not exist, the third_account_id entry is ignored. If it exists, the family member account identifier of the first data mapping list A is checked. At the same time, if the role of the family member is the owner, that is, if the role is "owner", it means that the third-party account is the owner of the family and has the management authority of all devices in the family, then the event is converted to the smart voice assistant platform. If the role is "member", check whether the devices attribute of the data structure A contains the device_id in the event body. If not, it means that the third-party account does not have the right to use the device as a family member, and the event is ignored for the third-party account. If the devices attribute contains the device_id in the event body, it means that the third-party account has the right to use the device, then the event is converted into a device model change event of the smart voice assistant platform and sent to the smart voice assistant platform.
[0116] In the event message push method for smart home in the disclosed embodiment, the background server obtains the third target event sent by the target device, and queries the relevant third-party member account identifier (family member account identifier) based on the pre-generated second data mapping list, and then queries the relevant family identifier and family member role from the first data mapping list, which is helpful to confirm whether the family or family members of the relevant target object have the authority to use the target device, and finally facilitates the intelligent voice assistant platform to realize customized scene operation based on the device status, thereby enhancing the user experience.
[0117] In this embodiment, a smart home event message push device is also provided, which is used to implement the above embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0118] This embodiment provides a smart home event message push device, such as Figure 5 As shown, including:
[0119] A first acquisition module 51 is used to acquire a first target event sent by a smart home manufacturer, wherein the first target event carries a family member account identifier and a target device list of the smart home manufacturer;
[0120] A first query module 52, configured to query the family account identifier corresponding to the family member account and the device list associated with the family member account identifier based on the first data mapping list;
[0121] A data comparison module 53 is used to compare the device list associated with the family member account identifier and the target device list;
[0122] The first updating module 54 is used to update the device list in the first data mapping list based on the inconsistent results of the list comparison, and send a device event update message to the intelligent voice assistant platform.
[0123] In an optional implementation, the data comparison module 53 includes:
[0124] A first updating submodule, configured to add a new device that does not appear in the first data mapping list to the target device list if the target device list includes the new device that does not appear in the first data mapping list;
[0125] The second updating submodule is configured to remove the target device from the first data mapping list if the first data mapping list includes redundant devices that do not appear in the target device list.
[0126] In an optional implementation manner, the event message push device for a smart home in the embodiment of the present disclosure further includes:
[0127] A second acquisition module is used to acquire a second target event sent by the target object, where the second target event carries a home-related device update message;
[0128] The second update module is used to update the home-associated device update message in the first data mapping list and the second data mapping list based on the home-associated device update message, and send the home-associated device update message to the intelligent voice assistant platform.
[0129] In an optional implementation manner, the event message push device for a smart home in the embodiment of the present disclosure further includes:
[0130] A third acquisition module is used to acquire a third target event sent by the target device, where the third target event carries a smart home manufacturer account identifier, a target device identifier, target device specifications, and a state change identifier that causes a device state change when the target object is used in the target device;
[0131] A second query module, configured to query a family member account identifier from a second data mapping list based on the smart home manufacturer account identifier;
[0132] A third query module, used to query the family identifier and the family member role corresponding to the family member account identifier from the first data mapping list;
[0133] The data sending module is used to send a permission usage message to the intelligent voice assistant platform to allow the target object to use the target device based on the family identification and family member role corresponding to the family member account identification.
[0134] In an optional implementation, the first data mapping list is generated based on a family list, a family account identifier, a smart home manufacturer account identifier, a family member account identifier, a device list, and a family member role, wherein the device list includes multiple devices, each device includes device attribute information, and the device attribute information includes: device identifier, device type, and device name.
[0135] In an optional implementation, the second data mapping list is generated based on the smart manufacturer account identifier and the family member list.
[0136] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0137] In this embodiment, the event message push device of the smart home in the disclosed embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0138] An embodiment of the present invention further provides a computer device having the event message push device for smart home in the above-mentioned embodiment of the present disclosure.
[0139] See also Figure 6 , Figure 6 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 6 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 10 is taken as an example.
[0140] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0141] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.
[0142] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0143] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0144] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0145] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0146] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. A member of the technical field in the art should understand that the computer program instruction exists in a computer-readable medium in the form of, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0147] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the present invention. Such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for pushing event messages for smart homes. It is characterized in that The method comprises: Acquire a first target event sent by a smart home manufacturer, wherein the first target event carries a family member account identifier and a target device list of the smart home manufacturer; Based on the first data mapping list, query the family account identifier corresponding to the family member account and the device list associated with the family member account identifier; Comparing the device list associated with the family member account identifier and the target device list; Based on the inconsistent results of the list comparison, the device list is updated in the first data mapping list, and a device event update message is sent to the intelligent voice assistant platform.
2. The method according to claim 1, It is characterized in that Based on the inconsistent list comparison result, updating the device list in the first data mapping list includes: If the target device list includes a newly added device that does not appear in the first data mapping list, add the target device to the first data mapping list; If the first data mapping list includes redundant devices that do not appear in the target device list, the target device is removed from the first data mapping list.
3. The method according to claim 1, It is characterized in that Also includes: Acquire a second target event sent by the target object, where the second target event carries a home-related device update message; Based on the home-associated device update message, the home-associated device update message is updated in the first data mapping list and the second data mapping list, and the home-associated device update message is sent to the intelligent voice assistant platform.
4. The method according to claim 1, It is characterized in that Also includes: Acquire a third target event sent by the target device, wherein the third target event carries a smart home manufacturer account identifier, a target device identifier, a target device specification, and a state change identifier that causes a device state change when the target object is using the target device; Based on the smart home manufacturer account identifier, querying the family member account identifier from the second data mapping list; Querying the family identifier and the family member role corresponding to the family member account identifier from the first data mapping list; Based on the family identification and family member role corresponding to the family member account identification, a permission usage message is sent to the intelligent voice assistant platform to allow the target object to use the target device.
5. The method according to any one of claims 1 to 4, It is characterized in that The first data mapping list is generated based on a family list, a family account identifier, a smart home manufacturer account identifier, a family member account identifier, a device list, and a family member role, wherein the device list includes multiple devices, each device includes device attribute information, and the device attribute information includes: device identifier, device type, and device name.
6. The method according to claim 3, It is characterized in that The second data mapping list is generated based on the smart manufacturer account identifier and the family member list.
7. A smart home event message push device, It is characterized in that The device comprises: A first acquisition module is used to acquire a first target event sent by a smart home manufacturer, wherein the first target event carries a family member account identifier and a target device list of the smart home manufacturer; A first query module, configured to query the family account identifier corresponding to the family member account and a list of devices associated with the family member account identifier based on the first data mapping list; A data comparison module, used to compare the device list associated with the family member account identifier and the target device list; The first updating module is used to update the device list in the first data mapping list based on the inconsistent results of the list comparison, and send a device event update message to the intelligent voice assistant platform.
8. A computer device, It is characterized in that include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the event message push method for a smart home according to any one of claims 1 to 6 by executing the computer instructions.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the event message pushing method for a smart home according to any one of claims 1 to 6.
10. A computer program product, It is characterized in that It includes computer instructions, and the computer instructions are used to enable a computer to execute the event message pushing method for a smart home according to any one of claims 1 to 6.
