WO2018223910A1 - Scene configuration method and apparatus for home device, and smart home system and gateway - Google Patents

Scene configuration method and apparatus for home device, and smart home system and gateway Download PDF

Info

Publication number
WO2018223910A1
WO2018223910A1 PCT/CN2018/089696 CN2018089696W WO2018223910A1 WO 2018223910 A1 WO2018223910 A1 WO 2018223910A1 CN 2018089696 W CN2018089696 W CN 2018089696W WO 2018223910 A1 WO2018223910 A1 WO 2018223910A1
Authority
WO
WIPO (PCT)
Prior art keywords
smart home
event
home device
scene
scenario
Prior art date
Application number
PCT/CN2018/089696
Other languages
French (fr)
Chinese (zh)
Inventor
陈挺
Original Assignee
美的智慧家居科技有限公司
美的集团股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN201710427355.2A external-priority patent/CN109039835B/en
Priority claimed from CN201710443027.1A external-priority patent/CN109150672B/en
Application filed by 美的智慧家居科技有限公司, 美的集团股份有限公司 filed Critical 美的智慧家居科技有限公司
Publication of WO2018223910A1 publication Critical patent/WO2018223910A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]

Definitions

  • the present disclosure is based on a Chinese patent application with the application number of 201710443027.1, the application date is June 13, 2017, and the application number is 201710427355.2, and the application date is June 8, 2017, and the Chinese patent application is required.
  • the entire disclosure of the Chinese Patent Application is hereby incorporated by reference.
  • the present disclosure relates to the field of smart home technologies, and in particular, to a method, an apparatus, a smart home system, a smart home gateway, and a machine readable storage medium for configuring a smart home device.
  • Smart home is a residential platform, using integrated wiring technology, network communication technology, security technology, automatic control technology, audio and video technology to integrate home life related facilities, and build efficient management system for residential facilities and family schedules.
  • a smart home scenario is defined as a series of customized actions for appliances or home devices triggered by a condition.
  • the user manually adds and modifies the smart home scene through the terminal, including the trigger device, the trigger condition, the effective period, the associated device, and the operation.
  • the master bedroom scene panel is set.
  • the above solution has the following drawbacks: First, the user has many manual operations and the steps are cumbersome; secondly, in order to implement effective configuration, the user needs to understand the new functions supported by various smart home devices, which may result in the user being unable to use the smart home due to high learning cost.
  • the device implements a successful association configuration.
  • the present disclosure aims to solve at least one of the technical problems in the related art to some extent.
  • a first aspect of the present disclosure provides a scenario configuration method for a smart home device, including: detecting a selection instruction; determining a configuration mode according to the selection instruction, wherein the configuration mode includes an independent configuration mode and An association configuration mode, wherein, in the independent configuration mode, acquiring an area attribute of the networked smart home device; and, according to the configuration file, associating the smart home device with a scenario corresponding to the event, wherein the event includes a smart home a trigger event and an execution event supported by the device, where the scenario is associated with an area attribute; wherein, in the association configuration mode, acquiring a configuration file including a scene definition, and configuring a configuration file according to the included scene as a smart home gateway A scene definition is added to at least one scene feature associated with the network. .
  • the smart home device in the independent configuration mode, is associated with the scenario corresponding to the event, or in the associated configuration mode, according to the feature field that can be included according to the scenario definition. Adding a scene definition to at least one scene feature associated with the network where the smart home gateway is located, so that the same scene definition can be applied to similar scenarios such as in different rooms, the number of manual operations of the user can be reduced, and the smart home device can be realized without learning cost. Successfully configured.
  • the scene includes at least one triggering event and at least one execution event.
  • the configuration file in the independent configuration mode, includes a configuration file associated with the device and the configuration file associated with the event, and the smart home device is associated with the event according to the configuration file.
  • the context of establishing relationships includes:
  • the method further includes: establishing an association list corresponding to the region attribute, wherein the association list includes a scenario, a trigger event and a support site corresponding to the scenario A smart home device that triggers an event, an execution event corresponding to the scenario, and a smart home device that supports the execution event.
  • the method further includes:
  • the newly added smart home device is associated with the scenario.
  • the method further comprises:
  • the event When the event is not supported by other smart home devices, the event is disabled in the scenario, and it is determined whether the event corresponding to the event corresponds to other available events, and the available event is a trigger event and an execution event;
  • the scene is disabled when the scene corresponding to the event does not have at least one of a corresponding trigger event or execution event.
  • the method further comprises updating the configuration file.
  • the method further includes: acquiring attribute information of the smart home device in the network where the smart home gateway is located, where the attribute information includes the smart home device associated with the smart home device a feature field; determining whether a feature field associated with the smart home device matches a feature field included in the scenario definition; and, when determining a match, applying the scenario definition to the smart home device.
  • the method in the associated configuration mode, includes obtaining the configuration file from a controlling party.
  • the scene feature includes at least one of the following associated with the scene: location, time, season, climate, controller.
  • the location includes a scene location, an arbitrary location, and the same location.
  • a second aspect of the present disclosure provides a scenario configuration apparatus for a smart home device, which includes: an acquiring unit, configured to acquire an area attribute of an in-network smart home device; and an association unit, The method is used to associate a smart home device with a scenario corresponding to an event according to a configuration file, where the event includes a trigger event supported by the smart home device and an execution event, and the scenario is associated with the region attribute.
  • the scene includes at least one triggering event and at least one execution event.
  • the configuration file includes a configuration file associated with the device and the configuration file associated with the event
  • the association unit including: a lookup module for configuring a profile associated with the event according to the device And searching for an event supported by the smart home device; the searching module is further configured to: search, in a configuration file associated with the event, an event corresponding to an event supported by the smart home device; and an association module, configured to: The smart home device is associated with a scenario corresponding to an event supported by the smart home device.
  • the apparatus further includes: an establishment list unit, configured to establish an association list corresponding to the area attribute, wherein the association list includes a scene, a trigger event corresponding to the scene, and supporting the trigger The smart home device of the event, an execution event corresponding to the scenario, and a smart home device supporting the execution event.
  • an establishment list unit configured to establish an association list corresponding to the area attribute, wherein the association list includes a scene, a trigger event corresponding to the scene, and supporting the trigger The smart home device of the event, an execution event corresponding to the scenario, and a smart home device supporting the execution event.
  • the obtaining unit is further configured to obtain an area attribute of the newly added smart home device, and obtain a scenario corresponding to the event supported by the newly added smart home device according to the configuration file;
  • the device further includes: a searching unit, configured to search for a scene in the scenario associated with the area attribute; the association unit is further configured to: when the scene exists, add the new The networked smart home device is associated with the scene.
  • the acquiring unit is further configured to obtain that the smart home device associated with the scene is cancelled from being associated with the scene; the device further includes: a determining unit, configured to obtain, when the acquiring unit acquires When the smart home device associated with the scene is cancelled from being associated with the scenario, determining whether the event supported by the smart home device can be supported by other smart home devices; and processing unit for when the event cannot be When the other smart home device supports, the event is disabled in the scenario, and it is determined whether the event corresponding to the event corresponds to other available events, and the available event is a trigger event and an execution event; the processing unit is further used.
  • the scenario is disabled when the scenario corresponding to the event does not have at least one of a corresponding trigger event or execution event.
  • the apparatus further includes an update unit for updating the configuration file.
  • the scene configuration device of the smart home device associates the smart home device that has entered the network with the scenario corresponding to the event according to the configuration file, where the event includes a trigger event supported by the smart home device and an execution event.
  • the scenario is associated with the smart home device area attribute that has been connected to the network, which can reduce the number of manual operations of the user, and can realize the successful association configuration of the smart home device without learning cost.
  • a third aspect of the present disclosure proposes a smart home gateway including a coupled receiver and a processor, wherein: the receiver is configured to acquire a configuration including a scene definition And the processor, configured to add a scenario definition to at least one scene feature associated with the network in which the smart home gateway is located, according to the configuration file including the scenario definition, wherein the scenario definition includes a feature field .
  • the smart home gateway adds a scene definition to at least one scene feature associated with a network where the smart home gateway is located according to a feature field that can be included according to the scenario definition, so that the same scene definition can be applied to, for example, different rooms. Similar scenarios reduce user configuration and improve the user experience.
  • the receiver is further configured to acquire attribute information of the smart home device in the network, wherein the attribute information includes a feature field associated with the smart home device; and the processor And configured to: determine whether a feature field associated with the smart home device matches a feature field included in the scenario definition; and, when determining a match, apply the scenario definition to the smart home device.
  • the receiver is configured to obtain the configuration file containing the scene definition from a controlling party.
  • the scene feature includes at least one of the following associated with the scene: location, time, season, climate, controller.
  • the location includes a scene location, an arbitrary location, and the same location.
  • the fourth aspect of the present disclosure provides a smart home system, where the system includes the scenario configuration device of the smart home device according to the second aspect, and further includes a smart home device and a smart home gateway.
  • the smart gateway is configured to: according to the association established between the smart home device and the scenario, after receiving the notification message sent by the smart home device corresponding to the trigger event, to the corresponding smart home supporting the execution event The device sends an execution instruction;
  • the smart home gateway is configured to acquire a configuration file that includes a scenario definition, and add a scenario definition to at least one scene feature associated with the network where the smart home gateway is located according to the configuration file defined by the included scenario. .
  • the smart home system of the embodiment of the present disclosure can reduce the number of manual operations of the user by adopting the scenario configuration device and the smart home gateway of the embodiments of the foregoing embodiments, and can realize the successful association configuration of the smart home device without learning cost.
  • a fifth aspect of the present disclosure provides a machine readable storage medium having stored thereon instructions for causing a machine to execute according to the first aspect embodiment described above.
  • the configuration method of the smart home is described above.
  • FIG. 1 is a schematic diagram of an operation operation of a device and a scene in the prior art
  • FIG. 2 is a flowchart of a scenario configuration method of a smart home device in an independent configuration mode according to an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of association between a smart home device and a scene according to an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of association between a smart home device and an event and a scene according to an embodiment of the present disclosure
  • FIG. 5 is a schematic diagram of an association list according to an embodiment of the present disclosure.
  • FIG. 6 is a flowchart of a scenario configuration method of a smart home device in an associated configuration mode according to an embodiment of the present disclosure
  • FIG. 7 is a flowchart of a scenario configuration method of a smart home device according to an embodiment of the present disclosure.
  • FIG. 8 is a block diagram of a scenario configuration apparatus of a smart home device according to an embodiment of the present disclosure.
  • FIG. 9 is a block diagram of another scenario configuration apparatus of a smart home device according to an embodiment of the present disclosure.
  • FIG. 10 is a block diagram of still another scene configuration apparatus of a smart home device according to an embodiment of the present disclosure.
  • FIG. 11 is a block diagram of another scenario configuration apparatus of a smart home device according to an embodiment of the present disclosure.
  • FIG. 12 is a block diagram of still another scene configuration apparatus of a smart home device according to an embodiment of the present disclosure.
  • FIG. 13 is a block diagram of still another scenario configuration apparatus of a smart home device according to an embodiment of the present disclosure.
  • FIG. 14 is a block diagram of a smart home gateway according to an embodiment of the present disclosure.
  • FIG. 15 is a block diagram of a smart home system according to an embodiment of the present disclosure.
  • An embodiment of the present disclosure provides a scenario for configuring a smart home device.
  • the execution entity may be a terminal or a smart gateway in a smart home system.
  • the method includes: detecting a selection instruction; determining a configuration mode according to the selection instruction, where the configuration mode includes independence.
  • the configuration mode and the associated configuration mode each area can be configured separately in the independent configuration mode.
  • the same scene definition can be applied to similar scenarios such as in different rooms.
  • the method includes the following steps:
  • the scenario includes at least one trigger event and at least one execution event.
  • the scenario must be associated with at least one smart home device supporting the trigger event and at least one smart home device supporting the execution event to activate the scenario. If the trigger event of a certain scene is not supported by the smart home device, the scene cannot be triggered, the scene is disabled, or the execution event of a certain scene is not supported by the smart home device, and the scene cannot be executed. , the scene will still be disabled.
  • the configuration file includes a configuration file associated with the device and the configuration file associated with the event, and step 202 is specifically performed by the following steps:
  • Each smart home device has a corresponding event associated with it.
  • the configuration file associated with the event By pre-setting the configuration file associated with the event, it is easy to find events supported by the smart home device. For example, it may be an effect achieved by a smart home device after performing an operation, such as air conditioning - turning on the air conditioner and turning off the air conditioner, or may be an external change detected by the smart home device during operation, such as a gas leak detecting device - a gas leak.
  • the configuration file corresponding to the event supported by the smart home device is searched for in the configuration file associated with the event.
  • the configuration file associated with the event and the event is the scene definition, that is, the scene is defined as a series of events triggered by single or multiple events.
  • the smart home device After the scenario corresponding to the event supported by the smart home device is found in the configuration file associated with the event, the smart home device is associated with the scenario.
  • the terminal APP is used as a human-machine interaction interface to illustrate the association between the smart home device and the scene.
  • the user only needs to set the regional attribute of each smart home device, that is, the room attribute, and the smart home. Other operations required to associate the device with the scenario will be done automatically by the terminal.
  • step 1 there are area attributes and smart home devices that have been connected to the network. The user only needs to drag the smart home device into the corresponding area on the interface (step 2). After the user clicks “finish”, the smart home device automatically associates with the scene and displays it in the new page 3.
  • the area attribute may also be planned according to the functional attribute of the room, and may be pre-divided by the user, for example, dividing the two bedrooms into one area, or dividing the living room and the restaurant into one area, the area attribute The division can be flexibly set.
  • the embodiment of the present disclosure directly binds the scenario in the prior art to the device, and changes the device to associate the device with the event by using an event.
  • the master bedroom includes four scenarios. They are sleep, morning, reading and night, corresponding to 14 trigger events and execution events.
  • the five smart home devices in the master bedroom also support one or more of these 14 events.
  • the relationship between these "scenario-event" and "device-event” can be predefined in the configuration file associated with the event through the device and the configuration file associated with the scene and the event. It is important to note that the same event can be supported by multiple smart home devices, although not shown in Figure 4. Compared with the manual configuration of 4 scenes of the main bedroom in Figure 1, 14 operations are required.
  • an association list corresponding to the region attribute may be established, where the association list includes a scenario, and the trigger corresponding to the scenario An event and a smart home device supporting the triggering event, an execution event corresponding to the scenario, and a smart home device supporting the execution event.
  • the association list may further include an occurrence time and an area of the trigger event, and an area where the execution event occurs, for example, a scene is defined as:
  • trigger event a1 is triggered in area A1 and in time period (t_start1, t_end1) and/or trigger event 2 is in area A2 and is triggered in time period (t_start2, t_end2)...);
  • execution event b is executed in area B (B can be A); execution event c is executed in area C (C can be A or B)).
  • each scene shown in the figure has a trigger event and a corresponding execution event, and the trigger event has a corresponding time and region, and the execution event also has a corresponding region, and each of the above events can support the event.
  • the smart home device of the event (not shown).
  • the gas detector detects a flammable gas leak, that is, the trigger event is triggered, the corresponding execution event is executed, and the window opening, the alarm, and the opening of the range hood are all supported by the corresponding smart home device.
  • the “back home”, “home away”, “reservation” and “dining” correspond to the setting of the scene panel, and the corresponding trigger event is triggered by clicking the corresponding button, and the corresponding execution event is executed.
  • the trigger event is triggered, and the corresponding execution event “lights and delays 30s off” is executed.
  • the smart gateway in the smart home system can monitor whether the trigger event is triggered according to the association list, that is, notify the intelligence supporting the execution event after receiving the notification message sent by the smart home device supporting the trigger event.
  • the home equipment performs the corresponding operations.
  • the configuration file associated with the event and the configuration file associated with the event are found through the two configuration files, and the configuration file associated with the event and the event is found to be supported by the newly added smart home device. The scene corresponding to the event.
  • the newly added smart home device is associated with the scenario.
  • the newly added smart home device is associated with the scenario corresponding to the event it supports.
  • the events supported by the smart home device will also be removed, so it is necessary to determine whether the event supported by the smart home device can be supported by other smart home devices, so that The event can continue to be triggered or executed.
  • the event When the event cannot be supported by other smart home devices, the event is disabled in the scenario, and it is determined whether the event corresponding to the event corresponds to other available events, and the available events are trigger events and execution events. .
  • the event When the event cannot be supported by other smart home devices, it indicates that the event cannot continue to be triggered or executed, and the event is disabled in the scenario. Since the scene must include at least one trigger event and at least one execution event, it is necessary to determine whether the scene has other available events, that is, whether the trigger event and the execution event are also included.
  • the scene When it is determined that the scene does not have at least one of a corresponding trigger event or an execution event, the scene cannot be implemented, and the scene is disabled.
  • the event when the event can be supported by other smart home devices, the event may still be triggered or executed, the event being unaffected by the smart home device being cancelled associated with the scene.
  • the configuration file may be periodically updated through the network.
  • FIG. 6 is a schematic flowchart of a scenario configuration method of a smart home device according to an exemplary embodiment of the present disclosure.
  • the scenario configuration method of the smart home device provided by the embodiment of the present disclosure may be implemented by a smart home gateway, and the method may include:
  • the smart home gateway can be used as a central control device in the smart home system to control various smart home devices, network environments, and management policies in the smart home system.
  • a mobile terminal such as a mobile phone can be used as a controlling party to communicate with the smart home gateway through the network and transmit a configuration file about the smart home system to the home smart gateway through the network.
  • the controller can provide an interface operation or interface to the user through a control interface, a platform, or an App.
  • the scene definition may be preset in a configuration file such as a control interface of the controller, a platform, or an App. Then, after the user completes the smart home device addition by the control party and performs the scene feature setting such as the area or the location for the smart home device, the controller can send the configuration file including the scene definition to the smart home gateway to Obtained by the latter.
  • a configuration file such as a control interface of the controller, a platform, or an App.
  • the network in which the smart home gateway is located may have scene characteristics according to the location of the network deployment (eg, home structure, home environment, geographic location, etc.).
  • the scene feature may include at least one of the following associated with the scene: location, time, season, climate, controller.
  • the location associated with the scene may be a home structure, a home environment, a geographic location, etc., for example, may be a scene area, a location in a home structure; a time associated with the scene may be a time such as a usage scene a segment, for example, a time of day; the season associated with the scene may be a season such as allowing a scene, for example, allowing a heated sleep scene to be used in winter; the climate associated with the scene may be a climate such as suitable for use, for example, A scenario that can increase humidity for a home environment is used in arid climate conditions; the controller associated with the scene can be a controller such as communicating with a smart home gateway.
  • the above scene features may be used alone or in combination.
  • the scene can be set at 7:00-20:00 in the morning to open the curtains for daylighting.
  • the scene definition is added according to the feature field that can be included according to the scenario definition, and the scenario definition is added to at least one scene feature associated with the network where the smart home gateway is located, so that the same scenario definition can be applied to similar scenarios such as in different rooms, and the user is reduced. Configure the number of times to improve the experience.
  • FIG. 7 is a schematic flowchart of a scenario configuration method of a smart home device according to another exemplary embodiment of the present disclosure.
  • the smart home scene configuration method provided by the present disclosure may include:
  • the properties of the smart home device may be configured when the smart home device is deployed into the home network, for example, an area associated with the location used by the smart home device may be configured, and associated with the smart home device event.
  • an area associated with the location used by the smart home device may be configured, and associated with the smart home device event.
  • its usage location can be set to master, and the events associated with it can be set to turn on music, turn off music, increase volume, decrease volume, and the like.
  • the feature field described above may be a master bedroom.
  • the feature field may be matched with the feature field included in the scene definition. For example, if it does not match, it can be considered that the definition for the smart home device scene does not apply.
  • the scene can be set to the master bedroom area, for example, for all the smartfield systems having the feature field.
  • the device is set up for the scene.
  • the above location may include a scene location (or region), an arbitrary location (or region), and the same location (or region).
  • the above area may be a scene area such as a “master bedroom”, or may be a scene area such as “control party” or “App”; for example, the above area may also be an unspecified area, for example, if the area is "ANY” can be considered as an arbitrary area in the home environment; if the area is "SAME (same)", the area can be considered as the same area as the first area.
  • scenario can be defined as follows:
  • a scenario is defined as:
  • a sleep scene can be defined as follows:
  • a sleep scene is executed, other smart devices in the same room are triggered, and the air conditioner is turned on.
  • the music will be turned off and the lighting will be adjusted to sleep.
  • the sleep effect can be defined as all closed or some lights are reserved according to preferences.
  • the flammable gas leak processing scene can be defined as follows:
  • each room opens a window, turns off the power, sounds an alarm, and sends an alarm message to a control party mobile phone such as an App.
  • the same scenario definition can cover similar scenarios in different rooms, thereby reducing the number of user configurations.
  • the same scene definition can also support similar scenes in the same area and across rooms.
  • the embodiment of the present disclosure further provides a scene configuration device of the smart home device, and the configuration device may be a terminal or a smart gateway in the smart home system.
  • the configuration device 60 includes:
  • the obtaining unit 61 is configured to acquire an area attribute of the networked smart home device
  • the association unit 62 is configured to associate the smart home device with a scenario corresponding to the event according to the configuration file, where the event includes a trigger event supported by the smart home device and an execution event, where the scenario is associated with the region attribute.
  • the embodiment of the present disclosure reduces the number of manual operations of the user, and realizes successful association configuration of the smart home device without learning cost.
  • the scenario includes at least one trigger event and at least one execution event.
  • the configuration file includes a configuration file associated with the device and the configuration file associated with the event.
  • the association unit 62 includes:
  • the searching module 621 is configured to search for an event supported by the smart home device according to the configuration file that is associated with the event.
  • the searching module 621 is further configured to: search for a scenario corresponding to an event supported by the smart home device in a configuration file that is associated with the event;
  • the association module 622 is configured to associate the smart home device with a scenario corresponding to an event supported by the smart home device.
  • the apparatus 60 further includes: an establishment list unit 81, configured to establish an association list corresponding to the area attribute, where the association list includes a scene, a trigger event corresponding to the scene, and A smart home device supporting the triggering event, an execution event corresponding to the scenario, and a smart home device supporting the execution event.
  • an establishment list unit 81 configured to establish an association list corresponding to the area attribute, where the association list includes a scene, a trigger event corresponding to the scene, and A smart home device supporting the triggering event, an execution event corresponding to the scenario, and a smart home device supporting the execution event.
  • the obtaining unit 61 is further configured to acquire an area attribute of the newly added smart home device, and obtain, according to the configuration file, an event corresponding to the newly supported smart home device support event.
  • the device 60 further includes: a searching unit 91, configured to search for a scene in the scenario associated with the area attribute;
  • the association unit 62 is further configured to associate the newly added smart home device with the scenario when the scenario exists.
  • the acquiring unit 61 is further configured to acquire that the smart home device associated with the scene is cancelled from being associated with the scenario;
  • the device 60 further includes: a determining unit 101, configured to determine, when the acquiring unit acquires the association between the smart home device and the scene that is associated with the scene, whether the event supported by the smart home device can be Other smart home device support; and
  • the processing unit 102 is configured to disable the event in the scenario when the event cannot be supported by another smart home device, and determine whether the event corresponding to the event corresponds to other available events, and the available event is triggered. Events and execution events;
  • the processing unit 102 is further configured to disable the scenario when the scenario corresponding to the event does not have at least one of a corresponding trigger event or an execution event.
  • the apparatus 60 further includes: an updating unit 111, configured to update the configuration file.
  • the smart home gateway of another embodiment of the present disclosure will be described below.
  • FIG. 14 is a block diagram of a smart home gateway provided by an exemplary embodiment of the present disclosure.
  • the smart home gateway 300 provided by the embodiment of the present disclosure may include a coupled receiver 301 and a processor 302, wherein: the receiver 301 may be configured to acquire a configuration file including a scene definition; and a processor. 302.
  • the method may be configured to add a scenario definition according to the configuration file to at least one scene feature associated with the network where the smart home gateway is located, where the scenario definition includes a feature field.
  • the scene feature includes at least one of the following associated with the scene: location, time, season, climate, controller.
  • the receiver 301 can be configured to obtain the configuration file from a controlling party.
  • the receiver 301 may be further configured to acquire attribute information of the smart home device in the network, wherein the attribute information includes a feature field associated with the smart home device; and the processor 302 may be further configured to :
  • the scenario definition is applied to the smart home device when a match is determined.
  • the smart home device may include, but is not limited to, a smart air conditioner, a smart curtain, a smart music player, a smart light, and the like.
  • the same scenario definition can cover similar scenarios in different rooms, thereby reducing the number of user configurations.
  • the same scene definition can also support similar scenes in the same area and across rooms.
  • the embodiment of the present disclosure further provides a smart home system 120.
  • the system includes the scenario configuration device 60 of the smart home device provided by the foregoing embodiment, and further includes a smart home device 122 and a smart home. Gateway 300.
  • the smart home gateway 300 is configured to perform an event according to the association between the smart home device and the scenario, after receiving the notification message sent by the smart home device corresponding to the trigger event, to the corresponding support execution event.
  • the smart home device sends an execution instruction.
  • the smart home gateway 300 is configured to acquire a configuration file that includes a scenario definition, and add a scenario definition to at least one scene feature associated with the network where the smart home gateway is located according to the configuration file that includes the scenario definition.
  • the smart home system of the embodiment of the present disclosure can reduce the number of manual operations of the user by using the scenario configuration device and the smart home gateway in the embodiments of the foregoing embodiments, and can realize the successful association configuration of the smart home device without learning cost.
  • Some embodiments of the present disclosure also provide a machine readable storage medium having stored thereon instructions for causing a machine to execute the smart home device according to the first aspect embodiment described above Scene configuration method.
  • a "computer-readable medium” can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device.
  • computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM).
  • the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
  • portions of the present disclosure can be implemented in hardware, software, firmware, or a combination thereof.
  • multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

Provided are a scene configuration method and apparatus for a smart home device, a system and a gateway. The method comprises: detecting a selection instruction; determining a configuration mode according to the selection instruction, with the configuration mode comprising an independent configuration mode and an association configuration mode; in the independent configuration mode, acquiring a region attribute of a smart home device which has accessed a network, and according to a configuration file, associating the smart home device with a scene corresponding to an event, wherein the event comprises a trigger event and an execution event supported by the smart home device, and the scene is associated with the region attribute; and in the association configuration mode, acquiring a configuration file containing a scene definition, and according to the configuration file containing a scene definition, adding a scene definition to at least one scene feature associated with a network where a smart home gateway is located. The configuration method and apparatus, the system and the gateway solve the problem of a user being unable to successfully associate the settings of smart home devices due to many manual user operations when the smart home device is to be associated with a scene.

Description

家居设备的场景配置方法、装置及智能家居***和网关Home equipment scene configuration method, device and smart home system and gateway
相关申请的交叉引用Cross-reference to related applications
本公开基于申请号为201710443027.1,申请日为2017年6月13日的中国专利申请,以及,申请号为201710427355.2,申请日为2017年6月8日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本公开作为参考。The present disclosure is based on a Chinese patent application with the application number of 201710443027.1, the application date is June 13, 2017, and the application number is 201710427355.2, and the application date is June 8, 2017, and the Chinese patent application is required. The entire disclosure of the Chinese Patent Application is hereby incorporated by reference.
技术领域Technical field
本公开涉及智能家居技术领域,具体地涉及一种智能家居设备的配置方法、装置、智能家居***、智能家居网关及机器可读存储介质。The present disclosure relates to the field of smart home technologies, and in particular, to a method, an apparatus, a smart home system, a smart home gateway, and a machine readable storage medium for configuring a smart home device.
背景技术Background technique
智能家居是以住宅为平台,利用综合布线技术、网络通信技术、安全防范技术、自动控制技术、音视频技术将家居生活有关的设施集成,构建高效的住宅设施与家庭日程事务的管理***,提升家居安全性、便利性、舒适性、艺术性,并实现环保节能的居住环境。Smart home is a residential platform, using integrated wiring technology, network communication technology, security technology, automatic control technology, audio and video technology to integrate home life related facilities, and build efficient management system for residential facilities and family schedules. Home safety, convenience, comfort, and artistry, and achieve an environmentally friendly and energy-saving living environment.
智能家居场景,被定义为由某个条件触发的一系列自定义的针对家电或家居设备的操作。在现有的技术方案中,主要由用户通过终端手动添加和修改智能家居场景,包含触发设备、触发条件、生效时段、关联设备及操作等,如图1所示,主卧场景面板设定了4个场景,关联设备则有场景面板、空调、窗帘、音乐播放器和各照明灯具。则在终端上需要分别进行5+4+3+2=14次关联操作,方能完成配置。A smart home scenario is defined as a series of customized actions for appliances or home devices triggered by a condition. In the existing technical solution, the user manually adds and modifies the smart home scene through the terminal, including the trigger device, the trigger condition, the effective period, the associated device, and the operation. As shown in FIG. 1 , the master bedroom scene panel is set. In 4 scenes, the associated equipment has a scene panel, air conditioner, curtains, music player and various lighting fixtures. Then, 5+4+3+2=14 correlation operations need to be performed separately on the terminal to complete the configuration.
上述方案具有以下缺陷:其一,用户手动操作多,步骤繁琐;其二,为了实施有效配置,用户需要了解各类智能家居设备支持的新功能,可能因学习成本高,导致用户无法对智能家居设备实现成功关联配置。The above solution has the following drawbacks: First, the user has many manual operations and the steps are cumbersome; secondly, in order to implement effective configuration, the user needs to understand the new functions supported by various smart home devices, which may result in the user being unable to use the smart home due to high learning cost. The device implements a successful association configuration.
发明内容Summary of the invention
本公开旨在至少在一定程度上解决相关技术中的技术问题之一。The present disclosure aims to solve at least one of the technical problems in the related art to some extent.
为实现上述目的,本公开第一方面实施例提出了一种智能家居设备的场景配置方法,包括:检测选择指令;根据所述选择指令确定配置模式,其中,所述配置模式包括独立配置模式和关联配置模式;其中,在所述独立配置模式下,获取已入网智能家居设备的区域属性;以及,根据配置文件,将智能家居设备与事件对应的场景建立关联,其中,所述事件包括智能家居设备支持的触发事件以及执行事件,所述场景与区域属性相关联;其中,在所述关联 配置模式下,获取包含场景定义的配置文件,根据所述包含场景定义的配置文件为与智能家居网关所在网络相关联的至少一个场景特征添加场景定义。。In order to achieve the above object, a first aspect of the present disclosure provides a scenario configuration method for a smart home device, including: detecting a selection instruction; determining a configuration mode according to the selection instruction, wherein the configuration mode includes an independent configuration mode and An association configuration mode, wherein, in the independent configuration mode, acquiring an area attribute of the networked smart home device; and, according to the configuration file, associating the smart home device with a scenario corresponding to the event, wherein the event includes a smart home a trigger event and an execution event supported by the device, where the scenario is associated with an area attribute; wherein, in the association configuration mode, acquiring a configuration file including a scene definition, and configuring a configuration file according to the included scene as a smart home gateway A scene definition is added to at least one scene feature associated with the network. .
根据本公开实施例的智能家居设备的场景配置方法,在独立配置模式下,将智能家居设备与事件对应的场景建立关联,或者,在关联配置模式下,根据能够根据场景定义包括的特征字段为与智能家居网关所在网络相关联的至少一个场景特征添加场景定义,从而可以将同一场景定义应用于诸如不同房间内的类似场景,可以减少用户手动操作次数,无需学习成本即可实现智能家居设备的成功配置。According to the scenario configuration method of the smart home device according to the embodiment of the present disclosure, in the independent configuration mode, the smart home device is associated with the scenario corresponding to the event, or in the associated configuration mode, according to the feature field that can be included according to the scenario definition. Adding a scene definition to at least one scene feature associated with the network where the smart home gateway is located, so that the same scene definition can be applied to similar scenarios such as in different rooms, the number of manual operations of the user can be reduced, and the smart home device can be realized without learning cost. Successfully configured.
在至少一个实施例中,所述场景包括至少一个触发事件和至少一个执行事件。In at least one embodiment, the scene includes at least one triggering event and at least one execution event.
在至少一个实施例中,在所述独立配置模式下,所述配置文件包括设备与事件关联的配置文件,以及场景与事件关联的配置文件,所述根据配置文件,将智能家居设备与事件对应的场景建立关联包括:In at least one embodiment, in the independent configuration mode, the configuration file includes a configuration file associated with the device and the configuration file associated with the event, and the smart home device is associated with the event according to the configuration file. The context of establishing relationships includes:
根据所述设备与事件关联的配置文件,查找智能家居设备支持的事件;Finding events supported by the smart home device according to the configuration file associated with the event;
在所述场景与事件关联的配置文件中,查找所述智能家居设备支持的事件对应的场景;Searching, in the configuration file associated with the event, the scenario corresponding to the event supported by the smart home device;
将所述智能家居设备与所述智能家居设备支持的事件对应的场景建立关联。Associating the smart home device with a scenario corresponding to an event supported by the smart home device.
在至少一个实施例中,在所述独立配置模式下,所述方法还包括:建立对应于区域属性的关联列表,其中,所述关联列表包括场景,与所述场景对应的触发事件和支持所述触发事件的智能家居设备,与所述场景对应的执行事件以及支持所述执行事件的智能家居设备。In at least one embodiment, in the independent configuration mode, the method further includes: establishing an association list corresponding to the region attribute, wherein the association list includes a scenario, a trigger event and a support site corresponding to the scenario A smart home device that triggers an event, an execution event corresponding to the scenario, and a smart home device that supports the execution event.
在至少一个实施例中,在所述独立配置模式下,所述方法还包括:In at least one embodiment, in the independent configuration mode, the method further includes:
获取新增入网智能家居设备的区域属性,以及根据所述配置文件,获取与所述新增入网智能家居设备支持的事件对应的场景;Acquiring the regional attribute of the newly added smart home device, and obtaining a scenario corresponding to the event supported by the newly added smart home device according to the configuration file;
在与所述区域属性相关联的场景中,查找是否存在所述场景;In the scenario associated with the region attribute, finding whether the scenario exists;
当存在所述场景时,将所述新增入网智能家居设备与所述场景建立关联。When the scenario exists, the newly added smart home device is associated with the scenario.
在至少一个实施例中,所述方法还包括:In at least one embodiment, the method further comprises:
当获取到与场景建立关联的智能家居设备被取消与所述场景的关联时,判断所述智能家居设备支持的事件是否能够由其他智能家居设备支持;Determining whether an event supported by the smart home device can be supported by other smart home devices when the smart home device associated with the scene is acquired from being associated with the scenario;
当所述事件不能由其他智能家居设备支持时,在所述场景中禁用所述事件,并判断所述事件对应的场景中是否对应其它可用事件,所述可用事件为触发事件和执行事件;When the event is not supported by other smart home devices, the event is disabled in the scenario, and it is determined whether the event corresponding to the event corresponds to other available events, and the available event is a trigger event and an execution event;
当所述事件对应的场景没有对应的触发事件或执行事件中的至少一者时,禁用所述场景。The scene is disabled when the scene corresponding to the event does not have at least one of a corresponding trigger event or execution event.
在至少一个实施例中,所述方法还包括:更新所述配置文件。In at least one embodiment, the method further comprises updating the configuration file.
在至少一个实施例中,在所述关联配置模式下,所述方法还包括:获取智能家居网关所 在网络中智能家居设备的属性信息,其中,所述属性信息包含与所述智能家居设备关联的特征字段;判断与所述智能家居设备关联的特征字段是否与所述场景定义中包括的特征字段匹配;以及,在判断匹配时,针对所述智能家居设备应用所述场景定义。In at least one embodiment, in the associated configuration mode, the method further includes: acquiring attribute information of the smart home device in the network where the smart home gateway is located, where the attribute information includes the smart home device associated with the smart home device a feature field; determining whether a feature field associated with the smart home device matches a feature field included in the scenario definition; and, when determining a match, applying the scenario definition to the smart home device.
在至少一个实施例中,在所述关联配置模式下,该方法包括:从控制方获取所述配置文件。In at least one embodiment, in the associated configuration mode, the method includes obtaining the configuration file from a controlling party.
在至少一个实施例中,所述场景特征包括与场景相关联的以下至少之一者:位置、时间、季节、气候、控制方。In at least one embodiment, the scene feature includes at least one of the following associated with the scene: location, time, season, climate, controller.
在至少一个实施例中,所述位置包括场景位置、任意位置以及相同位置。In at least one embodiment, the location includes a scene location, an arbitrary location, and the same location.
为实现上述目的,本公开第二方面实施例提出了一种智能家居设备的场景配置装置,其特征在于,包括:获取单元,用于获取已入网智能家居设备的区域属性;以及,关联单元,用于根据配置文件,将智能家居设备与事件对应的场景建立关联,其中,所述事件包括智能家居设备支持的触发事件以及执行事件,所述场景与区域属性相关联。In order to achieve the above object, a second aspect of the present disclosure provides a scenario configuration apparatus for a smart home device, which includes: an acquiring unit, configured to acquire an area attribute of an in-network smart home device; and an association unit, The method is used to associate a smart home device with a scenario corresponding to an event according to a configuration file, where the event includes a trigger event supported by the smart home device and an execution event, and the scenario is associated with the region attribute.
在至少一个实施例中,所述场景包括至少一个触发事件和至少一个执行事件。In at least one embodiment, the scene includes at least one triggering event and at least one execution event.
在至少一个实施例中,所述配置文件包括设备与事件关联的配置文件,以及场景与事件关联的配置文件,所述关联单元包括:查找模块,用于根据所述设备与事件关联的配置文件,查找智能家居设备支持的事件;所述查找模块,还用于在所述场景与事件关联的配置文件中,查找所述智能家居设备支持的事件对应的场景;关联模块,用于将所述智能家居设备与所述智能家居设备支持的事件对应的场景建立关联。In at least one embodiment, the configuration file includes a configuration file associated with the device and the configuration file associated with the event, the association unit including: a lookup module for configuring a profile associated with the event according to the device And searching for an event supported by the smart home device; the searching module is further configured to: search, in a configuration file associated with the event, an event corresponding to an event supported by the smart home device; and an association module, configured to: The smart home device is associated with a scenario corresponding to an event supported by the smart home device.
在至少一个实施例中,所述装置还包括:建立列表单元,用于建立对应于区域属性的关联列表,其中,所述关联列表包括场景,与所述场景对应的触发事件和支持所述触发事件的智能家居设备,与所述场景对应的执行事件以及支持所述执行事件的智能家居设备。In at least one embodiment, the apparatus further includes: an establishment list unit, configured to establish an association list corresponding to the area attribute, wherein the association list includes a scene, a trigger event corresponding to the scene, and supporting the trigger The smart home device of the event, an execution event corresponding to the scenario, and a smart home device supporting the execution event.
在至少一个实施例中,所述获取单元,还用于获取新增入网智能家居设备的区域属性,以及根据所述配置文件,获取与所述新增入网智能家居设备支持的事件对应的场景;所述装置还包括:查找单元,用于在与所述区域属性相关联的场景中,查找是否存在所述场景;所述关联单元,还用于当存在所述场景时,将所述新增入网智能家居设备与所述场景建立关联。In at least one embodiment, the obtaining unit is further configured to obtain an area attribute of the newly added smart home device, and obtain a scenario corresponding to the event supported by the newly added smart home device according to the configuration file; The device further includes: a searching unit, configured to search for a scene in the scenario associated with the area attribute; the association unit is further configured to: when the scene exists, add the new The networked smart home device is associated with the scene.
在至少一个实施例中,所述获取单元,还用于获取与场景建立关联的智能家居设备被取消与所述场景的关联;所述装置还包括:判断单元,用于当所述获取单元获取到与场景建立关联的智能家居设备被取消与所述场景的关联时,判断所述智能家居设备支持的事件是否能够由其他智能家居设备支持;以及,处理单元,用于当所述事件不能由其他智能家居设备支持时,在所述场景中禁用所述事件,并判断所述事件对应的场景中是否对应其它可用事件,所述可用事件为触发事件和执行事件;所述处理单元,还用于当所述事件对应的场景没有对 应的触发事件或执行事件中的至少一者时,禁用所述场景。In at least one embodiment, the acquiring unit is further configured to obtain that the smart home device associated with the scene is cancelled from being associated with the scene; the device further includes: a determining unit, configured to obtain, when the acquiring unit acquires When the smart home device associated with the scene is cancelled from being associated with the scenario, determining whether the event supported by the smart home device can be supported by other smart home devices; and processing unit for when the event cannot be When the other smart home device supports, the event is disabled in the scenario, and it is determined whether the event corresponding to the event corresponds to other available events, and the available event is a trigger event and an execution event; the processing unit is further used. The scenario is disabled when the scenario corresponding to the event does not have at least one of a corresponding trigger event or execution event.
在至少一个实施例中,所述装置还包括:更新单元,用于更新所述配置文件。In at least one embodiment, the apparatus further includes an update unit for updating the configuration file.
本公开实施例的智能家居设备的场景配置装置,根据配置文件,将已入网的智能家居设备与事件对应的场景建立关联,其中,所述事件包括智能家居设备支持的触发事件以及执行事件,所述场景与已入网的智能家居设备区域属性相关联,可以减少用户手动操作次数,无需学习成本即可实现智能家居设备的成功关联配置。The scene configuration device of the smart home device according to the embodiment of the present disclosure associates the smart home device that has entered the network with the scenario corresponding to the event according to the configuration file, where the event includes a trigger event supported by the smart home device and an execution event. The scenario is associated with the smart home device area attribute that has been connected to the network, which can reduce the number of manual operations of the user, and can realize the successful association configuration of the smart home device without learning cost.
为实现上述目的,本公开第三方面实施例提出了一种智能家居网关,该智能家居网关包括相耦合的接收机和处理器,其中:所述接收机,被配置成获取包含场景定义的配置文件;以及,所述处理器,被配置成根据所述包含场景定义的配置文件为与所述智能家居网关所在网络相关联的至少一个场景特征添加场景定义,其中,所述场景定义包括特征字段。To achieve the above object, a third aspect of the present disclosure proposes a smart home gateway including a coupled receiver and a processor, wherein: the receiver is configured to acquire a configuration including a scene definition And the processor, configured to add a scenario definition to at least one scene feature associated with the network in which the smart home gateway is located, according to the configuration file including the scenario definition, wherein the scenario definition includes a feature field .
根据本公开实施例的智能家居网关,根据能够根据场景定义包括的特征字段为与智能家居网关所在网络相关联的至少一个场景特征添加场景定义,从而可以将同一场景定义应用于诸如不同房间内的类似场景,减少用户配置次数,提高使用体验。The smart home gateway according to an embodiment of the present disclosure adds a scene definition to at least one scene feature associated with a network where the smart home gateway is located according to a feature field that can be included according to the scenario definition, so that the same scene definition can be applied to, for example, different rooms. Similar scenarios reduce user configuration and improve the user experience.
在至少一个实施例中,所述接收机,还被配置成获取所述网络中智能家居设备的属性信息,其中该属性信息包含与所述智能家居设备关联的特征字段;以及,所述处理器,还被配置成:判断与所述智能家居设备关联的特征字段是否与所述场景定义中包括的特征字段匹配;以及,在判断匹配时,针对所述智能家居设备应用所述场景定义。In at least one embodiment, the receiver is further configured to acquire attribute information of the smart home device in the network, wherein the attribute information includes a feature field associated with the smart home device; and the processor And configured to: determine whether a feature field associated with the smart home device matches a feature field included in the scenario definition; and, when determining a match, apply the scenario definition to the smart home device.
在至少一个实施例中,所述接收机,被配置成从控制方获取所述包含场景定义的配置文件。In at least one embodiment, the receiver is configured to obtain the configuration file containing the scene definition from a controlling party.
在至少一个实施例中,所述场景特征包括与场景相关联的以下至少之一者:位置、时间、季节、气候、控制方。In at least one embodiment, the scene feature includes at least one of the following associated with the scene: location, time, season, climate, controller.
在至少一个实施例中,所述位置包括场景位置、任意位置以及相同位置。In at least one embodiment, the location includes a scene location, an arbitrary location, and the same location.
为实现上述目的,本公开第四方面实施例提出了一种智能家居***,所述***包括第二方面实施例所述的智能家居设备的场景配置装置,还包括智能家居设备及智能家居网关,其中,在独立配置模式下,所述智能网关,用于根据智能家居设备与场景建立的关联,在接收到触发事件对应的智能家居设备发送的通知消息后,向对应的支持执行事件的智能家居设备发送执行指令;In order to achieve the above objective, the fourth aspect of the present disclosure provides a smart home system, where the system includes the scenario configuration device of the smart home device according to the second aspect, and further includes a smart home device and a smart home gateway. In the independent configuration mode, the smart gateway is configured to: according to the association established between the smart home device and the scenario, after receiving the notification message sent by the smart home device corresponding to the trigger event, to the corresponding smart home supporting the execution event The device sends an execution instruction;
其中,在关联配置模式下,所述智能家居网关,用于获取包含场景定义的配置文件,根据所述包含场景定义的配置文件为与智能家居网关所在网络相关联的至少一个场景特征添加场景定义。The smart home gateway is configured to acquire a configuration file that includes a scenario definition, and add a scenario definition to at least one scene feature associated with the network where the smart home gateway is located according to the configuration file defined by the included scenario. .
本公开实施例的智能家居***,通过采用上述方面实施例的场景配置装置和智能家居网 关,可以减少用户手动操作次数,无需学习成本即可实现智能家居设备的成功关联配置。The smart home system of the embodiment of the present disclosure can reduce the number of manual operations of the user by adopting the scenario configuration device and the smart home gateway of the embodiments of the foregoing embodiments, and can realize the successful association configuration of the smart home device without learning cost.
为实现上述目的,本公开第五方面实施例提出了一种机器可读存储介质,所述机器可读存储介质上存储有指令,所述指令用于使得机器执行根据上述第一方面实施例所述的智能家居的配置方法。In order to achieve the above object, a fifth aspect of the present disclosure provides a machine readable storage medium having stored thereon instructions for causing a machine to execute according to the first aspect embodiment described above. The configuration method of the smart home.
本公开附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本公开的实践了解到。The aspects and advantages of the present invention will be set forth in part in the description which follows.
附图说明DRAWINGS
附图是用来提供对本公开实施例的进一步理解,并且构成说明书的一部分,与下面的具体实施方式一起用于解释本公开实施例,但并不构成对本公开实施例的限制。在附图中:The drawings are used to provide a further understanding of the embodiments of the present disclosure, and are to be construed as a part of the description. In the drawing:
图1是现有技术中设备与场景的关联操作示意图;1 is a schematic diagram of an operation operation of a device and a scene in the prior art;
图2是本公开实施例提供的一种独立配置模式下智能家居设备的场景配置方法的流程图;2 is a flowchart of a scenario configuration method of a smart home device in an independent configuration mode according to an embodiment of the present disclosure;
图3是本公开实施例提供的智能家居设备与场景的关联示意图;3 is a schematic diagram of association between a smart home device and a scene according to an embodiment of the present disclosure;
图4是本公开实施例提供的智能家居设备与事件以及场景的关联示意图;4 is a schematic diagram of association between a smart home device and an event and a scene according to an embodiment of the present disclosure;
图5是本公开实施例提供的关联列表的示意图;FIG. 5 is a schematic diagram of an association list according to an embodiment of the present disclosure;
图6是本公开实施例提供的一种关联配置模式下智能家居设备的场景配置方法的流程图;6 is a flowchart of a scenario configuration method of a smart home device in an associated configuration mode according to an embodiment of the present disclosure;
图7是本公开实施例提供的一种智能家居设备的场景配置方法的流程图;FIG. 7 is a flowchart of a scenario configuration method of a smart home device according to an embodiment of the present disclosure;
图8是本公开实施例提供的一种智能家居设备的场景配置装置的框图;FIG. 8 is a block diagram of a scenario configuration apparatus of a smart home device according to an embodiment of the present disclosure;
图9是本公开实施例提供的另一种智能家居设备的场景配置装置的框图;FIG. 9 is a block diagram of another scenario configuration apparatus of a smart home device according to an embodiment of the present disclosure;
图10是本公开实施例提供的又一种智能家居设备的场景配置装置的框图;FIG. 10 is a block diagram of still another scene configuration apparatus of a smart home device according to an embodiment of the present disclosure;
图11是本公开实施例提供的再另一种智能家居设备的场景配置装置的框图;11 is a block diagram of another scenario configuration apparatus of a smart home device according to an embodiment of the present disclosure;
图12是本公开实施例提供的再又一种智能家居设备的场景配置装置的框图;FIG. 12 is a block diagram of still another scene configuration apparatus of a smart home device according to an embodiment of the present disclosure;
图13是本公开实施例提供的还又一种智能家居设备的场景配置装置的框图;FIG. 13 is a block diagram of still another scenario configuration apparatus of a smart home device according to an embodiment of the present disclosure;
图14是本公开实施例提供的一种智能家居网关的框图;FIG. 14 is a block diagram of a smart home gateway according to an embodiment of the present disclosure;
图15是本公开实施例提供的一种智能家居***的框图。FIG. 15 is a block diagram of a smart home system according to an embodiment of the present disclosure.
具体实施方式detailed description
下面详细描述本公开的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的 实施例是示例性的,旨在用于解释本公开,而不能理解为对本公开的限制。The embodiments of the present disclosure are described in detail below, and the examples of the embodiments are illustrated in the drawings, wherein the same or similar reference numerals are used to refer to the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are intended to be illustrative, and are not to be construed as limiting.
下面参考附图描述本公开实施例的智能家居设备的场景配置方法、装置、智能家居网关和***。A scenario configuration method, apparatus, smart home gateway and system of a smart home device according to an embodiment of the present disclosure are described below with reference to the accompanying drawings.
本公开实施例提供一种智能家居设备的场景配置方法,执行主体可以为智能家居***中的终端或者智能网关,该方法包括:检测选择指令;根据选择指令确定配置模式,其中,配置模式包括独立配置模式和关联配置模式,独立配置模式下可以对每个区域分别进行配置,关联配置模式下,同一场景定义可以应用于诸如不同房间内的类似场景。An embodiment of the present disclosure provides a scenario for configuring a smart home device. The execution entity may be a terminal or a smart gateway in a smart home system. The method includes: detecting a selection instruction; determining a configuration mode according to the selection instruction, where the configuration mode includes independence. In the configuration mode and the associated configuration mode, each area can be configured separately in the independent configuration mode. In the associated configuration mode, the same scene definition can be applied to similar scenarios such as in different rooms.
下面对独立配置模式下智能家居的场景配置进行说明。在独立配置模式下,如图2所示,所述方法包括如下步骤:The following describes the scenario configuration of the smart home in the independent configuration mode. In the independent configuration mode, as shown in FIG. 2, the method includes the following steps:
S201、获取已入网智能家居设备的区域属性;S201. Obtain a regional attribute of the smart home device that has entered the network;
S202、根据配置文件,将智能家居设备与事件对应的场景建立关联,其中,所述事件包括智能家居设备支持的触发事件以及执行事件,所述场景与区域属性相关联。S202. Associate the smart home device with a scenario corresponding to the event according to the configuration file, where the event includes a trigger event supported by the smart home device and an execution event, where the scenario is associated with the region attribute.
其中,所述场景包括至少一个触发事件和至少一个执行事件,换言之,场景必须与至少一个支持触发事件的智能家居设备和至少一个支持执行事件的智能家居设备建立关联,才能激活所述场景,否则,若是某个场景的触发事件没有智能家居设备的支持,所述场景无法被触发,则所述场景被禁用,或者某个场景的执行事件没有智能家居设备的支持,所述场景也无法被执行,则所述场景仍然会被禁用。The scenario includes at least one trigger event and at least one execution event. In other words, the scenario must be associated with at least one smart home device supporting the trigger event and at least one smart home device supporting the execution event to activate the scenario. If the trigger event of a certain scene is not supported by the smart home device, the scene cannot be triggered, the scene is disabled, or the execution event of a certain scene is not supported by the smart home device, and the scene cannot be executed. , the scene will still be disabled.
另外,所述配置文件包括设备与事件关联的配置文件,以及场景与事件关联的配置文件,则步骤202具体通过下列步骤完成:In addition, the configuration file includes a configuration file associated with the device and the configuration file associated with the event, and step 202 is specifically performed by the following steps:
a、根据所述设备与事件关联的配置文件,查找智能家居设备支持的事件。a. Find an event supported by the smart home device according to the configuration file associated with the device and the event.
每个智能家居设备都有对应的事件相关联,通过预先设置设备与事件关联的配置文件,便于查找智能家居设备支持的事件。例如,可以是智能家居设备执行某个操作后达成的效果,如空调-打开空调和关闭空调,也可以是智能家居设备在运行中检测到的外界变化,如燃气泄漏检测装置-燃气泄漏。Each smart home device has a corresponding event associated with it. By pre-setting the configuration file associated with the event, it is easy to find events supported by the smart home device. For example, it may be an effect achieved by a smart home device after performing an operation, such as air conditioning - turning on the air conditioner and turning off the air conditioner, or may be an external change detected by the smart home device during operation, such as a gas leak detecting device - a gas leak.
b、在所述场景与事件关联的配置文件中,查找所述智能家居设备支持的事件对应的场景。The configuration file corresponding to the event supported by the smart home device is searched for in the configuration file associated with the event.
对于所述场景与事件关联的配置文件,就是场景定义,即场景被定义为由单个或多个事件触发的一系列事件。The configuration file associated with the event and the event is the scene definition, that is, the scene is defined as a series of events triggered by single or multiple events.
c、将所述智能家居设备与所述智能家居设备支持的事件对应的场景建立关联。c. Associating the smart home device with a scenario corresponding to an event supported by the smart home device.
当在所述场景与事件关联的配置文件中,查找到所述智能家居设备支持的事件对应的场景之后,将所述智能家居设备与所述场景建立关联。After the scenario corresponding to the event supported by the smart home device is found in the configuration file associated with the event, the smart home device is associated with the scenario.
以终端APP作为人机交互界面举例说明智能家居设备与场景的关联,如图3所示,使用者仅需要在终端APP上设定每个智能家居设备的区域属性,即房间属性,而智能家居设备与场景建立关联所需的其他操作,将由终端自动完成。如图3所示,在步骤①中存在区域属性和已经连入网络的智能家居设备。用户仅需在界面上将智能家居设备拖入对应区域(步骤②),在用户点击“完成”后,智能家居设备与场景自动建立关联并显示在新页面③中。其中,所述区域属性也可以不按照房间的功能性属性进行规划,可以通过使用者预先划分,例如,将两个卧室划分为一个区域,或者将客厅和餐厅划分为一个区域,所述区域属性的划分可以灵活设置。The terminal APP is used as a human-machine interaction interface to illustrate the association between the smart home device and the scene. As shown in FIG. 3, the user only needs to set the regional attribute of each smart home device, that is, the room attribute, and the smart home. Other operations required to associate the device with the scenario will be done automatically by the terminal. As shown in FIG. 3, in step 1, there are area attributes and smart home devices that have been connected to the network. The user only needs to drag the smart home device into the corresponding area on the interface (step 2). After the user clicks “finish”, the smart home device automatically associates with the scene and displays it in the new page 3. The area attribute may also be planned according to the functional attribute of the room, and may be pre-divided by the user, for example, dividing the two bedrooms into one area, or dividing the living room and the restaurant into one area, the area attribute The division can be flexibly set.
本公开实施例将现有技术中的场景直接与设备进行绑定,变更为通过事件将设备与场景进行关联,以主卧区域为例,如图4所示,主卧中包括4个场景,分别是睡眠、晨起、阅读和夜起,对应于14中触发事件和执行事件,主卧中的5台智能家居设备,也分别支持这14种事件中的一种或多种。而这些“场景-事件”与“设备-事件”的关联关系,可在通过设备与事件关联的配置文件,以及场景与事件关联的配置文件进行预定义。需要特别指出,同一事件,可被多台智能家居设备支持,尽管未在图4中体现。相比图1中手动配置主卧4个场景需要14次关联操作,本方案仅需5次拖动智能家居设备到主卧区域的操作。可预期地,在场景数量增加和场景中涉及的智能家居设备数增多的情况下,本公开实施例所能达到的减少用户操作的效果更加明显。The embodiment of the present disclosure directly binds the scenario in the prior art to the device, and changes the device to associate the device with the event by using an event. Taking the main bedroom area as an example, as shown in FIG. 4, the master bedroom includes four scenarios. They are sleep, morning, reading and night, corresponding to 14 trigger events and execution events. The five smart home devices in the master bedroom also support one or more of these 14 events. The relationship between these "scenario-event" and "device-event" can be predefined in the configuration file associated with the event through the device and the configuration file associated with the scene and the event. It is important to note that the same event can be supported by multiple smart home devices, although not shown in Figure 4. Compared with the manual configuration of 4 scenes of the main bedroom in Figure 1, 14 operations are required. This solution only needs to drag the smart home device to the main bedroom area 5 times. It is expected that the effect of reducing user operations that can be achieved by the embodiments of the present disclosure is more obvious in the case where the number of scenes increases and the number of smart home devices involved in the scene increases.
在本公开的另一实施例中,将智能家居设备与事件对应的场景建立关联之后,还可建立对应于区域属性的关联列表,其中,所述关联列表包括场景,与所述场景对应的触发事件和支持所述触发事件的智能家居设备,与所述场景对应的执行事件以及支持所述执行事件的智能家居设备。另外,所述关联列表中,还可以包括触发事件的发生时间和区域,以及执行事件发生的区域,例如,一个场景被定义为:In another embodiment of the present disclosure, after the smart home device is associated with the scenario corresponding to the event, an association list corresponding to the region attribute may be established, where the association list includes a scenario, and the trigger corresponding to the scenario An event and a smart home device supporting the triggering event, an execution event corresponding to the scenario, and a smart home device supporting the execution event. In addition, the association list may further include an occurrence time and an area of the trigger event, and an area where the execution event occurs, for example, a scene is defined as:
如果(触发事件a1在区域A1且在时间段(t_start1,t_end1)被触发和/或触发事件2在区域A2且在时间段(t_start2,t_end2)被触发…);If (trigger event a1 is triggered in area A1 and in time period (t_start1, t_end1) and/or trigger event 2 is in area A2 and is triggered in time period (t_start2, t_end2)...);
则(执行事件b在区域B被执行(B可以为A);执行事件c在区域C被执行(C可以为A或B)…)。Then (execution event b is executed in area B (B can be A); execution event c is executed in area C (C can be A or B)...).
如图5所示,图中所示的各个场景中均有触发事件以及对应的执行事件,且触发事件有对应的时间和区域,执行事件也有对应的区域,上述每个事件均有能够支持该事件的智能家居设备(图中未示)。As shown in FIG. 5, each scene shown in the figure has a trigger event and a corresponding execution event, and the trigger event has a corresponding time and region, and the execution event also has a corresponding region, and each of the above events can support the event. The smart home device of the event (not shown).
例如,当燃气探测器检测到可燃气体泄漏时,即触发事件被触发,则执行对应的执行事件,开窗、响警报和开启抽油烟机,均由对应的智能家居设备支持执行。另外,其中的“回 家”、“离家”、“会客”和“就餐”对应于场景面板的设置,点击对应按键即触发对应的触发事件,则执行对应的执行事件。另外,对于“走廊有人经过”的场景,可通过探测器检测到走廊有人时,则触发事件被触发,执行对应的执行事件“照明灯光并延时30s关闭”。For example, when the gas detector detects a flammable gas leak, that is, the trigger event is triggered, the corresponding execution event is executed, and the window opening, the alarm, and the opening of the range hood are all supported by the corresponding smart home device. In addition, the “back home”, “home away”, “reservation” and “dining” correspond to the setting of the scene panel, and the corresponding trigger event is triggered by clicking the corresponding button, and the corresponding execution event is executed. In addition, for the scene where “the corridor passes by”, when the detector detects the person in the corridor, the trigger event is triggered, and the corresponding execution event “lights and delays 30s off” is executed.
对于建立的关联列表,智能家居***中的智能网关可根据所述关联列表,监控触发事件是否被触发,即当接收到支持触发事件的智能家居设备发送的通知消息后,通知支持执行事件的智能家居设备执行相应的操作。For the established association list, the smart gateway in the smart home system can monitor whether the trigger event is triggered according to the association list, that is, notify the intelligence supporting the execution event after receiving the notification message sent by the smart home device supporting the trigger event. The home equipment performs the corresponding operations.
在本公开的另一实施例中,当使用者对于已经建立关联的智能家居设备与场景,再新增智能家居设备时,将执行下列步骤:In another embodiment of the present disclosure, when the user adds a smart home device to the smart home device and the scene that has been associated, the following steps are performed:
1)获取新增入网智能家居设备的区域属性,以及根据所述配置文件,获取与所述新增入网智能家居设备支持的事件对应的场景。1) Obtain an area attribute of the newly added smart home device, and obtain a scenario corresponding to the event supported by the newly added smart home device according to the configuration file.
当获取到某一区域中有新增智能家居设备时,通过两个配置文件,设备与事件关联的配置文件,以及场景与事件关联的配置文件,找到与所述新增入网智能家居设备支持的事件对应的场景。When a new smart home device is obtained in a certain area, the configuration file associated with the event and the configuration file associated with the event are found through the two configuration files, and the configuration file associated with the event and the event is found to be supported by the newly added smart home device. The scene corresponding to the event.
2)在与所述区域属性相关联的场景中,查找是否存在所述场景;2) finding, in the scenario associated with the region attribute, whether the scenario exists;
3)当存在所述场景时,将所述新增入网智能家居设备与所述场景建立关联。3) When the scenario exists, the newly added smart home device is associated with the scenario.
而当不存在所述场景时,则根据步骤201和202,将述新增入网智能家居设备与其支持的事件对应的场景建立关联。When the scenario does not exist, according to steps 201 and 202, the newly added smart home device is associated with the scenario corresponding to the event it supports.
在本公开的另一实施例中,当某个智能家居设备从某个区域中被移除时,即与场景建立关联的智能家居设备被取消与所述场景的关联时,将执行下列步骤:In another embodiment of the present disclosure, when a smart home device is removed from a certain area, that is, the smart home device associated with the scene is cancelled associated with the scene, the following steps are performed:
1)当获取到与场景建立关联的智能家居设备被取消与所述场景的关联时,判断所述智能家居设备支持的事件是否能够由其他智能家居设备支持。1) When obtaining the association of the smart home device associated with the scene with the scene, determining whether the event supported by the smart home device can be supported by other smart home devices.
当所述智能家居设备被取消与场景的关联时,则所述智能家居设备支持的事件也将被移除,因此需要判断所述智能家居设备支持的事件是否能够由其他智能家居设备支持,以便所述事件可以继续被触发或者执行。When the smart home device is unassociated with the scene, the events supported by the smart home device will also be removed, so it is necessary to determine whether the event supported by the smart home device can be supported by other smart home devices, so that The event can continue to be triggered or executed.
2)当所述事件不能由其他智能家居设备支持时,在所述场景中禁用所述事件,并判断所述事件对应的场景中是否对应其它可用事件,所述可用事件为触发事件和执行事件。2) When the event cannot be supported by other smart home devices, the event is disabled in the scenario, and it is determined whether the event corresponding to the event corresponds to other available events, and the available events are trigger events and execution events. .
当所述事件不能由其他智能家居设备支持时,则表明所述事件不能继续被触发或者执行,在所述场景中禁用所述事件。由于场景必须包括至少一个触发事件和至少一个执行事件,则需要判断所述场景是否还有其他可用事件,即是否还包括触发事件和执行事件。When the event cannot be supported by other smart home devices, it indicates that the event cannot continue to be triggered or executed, and the event is disabled in the scenario. Since the scene must include at least one trigger event and at least one execution event, it is necessary to determine whether the scene has other available events, that is, whether the trigger event and the execution event are also included.
3)当所述事件对应的场景没有对应的触发事件或执行事件中的至少一者时,禁用所述场景。3) Disabling the scene when the scene corresponding to the event does not have at least one of a corresponding trigger event or execution event.
当判断所述场景没有对应的触发事件或执行事件中的至少一者时,所述场景不能被实现,则禁用所述场景。When it is determined that the scene does not have at least one of a corresponding trigger event or an execution event, the scene cannot be implemented, and the scene is disabled.
另外当所述事件能由其他智能家居设备支持时,则所述事件还是会被触发或者执行,所述事件并不受所述智能家居设备被取消与所述场景的关联的影响。Additionally, when the event can be supported by other smart home devices, the event may still be triggered or executed, the event being unaffected by the smart home device being cancelled associated with the scene.
另外,当所述事件对应的场景还有对应的触发事件和执行事件时,虽然所述智能家居设备支持的事件被禁用,但是其他触发事件和执行事件并不受影响,还会继续工作。In addition, when the event corresponding to the event has a corresponding trigger event and an execution event, although the event supported by the smart home device is disabled, other trigger events and execution events are not affected, and the work continues.
当使用者想将某个智能家居设备移动至其他房间时,仅需在终端APP上将该智能家居设备从当前区域拖动至另一区域,等同于将该智能家居设备从当前区域移除,并加入新区域,也就是取消所述智能家居设备与所述当前区域相关联的场景的关联,从而将所述智能家居设备作为新增入网智能家居设备加入另一区域,实现方式可分别通过上述实施例执行,此处不再赘述。而对于使用者来说,就是将某个智能家居设备的区域属性进行改变,无需进行其它复杂的编辑操作,即可实现无缝切换。When the user wants to move a smart home device to another room, simply dragging the smart home device from the current area to another area on the terminal APP is equivalent to removing the smart home device from the current area. And adding a new area, that is, canceling the association of the smart home device with the scene associated with the current area, thereby adding the smart home device as another newly added smart home device to another area, and the implementation manner may be respectively adopted by the foregoing The embodiment is implemented and will not be described here. For the user, the regional attribute of a smart home device is changed, and seamless switching can be realized without performing other complicated editing operations.
在本公开的另一实施例中,对于预先设置的两个配置文件,设备与事件关联的配置文件,以及场景与事件关联的配置文件,可定期通过网络更新所述配置文件。In another embodiment of the present disclosure, for two configuration files set in advance, a configuration file associated with the device, and a configuration file associated with the event and the event, the configuration file may be periodically updated through the network.
下面对在关联配置模式下对智能家居的场景配置进行说明。图6是本公开示例实施例提供的智能家居设备的场景配置方法流程示意图。如图6所示,本公开实施例提供的智能家居设备的场景配置方法,可以由智能家居网关实施,该方法可以包括:The following describes the scenario configuration of the smart home in the associated configuration mode. FIG. 6 is a schematic flowchart of a scenario configuration method of a smart home device according to an exemplary embodiment of the present disclosure. As shown in FIG. 6, the scenario configuration method of the smart home device provided by the embodiment of the present disclosure may be implemented by a smart home gateway, and the method may include:
S101,获取包含场景定义的配置文件。S101. Acquire a configuration file that includes a scenario definition.
举例来说,在实施例中,智能家居网关可以作为智能家居***中的中控设备对智能家居***中各个智能家居设备、网络环境以及管理策略等进行控制。在实施例中,可以通过诸如手机的移动终端作为控制方,通过网络与智能家居网关通信并通过网络向家居智能网关传输有关智能家居***的配置文件。其中,控制方可以通过控制界面、平台或App向使用者提供接口操作或界面。For example, in an embodiment, the smart home gateway can be used as a central control device in the smart home system to control various smart home devices, network environments, and management policies in the smart home system. In an embodiment, a mobile terminal such as a mobile phone can be used as a controlling party to communicate with the smart home gateway through the network and transmit a configuration file about the smart home system to the home smart gateway through the network. The controller can provide an interface operation or interface to the user through a control interface, a platform, or an App.
在实施例中,场景定义可以被预先设置于诸如控制方的控制界面、平台或App的配置文件中。然后,在例如当使用者通过控制方完成智能家居设备添加以及针对智能家居设备进行诸如区域或位置等的场景特征设定之后,控制方可以将包含场景定义的配置文件下发智能家居网关,以由后者获取。In an embodiment, the scene definition may be preset in a configuration file such as a control interface of the controller, a platform, or an App. Then, after the user completes the smart home device addition by the control party and performs the scene feature setting such as the area or the location for the smart home device, the controller can send the configuration file including the scene definition to the smart home gateway to Obtained by the latter.
S102,根据所述包含场景定义的配置文件为与智能家居网关所在网络相关联的至少一个场景特征添加场景定义,其中,所述场景定义包括特征字段。S102. Add a scenario definition to the at least one scene feature associated with the network where the smart home gateway is located according to the configuration file that includes the scenario definition, where the scenario definition includes a feature field.
举例来说,在实施例中,智能家居网关所在的网络可以根据网络部署的位置(例如,家居结构、家居环境、地理位置等)等具有场景特征。在实施例中,场景特征可以包括与场景 相关联的以下至少之一者:位置、时间、季节、气候、控制方。For example, in an embodiment, the network in which the smart home gateway is located may have scene characteristics according to the location of the network deployment (eg, home structure, home environment, geographic location, etc.). In an embodiment, the scene feature may include at least one of the following associated with the scene: location, time, season, climate, controller.
在实施例中,与场景相关联的位置可以是家居结构、家居环境、地理位置等,例如,可以是在家居结构中的场景区域、位置;与场景相关联的时间可以是诸如使用场景的时间段,例如,一天中的时间;与场景相关联的季节可以是诸如允许场景的季节,例如,允许在冬天使用供暖睡眠场景;与场景相关联的气候可以是诸如适合使用场景的气候,例如,在干旱气候条件下使用能够为家居环境增加湿度的场景;与场景相关联的控制方可以是诸如与智能家居网关通信的控制方。In an embodiment, the location associated with the scene may be a home structure, a home environment, a geographic location, etc., for example, may be a scene area, a location in a home structure; a time associated with the scene may be a time such as a usage scene a segment, for example, a time of day; the season associated with the scene may be a season such as allowing a scene, for example, allowing a heated sleep scene to be used in winter; the climate associated with the scene may be a climate such as suitable for use, for example, A scenario that can increase humidity for a home environment is used in arid climate conditions; the controller associated with the scene can be a controller such as communicating with a smart home gateway.
需要说明的是上述场景特征可以单独使用,也可以结合使用。例如,可以针对诸如主卧的场景区域,在一天中的早上7:00-20:00设置场景使窗帘拉开以采光。It should be noted that the above scene features may be used alone or in combination. For example, for a scene area such as a master bedroom, the scene can be set at 7:00-20:00 in the morning to open the curtains for daylighting.
通过上述技术方案,根据能够根据场景定义包括的特征字段为与智能家居网关所在网络相关联的至少一个场景特征添加场景定义,从而可以将同一场景定义应用于诸如不同房间内的类似场景,减少用户配置次数,提高使用体验。According to the foregoing technical solution, the scene definition is added according to the feature field that can be included according to the scenario definition, and the scenario definition is added to at least one scene feature associated with the network where the smart home gateway is located, so that the same scenario definition can be applied to similar scenarios such as in different rooms, and the user is reduced. Configure the number of times to improve the experience.
图7是本公开另一个示例实施例的智能家居设备的场景配置方法流程示意图。如图7所示,在实施例中,本公开提供的智能家居场景配置方法可以包括:FIG. 7 is a schematic flowchart of a scenario configuration method of a smart home device according to another exemplary embodiment of the present disclosure. As shown in FIG. 7 , in an embodiment, the smart home scene configuration method provided by the present disclosure may include:
S701,获取所述网络中智能家居设备的属性信息,其中该属性信息包含与所述智能家居设备关联的特征字段。S701. Acquire attribute information of the smart home device in the network, where the attribute information includes a feature field associated with the smart home device.
在实施例中,在将智能家居设备部署到家居网络中时可以对智能家居设备的属性进行配置,例如,可以配置与智能家居设备所使用的位置相关联的区域,以及与智能家居设备相关联的事件。举例来说,对于音乐设备,可以将其使用位置设置为主卧,将与其相关联的事件设置为打开音乐、关闭音乐、提高音量、减小音量等。在该实施例中,上述特征字段可以为主卧。In an embodiment, the properties of the smart home device may be configured when the smart home device is deployed into the home network, for example, an area associated with the location used by the smart home device may be configured, and associated with the smart home device event. For example, for a music device, its usage location can be set to master, and the events associated with it can be set to turn on music, turn off music, increase volume, decrease volume, and the like. In this embodiment, the feature field described above may be a master bedroom.
S702,判断与所述智能家居设备关联的特征字段是否与所述场景定义中包括的特征字段匹配。S702. Determine whether a feature field associated with the smart home device matches a feature field included in the scenario definition.
在实施例中,在获取了与智能家居设备相关联的特征字段之后,可以将该特征字段与场景定义中包含的特征字段进行匹配。例如,如果不匹配则可以认为针对该智能家居设备场景定义不适用。In an embodiment, after the feature field associated with the smart home device is obtained, the feature field may be matched with the feature field included in the scene definition. For example, if it does not match, it can be considered that the definition for the smart home device scene does not apply.
S703,在判断匹配时,针对所述智能家居设备应用所述场景定义。S703. Apply the scene definition to the smart home device when determining a match.
举例来说,如果对于诸如主卧的特征字段,在场景定义中同样有针对主卧场景的定义,则可以将该场景对主卧区域进行设置,例如,对于智能家居***中所有具有该特征字段的设备进行场景设置。For example, if there is also a definition for the master bedroom scene in the scene definition for the feature field such as the master bedroom, the scene can be set to the master bedroom area, for example, for all the smartfield systems having the feature field. The device is set up for the scene.
在实施例中,上述位置可以包括场景位置(或区域)、任意位置(或区域)以及相同位 置(或区域)。举例来说,在场景定义的控制逻辑中,可以当判断与第一事件和第一区域相关的条件满足时,在第二区域执行第二事件,以及在其他区域执行其他事件。例如,上述区域可以为诸如“主卧”的场景区域,也可以为诸如“控制方”或“App”的场景区域;再如,上述区域也可以是不特指的区域,例如,如果区域为“ANY(任何)”则可以认为该区域为家居环境中的任意区域;如果区域为“SAME(相同)”则可以认为该区域为与第一区域相同的区域。In an embodiment, the above location may include a scene location (or region), an arbitrary location (or region), and the same location (or region). For example, in the control logic defined by the scene, when it is determined that the conditions related to the first event and the first region are satisfied, the second event is executed in the second region, and other events are performed in other regions. For example, the above area may be a scene area such as a “master bedroom”, or may be a scene area such as “control party” or “App”; for example, the above area may also be an unspecified area, for example, if the area is "ANY" can be considered as an arbitrary area in the home environment; if the area is "SAME (same)", the area can be considered as the same area as the first area.
在一个示例中场景可以按照如下进行定义:In one example the scenario can be defined as follows:
一个场景,被定义为:A scenario is defined as:
if(事件a1 at区域A1 between时间段(t_start1,t_end1)and/orIf (event a1 at area A1 between time periods (t_start1, t_end1) and/or
事件a2 at区域A2 between时间段(t_start2,t_end2)….)Event a2 at area A2 between time periods (t_start2, t_end2)....)
then{Then{
事件b at区域B;(B可以=A)Event b at area B; (B can = A)
事件c at区域C;(C可以=A or B)Event c at area C; (C can = A or B)
……......
}}
在另一个示例中睡眠场景可以按照如下进行定义:In another example, a sleep scene can be defined as follows:
if触发睡眠at ANY between(0:00:00,23:59:59)If trigger sleep at ANY between (0:00:00, 23:59:59)
then{Then{
打开空调at SAME;Turn on the air conditioner at SAME;
拉合窗帘at SAME;Pulling curtains at SAME;
关闭音乐at SAME;Turn off music at SAME;
睡眠灯光at SAME;Sleep light at SAME;
}}
根据上述定义,任一房间内的“睡眠”事件被(诸如通过场景设置面板通过诸如控制方的其他设备)触发时,执行睡眠场景,同一房间内的其他智能设备将被触发,空调被打开,窗帘拉合,音乐将关闭,照明灯光则调整至睡眠效果。其中,睡眠效果,可依喜好定义为全部关闭或者保留某些灯光等。According to the above definition, when a "sleep" event in any room is triggered (such as by a scene setting panel through other devices such as a controller), a sleep scene is executed, other smart devices in the same room are triggered, and the air conditioner is turned on. When the curtains are pulled, the music will be turned off and the lighting will be adjusted to sleep. Among them, the sleep effect can be defined as all closed or some lights are reserved according to preferences.
在一个示例中可燃气体泄露处理场景可以按照如下进行定义:In one example, the flammable gas leak processing scene can be defined as follows:
if可燃气体泄漏at ANY between(0:00:00,23:59:59)If flammable gas leaks at ANY between (0:00:00, 23:59:59)
then{Then{
打开窗户at ANY;Open the window at ANY;
关闭电源at ANY;Turn off the power at ANY;
声音警报at ANY;Audible alarm at ANY;
手机报警消息at App;Mobile phone alarm message at App;
}}
根据上述定义,当任一房间发现“可燃气体泄露”事件时,执行可燃气体泄露处理场景,每个房间都打开窗户,关闭电源,声音警报以及向诸如App的控制方手机发送报警消息。According to the above definition, when a "combustible gas leak" event is found in any room, a flammable gas leak processing scene is executed, each room opens a window, turns off the power, sounds an alarm, and sends an alarm message to a control party mobile phone such as an App.
通过上述技术方案,同一场景定义可以覆盖不同房间内的类似场景,从而减少用户配置次数。此外,同一场景定义还能够支持同区域和跨房间的类似场景。Through the above technical solution, the same scenario definition can cover similar scenarios in different rooms, thereby reducing the number of user configurations. In addition, the same scene definition can also support similar scenes in the same area and across rooms.
相应的,本公开实施例还提供一种智能家居设备的场景配置装置,所述配置装置可以为智能家居***中的终端或智能网关,如图8所示,所述配置装置60包括:Correspondingly, the embodiment of the present disclosure further provides a scene configuration device of the smart home device, and the configuration device may be a terminal or a smart gateway in the smart home system. As shown in FIG. 8 , the configuration device 60 includes:
获取单元61,用于获取已入网智能家居设备的区域属性;以及The obtaining unit 61 is configured to acquire an area attribute of the networked smart home device;
关联单元62,用于根据配置文件,将智能家居设备与事件对应的场景建立关联,其中,所述事件包括智能家居设备支持的触发事件以及执行事件,所述场景与区域属性相关联。The association unit 62 is configured to associate the smart home device with a scenario corresponding to the event according to the configuration file, where the event includes a trigger event supported by the smart home device and an execution event, where the scenario is associated with the region attribute.
本公开实施例通过上述技术方案,减少了用户手动操作次数,无需学习成本即可实现智能家居设备的成功关联配置。Through the above technical solution, the embodiment of the present disclosure reduces the number of manual operations of the user, and realizes successful association configuration of the smart home device without learning cost.
进一步地,所述场景包括至少一个触发事件和至少一个执行事件。Further, the scenario includes at least one trigger event and at least one execution event.
进一步地,所述配置文件包括设备与事件关联的配置文件,以及场景与事件关联的配置文件,如图9所示,所述关联单元62包括:Further, the configuration file includes a configuration file associated with the device and the configuration file associated with the event. As shown in FIG. 9, the association unit 62 includes:
查找模块621,用于根据所述设备与事件关联的配置文件,查找智能家居设备支持的事件;The searching module 621 is configured to search for an event supported by the smart home device according to the configuration file that is associated with the event.
所述查找模块621,还用于在所述场景与事件关联的配置文件中,查找所述智能家居设备支持的事件对应的场景;The searching module 621 is further configured to: search for a scenario corresponding to an event supported by the smart home device in a configuration file that is associated with the event;
关联模块622,用于将所述智能家居设备与所述智能家居设备支持的事件对应的场景建立关联。The association module 622 is configured to associate the smart home device with a scenario corresponding to an event supported by the smart home device.
进一步地,如图10所示,所述装置60还包括:建立列表单元81,用于建立对应于区域属性的关联列表,其中,所述关联列表包括场景,与所述场景对应的触发事件和支持所述触发事件的智能家居设备,与所述场景对应的执行事件以及支持所述执行事件的智能家居设备。Further, as shown in FIG. 10, the apparatus 60 further includes: an establishment list unit 81, configured to establish an association list corresponding to the area attribute, where the association list includes a scene, a trigger event corresponding to the scene, and A smart home device supporting the triggering event, an execution event corresponding to the scenario, and a smart home device supporting the execution event.
进一步地,如图11所示,所述获取单元61,还用于获取新增入网智能家居设备的区域属性,以及根据所述配置文件,获取与所述新增入网智能家居设备支持的事件对应的场景;Further, as shown in FIG. 11, the obtaining unit 61 is further configured to acquire an area attribute of the newly added smart home device, and obtain, according to the configuration file, an event corresponding to the newly supported smart home device support event. Scene
所述装置60还包括:查找单元91,用于在与所述区域属性相关联的场景中,查找是否 存在所述场景;The device 60 further includes: a searching unit 91, configured to search for a scene in the scenario associated with the area attribute;
所述关联单元62,还用于当存在所述场景时,将所述新增入网智能家居设备与所述场景建立关联。The association unit 62 is further configured to associate the newly added smart home device with the scenario when the scenario exists.
进一步地,如图12所示,所述获取单元61,还用于获取与场景建立关联的智能家居设备被取消与所述场景的关联;Further, as shown in FIG. 12, the acquiring unit 61 is further configured to acquire that the smart home device associated with the scene is cancelled from being associated with the scenario;
所述装置60还包括:判断单元101,用于当所述获取单元获取到与场景建立关联的智能家居设备被取消与所述场景的关联时,判断所述智能家居设备支持的事件是否能够由其他智能家居设备支持;以及The device 60 further includes: a determining unit 101, configured to determine, when the acquiring unit acquires the association between the smart home device and the scene that is associated with the scene, whether the event supported by the smart home device can be Other smart home device support; and
处理单元102,用于当所述事件不能由其他智能家居设备支持时,在所述场景中禁用所述事件,并判断所述事件对应的场景中是否对应其它可用事件,所述可用事件为触发事件和执行事件;The processing unit 102 is configured to disable the event in the scenario when the event cannot be supported by another smart home device, and determine whether the event corresponding to the event corresponds to other available events, and the available event is triggered. Events and execution events;
所述处理单元102,还用于当所述事件对应的场景没有对应的触发事件或执行事件中的至少一者时,禁用所述场景。The processing unit 102 is further configured to disable the scenario when the scenario corresponding to the event does not have at least one of a corresponding trigger event or an execution event.
进一步地,如图13所示,所述装置60还包括:更新单元111,用于更新所述配置文件。Further, as shown in FIG. 13, the apparatus 60 further includes: an updating unit 111, configured to update the configuration file.
下面对本公开另一方面实施例的智能家居网关进行说明。The smart home gateway of another embodiment of the present disclosure will be described below.
本公开实施例的智能家居网关可以用于实施本公开上述实施例提供的方法。图14是本公开示例实施例提供的智能家居网关组成框图。如图14所示,本公开实施例提供的智能家居网关300可以包括相耦合的接收机301和处理器302,其中:接收机301,可以被配置成获取包含场景定义的配置文件;以及处理器302,可以被配置成根据所述配置文件为与所述智能家居网关所在网络相关联的至少一个场景特征添加场景定义,其中,所述场景定义包括特征字段。在实施例中,场景特征包括与场景相关联的以下至少之一者:位置、时间、季节、气候、控制方。在实施例中,接收机301可以被配置成从控制方获取所述配置文件。The smart home gateway of the embodiments of the present disclosure may be used to implement the method provided by the above embodiments of the present disclosure. FIG. 14 is a block diagram of a smart home gateway provided by an exemplary embodiment of the present disclosure. As shown in FIG. 14, the smart home gateway 300 provided by the embodiment of the present disclosure may include a coupled receiver 301 and a processor 302, wherein: the receiver 301 may be configured to acquire a configuration file including a scene definition; and a processor. 302. The method may be configured to add a scenario definition according to the configuration file to at least one scene feature associated with the network where the smart home gateway is located, where the scenario definition includes a feature field. In an embodiment, the scene feature includes at least one of the following associated with the scene: location, time, season, climate, controller. In an embodiment, the receiver 301 can be configured to obtain the configuration file from a controlling party.
在实施例中,接收机301还可以被配置成获取所述网络中智能家居设备的属性信息,其中该属性信息包含与所述智能家居设备关联的特征字段;以及处理器302还可以被配置成:In an embodiment, the receiver 301 may be further configured to acquire attribute information of the smart home device in the network, wherein the attribute information includes a feature field associated with the smart home device; and the processor 302 may be further configured to :
判断与所述智能家居设备关联的特征字段是否与所述场景定义中包括的特征字段匹配;以及Determining whether a feature field associated with the smart home device matches a feature field included in the scenario definition;
在判断匹配时,针对所述智能家居设备应用所述场景定义。The scenario definition is applied to the smart home device when a match is determined.
在实施例中,智能家居设备可以包括但不限于智能空调、智能窗帘、智能音乐播放器、智能灯等。In an embodiment, the smart home device may include, but is not limited to, a smart air conditioner, a smart curtain, a smart music player, a smart light, and the like.
通过上述智能家居网关的技术方案,同一场景定义可以覆盖不同房间内的类似场景,从而减少用户配置次数。此外,同一场景定义还能够支持同区域和跨房间的类似场景。Through the technical solution of the smart home gateway described above, the same scenario definition can cover similar scenarios in different rooms, thereby reducing the number of user configurations. In addition, the same scene definition can also support similar scenes in the same area and across rooms.
相对应的,本公开实施例还提供一种智能家居***120,如图15所示,所述***包括上述实施例提供的智能家居设备的场景配置装置60,还包括智能家居设备122及智能家居网关300。其中,在独立配置模式下,所述智能家居网关300,用于根据智能家居设备与场景建立的关联,在接收到触发事件对应的智能家居设备发送的通知消息后,向对应的支持执行事件的智能家居设备发送执行指令。其中,在关联配置模式下,智能家居网关300,用于获取包含场景定义的配置文件,根据包含场景定义的配置文件为与智能家居网关所在网络相关联的至少一个场景特征添加场景定义。Correspondingly, the embodiment of the present disclosure further provides a smart home system 120. As shown in FIG. 15 , the system includes the scenario configuration device 60 of the smart home device provided by the foregoing embodiment, and further includes a smart home device 122 and a smart home. Gateway 300. In the independent configuration mode, the smart home gateway 300 is configured to perform an event according to the association between the smart home device and the scenario, after receiving the notification message sent by the smart home device corresponding to the trigger event, to the corresponding support execution event. The smart home device sends an execution instruction. The smart home gateway 300 is configured to acquire a configuration file that includes a scenario definition, and add a scenario definition to at least one scene feature associated with the network where the smart home gateway is located according to the configuration file that includes the scenario definition.
本公开实施例的智能家居***,通过采用上述方面实施例的场景配置装置和智能家居网关,可以减少用户手动操作次数,无需学习成本即可实现智能家居设备的成功关联配置。The smart home system of the embodiment of the present disclosure can reduce the number of manual operations of the user by using the scenario configuration device and the smart home gateway in the embodiments of the foregoing embodiments, and can realize the successful association configuration of the smart home device without learning cost.
本公开的一些实施例还提出了一种机器可读存储介质,所述机器可读存储介质上存储有指令,所述指令用于使得机器执行根据上述第一方面实施例所述的智能家居设备的场景配置方法。Some embodiments of the present disclosure also provide a machine readable storage medium having stored thereon instructions for causing a machine to execute the smart home device according to the first aspect embodiment described above Scene configuration method.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply such entities or operations. There is any such actual relationship or order between them. Furthermore, the term "comprises" or "comprises" or "comprises" or any other variations thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that comprises a plurality of elements includes not only those elements but also Other elements, or elements that are inherent to such a process, method, item, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行***、装置或设备(如基于计算机的***、包括处理器的***或其他可以从指令执行***、装置或设备取指令并执行指令的***)使用,或结合这些指令执行***、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行***、装置或设备或结合这些指令执行***、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer readable medium, Used in conjunction with, or in conjunction with, an instruction execution system, apparatus, or device (eg, a computer-based system, a system including a processor, or other system that can fetch instructions and execute instructions from an instruction execution system, apparatus, or device) Or use with equipment. For the purposes of this specification, a "computer-readable medium" can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM). In addition, the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
应当理解,本公开的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行***执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that portions of the present disclosure can be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本公开的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of the present specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" and the like means a specific feature described in connection with the embodiment or example. A structure, material, or feature is included in at least one embodiment or example of the present disclosure. In the present specification, the schematic representation of the above terms is not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. In addition, various embodiments or examples described in the specification, as well as features of various embodiments or examples, may be combined and combined.
尽管上面已经示出和描述了本公开的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本公开的限制,本领域的普通技术人员在本公开的范围内可以对上述实施例进行变化、修改、替换和变型。While the embodiments of the present disclosure have been shown and described above, it is understood that the foregoing embodiments are illustrative and are not to be construed as limiting the scope of the disclosure The embodiments are subject to variations, modifications, substitutions and variations.

Claims (25)

  1. 一种智能家居设备的场景配置方法,其特征在于,包括:A scenario configuration method for a smart home device, comprising:
    检测选择指令;Detecting a selection instruction;
    根据所述选择指令确定配置模式,其中,所述配置模式包括独立配置模式和关联配置模式;Determining a configuration mode according to the selection instruction, wherein the configuration mode includes an independent configuration mode and an associated configuration mode;
    其中,在所述独立配置模式下,获取已入网智能家居设备的区域属性,根据配置文件,将智能家居设备与事件对应的场景建立关联,其中,所述事件包括智能家居设备支持的触发事件以及执行事件,所述场景与所述区域属性相关联;In the independent configuration mode, the area attribute of the networked smart home device is obtained, and the smart home device is associated with the event corresponding to the event according to the configuration file, where the event includes a trigger event supported by the smart home device and Executing an event, the scene being associated with the area attribute;
    其中,在所述关联配置模式下,获取包含场景定义的配置文件,根据所述包含场景定义的配置文件为与智能家居网关所在网络相关联的至少一个场景特征添加场景定义。And in the association configuration mode, acquiring a configuration file that includes a scenario definition, and adding a scenario definition to the at least one scenario feature associated with the network where the smart home gateway is located according to the configuration file defined by the inclusion scenario.
  2. 根据权利要求1所述的智能家居设备的场景配置方法,其特征在于,所述场景包括至少一个触发事件和至少一个执行事件。The scene configuration method of the smart home device according to claim 1, wherein the scene comprises at least one trigger event and at least one execution event.
  3. 根据权利要求1或2所述的智能家居设备的场景配置方法,其特征在于,在所述独立配置模式下,所述配置文件包括设备与事件关联的配置文件,以及场景与事件关联的配置文件,所述根据配置文件,将智能家居设备与事件对应的场景建立关联包括:The scenario configuration method of the smart home device according to claim 1 or 2, wherein in the independent configuration mode, the configuration file includes a configuration file associated with the event of the device, and a configuration file associated with the event and the event. The associating the smart home device with the scenario corresponding to the event according to the configuration file includes:
    根据所述设备与事件关联的配置文件,查找智能家居设备支持的事件;Finding events supported by the smart home device according to the configuration file associated with the event;
    在所述场景与事件关联的配置文件中,查找所述智能家居设备支持的事件对应的场景;Searching, in the configuration file associated with the event, the scenario corresponding to the event supported by the smart home device;
    将所述智能家居设备与所述智能家居设备支持的事件对应的场景建立关联。Associating the smart home device with a scenario corresponding to an event supported by the smart home device.
  4. 根据权利要求1-3任一项所述的智能家居设备的场景配置方法,其特征在于,在所述独立配置模式下,所述方法还包括:The method for configuring a scenario of a smart home device according to any one of claims 1 to 3, wherein in the independent configuration mode, the method further includes:
    建立对应于所述区域属性的关联列表,其中,所述关联列表包括场景,与所述场景对应的触发事件和支持所述触发事件的智能家居设备,与所述场景对应的执行事件以及支持所述执行事件的智能家居设备。Establishing an association list corresponding to the area attribute, where the association list includes a scene, a trigger event corresponding to the scene, and a smart home device supporting the trigger event, an execution event corresponding to the scene, and a support office A smart home device that performs an event.
  5. 根据权利要求1-4任一项所述的智能家居设备的场景配置方法,其特征在于,在所述独立配置模式下,所述方法还包括:The method for configuring a scenario of a smart home device according to any one of claims 1 to 4, wherein, in the independent configuration mode, the method further comprises:
    获取新增入网智能家居设备的区域属性,以及根据所述配置文件,获取与所述新增入网智能家居设备支持的事件对应的场景;Acquiring the regional attribute of the newly added smart home device, and obtaining a scenario corresponding to the event supported by the newly added smart home device according to the configuration file;
    在与所述区域属性相关联的场景中,查找是否存在所述场景;In the scenario associated with the region attribute, finding whether the scenario exists;
    当存在所述场景时,将所述新增入网智能家居设备与所述场景建立关联。When the scenario exists, the newly added smart home device is associated with the scenario.
  6. 根据权利要求1-5任一项所述的智能家居设备的场景配置方法,其特征在于,所述 方法还包括:The method for configuring a scene of a smart home device according to any one of claims 1 to 5, wherein the method further comprises:
    当获取到与场景建立关联的智能家居设备被取消与所述场景的关联时,判断所述智能家居设备支持的事件是否能够由其他智能家居设备支持;Determining whether an event supported by the smart home device can be supported by other smart home devices when the smart home device associated with the scene is acquired from being associated with the scenario;
    当所述事件不能由其他智能家居设备支持时,在所述场景中禁用所述事件,并判断所述事件对应的场景中是否对应其它可用事件,所述可用事件为触发事件和执行事件;When the event is not supported by other smart home devices, the event is disabled in the scenario, and it is determined whether the event corresponding to the event corresponds to other available events, and the available event is a trigger event and an execution event;
    当所述事件对应的场景没有对应的触发事件或执行事件中的至少一者时,禁用所述场景。The scene is disabled when the scene corresponding to the event does not have at least one of a corresponding trigger event or execution event.
  7. 根据权利要求1-6任一项所述的智能家居设备的场景配置方法,其特征在于,在所述独立配置模式下,所述方法还包括:更新所述配置文件。The method for configuring a scenario of a smart home device according to any one of claims 1 to 6, wherein in the independent configuration mode, the method further comprises: updating the configuration file.
  8. 如权利要求1所述的智能家居设备的场景配置方法,其特征在于,所述场景定义包括特征字段,在所述关联配置模式下,所述方法还包括:The method for configuring a scene of a smart home device according to claim 1, wherein the scene definition includes a feature field, and in the associated configuration mode, the method further includes:
    获取智能家居网关所在网络中智能家居设备的属性信息,其中,所述属性信息包含与所述智能家居设备关联的特征字段;Obtaining attribute information of the smart home device in the network where the smart home gateway is located, where the attribute information includes a feature field associated with the smart home device;
    判断与所述智能家居设备关联的特征字段是否与所述场景定义中包括的特征字段匹配;以及Determining whether a feature field associated with the smart home device matches a feature field included in the scenario definition;
    在判断匹配时,针对所述智能家居设备应用所述场景定义。The scenario definition is applied to the smart home device when a match is determined.
  9. 根据权利要求8所述的智能家居设备的场景配置方法,其特征在于,在所述关联配置模式下,该方法包括:从控制方获取所述配置文件。The scene configuration method of the smart home device according to claim 8, wherein in the associated configuration mode, the method comprises: acquiring the configuration file from a controlling party.
  10. 根据权利要求8或9中所述的智能家居设备的场景配置方法,其特征在于,所述场景特征包括与场景相关联的以下至少之一者:位置、时间、季节、气候、控制方。The scene configuration method of the smart home device according to claim 8 or 9, wherein the scene feature comprises at least one of the following: a location, a time, a season, a climate, and a controller.
  11. 根据权利要求10所述的智能家居设备的场景配置方法,其特征在于,所述位置包括场景位置、任意位置以及相同位置。The scene configuration method of the smart home device according to claim 10, wherein the location comprises a scene location, an arbitrary location, and a same location.
  12. 一种智能家居设备的场景配置装置,其特征在于,包括:A scene configuration device for a smart home device, comprising:
    获取单元,用于获取已入网智能家居设备的区域属性;以及An obtaining unit, configured to acquire a regional attribute of the networked smart home device;
    关联单元,用于根据配置文件,将智能家居设备与事件对应的场景建立关联,其中,所述事件包括智能家居设备支持的触发事件以及执行事件,所述场景与区域属性相关联。The association unit is configured to associate the smart home device with a scenario corresponding to the event according to the configuration file, where the event includes a trigger event supported by the smart home device and an execution event, where the scenario is associated with the region attribute.
  13. 根据权利要求12所述的智能家居设备的场景配置装置,其特征在于,所述场景包括至少一个触发事件和至少一个执行事件。The scene configuration apparatus of the smart home device according to claim 12, wherein the scene comprises at least one trigger event and at least one execution event.
  14. 根据权利要求12或13所述的智能家居设备的场景配置装置,其特征在于,所述配置文件包括设备与事件关联的配置文件,以及场景与事件关联的配置文件,所述关联单元包括:The scenario configuration device of the smart home device according to claim 12 or 13, wherein the configuration file includes a configuration file associated with the event, and a configuration file associated with the event, the association unit includes:
    查找模块,用于根据所述设备与事件关联的配置文件,查找智能家居设备支持的事件;a searching module, configured to find an event supported by the smart home device according to the configuration file associated with the device and the event;
    所述查找模块,还用于在所述场景与事件关联的配置文件中,查找所述智能家居设备支持的事件对应的场景;The searching module is further configured to: search for a scenario corresponding to an event supported by the smart home device in a configuration file that is associated with the event;
    关联模块,用于将所述智能家居设备与所述智能家居设备支持的事件对应的场景建立关联。And an association module, configured to associate the smart home device with a scenario corresponding to an event supported by the smart home device.
  15. 根据权利要求12-14任一项所述的智能家居设备的场景配置装置,其特征在于,所述装置还包括:The device for configuring a scene of a smart home device according to any one of claims 12 to 14, wherein the device further comprises:
    建立列表单元,用于建立对应于区域属性的关联列表,其中,所述关联列表包括场景,与所述场景对应的触发事件和支持所述触发事件的智能家居设备,与所述场景对应的执行事件以及支持所述执行事件的智能家居设备。Establishing a list unit, configured to establish an association list corresponding to the area attribute, where the association list includes a scene, a trigger event corresponding to the scene, and a smart home device supporting the trigger event, and execution corresponding to the scene Events and smart home devices that support the execution events.
  16. 根据权利要求12-15任一项所述的智能家居设备的场景配置装置,其特征在于,A scene configuration apparatus for a smart home device according to any one of claims 12-15, wherein
    所述获取单元,还用于获取新增入网智能家居设备的区域属性,以及根据所述配置文件,获取与所述新增入网智能家居设备支持的事件对应的场景;The obtaining unit is further configured to obtain an area attribute of the newly added smart home device, and obtain a scenario corresponding to the event supported by the newly added smart home device according to the configuration file;
    所述装置还包括:查找单元,用于在与所述区域属性相关联的场景中,查找是否存在所述场景;The device further includes: a searching unit, configured to search for a scene in the scenario associated with the area attribute;
    所述关联单元,还用于当存在所述场景时,将所述新增入网智能家居设备与所述场景建立关联。The association unit is further configured to associate the newly added smart home device with the scenario when the scenario exists.
  17. 根据权利要求12-16任一项所述的智能家居设备的场景配置装置,其特征在于,A scene configuration apparatus for a smart home device according to any one of claims 12 to 16, characterized in that
    所述获取单元,还用于获取与场景建立关联的智能家居设备被取消与所述场景的关联;The acquiring unit is further configured to acquire that the smart home device associated with the scene is cancelled from being associated with the scenario;
    所述装置还包括:判断单元,用于当所述获取单元获取到与场景建立关联的智能家居设备被取消与所述场景的关联时,判断所述智能家居设备支持的事件是否能够由其他智能家居设备支持;以及The device further includes: a determining unit, configured to determine, when the acquiring unit acquires the association between the smart home device and the scene that is associated with the scene, whether the event supported by the smart home device can be other intelligent Home equipment support;
    处理单元,用于当所述事件不能由其他智能家居设备支持时,在所述场景中禁用所述事件,并判断所述事件对应的场景中是否对应其它可用事件,所述可用事件为触发事件和执行事件;a processing unit, configured to disable the event in the scenario when the event cannot be supported by another smart home device, and determine whether the event corresponding to the event corresponds to another available event, where the available event is a trigger event And executing events;
    所述处理单元,还用于当所述事件对应的场景没有对应的触发事件或执行事件中的至少一者时,禁用所述场景。The processing unit is further configured to disable the scenario when the scenario corresponding to the event does not have at least one of a corresponding trigger event or an execution event.
  18. 根据权利要求12-17任一项所述的智能家居设备的场景配置装置,其特征在于,所述装置还包括:更新单元,用于更新所述配置文件。The scenario configuration device of the smart home device according to any one of claims 12-17, wherein the device further comprises: an update unit, configured to update the configuration file.
  19. 一种智能家居网关,其特征在于,该智能家居网关包括相耦合的接收机和处理器,其中:A smart home gateway, characterized in that the smart home gateway comprises a coupled receiver and a processor, wherein:
    所述接收机,被配置成获取包含场景定义的配置文件;以及The receiver configured to acquire a configuration file including a scene definition;
    所述处理器,被配置成根据所述包含场景定义的配置文件为与所述智能家居网关所在网络相关联的至少一个场景特征添加场景定义,其中,所述场景定义包括特征字段。The processor is configured to add a scenario definition to the at least one scene feature associated with the network where the smart home gateway is located according to the configuration file that includes the scenario definition, where the scenario definition includes a feature field.
  20. 根据权利要求19所述的智能家居网关,其特征在于,A smart home gateway according to claim 19, wherein
    所述接收机,还被配置成获取所述网络中智能家居设备的属性信息,其中该属性信息包含与所述智能家居设备关联的特征字段;以及The receiver is further configured to acquire attribute information of the smart home device in the network, where the attribute information includes a feature field associated with the smart home device;
    所述处理器,还被配置成:The processor is further configured to:
    判断与所述智能家居设备关联的特征字段是否与所述场景定义中包括的特征字段匹配;以及Determining whether a feature field associated with the smart home device matches a feature field included in the scenario definition;
    在判断匹配时,针对所述智能家居设备应用所述场景定义。The scenario definition is applied to the smart home device when a match is determined.
  21. 根据权利要求19或20所述的智能家居网关,其特征在于,所述接收机,被配置成从控制方获取所述包含场景定义的配置文件。The smart home gateway according to claim 19 or 20, wherein the receiver is configured to acquire the configuration file including the scene definition from a controller.
  22. 根据权利要求19-21中任一项所述的智能家居网关,其特征在于,所述场景特征包括与场景相关联的以下至少之一者:位置、时间、季节、气候、控制方。A smart home gateway according to any one of claims 19 to 21, wherein the scene feature comprises at least one of the following associated with the scene: location, time, season, climate, controller.
  23. 根据权利要求22所述的智能家居网关,其特征在于,所述位置包括场景位置、任意位置以及相同位置。The smart home gateway of claim 22 wherein said location comprises a scene location, an arbitrary location, and an identical location.
  24. 一种智能家居***,其特征在于,所述***包括根据权利要求12-18中任意一项权利要求所述的智能家居设备的场景配置装置,还包括智能家居设备及智能家居网关,其中,在独立配置模式下,所述智能家居网关,用于根据智能家居设备与场景建立的关联,在接收到触发事件对应的智能家居设备发送的通知消息后,向对应的支持执行事件的智能家居设备发送执行指令;A smart home system, characterized in that the system comprises a scene configuration device of a smart home device according to any one of claims 12-18, further comprising a smart home device and a smart home gateway, wherein In the independent configuration mode, the smart home gateway is configured to send a notification message sent by the smart home device corresponding to the trigger event to the corresponding smart home device supporting the execution event according to the association established between the smart home device and the scenario. Execution of instructions;
    其中,在关联配置模式下,所述智能家居网关,用于获取包含场景定义的配置文件,根据所述包含场景定义的配置文件为与智能家居网关所在网络相关联的至少一个场景特征添加场景定义。The smart home gateway is configured to acquire a configuration file that includes a scenario definition, and add a scenario definition to at least one scene feature associated with the network where the smart home gateway is located according to the configuration file defined by the included scenario. .
  25. 一种机器可读存储介质,所述机器可读存储介质上存储有指令,所述指令用于使得机器执行根据权利要求1-11中任一项权利要求所述的智能家居设备的场景配置方法。A machine readable storage medium having stored thereon instructions for causing a machine to execute a scene configuration method of a smart home device according to any one of claims 1-11 .
PCT/CN2018/089696 2017-06-08 2018-06-02 Scene configuration method and apparatus for home device, and smart home system and gateway WO2018223910A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201710427355.2A CN109039835B (en) 2017-06-08 2017-06-08 Intelligent household scene configuration method, gateway, system and machine readable storage medium
CN201710427355.2 2017-06-08
CN201710443027.1A CN109150672B (en) 2017-06-13 2017-06-13 Intelligent household configuration method, device and system and machine-readable storage medium
CN201710443027.1 2017-06-13

Publications (1)

Publication Number Publication Date
WO2018223910A1 true WO2018223910A1 (en) 2018-12-13

Family

ID=64566930

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/089696 WO2018223910A1 (en) 2017-06-08 2018-06-02 Scene configuration method and apparatus for home device, and smart home system and gateway

Country Status (1)

Country Link
WO (1) WO2018223910A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111970180A (en) * 2020-08-11 2020-11-20 深圳市欧瑞博科技股份有限公司 Networking configuration method and device for intelligent household equipment, electronic equipment and storage medium
CN113988232A (en) * 2021-10-25 2022-01-28 珠海格力电器股份有限公司 Method and device for associating scene mode and equipment based on NFC (near field communication) tag

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160043905A1 (en) * 2014-08-05 2016-02-11 Fibar Group sp. z o.o. Home network manager for home automation
CN106100951A (en) * 2016-08-22 2016-11-09 美的智慧家居科技有限公司 Scene mode control method, equipment and the system of intelligent home device
CN106227055A (en) * 2016-08-31 2016-12-14 海信集团有限公司 A kind of control the method for intelligent home device, server and gateway
CN106657155A (en) * 2017-02-08 2017-05-10 南京物联传感技术有限公司 Method for managing and synchronously configuring IOT Internet of Things accounts

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160043905A1 (en) * 2014-08-05 2016-02-11 Fibar Group sp. z o.o. Home network manager for home automation
CN106100951A (en) * 2016-08-22 2016-11-09 美的智慧家居科技有限公司 Scene mode control method, equipment and the system of intelligent home device
CN106227055A (en) * 2016-08-31 2016-12-14 海信集团有限公司 A kind of control the method for intelligent home device, server and gateway
CN106657155A (en) * 2017-02-08 2017-05-10 南京物联传感技术有限公司 Method for managing and synchronously configuring IOT Internet of Things accounts

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111970180A (en) * 2020-08-11 2020-11-20 深圳市欧瑞博科技股份有限公司 Networking configuration method and device for intelligent household equipment, electronic equipment and storage medium
CN111970180B (en) * 2020-08-11 2022-10-28 深圳市欧瑞博科技股份有限公司 Networking configuration method and device for intelligent household equipment, electronic equipment and storage medium
CN113988232A (en) * 2021-10-25 2022-01-28 珠海格力电器股份有限公司 Method and device for associating scene mode and equipment based on NFC (near field communication) tag
CN113988232B (en) * 2021-10-25 2023-10-10 珠海格力电器股份有限公司 NFC tag-based scene mode and equipment association method and device

Similar Documents

Publication Publication Date Title
CN109150672B (en) Intelligent household configuration method, device and system and machine-readable storage medium
US10339773B2 (en) Home security system with automatic context-sensitive transition to different modes
CN106605447B (en) Method, system, and medium for predictive lighting from a screen based on a user profile
US11602033B1 (en) Electronic devices for controlling lights
JP2018063537A (en) Home network, electronic apparatus, processing device and display method
CN110794693B (en) Device configuration method, device, electronic device and storage medium
US11736760B2 (en) Video integration with home assistant
US11039520B1 (en) Electronic devices for controlling lights
CN107637028B (en) Electronic device, gateway, and control method for the same
WO2018223910A1 (en) Scene configuration method and apparatus for home device, and smart home system and gateway
JP2018524777A (en) Method for setting up a device in a lighting system
CN109218085B (en) Equipment automation and scene configuration management method and device and mobile terminal
US11927948B2 (en) Presenting a current status of a device in dependence on a privacy mode
JP6902171B2 (en) Methods and devices for controlling lighting systems
EP4055997B1 (en) Configuring a bridge with groups after addition of said bridge to a lighting system
US11412599B2 (en) Transmitting sensor signal in dependence on device orientation
CN112997453B (en) Selecting a destination for a sensor signal based on an activated light setting
CN113988232B (en) NFC tag-based scene mode and equipment association method and device
CN116668220A (en) Processing method and device of automatic template, electronic equipment and storage medium
WO2019198187A1 (en) Home network, electronic device, processing device, and display method
CN117014243A (en) Device control method, device, electronic device and storage medium
CN115766803A (en) Internet of things system and automatic control method and host thereof
CN114859576A (en) Control method, device and system based on atomized glass and storage medium
JP2015102321A (en) Environment management system in building
CN114237062A (en) Device control method and apparatus, electronic device, and medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18813799

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: 1205A 21.04.2020

122 Ep: pct application non-entry in european phase

Ref document number: 18813799

Country of ref document: EP

Kind code of ref document: A1