WO2020238385A1 - 一种控制设备服务的方法、云服务器和智能家居系统 - Google Patents

一种控制设备服务的方法、云服务器和智能家居系统 Download PDF

Info

Publication number
WO2020238385A1
WO2020238385A1 PCT/CN2020/081978 CN2020081978W WO2020238385A1 WO 2020238385 A1 WO2020238385 A1 WO 2020238385A1 CN 2020081978 W CN2020081978 W CN 2020081978W WO 2020238385 A1 WO2020238385 A1 WO 2020238385A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
scene
cloud server
information
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2020/081978
Other languages
English (en)
French (fr)
Inventor
王玮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to US17/096,650 priority Critical patent/US20210144024A1/en
Publication of WO2020238385A1 publication Critical patent/WO2020238385A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

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]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • H04L12/2809Exchanging configuration information on appliance services in a home automation network indicating that an appliance service is present in a home automation network
    • 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]
    • H04L12/2803Home automation networks
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Program-control systems
    • G05B19/02Program-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • 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]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • 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]
    • H04L12/2803Home automation networks
    • H04L12/2823Reporting information sensed by appliance or service execution status of appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/303Terminal profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/306User profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house

Definitions

  • This application relates to the field of smart home, and in particular to a method for controlling device services, a cloud server, and a smart home system.
  • the smart home equipment of each room is pre-recorded in a system management application, and the user can view the smart home equipment of each room through the system management application. Specifically, the user can send a command to the smart home device through the application of each device, so that the smart home device executes the corresponding service according to the command.
  • the present application provides a method for controlling device services, a cloud server, and a smart home system, which can simply and effectively control multiple devices, thereby improving efficiency.
  • the first aspect of the present application provides a method for controlling device services, including: a cloud server obtains historical device service information of multiple smart home devices from the same scene, and generates a scene service file based on the historical device service information.
  • the device service information in the device service information includes service commands and service attribute information.
  • the service attribute information includes service execution time.
  • the device service information in the scene service file is sorted according to the service execution time; the cloud server obtains all The scene information of the scene; when the scene information meets a preset condition, the cloud server sends the service commands in the scene service file to the multiple smart home devices, and the multiple smart home devices according to the The service command execution service in the scene service file.
  • the device service information in the scene service file and the device service information in the historical device service information may be the same.
  • the device service information in the scene service file is obtained after processing the device service information in the historical device service information.
  • the device service information includes service commands and service attribute information.
  • a service command is a control command related to a service, and the service command can be, but is not limited to, opening a service, closing a service, suspending a service, or adjusting service attribute information.
  • Service attribute information includes one or more of service execution time, service attribute value, service attribute content, or service trigger rule.
  • the service attribute value refers to the value used to describe the service attribute.
  • the service attribute content includes but is not limited to words, numbers or symbols used to describe the service attributes.
  • the service trigger rule can be selected by the user from a preset rule library, or obtained by the cloud server using a machine learning method to process the historical service device.
  • the services of multiple smart home devices can be aggregated in the scene service file according to the historical device service information.
  • various smart home devices in a scene can be controlled, so that the smart home device can provide The corresponding service.
  • the service control method of the present application can automatically activate multiple services, thereby realizing intelligent control, and has the advantages of simplicity and convenience.
  • the cloud server generating the scene service file according to the historical device service information includes: the cloud server determines the recording period according to the start recording command and the stop recording command sent by the terminal at different times; The cloud server generates a scene service file according to the historical device service information sent by the multiple smart home devices during the recording period. According to this implementation, the cloud server can automatically generate a scene service file according to the equipment service information of the recording period, without the user manually editing the scene service file, so the scene service file can be recorded simply and effectively.
  • the cloud server generating a scene service file according to historical device service information sent by various smart home devices during the recording period includes: the cloud server determining according to the identity of the first user The device service information of the first target service in the historical device service information sent in the recording period, the first target service refers to the service performed by the first user in the recording period; the cloud server according to the The device service information of the first target service generates a scene service file.
  • the device service information also includes the identity of the first user. According to this implementation, it is possible to generate a scene service file based on the service performed by the first user during the recording period, thereby obtaining the scene service file of the first user. In the same way, the user's scene service file can be obtained according to the identity information of each user, thereby being able to provide personalized services.
  • generating the scene service file by the cloud server according to the historical device service information includes: the cloud server collects statistics on the historical device service information to obtain the number of service executions of each service and Service execution time; the cloud server selects the device service information of the second target service from the historical device service information according to the statistical result, and the second target service refers to the number of executions of the service within the statistical period not less than the expected Set the number of times and the difference between the service execution time and the preset service execution time is not greater than the preset duration; the cloud server generates a scene service file according to the device service information of the second target service.
  • the scene service file can be automatically generated according to the frequently used and regularly used device functions in the scene, thereby providing another method for generating the scene service file, which improves the flexibility of the implementation of the solution.
  • the cloud server generating the scene service file according to the device service information of the second target service includes: the cloud server according to the identity of the first user, from the first user 2.
  • the device service information of the third target service is determined in the device service information of the target service, where the third target service refers to a function performed by the first user in the second target service; the cloud server The device service information of the third target service generates a scene service file.
  • the device service information also includes the identity of the first user.
  • the scene service file can be generated according to the device function used by the first user.
  • the identity information of each user multiple device functions that the user is accustomed to can be obtained. When the scene information meets the preset conditions, multiple device functions are automatically executed according to user habits, thereby being able to provide personalized services.
  • the cloud server acquiring the scene information of the scene includes: the cloud server acquiring the command sent by the terminal; the method further comprises: when the command sent by the terminal is used for execution When the scene service file is commanded, the cloud server determines that the scene information meets a preset condition.
  • the user can send a command to the cloud server through the terminal to trigger the cloud server to send a service command to the smart home device according to the scene service file, so that the smart home device executes the service according to the service command.
  • the cloud server acquiring the scene information of the scene includes: the cloud server acquiring the scene moment of the scene; the method further includes: when the cloud server detects the scene moment When it is a preset scene moment, the cloud server determines that the scene information meets a preset condition.
  • the cloud server can be periodically triggered to send service commands to the smart home device according to the scene service file, so that the smart home device executes the service according to the service command.
  • the cloud server acquiring the scene information of the scene includes: the cloud server acquiring the service attribute value sent by the smart home device; the method further includes: when the cloud server When detecting that the service attribute value is within a preset attribute value range, the cloud server determines that the scene information meets a preset condition. According to this implementation, when the service attribute value is within the preset attribute value range, the cloud server can be triggered to execute the step of sending a service command to the smart home device according to the scene service file, so that the smart home device executes the service according to the service command.
  • the method further includes: the cloud server serves the scene according to the increase command sent by the terminal
  • the device service information in the file is added; or, the cloud server deletes the device service information in the scene service file according to the delete command sent by the terminal; or, the cloud server deletes the device service information in the scene service file according to the modification command sent by the terminal.
  • the equipment service information in the scene service file is modified.
  • the scene service file can be edited, which can be but not limited to adding, deleting, and modifying device service information.
  • edit the service attribute information included in the device service information For example, edit the service attribute value, service attribute content or service trigger rule.
  • the method further includes: the cloud server sends the scene service file to the terminal, so that The scene service file is displayed on the scene page of the terminal; the cloud server receives the selection command sent by the terminal; the cloud server determines the fourth target service in the scene service file according to the selection command Device service information; the cloud server obtains the associated service information corresponding to the fourth target service, and sends the associated service information to the terminal, so that the associated service information is displayed on the scene interface of the terminal.
  • the user can select the device service information of any service in the scene service file through the terminal, and the cloud server can recommend the associated service information to the user. The user can activate the associated service corresponding to the associated service information through the terminal.
  • the method further includes: the cloud server determines the first scene service file according to the scene name in the scene service file A subscription service, sending the first subscription service to the terminal; or, the cloud server determines the second subscription service according to the device service information in the scene service file, and sends the second subscription service to the terminal.
  • the subscription service can be pushed according to the scene name or device service information in the scene.
  • the cloud server may push related information according to the scene name or device service information in the scene.
  • the method further includes: the cloud server receiving a sharing command sent by the first terminal, the sharing command including the identity of the second user and the Internet Protocol IP of the second terminal Address, the second terminal is a terminal used by the second user; the cloud server determines the authority of the second user according to the identity of the second user; the cloud server determines the authority of the second user according to the second user’s Permission, determine the device service information of the fifth target service in the scene service file; the cloud server sends the device service information of the fifth target service to the second terminal according to the IP address of the second terminal The second terminal.
  • the device services of the scene can be shared according to user permissions, thereby improving the security of the device services of the management scene.
  • the second aspect of the present application provides a cloud server, which has the function of realizing the cloud server in any one of the embodiments in the first aspect.
  • This function can be realized by hardware, or by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above-mentioned functions.
  • the third aspect of the present application provides a smart home system including multiple smart home devices and a cloud server.
  • the cloud server is the cloud server described in the second aspect.
  • a fourth aspect of the present application provides a computer-readable storage medium that stores instructions in the computer-readable storage medium, which when run on a computer, causes the computer to execute the first aspect or the various embodiments of the first aspect The method described.
  • the fifth aspect of the present application provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the method described in the first aspect or the implementation manners of the first aspect.
  • FIG. 1 is a schematic diagram of the smart home system in this application.
  • FIG. 2 is a schematic diagram of the cloud server in this application.
  • Figure 3 is a schematic flow chart of the method for controlling device services in this application.
  • Figure 4A is a schematic diagram of creating a scene service file in this application.
  • Figure 4B is another schematic diagram of creating a scene service file in this application.
  • FIG. 4C is a schematic diagram of the execution scenario service file in this application.
  • Figure 4D is another schematic diagram of the execution scenario service file in this application.
  • Figure 5A is another schematic diagram of creating a scene service file in this application.
  • Figure 5B is another schematic diagram of creating a scene service file in this application.
  • Figure 6 is another schematic diagram of the cloud server in this application.
  • This application relates to a method for controlling device services, and the method can be applied to a smart home system.
  • various smart home devices in the home are connected together through the Internet of Things technology. It can provide audio and video control, lighting control, curtain control, air conditioning control, anti-theft alarm, environmental monitoring, refrigerator control and programmable timing control and other functions.
  • smart home equipment has added information interaction functions, which can realize wired and/or wireless control.
  • smart home equipment refers to home equipment with computing functions and network functions.
  • audio equipment such as speakers
  • smart TVs smart lighting
  • smart phones smart surveillance cameras
  • smart curtains smart switches
  • smart air conditioners smart water heaters
  • smart air conditioners motion sensors, thermostats, etc.
  • the cloud server and the smart home device are connected through a wired and/or wireless connection.
  • the cloud server is deployed with program modules for device services of smart home devices.
  • the program module can control the smart home device to perform the corresponding service.
  • device services are also called services.
  • the service corresponding to the motion sensor may include monitoring the moving state of the object, the rest period, the battery status monitoring of the motion sensor, and the opening time.
  • the services corresponding to the thermostat can include current temperature monitoring and target temperature.
  • a terminal is an electronic device with computing capabilities.
  • the terminal can be a personal computer, a mobile phone, a tablet computer, a smart wearable device (such as a smart watch, smart glasses, etc.) or a personal digital assistant (personal digital assistant, PDA), etc.
  • PDA personal digital assistant
  • the smart home system includes a smart home device and a cloud server.
  • Smart home devices are used to send device service information to the cloud server, receive service commands in the scene service file sent by the cloud server; execute services according to the service commands in the scene service file;
  • the cloud server is used to obtain historical device service information of multiple smart home devices from the same scene.
  • the device service information in the historical device service information includes service commands and service attribute information; generates a scene service file based on the historical device service information; obtains the scene When the scene information meets the preset conditions, the service command in the scene service file is sent to multiple smart home devices.
  • the user can log in to the smart home system by using the smart TV, and the user can send instructions to the smart home system through the smart TV, thereby using the smart TV to manage other smart home devices.
  • the information interaction between the smart TV and the cloud server can realize all or part of the method of controlling device services in this application.
  • the smart home system includes a smart home device, a cloud server, and a terminal.
  • FIG. 1 is a schematic diagram of a smart home system.
  • the smart home system includes a smart door 11, a smart lamp 12, a smart TV 13, a cloud server 14 and a terminal 15.
  • the cloud server 14 is connected to the smart door 11, the smart light 12, the smart TV 13 and the terminal 15 respectively through a wired link or a wireless link.
  • Smart home devices can send device service information to the cloud server respectively; the cloud server 14 obtains historical device service information and historical device service information of multiple smart home devices from the same scene
  • the device service information in the file includes service commands and service attribute information, and the service attribute information includes service execution time; scene service files are generated based on historical device service information, and the device service information in the scene service file is sorted according to the service execution time; Scene information; when the scene information meets the preset conditions, the service command in the scene service file is sent to a variety of smart home devices.
  • Smart home devices (such as smart doors 11, smart lights 12, and smart TVs 13) receive service commands in the scene service file sent by the cloud server; execute services according to the service commands in the scene service file.
  • the smart door 11 receives the unlock command
  • the smart door 11 is opened according to the unlock command.
  • the smart light 12 receives the light-off command
  • the smart light 12 is turned off according to the light-off command.
  • the smart TV 13 pauses playing the video.
  • the terminal 15 is used for information interaction with the cloud server 14.
  • the information may be, but not limited to, instructions, device data, service-related data, or advertisements.
  • the user can log in to the cloud server 14 through the terminal 15, and then the functions of the smart home devices (such as the smart door 11, the smart lamp 12, and the smart TV 13) in the cloud server can be displayed on the terminal 15.
  • the terminal 15 sends an instruction for executing the scene service file to the cloud server 14, so that the cloud server 14 sends the service command in the scene service file to the smart home device according to the instruction, and the smart home device (such as smart door 11, smart light 12) , Smart TV 13) execute the service according to the service command in the scene service file.
  • the terminal 15 receives and displays the push information sent by the cloud server. Instructions are also called commands, computer instructions or computer commands.
  • the cloud server 14 of this application can be implemented by a server.
  • Fig. 2 is a schematic structural diagram of a server in an embodiment of the present application.
  • the server 200 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 222 and memory 232, and one or more storage applications 242 or
  • the storage medium 230 of the data 244 (for example, one or a storage device with a large amount of storage).
  • the memory 232 and the storage medium 230 may be short-term storage or permanent storage.
  • the program stored in the storage medium 230 may include one or more modules (not shown in the figure), and each module may include a series of command operations on the server.
  • the central processing unit 222 may be configured to communicate with the storage medium 230 and execute a series of instruction operations in the storage medium 230 on the server 200.
  • the server 200 may also include one or more power supplies 226, one or more wired or wireless network interfaces 250, one or more input and output interfaces 258, and/or one or more operating systems 241, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
  • operating systems 241 such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
  • the steps performed by the cloud server in the following embodiments may be based on the server structure shown in FIG. 2.
  • an embodiment of the method for controlling device services provided by the present application includes:
  • Step 301 The cloud server obtains historical device service information of multiple smart home devices from the same scene.
  • the device service information in the historical device service information includes service commands and service attribute information.
  • Service attributes are key indicators that describe the service.
  • the service attribute information may include one or more of service execution time, service attribute value, service attribute content, or service trigger rule.
  • the service attribute value refers to the value used to describe the service attribute.
  • the service attribute content includes but is not limited to words, numbers or symbols used to describe the service attributes.
  • the service attributes of the lighting service may include one or more of brightness, color, temperature, and lighting duration.
  • the service attributes of the music service may include one or more of the music name, music playback progress, or playback duration.
  • Service triggering rules refer to the conditions that trigger services.
  • the service triggering rules may be, but not limited to, preset in the smart home system, or set by the user, or obtained by processing historical device service information according to a machine learning method.
  • a service command is a control command related to a service, and the service command can be, but is not limited to, opening a service, closing a service, suspending a service, or adjusting service attribute information.
  • the device service information may also include service events. Service events refer to scheduled events reported by the device due to environmental changes in the above scenarios, such as abnormal alarms.
  • the device service information sent by the smart home device may include a scene identifier, and the cloud server can distinguish the device service information of different scenes according to the scene identifier.
  • Step 302 The cloud server generates a scene service file according to the historical device service information.
  • the cloud server may generate the device service information in the scene service file according to the service command and all or part of the service attribute information.
  • the device service information in the scene service file is sorted according to the time of service execution. It should be noted that the device service information of the scene service file can be displayed on a scene page for the user to view or edit.
  • Step 303 The cloud server obtains scene information of the scene.
  • the scene information can be, but is not limited to, a command sent by a terminal, a scene moment or service attribute information sent by a smart home device.
  • Step 304 When the scene information meets the preset condition, the cloud server sends the service command in the scene service file to multiple smart home devices, so that the multiple smart home devices execute the service according to the service command in the scene service file.
  • the cloud server can send a service command to the corresponding smart home device according to the service execution time, and multiple smart home devices can execute the service according to the service command. From the user's point of view, multiple smart home devices execute services in a pre-set order in the scene service file, so as to meet the user's need to quickly control multiple services. It is understandable that the cloud server may also send a command with an execution time to the smart home device, so that the smart home device executes the service at the above execution time.
  • the services of multiple smart home devices can be aggregated in a scene service file based on historical device service information.
  • various smart home devices in a scene can be controlled, so that the smart home device provides The corresponding service.
  • the service control method of the present application can automatically activate multiple services, which has the advantages of simplicity and convenience.
  • generating the scene service file by the cloud server according to the historical device service information includes: the cloud server determines the recording period according to the start recording command and the stop recording command sent by the terminal at different times; The cloud server generates scene service files based on historical device service information sent by various smart home devices during the recording period.
  • the user can set the recording time period through the terminal, and the cloud server automatically generates the scene service file according to the device service information of the recording time period without the user manually editing the scene service file, so the scene service file can be recorded simply and effectively.
  • Fig. 4A is a schematic diagram of using a terminal to create a scene service file.
  • the interface for creating a scene service file includes an interface name (ie, creating a scene), a save button and a button 405, and the button 405 is used to send a recording start command.
  • the terminal After the user presses the button 405, the terminal sends a recording start command to the cloud server.
  • the terminal Taking the scene service file of the sleep scene as an example, the user turns off the room lights in the room, plays a lullaby through the audio device, and turns on the breathing light.
  • Room lights, audio devices, and breathing lights can send device service information (such as service commands and service attribute information) to the cloud server.
  • service attribute information including service execution time and service attribute content
  • user operations, service commands, and service attribute information can be as shown in Table 1.
  • the cloud server can generate a scene service file according to the service command and service attribute information in Table 1.
  • the device service information in the scene service file may include service execution sequence numbers, service icons, service attribute content, service commands, etc.
  • the service execution sequence number may be determined by the cloud server according to the service execution time.
  • the service icon may be determined by the cloud server according to the service attribute content.
  • the cloud server sends the scene service file to the terminal, and displays the scene service file information on the scene creation interface of the terminal.
  • the terminal can display: the execution sequence number 401 for turning off the room light service, the icon 402 for turning off the room light service, the service attribute content 403 (i.e. room light) and the service command 404 (i.e. shutdown command).
  • the execution order number of the service of playing the lullaby can also display: the execution order number of the service of playing the lullaby, the icon of the service playing the lullaby, the service attribute content (such as the lullaby) and the service command (such as the playing command), and the execution sequence number of the service of turning on the breathing light, Turn on the icon of the breathing light service, service attribute content (such as breathing light) and service commands (such as opening commands).
  • Fig. 4B is another schematic diagram of using a terminal to create a scene service file.
  • the terminal can display the button 409, which is used to send a stop recording command.
  • the terminal sends a stop recording command to the cloud server.
  • the scene service file recorded in this way may include the device service information shown in FIG. 4B.
  • a delete button 406, an up button 407, and a down button 408 can be provided for each device service information.
  • the delete button 406 the corresponding device service information can be deleted.
  • the service execution order corresponding to the device service information can be adjusted forward.
  • the service execution order corresponding to the device service information can be adjusted later.
  • the user can also edit the service attribute information and service trigger rules in the device service information, such as adding, modifying or deleting.
  • the terminal can redisplay the button 405, so that the user can continue to record the scene.
  • the user can start and stop recording as needed, thereby controlling the recording process.
  • the display interface of the scene service file includes the name of the scene service file (ie sleep scene) 410, button 411, equipment service information of room lights, and equipment service of audio equipment Information and equipment service information of the breathing light.
  • the button 411 is used to send a command to execute the scene service file.
  • the equipment service information of the room light includes an icon 402 to turn off the room light service, service attribute content (such as room light) 403, and a shutdown command 404.
  • the device service information of the audio device includes the icon of the service of playing the lullaby, the service attribute content (such as the lullaby) and the playing command.
  • the equipment service information of the breathing light includes the icon to turn on the breathing light service, the service attribute content (such as the breathing light) and the opening command.
  • the terminal When the user presses the button 411, the terminal sends a command to execute the scene service file to the cloud server.
  • the cloud server successively sends service commands to the room lights, audio equipment and breathing lights according to this command to realize the services of turning off the room lights, playing hypnotic music and turning on the breathing lights.
  • the terminal can also display the current status of each service. For example, a play progress bar 412 is displayed around the icon of the play sleep music service. The play progress bar 412 is used to indicate the status of the sleep music. Play progress.
  • the terminal After the user presses the button 411, the terminal can display the button 413 on the interface for executing the scene service. The user presses the button 413, and the terminal sends a pause command to the cloud server.
  • the cloud server and the smart home device suspend the execution of the scene service file according to the pause command. Service.
  • this application can also set up personalized scene service files for users, as follows:
  • the device service information further includes the identity of the first user
  • the cloud server generates a scene service file based on the historical device service information sent by various smart home devices during the recording period, including: the cloud server determines the first target service device in the historical device service information sent during the recording period according to the identity of the first user Service information, the first target service refers to the service performed by the first user during the recording period; the cloud server generates the scene service file according to the device service information of the first target service.
  • the user's identity can be the user's fingerprint, the user's voiceprint, the user's gait, and the user's head image.
  • the cloud server can determine the device service information of the service performed by the first user during the recording period according to the identity of the first user, and generate a scene service file based on the device service information.
  • the smart home device can automatically execute the first service command of the scene service file.
  • the equipment and services required by the user can therefore meet the individual needs of the first user.
  • a corresponding scene service file can be generated according to the identity of each user, so that personalized services can be provided.
  • generating the scene service file by the cloud server according to historical device service information includes: the cloud server performs statistics on the historical device service information to obtain the service execution times and service execution time of each service; the cloud server according to the statistical results , Select the device service information of the second target service from the historical device service information.
  • the second target service means that the number of service executions in the statistical period is not less than the preset number and the difference between the service execution time and the preset service execution time is not greater than A service with a preset duration; the cloud server generates a scene service file according to the device service information of the second target service.
  • the number of service executions is determined according to the number of occurrences of the device service information. Different services need to be counted separately. Take the lighting service as an example. Turning on and turning off lights are two types of services, and you need to count the times of turning on and turning off lights separately.
  • the preset service execution time may be any service execution time in the historical device service information.
  • the preset service execution time may be set by the user based on historical experience.
  • the preset service execution time may be an intermediate value determined by the cloud server according to the service execution time in the historical device service information, which may specifically be but not limited to an arithmetic average value or a weighted average value.
  • the device service information of each service in the statistical period may include one or more records.
  • the service command is the same, and the service execution time of multiple services may be the same or different.
  • one piece of service attribute information can be selected from multiple service attribute information, and the selected service attribute information and the above service command are used as the device service information in the scene service file.
  • the cloud server can automatically generate a scene service file according to the device function that is frequently used and regularly used in the scene, and then the smart home device executes the corresponding service according to the service command of the scene service file. This provides a method for generating another scene service file, which improves the flexibility of solution implementation.
  • the cloud server counts the number of times and when the lights in the living room are turned off. Within 30 days, the number of times to turn off the living room light from 22:50:0 to 23:10:0 is 20 times, and the number of times to turn off the living room light is 10 times after 12:00:00.
  • the preset time is 23:00 0: 0 seconds, the preset time is 10 minutes, and the preset number of times is 15 times. Since the number of times to turn off the living room light from 22:50:0 to 23:10:0 is more than 15 times, so
  • the cloud server may determine that the service corresponding to one of the device service information (for example, turning off the living room light at 23:00, 0:00) belongs to the second target service.
  • the cloud server takes the service attribute content (that is, the living room lamp) and the service command (that is, the shutdown command) as the device service information in the scene service file, and the service execution time of the service is 23:00:00.
  • the statistical period is one week as an example.
  • the user returns home at around 19:00 every day, opens the door lock of the smart door, turns on the aisle light after entering the door, closes the door and locks, walks to the living room to turn on the living room light, and then goes back to turn off the aisle light , Finally walked to the living room and turned on the smart air conditioner and smart TV.
  • the time the user opens the smart door turns on the aisle light, closes the door and locks, turns on the living room light, turns off the aisle light, turns on the smart air conditioner and smart TV every day, and the time difference between the preset service execution time of each service is not more than The preset duration.
  • the cloud server After the cloud server obtains the device service information from the device, it can determine that the device service information belongs to the device service information of the second target service, and then generates a scene service file according to the service execution time. In this way, the cloud server can automatically generate scene service files based on historical device service information and preset policies, and then push them to users.
  • the interface for creating a scene service file includes a prompt message 501 (ie, "Do you need this scene?"), a scene period 502 (ie 19:00-20:00 every day), and a service execution sequence number 503 (such as No. 1, 2, 3, 4, 5), service attribute content 505 (such as door, hallway light, living room light), service command 506 (such as unlock, open, lock, close), button 507 and button 508.
  • the button 507 is used to create and complete the scene service file.
  • the button 508 is a cancel button for canceling the creation of the scene service file.
  • the created scene service file is as shown in FIG. 5B.
  • the display interface of the scene service file includes the scene name (ie "home scene"), scene period 502, service icon 504 (such as the icon of the smart door, the icon of the aisle light, the diagram of the living room light), and the service Property content 505 (such as door, hallway light, living room light) and service command 506 (such as unlock, open, lock, close).
  • the user can also set the scene trigger condition for the scene service file to execute the scene service file.
  • the fingerprint detection device on the smart door detects the preset user fingerprint
  • the fingerprint detection device sends the user fingerprint to the cloud server
  • the cloud server determines that the user fingerprint matches the preset user fingerprint successfully
  • the cloud server serves the file according to the above scenario
  • Send service commands to the smart home devices such as doors, aisle lights, and living room lights
  • the cloud server may also process historical device service information according to the machine learning method to obtain the device service information of the second target service; the cloud server generates the scene service file according to the device service information of the second target service.
  • the second target service please refer to the second target service mentioned above.
  • the machine learning method can be, but is not limited to, a neural network algorithm.
  • the device service information further includes the identity of the first user
  • the cloud server generating the scene service file according to the device service information of the second target service includes: the cloud server determines the device service information of the third target service from the device service information of the second target service according to the identity of the first user, and the third target The service refers to the service executed by the first user in the second target service; the cloud server generates the scene service file according to the device service information of the third target service.
  • the cloud server may generate a scene service file according to the device service used by the first user.
  • the cloud server can obtain multiple device services that the user is accustomed to using according to the identity information of each user, thereby generating a personalized scene service file.
  • multiple smart home devices execute multiple device functions according to the service commands in each scene service file, it can conform to each user's habit of using the service, thereby providing users with personalized services.
  • the user's image data in the scene can also be collected through the camera, and the collected image data can be processed according to the machine learning method to obtain the equipment service information of the third target service, and then according to the equipment service of the third target service Information generation scene service file.
  • the preset condition for triggering the execution of the scene service file can be set according to actual conditions, or the cloud server can process historical device service information through a machine learning method, which is not limited here.
  • acquiring the scene information of the scene by the cloud server includes: acquiring the command sent by the terminal by the cloud server;
  • the above method further includes: when the command sent by the terminal is a command for executing a scene service file, the cloud server determines that the scene information satisfies a preset condition.
  • the user may input a command for executing the scene service file through key operations, voice commands, or gestures.
  • the cloud server can send the service command to the smart home device according to the scene service file, so that the smart home device executes the service according to the service command.
  • users can use the terminal to enable services for multiple smart home devices. The user only needs one operation or a small amount of operation to enable the services of multiple smart home devices, so the services of multiple smart home devices can be quickly and effectively controlled.
  • the scene information of the scene acquired by the cloud server includes: the scene moment when the cloud server acquires the scene;
  • the above method further includes: when the cloud server detects that the scene moment is a preset scene moment, the cloud server determines that the scene information meets the preset condition.
  • the preset scene moment refers to the moment used to trigger the execution of the scene service file.
  • the preset scene time can be set by the user according to the actual situation, and is not specifically limited. For example, at 7 o'clock every morning, the cloud server smart home device sends service commands to multiple smart home devices according to the scene service file, and the multiple smart home devices execute services according to the service commands. In this way, multiple services can be executed regularly without manual operation by the user.
  • the scene information of the scene acquired by the cloud server includes: the cloud server acquires the service attribute value sent by the smart home device;
  • the above method further includes: when the cloud server detects that the service attribute value is within the preset attribute value range, the cloud server determines that the scene information meets the preset condition.
  • the scene information is the service attribute value sent by the smart home device.
  • the smart home device that obtains the scene information may be a smart home device that provides device services in the scene service file, or other smart home devices in the scene.
  • the scene information is the service attribute content sent by the smart home device.
  • the cloud server detects that the service attribute content sent by the smart home device matches the preset service attribute content successfully, the cloud server determines that the scene information meets the preset condition.
  • smart door locks and camera equipment are provided on smart doors.
  • the smart door lock provides the unlocking function, which belongs to the equipment service in a scene service file.
  • the camera device can collect face images, but the collected face images do not belong to the equipment service in the above scene service file.
  • the smart door lock detects that the fingerprint input by the user is a preset fingerprint
  • the cloud server determines that the scene information meets the preset condition.
  • the cloud server determines that the scene information meets the preset condition.
  • acquiring the scene information of the scene by the cloud server includes: acquiring the service event sent by the smart home device by the cloud server;
  • the method further includes: when the cloud server detects that the service event is a preset event, the cloud server determines that the scene information meets the preset condition.
  • the preset event refers to an event used to trigger the execution of a scene service file.
  • the preset event can be set by the user according to the actual situation and is not specifically limited.
  • the preset event is a door opening event.
  • the smart door reports a door opening event, and the cloud server determines that the scene information meets the preset conditions according to the door opening event.
  • the scene information may include multiple service events, and the number of preset events may also be multiple.
  • the cloud server determines that the scene information meets the preset condition when each service event matches the corresponding preset event.
  • the above method can enable the smart home device to execute the service according to the service command of the scene service file without manual operation by the user.
  • the scene service file generated by the cloud server may include equipment service information that does not meet user requirements, or lack equipment service information that meets user requirements. For this reason, this application provides a method for editing scene service files, which can edit scene service files to obtain scene service files that meet user requirements.
  • the above method further includes: the cloud server adds the device service information in the scene service file according to the adding command sent by the terminal; or , The cloud server deletes the device service information in the scene service file according to the delete command sent by the terminal; or the cloud server modifies the device service information in the scene service file according to the modification command sent by the terminal.
  • editing the scene service file can be, but is not limited to, adding, deleting, or modifying device service information.
  • edit the service attribute information included in the device service information For example, edit the service attribute value, service attribute content, or service trigger rule.
  • the user can edit the scene service file to obtain a scene service file that meets the requirements.
  • the above method further includes: the cloud server sends the scene service file to the terminal, so that the scene service file is displayed on the scene page of the terminal;
  • the cloud server receives the selection command sent by the terminal;
  • the cloud server determines the device service information of the fourth target service in the scene service file according to the selection command;
  • the cloud server obtains the associated service information corresponding to the fourth target service, and sends the associated service information to
  • the terminal enables the associated service information to be displayed on the scene interface of the terminal.
  • the terminal may display the device service information of the scene service file on the scene page.
  • the device service information for each device service information, part of the information can be displayed, for example, the service command, service identifier, service execution sequence number, and status information of the service device can be displayed on the scene page.
  • the cloud server can push the associated service information according to the device service information selected by the user.
  • the service corresponding to the associated service information may be, but not limited to, provided by smart home devices or terminals.
  • the location sharing service of social software is set as the associated service information to provide the visitor with the home address.
  • the message board function as the associated service information to send messages to family members.
  • the associated service information can be displayed on the scene page, or displayed in other ways, such as a pop-up window, or displayed in an application of the associated service information so that the user can view it.
  • the above method further includes: the cloud server determines the first subscription service according to the scene name in the scene service file, and sends the first subscription service To the terminal; or, the cloud server determines the second subscription service according to the device service information in the scene service file, and sends the second subscription service to the terminal.
  • the subscription service can be pushed according to the scene name and/or device service information in the scene service file. Specifically, the subscription service can be pushed according to the keywords of the scene name and/or the device service information.
  • the scene name of the scene service file is “baby care”, and a piece of equipment service information included in it is “detection of sleep duration”.
  • the cloud server obtains the keywords of "baby”, “nursing” and “sleep”, and obtains "from the subscription server” Subscription services such as "Common knowledge about baby sleep” and “baby care institutions”, and then push the subscription services to the terminal. Users can purchase the above subscription services to obtain relevant information.
  • the above method further includes: the cloud server receives a sharing command sent by the first terminal, the sharing command includes the identity of the second user and the internet protocol address (IP) address of the second terminal ,
  • the second terminal is a terminal used by the second user;
  • the cloud server determines the authority of the second user according to the identity of the second user;
  • the cloud server determines the device service of the fifth target service in the scene service file according to the authority of the second user Information;
  • the cloud server sends the device service information of the fifth target service to the second terminal according to the IP address of the second terminal.
  • the fifth target service is a service for which the second user has access or control authority in the service corresponding to the scene service file.
  • the service corresponding to the scene service file refers to the service corresponding to multiple device service information in the scene service file.
  • the first terminal may be a terminal used by family members in the scene.
  • the cloud server may determine the device service information of the fifth target service in the scene service file according to the authority of the second user, and send the device service information of the fifth target service to the second terminal. Or, after determining the device service information of the fifth target service, the cloud server generates a new scene service file according to the device service information of the fifth target service, and sends the new scene service file to the second terminal.
  • the cloud server adjusts the read and write permission settings of the device service information other than the device service information of the fifth target service in the scene service file to be unreadable, or unreadable or unwritable.
  • the cloud server sends a service command to the smart home device according to the device service information of the fifth target service, and the smart home device executes the service according to the service command.
  • the second user can only use the fifth target service, but cannot use other services in the service corresponding to the scene service file. In this way, the device services of the scene can be shared according to the user rights, thereby improving the security of managing device services.
  • the second terminal may obtain the device service information of the fifth target service through a small program or a page application.
  • the method for controlling device services in this application has been introduced above, and the cloud server in this application will be introduced below.
  • the cloud server in this application can implement the functions performed by the cloud server in the embodiment shown in FIG. 3 or an optional embodiment.
  • an embodiment of the cloud server in this application includes:
  • the first obtaining module 601 is used to obtain historical device service information of multiple smart home devices from the same scene.
  • the device service information in the historical device service information includes service commands and service attribute information, and the service attribute information includes service execution time;
  • the processing module 602 is configured to generate a scene service file according to historical device service information, and the device service information in the scene service file is sorted according to service execution time;
  • the second obtaining module 603 is used to obtain scene information of the scene
  • the sending module 604 is configured to send service commands in the scene service file to multiple smart home devices when the scene information meets preset conditions, so that the multiple smart home devices execute services according to the service commands in the scene service file.
  • processing module 602 may also be connected to the sending module 604.
  • the processing module 602 includes a determining unit and a first generating unit
  • the determining unit is used to determine the recording period according to the start recording command and the stop recording command sent by the terminal at different times;
  • the first generating unit is configured to generate a scene service file according to historical device service information sent by various smart home devices during the recording period.
  • the device service information further includes the identity of the first user
  • the first generating unit is specifically configured to determine the device service information of the first target service in the historical device service information sent during the recording period according to the identity of the first user.
  • the first target service refers to the device service information executed by the first user during the recording period Service: Generate a scene service file according to the equipment service information of the first target service.
  • the processing module 602 includes a statistics unit, a selection unit and a second generation unit;
  • the statistical unit is used to perform statistics on historical equipment service information to obtain the service execution times and service execution time of each service;
  • the selection unit is used to select the device service information of the second target service from the historical device service information according to the statistical result.
  • the second target service means that the number of service executions within the statistical period is not less than the preset number and the service execution time is consistent with the preset The service execution time difference is not greater than the preset duration of the service;
  • the second generating unit is configured to generate a scene service file according to the device service information of the second target service.
  • the device service information further includes the identity of the first user
  • the second generating unit is specifically configured to determine the device service information of the third target service from the device service information of the second target service according to the identity of the first user.
  • the third target service refers to the third target service in the second target service.
  • a function performed by the user; the scene service file is generated according to the equipment service information of the third target service.
  • the second acquiring module 603 is specifically configured to acquire the command sent by the terminal;
  • the processing module 602 is further configured to determine that the scene information meets a preset condition when the command sent by the terminal in the scene is a command for executing the scene service file.
  • the second acquiring module 603 is specifically configured to acquire the scene moment of the scene
  • the processing module 602 is further configured to, when the processing module detects that the scene moment is a preset scene moment, determine that the scene information meets a preset condition.
  • the second obtaining module 603 is specifically configured to obtain the service attribute value sent by the smart home device
  • the processing module 602 is further configured to determine that the scene information satisfies the preset condition when the processing module detects that the service attribute value is within the preset attribute value range.
  • the processing module 602 is further configured to, after the processing module 602 generates the scene service file according to the historical device service information, add the device service information in the scene service file according to the add command sent by the terminal; or, according to the delete sent by the terminal Command to delete the device service information in the scene service file; or, to modify the device service information in the scene service file according to the modification command sent by the terminal.
  • the sending module 604 is also used to send the scene service file to the terminal, so that the scene service file is displayed on the scene page of the terminal;
  • the second acquiring module 603 is also configured to receive a selection command sent by the terminal;
  • the processing module 602 is further configured to determine the device service information of the fourth target service in the scene service file according to the selection command; obtain the associated service information corresponding to the fourth target service;
  • the sending module 604 is also used to send the associated service information to the terminal, so that the associated service information is displayed on the scene page of the terminal.
  • the processing module 602 is further configured to determine the first subscription service according to the scene name in the scene service file;
  • the sending module 604 is also used to send the first subscription service to the terminal;
  • the processing module 602 is further configured to determine the second subscription service according to the device service information in the scene service file;
  • the sending module 604 is also used to send the second subscription service to the terminal.
  • the second acquiring module 603 is further configured to receive a sharing command sent by the first terminal, the sharing command includes the identity of the second user and the IP address of the second terminal, and the second terminal is a terminal used by the second user;
  • the processing module 602 is further configured to determine the authority of the second user according to the identity information of the second user; determine the device service information of the fifth target service in the scene service file according to the authority of the second user;
  • the sending module 604 is further configured to send the device service information of the fifth target service to the second terminal according to the IP address of the second terminal.
  • This application provides a computer-readable storage medium, including instructions, which when run on a computer, cause the computer to execute a method as in any one of the above embodiments.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions may be transmitted from a website, computer, server, or data center. Transmission to another website, computer, server or data center via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.).
  • wired such as coaxial cable, optical fiber, digital subscriber line (DSL)
  • wireless such as infrared, wireless, microwave, etc.
  • the computer-readable storage medium may be any available medium that can be stored by a computer or a data storage device such as a server or data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Manufacturing & Machinery (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Telephonic Communication Services (AREA)
  • Selective Calling Equipment (AREA)

Abstract

一种控制设备服务的方法、云服务器和智能家居系统,该控制设备服务的方法包括:云服务器获取来自同一场景的多种智能家居设备的历史设备服务信息,历史设备服务信息中的设备服务信息包括服务命令和服务属性信息(301);云服务器根据历史设备服务信息生成场景服务文件(302);云服务器获取场景的场景信息(303);当场景信息满足预设条件时,云服务器向多种智能家居设备发送场景服务文件中的服务命令,使多种智能家居设备根据场景服务文件中的服务命令执行服务(304)。该方法可以将多种智能家居设备的服务聚合在场景服务文件中,通过场景服务文件对一个场景中的各种智能家居设备进行控制,由此能够快速启用多个服务。

Description

一种控制设备服务的方法、云服务器和智能家居系统
本申请要求于2019年05月31日提交中国专利局、申请号为201910470474.5、申请名称为“一种控制设备服务的方法、云服务器和智能家居系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及智能家居领域,尤其涉及一种控制设备服务的方法、云服务器和智能家居系统。
背景技术
随着网络技术和计算机技术的发展,智能设备的种类更加丰富,功能也更加强大。如何控制智能设备为生活带来便利,成为人们关注的问题。
现有技术中,在系统管理应用程序中预先记录每个房间的智能家居设备,用户通过系统管理应用程序可以查看每个房间的智能家居设备。具体的,用户可以通过每个设备的应用程序向智能家居设备发送命令,使得智能家居设备按照命令执行相应的服务。
当用户需要使用多个智能家居设备时,用户需要分别使用每个设备的应用程序对智能家居设备进行控制,由于要切换软件所需步骤较多,因此用户启用多个智能家居设备的服务不方便,并且效率较低。
发明内容
有鉴于此,本申请提供一种控制设备服务的方法、云服务器和智能家居系统,能够简单有效地控制多个设备,从而提高效率。
本申请的第一方面提供一种控制设备服务的方法,包括:云服务器获取来自同一场景的多种智能家居设备的历史设备服务信息,根据所述历史设备服务信息生成场景服务文件,所述历史设备服务信息中的设备服务信息包括服务命令和服务属性信息,所述服务属性信息包括服务执行时刻,在所述场景服务文件中的设备服务信息按照服务执行时刻进行排序;所述云服务器获取所述场景的场景信息;当所述场景信息满足预设条件时,所述云服务器向所述多种智能家居设备发送所述场景服务文件中的服务命令,所述多种智能家居设备根据所述场景服务文件中的服务命令执行服务。其中,在场景服务文件中的设备服务信息与历史设备服务信息中的设备服务信息可以相同。或者,在场景服务文件中的设备服务信息是对历史设备服务信息中的设备服务信息处理后得到的。
设备服务信息包括服务命令和服务属性信息。服务命令是与服务相关的控制命令,服务命令可以是但不限于开启服务,关闭服务,暂停服务或者服务属性信息的调整。服务属性信息包括服务执行时刻,服务属性值,服务属性内容或服务触发规则中的一项或多项。服务属性值是指用于描述服务属性的数值。服务属性内容包括但不限于用于描述服务属性的文字,数字或符号。服务触发规则可以由用户从预设规则库中选取,或者由云服务器使用机器学习方法对历史服务设备进行处理得到。
按照上述方法实施,能够根据历史设备服务信息,将多种智能家居设备的服务聚合在场景服务文件中,通过场景服务文件可以对一个场景中的各种智能家居设备进行控制,使智能家居设备提供相应服务。与现有技术中需要分别在多个应用程序中切换来启用设备服务相比,本申请的服务控制方法能够自动启用多个服务,由此可以实现智能化控制,具有简单方便的优点。
在一种可能的实现方式中,所述云服务器根据所述历史设备服务信息生成场景服务文件包括:所述云服务器根据终端在不同时刻发送的启动录制命令和停止录制命令,确定录制时段;所述云服务器根据所述多种智能家居设备在所述录制时段发送的历史设备服务信息,生成场景服务文件。依此实施,云服务器可以根据录制时段的设备服务信息自动生成场景服务文件,而无需用户手动编辑场景服务文件,因此可以简单有效的录制场景服务文件。
在另一种可能的实现方式中,所述云服务器根据多种智能家居设备在所述录制时段发送的历史设备服务信息生成场景服务文件包括:所述云服务器根据第一用户的身份标识,确定在所述录制时段发送的历史设备服务信息中第一目标服务的设备服务信息,所述第一目标服务是指所述第一用户在所述录制时段执行的服务;所述云服务器根据所述第一目标服务的设备服务信息生成场景服务文件。所述设备服务信息还包括第一用户的身份标识。依此实施,能够根据在录制时段中第一用户执行的服务生成场景服务文件,由此得到第一用户的场景服务文件。同理,根据每个用户的身份信息可以获得用户的场景服务文件,由此能够提供个性化服务。
在另一种可能的实现方式中,所述云服务器根据所述历史设备服务信息生成场景服务文件包括:所述云服务器对所述历史设备服务信息进行统计,得到每个服务的服务执行次数和服务执行时刻;所述云服务器根据统计结果,从所述历史设备服务信息中选取第二目标服务的设备服务信息,所述第二目标服务是指在统计时段内所述服务执行次数不小于预设次数且所述服务执行时刻与预设服务执行时刻的差值不大于预设时长的服务;所述云服务器根据所述第二目标服务的设备服务信息,生成场景服务文件。依此实施,可以根据在场景中频繁使用并且定时使用的设备功能自动生成场景服务文件,由此提供另一种生成场景服务文件的方法,提高了方案实施的灵活性。
在另一种可能的实现方式中,所述云服务器根据所述第二目标服务的设备服务信息,生成场景服务文件包括:所述云服务器根据所述第一用户的身份标识,从所述第二目标服务的设备服务信息中确定第三目标服务的设备服务信息,所述第三目标服务是指在所述第二目标服务中由所述第一用户执行的功能;所述云服务器根据所述第三目标服务的设备服务信息生成场景服务文件。所述设备服务信息还包括第一用户的身份标识。依此实施,可以根据第一用户习惯使用的设备功能生成场景服务文件。同理,根据每个用户的身份信息可以获得用户习惯使用的多个设备功能。当场景信息满足预设条件时,根据用户习惯自动执行多个设备功能,由此能够提供个性化服务。
在另一种可能的实现方式中,所述云服务器获取所述场景的场景信息包括:所述云服务器获取终端发送的命令;所述方法还包括:当所述终端发送的命令是用于执行所述场景 服务文件的命令时,所述云服务器确定所述场景信息满足预设条件。依此实施,用户可以通过终端向云服务器发送命令,以触发云服务器根据场景服务文件向智能家居设备发送服务命令,使得智能家居设备根据服务命令执行服务。
在另一种可能的实现方式中,所述云服务器获取所述场景的场景信息包括:所述云服务器获取所述场景的场景时刻;所述方法还包括:当云服务器检测到所述场景时刻是预设场景时刻时,所述云服务器确定所述场景信息满足预设条件。依此实施,可以定时触发云服务器根据场景服务文件向智能家居设备发送服务命令,使得智能家居设备根据服务命令执行服务。
在另一种可能的实现方式中,所述云服务器获取所述场景的场景信息包括:所述云服务器获取所述智能家居设备发送的服务属性值;所述方法还包括:当所述云服务器检测到所述服务属性值位于预设属性值范围时,所述云服务器确定所述场景信息满足预设条件。依此实施,当服务属性值位于预设属性值范围时,可以触发云服务器执行根据场景服务文件向智能家居设备发送服务命令,使得智能家居设备根据服务命令执行服务的步骤。
在另一种可能的实现方式中,在所述云服务器根据所述历史设备服务信息生成场景服务文件之后,所述方法还包括:所述云服务器根据终端发送的增加命令,对所述场景服务文件中的设备服务信息进行增加;或者,所述云服务器根据终端发送的删除命令,对所述场景服务文件中的设备服务信息进行删除;或者,所述云服务器根据终端发送的修改命令,对所述场景服务文件中的设备服务信息进行修改。依此实施,可以对场景服务文件进行编辑,可以是但不限于增加、删除和修改设备服务信息。或者,对设备服务信息包括的服务属性信息进行编辑。例如,对服务属性值,服务属性内容或服务触发规则进行编辑。
在另一种可能的实现方式中,在所述云服务器根据所述历史设备服务信息生成场景服务文件之后,所述方法还包括:所述云服务器将所述场景服务文件发送给终端,使得在所述终端的场景页面上显示所述场景服务文件;所述云服务器接收所述终端发送的选择命令;所述云服务器根据所述选择命令,在所述场景服务文件中确定第四目标服务的设备服务信息;所述云服务器获取与所述第四目标服务对应的关联服务信息,将所述关联服务信息发送给所述终端,使得在所述终端的场景界面上显示所述关联服务信息。依此实施,用户通过终端可以在场景服务文件中选择任意一个服务的设备服务信息,云服务器可以向用户推荐关联服务信息。用户可以通过终端启用关联服务信息对应的关联服务。
在另一种可能的实现方式中,在所述云服务器根据所述历史设备服务信息生成场景服务文件之后,所述方法还包括:所述云服务器根据所述场景服务文件中的场景名称确定第一订阅服务,将所述第一订阅服务发送给终端;或者,所述云服务器根据所述场景服务文件中的设备服务信息确定第二订阅服务,将所述第二订阅服务发送给终端。依此实施,可以根据场景名称或者场景中的设备服务信息推送订阅服务。或者,云服务器可以根据场景名称或者场景中的设备服务信息推送相关资讯。
在另一种可能的实现方式中,所述方法还包括:所述云服务器接收第一终端发送的共享命令,所述共享命令包括所述第二用户的身份标识和第二终端的互联网协议IP地址,所述第二终端为所述第二用户使用的终端;所述云服务器根据所述第二用户的身份标识确定 所述第二用户的权限;所述云服务器根据所述第二用户的权限,在所述场景服务文件中确定所述第五目标服务的设备服务信息;所述云服务器根据所述第二终端的IP地址,将所述第五目标服务的设备服务信息发送给所述第二终端。依此实施,可以根据用户权限共享场景的设备服务,从而提高了管理场景的设备服务的安全性。
本申请的第二方面提供一种云服务器,具有实现第一方面中任一种实施方式中云服务器的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。
本申请的第三方面提供一种智能家居系统,包括多个智能家居设备以及云服务器。所述云服务器为第二方面所述的云服务器。
本申请的第四方面提供一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行第一方面或第一方面的各实施方式中所述的方法。
本申请的第五方面提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行第一方面或第一方面的各实施方式中所述的方法。
附图说明
图1为本申请中的智能家居系统的一个示意图;
图2为本申请中云服务器的一个示意图;
图3为本申请中控制设备服务的方法的一个流程示意图;
图4A为本申请中创建场景服务文件的一个示意图;
图4B为本申请中创建场景服务文件的另一个示意图;
图4C为本申请中执行场景服务文件的一个示意图;
图4D为本申请中执行场景服务文件的另一个示意图;
图5A为本申请中创建场景服务文件的另一个示意图;
图5B为本申请中创建场景服务文件的另一个示意图;
图6为本申请中云服务器的另一个示意图。
具体实施方式
本申请涉及一种控制设备服务的方法,该方法可以应用于智能家居系统。
在智能家居系统中,通过物联网技术将家中的各种智能家居设备(如音视频设备、照明设备、窗帘、空调、安防系统、环境监测设备、冰箱等)连接到一起,智能家居系统由此可以提供音视频控制、照明控制、窗帘控制、空调控制、防盗报警、环境监测、冰箱控制以及可编程定时控制等多种功能。与普通家居设备相比,智能家居设备增加了信息交互功能,从而能够实现有线和/或无线控制。
在本申请中,智能家居设备是指具有计算功能和网络功能的家居设备。例如,音频设备(如音箱),智能电视,智能照明灯,智能电话,智能监控摄像头,智能窗帘,智能开关,智能空调,智能热水器,智能空调,动感传感器,恒温器等等。
云服务器和智能家居设备通过有线和/或无线连接。云服务器部署有智能家居设备的设备服务的程序模块。通过程序模块可以控制智能家居设备执行对应的服务。在本申请中,设备服务也称为服务。例如,动感传感器对应的服务可以包括监测对象的移动状态,休息时段,动感传感器的电池状态监测,开启时刻。恒温器对应的服务可以包括当前温度监测,目标温度。
终端是具有计算能力的电子设备。终端可以是个人电脑、手机,平板电脑,智能可穿戴设备(如智能手表,智能眼镜等)或个人数字助理(personal digital assistant,PDA)等。
在一个可选实施例中,智能家居系统包括智能家居设备和云服务器。
智能家居设备,用于向云服务器发送设备服务信息,接收云服务器发送的场景服务文件中的服务命令;根据场景服务文件中的服务命令执行服务;
云服务器,用于获取来自同一场景的多种智能家居设备的历史设备服务信息,历史设备服务信息中的设备服务信息包括服务命令和服务属性信息;根据历史设备服务信息生成场景服务文件;获取场景的场景信息;当场景信息满足预设条件时,向多种智能家居设备发送场景服务文件中的服务命令。
需要说明的是,用户使用智能电视可以登录智能家居系统,并且用户通过智能电视可以向智能家居系统发送指令,从而利用智能电视对其他智能家居设备进行管理。智能电视和云服务器进行信息交互,可以实现本申请中的控制设备服务的全部或部分方法。
在另一个可选实施例中,智能家居系统包括智能家居设备、云服务器和终端。
图1为智能家居系统的一个示意图。参阅图1,智能家居系统包括智能门11,智能灯12,智能电视13,云服务器14和终端15。云服务器14通过有线链路或无线链路分别与智能门11,智能灯12,智能电视13和终端15连接。
智能家居设备(如智能门11,智能灯12,智能电视13)可以分别向云服务器发送设备服务信息;云服务器14获取来自同一场景的多种智能家居设备的历史设备服务信息,历史设备服务信息中的设备服务信息包括服务命令和服务属性信息,服务属性信息包括服务执行时刻;根据历史设备服务信息生成场景服务文件,在场景服务文件中的设备服务信息按照服务执行时刻进行排序;获取场景的场景信息;当场景信息满足预设条件时,向多种智能家居设备发送场景服务文件中的服务命令。智能家居设备(如智能门11,智能灯12,智能电视13)接收云服务器发送的场景服务文件中的服务命令;根据场景服务文件中的服务命令执行服务。例如,智能门11接收开锁命令之后,根据开锁命令打开智能门11。智能灯12接收关灯命令之后,根据关灯命令关闭智能灯12。智能电视13接收暂停命令之后,暂停播放视频。
终端15用于与云服务器14进行信息交互,信息可以是但不限于指令、设备数据、服务关联数据或广告。具体的,用户通过终端15可以登录云服务器14,然后在终端15上可以显示云服务器中的智能家居设备(如智能门11,智能灯12,智能电视13)的功能。或者,终端15向云服务器14发送用于执行场景服务文件的指令,使得云服务器14根据该指令向智能家居设备发送场景服务文件中的服务命令,智能家居设备(如智能门11,智能灯 12,智能电视13)根据场景服务文件中的服务命令执行服务。或者,终端15接收和显示云服务器发送的推送信息。指令也称为命令,计算机指令或者计算机命令。
本申请的云服务器14可以通过服务器实现。图2是本申请实施例中服务器的一种结构示意图。参阅图2,该服务器200可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器(central processing units,CPU)222和存储器232,一个或一个以上存储应用程序242或数据244的存储介质230(例如一个或一个以上海量存储设备)。其中,存储器232和存储介质230可以是短暂存储或持久存储。存储在存储介质230的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对服务器中的一系列指令操作。更进一步地,中央处理器222可以设置为与存储介质230通信,在服务器200上执行存储介质230中的一系列指令操作。
服务器200还可以包括一个或一个以上电源226,一个或一个以上有线或无线网络接口250,一个或一个以上输入输出接口258,和/或,一个或一个以上操作系统241,例如Windows Server TM,Mac OS XTM,Unix TM,Linux TM,FreeBSD TM等等。
本申请中,以下实施例中由云服务器所执行的步骤可以基于该图2所示的服务器结构。
参阅图3,本申请提供的控制设备服务的方法的一个实施例包括:
步骤301、云服务器获取来自同一场景的多种智能家居设备的历史设备服务信息,历史设备服务信息中的设备服务信息包括服务命令和服务属性信息。
服务属性是描述该服务的关键指标。服务属性信息可以包括服务执行时刻,服务属性值,服务属性内容或服务触发规则中的一项或多项。服务属性值是指用于描述服务属性的数值。服务属性内容包括但不限于用于描述服务属性的文字,数字或符号。具体的,照明服务的服务属性可以包括亮度,颜色,温度,照明时长中的一项或多项。音乐服务的服务属性可以包括音乐名称,音乐播放进度或播放时长中的一项或多项。服务触发规则是指触发服务的条件。服务触发规则可以是但不限于由智能家居系统中预置的,或者由用户设置的,或者根据机器学习方法对历史设备服务信息进行处理得到的。
服务命令是与服务相关的控制命令,服务命令可以是但不限于开启服务,关闭服务,暂停服务或者服务属性信息的调整。另外,设备服务信息还可以包括服务事件。服务事件是指在上述场景中由于环境变化导致设备上报的预定事件,如异常告警。
需要说明的是,智能家居设备发送的设备服务信息可以包括场景标识,云服务器根据场景标识可以区分不同场景的设备服务信息。
步骤302、云服务器根据历史设备服务信息生成场景服务文件。
具体的,云服务器可以根据服务命令和全部或部分服务属性信息,生成场景服务文件中的设备服务信息。在场景服务文件中设备服务信息按照服务执行时刻进行排序。需要说明的是,场景服务文件的设备服务信息可以在一个场景页面中显示,便于用户查看或编辑。
步骤303、云服务器获取场景的场景信息。
场景信息可以是但不限于终端发送的命令,场景时刻或智能家居设备发送的服务属性信息。
步骤304、当场景信息满足预设条件时,云服务器向多种智能家居设备发送场景服务 文件中的服务命令,使多种智能家居设备根据场景服务文件中的服务命令执行服务。
云服务器可以根据服务执行时刻,向对应的智能家居设备发送服务命令,多个智能家居设备就能够按照服务命令执行服务。从用户的角度来看,多个智能家居设备是按照场景服务文件中预先设定的次序执行服务,从而能够满足用户快速控制多个服务的需求。可以理解的是,云服务器也可以向智能家居设备发送带有执行时刻的命令,使得智能家居设备在上述执行时刻执行服务。
本实施例中,能够根据历史设备服务信息,将多种智能家居设备的服务聚合在场景服务文件中,通过场景服务文件可以对一个场景中的各种智能家居设备进行控制,使智能家居设备提供相应服务。与现有技术中需要分别在多个应用程序中切换来启用设备服务相比,本申请的服务控制方法能够自动启用多个服务,具有简单方便的优点。
在一个可选实施例中,所述云服务器根据所述历史设备服务信息生成场景服务文件包括:所述云服务器根据终端在不同时刻发送的启动录制命令和停止录制命令,确定录制时段;所述云服务器根据多种智能家居设备在录制时段发送的历史设备服务信息,生成场景服务文件。
本实施例中,用户通过终端可以设定录制时段,云服务器根据录制时段的设备服务信息自动生成场景服务文件,而无需用户手动编辑场景服务文件,因此可以简单有效地录制场景服务文件。
下面以一个具体应用场景对本申请的控制设备服务的方法进行介绍。图4A是使用终端创建场景服务文件的一个示意图。参阅图4A,创建场景服务文件的界面包括界面名称(即创建场景),保存按键和按键405,按键405用于发送启动录制命令。
用户按下按键405之后,终端向云服务器发送启动录制命令。以睡眠场景的场景服务文件为例,用户在房间内分别关闭房间灯,通过音频设备播放催眠曲,打开呼吸灯。房间灯、音频设备和呼吸灯可以将设备服务信息(如服务命令和服务属性信息)发送至云服务器。
下面以服务属性信息包括服务执行时刻和服务属性内容为例,用户操作、服务命令和服务属性信息可以如表1所示。
用户操作 服务命令 服务执行时刻 服务属性内容
关闭房间灯 关闭 23点 房间灯
使用音频设备播放催眠曲 播放 23点01分 催眠曲
打开呼吸灯 打开 23点02分 呼吸灯
表1
云服务器可以根据表1中的服务命令和服务属性信息生成场景服务文件。具体的,场景服务文件中的设备服务信息可以包括服务执行次序编号,服务图标,服务属性内容,服务命令等。其中,服务执行次序编号可以是由云服务器根据服务执行时刻确定的。服务图标可以是由云服务器根据服务属性内容确定的。
云服务器将场景服务文件发送至终端,在终端的创建场景界面上显示场景服务文件的信息。以关闭房间灯为例,终端可以显示:关闭房间灯服务的执行次序编号401,关闭房 间灯服务的图标402,服务属性内容403(即房间灯)和服务命令404(即关闭命令)。同理,还可以显示:播放催眠曲服务的执行次序编号,播放催眠曲服务的图标,服务属性内容(如催眠曲)和服务命令(如播放命令),以及打开呼吸灯服务的执行次序编号,打开呼吸灯服务的图标,服务属性内容(如呼吸灯)和服务命令(如打开命令)。
图4B是使用终端创景场景服务文件的另一个示意图。用户按下按键405之后,终端可以显示按键409,按键409用于发送停止录制命令。用户按下按键409之后,终端向云服务器发送停止录制命令。这样录制得到的场景服务文件可以包括图4B所示的设备服务信息。在创建场景服务文件的界面,对于每个设备服务信息可以提供删除按键406,上调按键407和下调按键408。用户按压删除按键406时,可以删除对应的设备服务信息。用户按压上调按键407时,可以将设备服务信息对应的服务执行次序前调。用户按压下调按键408时,可以将设备服务信息对应的服务执行次序后调。另外,用户还可以对设备服务信息中的服务属性信息和服务触发规则进行编辑,例如增加,修改或删除。
需要说明的是,在用户按下按键409之后,终端可以重新显示按键405,这样用户可以继续录制场景。通过按键405和按键409交替显示,用户可以根据需要启动录制和停止录制,从而对录制过程进行控制。
图4C和图4D是使用终端执行场景服务文件的示意图。参阅图4C,对于创建完成的睡眠场景的场景服务文件,该场景服务文件的显示界面包括场景服务文件的名称(即睡眠场景)410,按键411,房间灯的设备服务信息,音频设备的设备服务信息和呼吸灯的设备服务信息。按键411用于发送执行场景服务文件的命令。
房间灯的设备服务信息包括关闭房间灯服务的图标402,服务属性内容(如房间灯)403和关闭命令404。音频设备的设备服务信息包括播放催眠曲服务的图标,服务属性内容(如催眠曲)和播放命令等。呼吸灯的设备服务信息包括打开呼吸灯服务的图标,服务属性内容(如呼吸灯)和打开命令。
当用户按压按键411时,终端向云服务器发送执行场景服务文件的命令。云服务器根据该命令陆续向房间灯、音频设备和呼吸灯发送服务命令,实现关闭房间灯、播放催眠曲和打开呼吸灯的服务。参阅图4D,在执行场景服务文件的界面上,终端还可以显示每个服务的当前状态,例如,在播放催眠曲服务的图标周围显示播放进度条412,播放进度条412用于指示催眠曲的播放进度。用户按下按键411之后,在执行场景服务的界面上,终端可以显示按键413,用户按压按键413,终端向云服务器发送暂停命令,云服务器和智能家居设备根据该暂停命令暂停执行场景服务文件对应的服务。
在实际应用中,在录制时段内,用户甲操作设备A,用户乙操作设备B。这样在录制时段同时录制了用户甲对设备A的操作和用户乙对设备B的操作。当用户甲在家且用户乙不在家时,在用户甲不需要使用设备B的情况下,按照在录制时段的设备服务信息生成的场景服务文件包括了设备B的设备服务信息,因此不适合用户甲的需求。为此本申请还可以为用户设置个性化的场景服务文件,具体如下:
在另一个可选实施例中,设备服务信息还包括第一用户的身份标识;
云服务器根据多种智能家居设备在录制时段发送的历史设备服务信息生成场景服务文 件包括:云服务器根据第一用户的身份标识,确定在录制时段发送的历史设备服务信息中第一目标服务的设备服务信息,第一目标服务是指第一用户在录制时段执行的服务;云服务器根据第一目标服务的设备服务信息生成场景服务文件。
本实施例中,用户的身份标识可以是用户指纹、用户声纹、用户步态和用户头部图像等。
云服务器根据第一用户的身份标识可以确定在录制时段中第一用户执行服务的设备服务信息,根据该设备服务信息生成场景服务文件,智能家居设备能够该场景服务文件的服务命令自动执行第一用户需要的设备服务,因此能够满足第一用户的个性化需求。同理,根据每个用户的身份标识都可以生成相应的场景服务文件,从而能够提供个性化服务。
在另一个可选实施例中,云服务器根据历史设备服务信息生成场景服务文件包括:云服务器对历史设备服务信息进行统计,得到每个服务的服务执行次数和服务执行时刻;云服务器根据统计结果,从历史设备服务信息中选取第二目标服务的设备服务信息,第二目标服务是指在统计时段内服务执行次数不小于预设次数且服务执行时刻与预设服务执行时刻的差值不大于预设时长的服务;云服务器根据第二目标服务的设备服务信息,生成场景服务文件。
本实施例中,在历史设备服务信息中,根据设备服务信息出现的次数确定服务执行次数。不同服务需要分别进行统计。以照明灯服务为例,开灯和关灯属于两种服务,需要分别统计开灯次数和关灯次数。
预设服务执行时刻可以是在历史设备服务信息中的任意一个服务执行时刻。或者,预设服务执行时刻可以是由用户根据历史经验设置的。或者,预设服务执行时刻可以是云服务器根据历史设备服务信息中服务执行时刻确定中间值,具体可以是但不限于算术平均值或加权平均值。
在统计时段内每个服务的设备服务信息可以包括一条或多条记录。在多条记录中,服务命令相同,多个服务的服务执行时刻可能相同,也可能不同。具体的,对于第二目标服务中的每个服务,可以从多个服务属性信息中选取一个服务属性信息,根据选取的服务属性信息和上述服务命令作为场景服务文件中的设备服务信息。
云服务器可以根据在场景中频繁使用并且定时使用的设备功能自动生成场景服务文件,然后智能家居设备根据该场景服务文件的服务命令执行对应的服务。由此提供了生成另一种场景服务文件的方法,提高了方案实施的灵活性。
例如,统计时段为30天,云服务器对客厅灯的关闭次数和关闭时刻进行统计。在30天内,在22点50分0秒至23点10分0秒关闭客厅灯的次数为20次,在12点0分0秒之后关闭客厅灯的次数为10次。预设时刻为23点0分0秒,预设时长为10分钟,预设次数为15次,由于在22点50分0秒至23点10分0秒关闭客厅灯的次数大于15次,因此云服务器可以确定其中一个设备服务信息(例如在23点0分0秒关闭客厅灯)对应的服务属于第二目标服务。云服务器将服务属性内容(即客厅灯)和服务命令(即关闭命令)作为场景服务文件中的设备服务信息,该服务的服务执行时刻为23点0分0秒。
下面以另一个应用场景对本申请中的控制设备服务的方法进行介绍。
统计时段以一个星期为例,在该统计日期内用户每天19点左右回到家,打开智能门的门锁,进门之后打开走道灯,关门上锁,走到客厅打开客厅灯,然后回去关闭走道灯,最后走到客厅,打开智能空调和智能电视。在该场景中,用户每天打开智能门,打开走道灯,关门上锁,打开客厅灯,关闭走道灯,打开智能空调和智能电视的时刻分别与每个服务的预设服务执行时刻的时间差不大于预设时长。
云服务器从上述设备获取上述设备服务信息后,可以确定上述设备服务信息属于第二目标服务的设备服务信息,接下来按照服务执行时刻生成场景服务文件。这样,云服务器可以根据历史设备服务信息和预设策略自动生成场景服务文件,然后推送给用户。
参阅图5A,创建场景服务文件的界面包括创建界面提示信息501(即“你需要这个场景吗?”),场景时段502(即19:00-20:00每天),服务执行次序编号503(如编号1,2,3,4,5),服务属性内容505(如门,走道灯,客厅灯),服务命令506(如解锁,打开,上锁,关闭),按键507和按键508。按键507用于创建完成该场景服务文件。按键508为取消按键,用于取消创建该场景服务文件。
用户按压按键507之后,创建完成的场景服务文件如图5B所示。参阅图5B,在该场景服务文件的显示界面包括场景名称(即“回家场景”),场景时段502,服务图标504(如智能门的图标,走道灯的图标,客厅灯的图表),服务属性内容505(如门,走道灯,客厅灯)和服务命令506(如解锁,打开,上锁,关闭)。用户还可以为该场景服务文件设置场景触发条件,以执行该场景服务文件。例如,当智能门上的指纹检测设备检测到预设用户指纹时,指纹检测设备将用户指纹发送到云服务器,云服务器确定该用户指纹与预设用户指纹匹配成功,云服务器根据上述场景服务文件向上述智能家居设备(如门,走道灯,客厅灯)发送服务命令,使得上述智能家居设备依次执行服务。
需要说明的是,云服务器还可以根据机器学习方法对历史设备服务信息进行处理,以得到第二目标服务的设备服务信息;云服务器根据第二目标服务的设备服务信息,生成场景服务文件。第二目标服务可参阅前文的第二目标服务。机器学习方法可以是但不限于神经网络算法。
在另一个可选实施例中,设备服务信息还包括第一用户的身份标识;
云服务器根据第二目标服务的设备服务信息生成场景服务文件包括:云服务器根据第一用户的身份标识,从第二目标服务的设备服务信息中确定第三目标服务的设备服务信息,第三目标服务是指在第二目标服务中由第一用户执行的服务;云服务器根据第三目标服务的设备服务信息生成场景服务文件。
本实施例中,云服务器可以根据第一用户习惯使用的设备服务生成场景服务文件。同理,云服务器根据每个用户的身份信息可以获得用户习惯使用的多个设备服务,从而生成个性化的场景服务文件。当多个智能家居设备根据每个场景服务文件中的服务命令执行多个设备功能时,能够符合每个用户使用服务的习惯,从而为用户提供个性化服务。
需要说明的是,还可以通过摄像头采集用户在场景中的图像数据,根据机器学习方法对采集的图像数据进行处理,以得到第三目标服务的设备服务信息,再根据第三目标服务的设备服务信息生成场景服务文件。
在本申请中,用于触发执行场景服务文件的预设条件可以根据实际情况设置,或者是云服务器通过机器学习方法对历史设备服务信息进行处理所得,在此不作限定。下面以实施例的方式对该预设条件进行介绍:
在一个可选实施例中,云服务器获取场景的场景信息包括:云服务器获取终端发送的命令;
上述方法还包括:当终端发送的命令是用于执行场景服务文件的命令时,云服务器确定场景信息满足预设条件。
本实施例中,用户可以通过按键操作,语音指令或者手势等方式输入用于执行场景服务文件的命令。当终端发送用于执行场景服务文件的命令时,云服务器可以根据场景服务文件向智能家居设备发送服务命令,使得智能家居设备根据服务命令执行服务。这样,用户可以使用终端启用多个智能家居设备的服务。用户只需要一次操作或者少量操作就能启用多个智能家居设备的服务,因此能够快速有效地对多个智能家居设备的服务进行控制。
在另一个可选实施例中,
云服务器获取场景的场景信息包括:云服务器获取场景的场景时刻;
上述方法还包括:当云服务器检测到场景时刻是预设场景时刻时,云服务器确定场景信息满足预设条件。
本实施例中,预设场景时刻是指用于触发执行场景服务文件的时刻。预设场景时刻可以是由用户根据实际情况设置的,具体不作限定。例如,每天早上7点,云服务器智能家居设备根据场景服务文件向多个智能家居设备发送服务命令,多个智能家居设备根据服务命令执行服务。这样可以实现定时执行多个服务,无需用户手动操作。
在另一个可选实施例中,
云服务器获取场景的场景信息包括:云服务器获取智能家居设备发送的服务属性值;
上述方法还包括:当云服务器检测到服务属性值位于预设属性值范围时,云服务器确定场景信息满足预设条件。
本实施例中,该场景信息是智能家居设备发送的服务属性值。需要说明的是,获取该场景信息的智能家居设备可以是提供场景服务文件中设备服务的智能家居设备,也可以是场景中的其他智能家居设备。
或者,场景信息是智能家居设备发送的服务属性内容。当云服务器检测到智能家居设备发送的服务属性内容与预设的服务属性内容匹配成功时,云服务器确定场景信息满足预设条件。
例如,在智能门上设置有智能门锁和摄像设备。智能门锁提供开锁功能,开锁功能属于一个场景服务文件中的设备服务。摄像设备可以采集人脸图像,在采集人脸图像不属于上述场景服务文件中的设备服务。在智能门锁检测到用户输入的指纹是预设指纹的情况下,云服务器确定场景信息满足预设条件。或者,在摄像设备检测到人脸图像为预设的用户图像的情况下,云服务器确定场景信息满足预设条件。
在另一个可选实施例中,云服务器获取场景的场景信息包括:云服务器获取智能家居设备发送的服务事件;
方法还包括:当云服务器检测到服务事件为预设事件时,云服务器确定场景信息满足预设条件。
本实施例中,预设事件是指用于触发执行场景服务文件的事件。预设事件可以由用户根据实际情况设置,具体不作限定。例如,预设事件为开门事件。当用户打开智能门时,智能门上报开门事件,云服务器根据该开门事件确定场景信息满足预设条件。
可以理解的是,场景信息可以包括多个服务事件,预设事件的数量也可以是多个。当预设事件的数量是多个时,在每个服务事件分别与对应的预设事件均匹配的情况下,云服务器确定场景信息满足预设条件。
可以看出,以上方法可以使得智能家居设备根据场景服务文件的服务命令执行服务,无需用户手动操作。
在实际应用中,云服务器生成的场景服务文件可能包括不符合用户需求的设备服务信息,或者缺少符合用户需求的设备服务信息。为此本申请提供了编辑场景服务文件的方法,能够对场景服务文件进行编辑,从而获得符合用户要求的场景服务文件。
在另一个可选实施例中,在云服务器根据历史设备服务信息生成场景服务文件之后,上述方法还包括:云服务器根据终端发送的增加命令,对场景服务文件中的设备服务信息进行增加;或者,云服务器根据终端发送的删除命令,对场景服务文件中的设备服务信息进行删除;或者,云服务器根据终端发送的修改命令,对场景服务文件中的设备服务信息进行修改。
本实施例中,对场景服务文件进行编辑,可以是但不限于增加、删除或修改设备服务信息。或者,对设备服务信息包括的服务属性信息进行编辑。例如,对服务属性值、服务属性内容或服务触发规则进行编辑。这样,用户可以对场景服务文件进行编辑,从而获得符合要求的场景服务文件。
在另一个可选实施例中,在云服务器根据历史设备服务信息生成场景服务文件之后,上述方法还包括:云服务器将场景服务文件发送给终端,使得在终端的场景页面上显示场景服务文件;云服务器接收终端发送的选择命令;云服务器根据选择命令,在场景服务文件中确定第四目标服务的设备服务信息;云服务器获取与第四目标服务对应的关联服务信息,将关联服务信息发送给终端,使得在终端的场景界面上显示关联服务信息。
本实施例中,终端可以在场景页面上显示场景服务文件的设备服务信息。具体的,对于每个设备服务信息可以显示其中的部分信息,例如,在场景页面上显示服务命令,服务标识,服务的执行次序编号,服务设备的状态信息。
云服务器可以根据用户选择的设备服务信息推送关联服务信息。关联服务信息对应的服务可以是但不限于由智能家居设备或终端提供。例如,在客人来访的场景服务文件中,设置社交软件的位置共享服务作为关联服务信息,向访客提供家庭地址。在家庭场景的场景服务文件中,设置留言板功能作为关联服务信息,向家庭成员发送留言。
关联服务信息可以显示在场景页面上,也可以通过其他方式显示,例如弹窗,或者在关联服务信息的应用程序中显示,以便用户可以查看。
在另一个可选实施例中,在云服务器根据历史设备服务信息生成场景服务文件之后, 上述方法还包括:云服务器根据场景服务文件中的场景名称确定第一订阅服务,将第一订阅服务发送给终端;或者,云服务器根据场景服务文件中的设备服务信息确定第二订阅服务,将第二订阅服务发送给终端。
本实施例中,根据场景服务文件中场景名称和/或设备服务信息可以推送订阅服务。具体的,可以根据场景名称和/或设备服务信息的关键字,然后根据关键字推送订阅服务。
例如,场景服务文件的场景名称为“宝宝看护”,其包括的一个设备服务信息为“检测睡眠时长”,云服务器获取“宝宝”、“看护”和“睡眠”关键字,从订阅服务器获取“关于宝宝睡眠常识”和“宝宝看护机构”等订阅服务,然后将订阅服务推送至终端。用户可以购买上述订阅服务,从而获取相关资讯。
在另一个可选实施例中,上述方法还包括:云服务器接收第一终端发送的共享命令,共享命令包括第二用户的身份标识和第二终端的互联网协议地址(internet protocol address,IP)地址,第二终端为第二用户使用的终端;云服务器根据第二用户的身份标识确定第二用户的权限;云服务器根据第二用户的权限,在场景服务文件中确定第五目标服务的设备服务信息;云服务器根据第二终端的IP地址,将第五目标服务的设备服务信息发送给第二终端。
本实施例中,第五目标服务是在场景服务文件对应的服务中第二用户具有访问或控制权限的服务。场景服务文件对应的服务是指在场景服务文件中的多个设备服务信息对应的服务。
第一终端可以是在场景中的家庭成员使用的终端。第一终端发送共享命令之后,云服务器可以根据第二用户的权限在场景服务文件中确定第五目标服务的设备服务信息,将第五目标服务的设备服务信息发送给第二终端。或者,确定第五目标服务的设备服务信息之后,云服务器根据第五目标服务的设备服务信息生成新的场景服务文件,将新的场景服务文件发送给第二终端。
或者,云服务器将在场景服务文件中除了第五目标服务的设备服务信息之外的设备服务信息的读写权限设置调整为不可读,或者不可读不可写。这样可以第二用户通过第二终端向云服务器发送命令之后,云服务器根据第五目标服务的设备服务信息向智能家居设备发送服务命令,智能家居设备根据服务命令执行服务。第二用户只能使用第五目标服务,而不能使用场景服务文件对应的服务中的其他服务。由此可以根据用户权限共享场景的设备服务,从而能够提高管理设备服务的安全性。
需要说明的是,在第二终端没有安装智能家居系统的应用程序的情况下,第二终端可以通过小程序或者页面应用的方式获取第五目标服务的设备服务信息。
以上对本申请中的控制设备服务的方法进行了介绍,下面对本申请中的云服务器进行介绍。本申请中的云服务器能够实现图3所示实施例或可选实施例中云服务器执行的功能。
参阅图6,本申请中云服务器的一个实施例包括:
第一获取模块601,用于获取来自同一场景的多种智能家居设备的历史设备服务信息,历史设备服务信息中的设备服务信息包括服务命令和服务属性信息,服务属性信息包括服务执行时刻;
处理模块602,用于根据历史设备服务信息生成场景服务文件,在场景服务文件中设备服务信息按照服务执行时刻进行排序;
第二获取模块603,用于获取场景的场景信息;
发送模块604,用于当场景信息满足预设条件时,向多种智能家居设备发送场景服务文件中的服务命令,使多种智能家居设备根据场景服务文件中的服务命令执行服务。
需要说明的是,在一些实施例中,处理模块602还可以与发送模块604连接。
在一个可选实施例中,处理模块602包括确定单元和第一生成单元;
确定单元,用于根据终端在不同时刻发送的启动录制命令和停止录制命令,确定录制时段;
第一生成单元,用于根据多种智能家居设备在录制时段发送的历史设备服务信息,生成场景服务文件。
在另一个可选实施例中,设备服务信息还包括第一用户的身份标识;
第一生成单元,具体用于根据第一用户的身份标识,确定在录制时段发送的历史设备服务信息中第一目标服务的设备服务信息,第一目标服务是指第一用户在录制时段执行的服务;根据第一目标服务的设备服务信息生成场景服务文件。
在另一个可选实施例中,处理模块602包括统计单元,选择单元和第二生成单元;
统计单元,用于对历史设备服务信息进行统计,得到每个服务的服务执行次数和服务执行时刻;
选择单元,用于根据统计结果,从历史设备服务信息中选取第二目标服务的设备服务信息,第二目标服务是指在统计时段内服务执行次数不小于预设次数且服务执行时刻与预设服务执行时刻的差值不大于预设时长的服务;
第二生成单元,用于根据第二目标服务的设备服务信息,生成场景服务文件。
在另一个可选实施例中,设备服务信息还包括第一用户的身份标识;
第二生成单元,具体用于根据第一用户的身份标识,从第二目标服务的设备服务信息中确定第三目标服务的设备服务信息,第三目标服务是指在第二目标服务中由第一用户执行的功能;根据第三目标服务的设备服务信息生成场景服务文件。
在另一个可选实施例中,
第二获取模块603,具体用于获取终端发送的命令;
处理模块602还用于当场景中终端发送的命令是用于执行场景服务文件的命令时,确定场景信息满足预设条件。
在另一个可选实施例中,
第二获取模块603,具体用于获取场景的场景时刻;
处理模块602还用于当处理模块检测到场景时刻是预设场景时刻时,确定所述场景信息满足预设条件。
在另一个可选实施例中,
第二获取模块603,具体用于获取智能家居设备发送的服务属性值;
处理模块602还用于当处理模块检测到服务属性值位于预设属性值范围时,确定场景 信息满足预设条件。
在另一个可选实施例中,
处理模块602,还用于在处理模块602根据历史设备服务信息生成场景服务文件之后,根据终端发送的增加命令,对场景服务文件中的设备服务信息进行增加;或者,用于根据终端发送的删除命令,对场景服务文件中的设备服务信息进行删除;或者,用于根据终端发送的修改命令,对场景服务文件中的设备服务信息进行修改。
在另一个可选实施例中,
发送模块604,还用于将场景服务文件发送给终端,使得在终端的场景页面上显示场景服务文件;
第二获取模块603,还用于接收终端发送的选择命令;
处理模块602,还用于根据选择命令,在场景服务文件中确定第四目标服务的设备服务信息;获取与第四目标服务对应的关联服务信息;
发送模块604,还用于将关联服务信息发送给终端,使得在终端的场景页面上显示关联服务信息。
在另一个可选实施例中,
处理模块602,还用于根据场景服务文件中的场景名称确定第一订阅服务;
发送模块604,还用于将第一订阅服务发送给终端;
在另一个可选实施例中,
处理模块602,还用于根据场景服务文件中的设备服务信息确定第二订阅服务;
发送模块604,还用于将第二订阅服务发送给终端。
在另一个可选实施例中,
第二获取模块603,还用于接收第一终端发送的共享命令,共享命令包括第二用户的身份标识和第二终端的IP地址,第二终端为第二用户使用的终端;
处理模块602,还用于根据第二用户的身份信息确定第二用户的权限;根据第二用户的权限在场景服务文件中确定第五目标服务的设备服务信息;
发送模块604,还用于根据第二终端的IP地址,将第五目标服务的设备服务信息发送给第二终端。
本申请提供一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行如以上实施例中任意一个实施例的方法。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。
所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、 无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如软盘、硬盘、磁带)、光介质(例如DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。
以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例的技术方案的范围。

Claims (26)

  1. 一种控制设备服务的方法,其特征在于,包括:
    云服务器获取来自同一场景的多种智能家居设备的历史设备服务信息,所述历史设备服务信息中的设备服务信息包括服务命令和服务属性信息,所述服务属性信息包括服务执行时刻;
    所述云服务器根据所述历史设备服务信息生成场景服务文件,在所述场景服务文件中的设备服务信息按照所述服务执行时刻进行排序;
    所述云服务器获取所述场景的场景信息;
    当所述场景信息满足预设条件时,所述云服务器向所述多种智能家居设备发送所述场景服务文件中的服务命令,使所述多种智能家居设备根据所述场景服务文件中的服务命令执行服务。
  2. 根据权利要求1所述的方法,其特征在于,所述云服务器根据所述历史设备服务信息生成场景服务文件包括:
    所述云服务器根据终端在不同时刻发送的启动录制命令和停止录制命令,确定录制时段;
    所述云服务器根据所述多种智能家居设备在所述录制时段发送的历史设备服务信息,生成场景服务文件。
  3. 根据权利要求2所述的方法,其特征在于,所述设备服务信息还包括第一用户的身份标识;
    所述云服务器根据多种智能家居设备在所述录制时段发送的历史设备服务信息生成场景服务文件包括:
    所述云服务器根据所述第一用户的身份标识,确定在所述录制时段发送的历史设备服务信息中第一目标服务的设备服务信息,所述第一目标服务是指所述第一用户在所述录制时段执行的服务;
    所述云服务器根据所述第一目标服务的设备服务信息生成场景服务文件。
  4. 根据权利要求1所述的方法,其特征在于,所述云服务器根据所述历史设备服务信息生成场景服务文件包括:
    所述云服务器对所述历史设备服务信息进行统计,得到每个服务的服务执行次数和服务执行时刻;
    所述云服务器根据统计结果,从所述历史设备服务信息中选取第二目标服务的设备服务信息,所述第二目标服务是指在统计时段内所述服务执行次数不小于预设次数且所述服务执行时刻与预设服务执行时刻的差值不大于预设时长的服务;
    所述云服务器根据所述第二目标服务的设备服务信息,生成场景服务文件。
  5. 根据权利要求4所述的方法,其特征在于,所述设备服务信息还包括第一用户的身份标识;
    所述云服务器根据所述第二目标服务的设备服务信息,生成场景服务文件包括:
    所述云服务器根据所述第一用户的身份标识,从所述第二目标服务的设备服务信息中 确定第三目标服务的设备服务信息,所述第三目标服务是指在所述第二目标服务中由所述第一用户执行的功能;
    所述云服务器根据所述第三目标服务的设备服务信息生成场景服务文件。
  6. 根据权利要求1所述的方法,其特征在于,
    所述云服务器获取所述场景的场景信息包括:所述云服务器获取终端发送的命令;
    所述方法还包括:当所述终端发送的命令是用于执行所述场景服务文件的命令时,所述云服务器确定所述场景信息满足预设条件。
  7. 根据权利要求1所述的方法,其特征在于,
    所述云服务器获取所述场景的场景信息包括:所述云服务器获取所述场景的场景时刻;
    所述方法还包括:当云服务器检测到所述场景时刻是预设场景时刻时,所述云服务器确定所述场景信息满足预设条件。
  8. 根据权利要求1所述的方法,其特征在于,
    所述云服务器获取所述场景的场景信息包括:所述云服务器获取所述智能家居设备发送的服务属性值;
    所述方法还包括:当所述云服务器检测到所述服务属性值位于预设属性值范围时,所述云服务器确定所述场景信息满足预设条件。
  9. 根据权利要求1至8中任一项所述的方法,其特征在于,在所述云服务器根据所述历史设备服务信息生成场景服务文件之后,所述方法还包括:
    所述云服务器根据终端发送的增加命令,对所述场景服务文件中的设备服务信息进行增加;或者,
    所述云服务器根据终端发送的删除命令,对所述场景服务文件中的设备服务信息进行删除;或者,
    所述云服务器根据终端发送的修改命令,对所述场景服务文件中的设备服务信息进行修改。
  10. 根据权利要求1至8中任一项所述的方法,其特征在于,在所述云服务器根据所述历史设备服务信息生成场景服务文件之后,所述方法还包括:
    所述云服务器将所述场景服务文件发送给终端,使得在所述终端的场景页面上显示所述场景服务文件;
    所述云服务器接收所述终端发送的选择命令;
    所述云服务器根据所述选择命令,在所述场景服务文件中确定第四目标服务的设备服务信息;
    所述云服务器获取与所述第四目标服务对应的关联服务信息,将所述关联服务信息发送给所述终端,使得在所述终端的场景界面上显示所述关联服务信息。
  11. 根据权利要求1至8中任一项所述的方法,其特征在于,在所述云服务器根据所述历史设备服务信息生成场景服务文件之后,所述方法还包括:
    所述云服务器根据所述场景服务文件中的场景名称确定第一订阅服务,将所述第一订阅服务发送给终端;或者,
    所述云服务器根据所述场景服务文件中的设备服务信息确定第二订阅服务,将所述第二订阅服务发送给终端。
  12. 根据权利要求1至8中任一项所述的方法,其特征在于,所述方法还包括:
    所述云服务器接收第一终端发送的共享命令,所述共享命令包括第二用户的身份标识和第二终端的互联网协议IP地址,所述第二终端为所述第二用户使用的终端;
    所述云服务器根据所述第二用户的身份标识确定所述第二用户的权限;
    所述云服务器根据所述第二用户的权限,在所述场景服务文件中确定所述第五目标服务的设备服务信息;
    所述云服务器根据所述第二终端的IP地址,将所述第五目标服务的设备服务信息发送给所述第二终端。
  13. 一种云服务器,其特征在于,包括:
    第一获取模块,用于获取来自同一场景的多种智能家居设备的历史设备服务信息,所述历史设备服务信息中的设备服务信息包括服务命令和服务属性信息,所述服务属性信息包括服务执行时刻;
    处理模块,用于根据所述历史设备服务信息生成场景服务文件,在所述场景服务文件中设备服务信息按照所述服务执行时刻进行排序;
    第二获取模块,用于获取所述场景的场景信息;
    发送模块,用于当所述场景信息满足预设条件时,向所述多种智能家居设备发送所述场景服务文件中的服务命令,使所述多种智能家居设备根据所述场景服务文件中的服务命令执行服务。
  14. 根据权利要求13所述的云服务器,其特征在于,所述处理模块包括确定单元和第一生成单元;
    所述确定单元,用于根据终端在不同时刻发送的启动录制命令和停止录制命令,确定录制时段;
    所述第一生成单元,用于根据所述多种智能家居设备在所述录制时段发送的历史设备服务信息,生成场景服务文件。
  15. 根据权利要求14所述的云服务器,其特征在于,所述设备服务信息还包括第一用户的身份标识;
    所述第一生成单元,具体用于根据所述第一用户的身份标识,确定在所述录制时段发送的历史设备服务信息中第一目标服务的设备服务信息,所述第一目标服务是指所述第一用户在所述录制时段执行的服务;根据所述第一目标服务的设备服务信息生成场景服务文件。
  16. 根据权利要求13所述的云服务器,其特征在于,所述处理模块包括统计单元,选择单元和第二生成单元;
    所述统计单元,用于对所述历史设备服务信息进行统计,得到每个服务的服务执行次数和服务执行时刻;
    所述选择单元,用于根据统计结果,从所述历史设备服务信息中选取第二目标服务的 设备服务信息,所述第二目标服务是指在统计时段内所述服务执行次数不小于预设次数且所述服务执行时刻与预设服务执行时刻的差值不大于预设时长的服务;
    所述第二生成单元,用于根据所述第二目标服务的设备服务信息,生成场景服务文件。
  17. 根据权利要求16所述的云服务器,其特征在于,所述设备服务信息还包括第一用户的身份标识;
    所述第二生成单元,具体用于根据所述第一用户的身份标识,从所述第二目标服务的设备服务信息中确定第三目标服务的设备服务信息,所述第三目标服务是指在所述第二目标服务中由所述第一用户执行的功能;根据所述第三目标服务的设备服务信息生成场景服务文件。
  18. 根据权利要求13所述的云服务器,其特征在于,
    所述第二获取模块,具体用于获取终端发送的命令;
    所述处理模块还用于当所述终端发送的命令是用于执行所述场景服务文件的命令时,确定所述场景信息满足预设条件。
  19. 根据权利要求13所述的云服务器,其特征在于,
    所述第二获取模块,具体用于获取所述场景的场景时刻;
    所述处理模块还用于当所述处理模块检测到所述场景时刻是预设场景时刻时,确定所述场景信息满足预设条件。
  20. 根据权利要求13所述的云服务器,其特征在于,
    所述第二获取模块,具体用于获取所述智能家居设备发送的服务属性值;
    所述处理模块还用于当所述处理模块检测到所述服务属性值位于预设属性值范围时,确定所述场景信息满足预设条件。
  21. 根据权利要求13至20中任一项所述的云服务器,其特征在于,
    所述处理模块,还用于在所述处理模块根据所述历史设备服务信息生成场景服务文件之后,根据终端发送的增加命令,对所述场景服务文件中的设备服务信息进行增加;或者,用于根据终端发送的删除命令,对所述场景服务文件中的设备服务信息进行删除;或者,用于根据终端发送的修改命令,对所述场景服务文件中的设备服务信息进行修改。
  22. 根据权利要求13至20中任一项所述的云服务器,其特征在于,
    所述发送模块,还用于将所述场景服务文件发送给终端,使得在所述终端的场景页面上显示所述场景服务文件;
    所述第二获取模块,还用于接收所述终端发送的选择命令;
    所述处理模块,还用于根据所述选择命令,在所述场景服务文件中确定第四目标服务的设备服务信息;获取与所述第四目标服务对应的关联服务信息;
    所述发送模块,还用于将所述关联服务信息发送给所述终端,使得在所述终端的场景页面上显示所述关联服务信息。
  23. 根据权利要求13至20中任一项所述的云服务器,其特征在于,
    所述处理模块,还用于根据所述场景服务文件中的场景名称确定第一订阅服务;
    所述发送模块,还用于将所述第一订阅服务发送给终端;
    或者,
    所述处理模块,还用于根据所述场景服务文件中的设备服务信息确定第二订阅服务;
    所述发送模块,还用于将所述第二订阅服务发送给终端。
  24. 根据权利要求13至20中任一项所述的云服务器,其特征在于,
    所述第二获取模块,还用于接收第一终端发送的共享命令,所述共享命令包括第二用户的身份标识和第二终端的互联网协议IP地址,所述第二终端为所述第二用户使用的终端;
    所述处理模块,还用于根据所述第二用户的身份信息确定第二用户的权限;根据第二用户的权限在所述场景服务文件中确定所述第五目标服务的设备服务信息;
    所述发送模块,还用于根据所述第二终端的IP地址,将所述第五目标服务的设备服务信息发送给所述第二终端。
  25. 一种智能家居系统,其特征在于,包括:
    云服务器和多个智能家居设备;
    所述云服务器,用于获取来自同一场景的多种智能家居设备的历史设备服务信息,所述历史设备服务信息中的设备服务信息包括服务命令和服务属性信息,所述服务属性信息包括服务执行时刻;根据所述历史设备服务信息生成场景服务文件,在所述场景服务文件中的设备服务信息按照服务执行时刻进行排序;获取所述场景的场景信息;当所述场景信息满足预设条件时,向所述多种智能家居设备发送所述场景服务文件中的服务命令;
    所述智能家居设备,用于向所述云服务器发送设备服务信息;接收所述云服务器发送的所述场景服务文件中的服务命令;根据所述场景服务文件中的服务命令执行服务。
  26. 一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行如权利要求1至12中任一项所述的方法。
PCT/CN2020/081978 2019-05-31 2020-03-30 一种控制设备服务的方法、云服务器和智能家居系统 Ceased WO2020238385A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/096,650 US20210144024A1 (en) 2019-05-31 2020-11-12 Device service control method, cloud server, and smart home system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910470474.5A CN110262261B (zh) 2019-05-31 2019-05-31 一种控制设备服务的方法、云服务器和智能家居系统
CN201910470474.5 2019-05-31

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/096,650 Continuation US20210144024A1 (en) 2019-05-31 2020-11-12 Device service control method, cloud server, and smart home system

Publications (1)

Publication Number Publication Date
WO2020238385A1 true WO2020238385A1 (zh) 2020-12-03

Family

ID=67916298

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/081978 Ceased WO2020238385A1 (zh) 2019-05-31 2020-03-30 一种控制设备服务的方法、云服务器和智能家居系统

Country Status (3)

Country Link
US (1) US20210144024A1 (zh)
CN (2) CN114500137A (zh)
WO (1) WO2020238385A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114584415A (zh) * 2022-01-24 2022-06-03 杭州博联智能科技股份有限公司 全屋智能的场景分布式实现方法、系统、装置和介质
CN114740748A (zh) * 2022-04-29 2022-07-12 青岛海尔科技有限公司 智能家居场景创建方法、装置、存储介质及电子装置
CN115826418A (zh) * 2021-09-16 2023-03-21 华为技术有限公司 一种智能家居控制方法
CN115883274A (zh) * 2022-09-26 2023-03-31 四川启睿克科技有限公司 一种基于httpServer实现在主动智能家庭的智能互联方法

Families Citing this family (39)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114500137A (zh) * 2019-05-31 2022-05-13 华为技术有限公司 一种控制设备服务的方法、云服务器和智能家居系统
CN113009835A (zh) * 2019-12-20 2021-06-22 西门子(中国)有限公司 智能家居系统的自动配置方法及装置
CN113093559B (zh) * 2020-01-09 2024-03-29 佛山市云米电器科技有限公司 智能家居设备的控制方法、智能冰箱、系统和存储介质
CN111489540B (zh) * 2020-03-25 2025-06-27 腾讯科技(深圳)有限公司 智能设备控制方法、装置、计算机可读介质及电子设备
CN111273561A (zh) * 2020-03-27 2020-06-12 青岛海信智慧家居系统股份有限公司 一种智能家居设备控制的方法及装置
CN111488088B (zh) * 2020-04-07 2022-05-06 Oppo广东移动通信有限公司 设备状态标识方法、装置及智能终端
CN111324077A (zh) * 2020-04-07 2020-06-23 四川虹美智能科技有限公司 物联网设备控制方法、装置及系统
CN111818132B (zh) * 2020-06-19 2023-05-23 深圳奇迹智慧网络有限公司 物联网设备的控制方法、装置、计算机设备和存储介质
CN112543131A (zh) * 2020-10-23 2021-03-23 福州交通信息投资运营有限公司 一种基于5g电视的智能家居管理方法及系统
CN112306968B (zh) * 2020-11-10 2023-11-24 珠海格力电器股份有限公司 场景建立方法和装置
CN115047774A (zh) * 2021-03-09 2022-09-13 松下电气机器(北京)有限公司 基于用户身份的智能家居设备控制方法、装置及存储介质
CN115202217A (zh) * 2021-03-25 2022-10-18 阿里巴巴新加坡控股有限公司 智能设备控制系统、方法、装置及设备
CN113159521A (zh) * 2021-03-26 2021-07-23 珠海大横琴科技发展有限公司 一种服务调度的方法和装置
CN113225378A (zh) * 2021-03-31 2021-08-06 广州朗国电子科技有限公司 一种基于云服务器的用户智能终端管理平台、方法及介质
CN113268004A (zh) * 2021-04-22 2021-08-17 深圳Tcl新技术有限公司 一种场景创建方法、装置、计算机设备及存储介质
CN113325745B (zh) * 2021-04-28 2023-06-16 青岛海尔科技有限公司 一种设备控制方法、终端、存储介质及电子装置
CN113296420A (zh) * 2021-04-30 2021-08-24 广州力控智电信息科技有限公司 场景自动调节方法、系统、装置及存储介质
CN113452772B (zh) * 2021-06-24 2023-10-27 青岛海尔科技有限公司 智能场景的处理方法、装置、存储介质及电子设备
CN113504766B (zh) * 2021-07-02 2023-03-21 海尔(深圳)研发有限责任公司 用于调度场景任务的方法、系统、装置、服务器和存储介质
CN115685765B (zh) * 2021-07-21 2025-07-04 青岛海信智慧生活科技股份有限公司 一种设备联动方案推荐方法、设备及介质
CN115933418A (zh) * 2021-08-26 2023-04-07 苏州触达信息技术有限公司 基于个性化场景地图的智能设备控制方法
CN114326423B (zh) * 2021-12-21 2024-12-03 美的集团股份有限公司 一种场景化控制方案的自动生成方法及场景化控制设备
EP4380112A4 (en) * 2022-02-07 2025-01-29 Samsung Electronics Co., Ltd. Server for controlling home network on basis of sleep state and operating method therefor
CN114779654A (zh) * 2022-04-12 2022-07-22 广东美的厨房电器制造有限公司 家居设备控制方法、家居设备控制装置和可读存储介质
CN114818131A (zh) * 2022-04-24 2022-07-29 锦图计算技术(深圳)有限公司 一种基于soa的智能座舱操作系统设计方法
CN115167157A (zh) * 2022-05-11 2022-10-11 深圳绿米联创科技有限公司 设备控制方法、装置、电子设备及存储介质
CN115174293B (zh) * 2022-05-30 2024-03-22 青岛海尔科技有限公司 场景信息同步方法、装置及存储介质、电子装置
CN114967510A (zh) * 2022-06-01 2022-08-30 杭州萤石软件有限公司 设备智能联动的动作配置方法、装置、系统、设备及介质
CN115297103B (zh) * 2022-06-27 2024-01-23 青岛海尔智能家电科技有限公司 逻辑约束文件的获取方法和装置、存储介质及电子装置
CN115297128B (zh) * 2022-06-27 2024-04-19 青岛海尔科技有限公司 边缘执行信息的处理方法和装置、存储介质及电子装置
CN115296947B (zh) * 2022-06-28 2024-01-26 青岛海尔科技有限公司 控制命令的响应方法和装置、存储介质及电子装置
CN115167171A (zh) * 2022-08-03 2022-10-11 珠海格力电器股份有限公司 智能家居的控制系统、方法、装置、电子设备及介质
CN117953667B (zh) * 2022-10-31 2025-12-23 广东美的制冷设备有限公司 控制方法、装置、系统及设备
CN116319138A (zh) * 2023-03-24 2023-06-23 广东好太太科技集团股份有限公司 智能设备场景推荐方法、装置、存储介质及计算机设备
CN116170233B (zh) * 2023-04-23 2023-07-18 广州河东科技有限公司 一种智能家居的用户终端通信安全认证系统
CN119439760A (zh) * 2023-08-01 2025-02-14 广东美的制冷设备有限公司 智能家居系统的控制方法、控制装置以及存储介质
CN117953886A (zh) * 2023-12-26 2024-04-30 深圳市集贤科技有限公司 场景确定方法、场景确定装置、云平台及可读存储介质
CN117826629A (zh) * 2024-01-19 2024-04-05 珠海格力电器股份有限公司 智能家居系统的联合控制方法、装置和智能家居系统
CN117742223B (zh) * 2024-02-20 2024-04-26 深圳市凯度电器有限公司 一种嵌入式远程净水系统的控制方法及装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104142659A (zh) * 2013-11-12 2014-11-12 珠海优特电力科技股份有限公司 一种智能家居场景切换方法及系统
CN106814720A (zh) * 2017-03-27 2017-06-09 杭州古北电子科技有限公司 智能家居控制方法及系统
CN107665230A (zh) * 2017-06-21 2018-02-06 海信集团有限公司 用于智能家居控制的用户行为预测模型的训练方法及装置
KR101878710B1 (ko) * 2018-01-29 2018-07-16 수상에스티(주) 보안성이 강화된 레지덴셜 게이트웨이 장치를 이용한 스마트홈 관리 시스템
US10091303B1 (en) * 2016-06-12 2018-10-02 Apple Inc. Using in-home location awareness
CN110262261A (zh) * 2019-05-31 2019-09-20 华为技术有限公司 一种控制设备服务的方法、云服务器和智能家居系统

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1953516A (zh) * 2005-10-18 2007-04-25 上海卓越睿新信息技术有限公司 一种完成多场景、自动编辑录制的系统
CN105099840A (zh) * 2015-07-31 2015-11-25 小米科技有限责任公司 智能家居场景的设置方法及装置
CN106341542A (zh) * 2016-09-21 2017-01-18 深圳市九洲电器有限公司 一种手机上应用程序管理推荐方法及系统
CN107479401A (zh) * 2017-09-30 2017-12-15 广东美的制冷设备有限公司 家电设备及其控制方法、装置、系统及可读存储介质
CN108153158A (zh) * 2017-12-19 2018-06-12 美的集团股份有限公司 家居场景的切换方法、装置、存储介质及服务器
CN109753033A (zh) * 2018-11-26 2019-05-14 深圳市赛亿科技开发有限公司 一种智能家居设备的控制方法、智能家居系统
CN109766079B (zh) * 2019-01-21 2022-08-16 史文华 针对智能服务系统实现编程化设计场景的方法和系统

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104142659A (zh) * 2013-11-12 2014-11-12 珠海优特电力科技股份有限公司 一种智能家居场景切换方法及系统
US10091303B1 (en) * 2016-06-12 2018-10-02 Apple Inc. Using in-home location awareness
CN106814720A (zh) * 2017-03-27 2017-06-09 杭州古北电子科技有限公司 智能家居控制方法及系统
CN107665230A (zh) * 2017-06-21 2018-02-06 海信集团有限公司 用于智能家居控制的用户行为预测模型的训练方法及装置
KR101878710B1 (ko) * 2018-01-29 2018-07-16 수상에스티(주) 보안성이 강화된 레지덴셜 게이트웨이 장치를 이용한 스마트홈 관리 시스템
CN110262261A (zh) * 2019-05-31 2019-09-20 华为技术有限公司 一种控制设备服务的方法、云服务器和智能家居系统

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115826418A (zh) * 2021-09-16 2023-03-21 华为技术有限公司 一种智能家居控制方法
CN114584415A (zh) * 2022-01-24 2022-06-03 杭州博联智能科技股份有限公司 全屋智能的场景分布式实现方法、系统、装置和介质
CN114584415B (zh) * 2022-01-24 2023-11-28 杭州博联智能科技股份有限公司 全屋智能的场景分布式实现方法、系统、装置和介质
CN114740748A (zh) * 2022-04-29 2022-07-12 青岛海尔科技有限公司 智能家居场景创建方法、装置、存储介质及电子装置
CN115883274A (zh) * 2022-09-26 2023-03-31 四川启睿克科技有限公司 一种基于httpServer实现在主动智能家庭的智能互联方法
CN115883274B (zh) * 2022-09-26 2024-05-14 四川启睿克科技有限公司 一种基于httpServer实现在主动智能家庭的智能互联方法

Also Published As

Publication number Publication date
CN114500137A (zh) 2022-05-13
CN110262261B (zh) 2022-01-11
CN110262261A (zh) 2019-09-20
US20210144024A1 (en) 2021-05-13

Similar Documents

Publication Publication Date Title
WO2020238385A1 (zh) 一种控制设备服务的方法、云服务器和智能家居系统
US12542874B2 (en) Methods and systems for person detection in a video feed
US12271576B2 (en) Timeline-video relationship presentation for alert events
US11721186B2 (en) Systems and methods for categorizing motion events
US12033389B2 (en) Timeline-video relationship processing for alert events
US11599259B2 (en) Methods and systems for presenting alert event indicators
US10957171B2 (en) Methods and systems for providing event alerts
US10192415B2 (en) Methods and systems for providing intelligent alerts for events
US20200211347A1 (en) Automatic detection of zones of interest in a video
US9449229B1 (en) Systems and methods for categorizing motion event candidates
US20180227620A1 (en) Camera Data Access based on Subscription Status
CN112415971A (zh) 一键控制会议室的方法、计算机设备及可读介质
US12321143B1 (en) Premises automation user recommendations
CN117406610A (zh) 一种智能家居设备联动方案推荐方法及相关装置
CN119917677A (zh) 查询结果的确定方法、装置、存储介质及电子装置
CN117234093A (zh) 家电控制系统及其家电控制方法

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: 20815398

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20815398

Country of ref document: EP

Kind code of ref document: A1