Equipment state processing method and device, electronic equipment, readable storage medium and program product
By obtaining the spatial dimension status of the target space in the smart home system and displaying the corresponding status objects, the problem of users having to operate multiple times to view the device status is solved, and efficient information display is achieved.
Patent Information
- Application Number
- CN202510056551.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-14
- Publication Date
- 2025-05-06
AI Technical Summary
In smart home systems, users need to perform more operations in the application to view the overall device status information of the space, resulting in low information display efficiency.
By obtaining the status of the target space in each spatial dimension, displaying the status objects corresponding to the target service type, simplifying the process of users viewing and controlling the device status.
Without the need for a large number of operations by users, you can easily and intuitively view and understand status information in various spatial dimensions, improving the efficiency of information display.
Smart Images

Figure CN119938203A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Internet of Things, and in particular to a device status processing method, apparatus, electronic device, computer-readable storage medium and computer program product. Background Art
[0002] Based on technologies such as the Internet of Things and artificial intelligence, various devices in the space can be connected, and intelligent control of various devices and automated application of smart scenes can be realized. For example, in a smart home system, smart home devices such as lamps, curtains, air conditioners, etc. in a room can be remotely viewed and controlled through a smartphone or other control device, thus realizing control and management of smart devices in the room.
[0003] With current technology, applications can provide a display of the device status of each device in the space. However, when there are a large number of devices in the space, users need to perform more operations in the application to view the overall status information of the space, resulting in low efficiency in information display. Summary of the invention
[0004] Based on this, it is necessary to provide a device status processing method, apparatus, electronic device, computer-readable storage medium and computer program product to address the above technical issues.
[0005] In a first aspect, the present application provides a device status processing method, comprising:
[0006] Obtain the spatial state of the target space in each spatial dimension respectively; display the state object of the target space corresponding to the target service type according to the spatial state of the target space in each spatial dimension respectively; wherein the state object is used to display the spatial state of the target space in each spatial dimension respectively; the spatial state of the target space in the spatial dimension is obtained according to the unit state of each spatial unit corresponding to the target space in the spatial dimension, and the unit state is obtained according to the device state of each target device in the spatial unit; the target device is a device corresponding to the target service type.
[0007] In a second aspect, the present application also provides a device state processing apparatus, including:
[0008] A state acquisition module is used to obtain the spatial state of the target space in each spatial dimension;
[0009] An object display module, configured to display a state object corresponding to a target service type of the target space according to the space state of the target space in each of the space dimensions;
[0010] Among them, the status object is used to display the spatial status of the target space in each of the spatial dimensions; the spatial status of the target space in the spatial dimension is obtained according to the unit status of each spatial unit corresponding to the target space in the spatial dimension, and the unit status is obtained according to the device status of each target device in the spatial unit; the target device is a device corresponding to the target service type.
[0011] In a third aspect, the present application further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0012] Obtain the spatial state of the target space in each spatial dimension respectively; display the state object of the target space corresponding to the target service type according to the spatial state of the target space in each spatial dimension respectively; wherein the state object is used to display the spatial state of the target space in each spatial dimension respectively; the spatial state of the target space in the spatial dimension is obtained according to the unit state of each spatial unit corresponding to the target space in the spatial dimension, and the unit state is obtained according to the device state of each target device in the spatial unit; the target device is a device corresponding to the target service type.
[0013] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0014] Obtain the spatial state of the target space in each spatial dimension respectively; display the state object of the target space corresponding to the target service type according to the spatial state of the target space in each spatial dimension respectively; wherein the state object is used to display the spatial state of the target space in each spatial dimension respectively; the spatial state of the target space in the spatial dimension is obtained according to the unit state of each spatial unit corresponding to the target space in the spatial dimension, and the unit state is obtained according to the device state of each target device in the spatial unit; the target device is a device corresponding to the target service type.
[0015] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0016] Obtain the spatial state of the target space in each spatial dimension respectively; display the state object of the target space corresponding to the target service type according to the spatial state of the target space in each spatial dimension respectively; wherein the state object is used to display the spatial state of the target space in each spatial dimension respectively; the spatial state of the target space in the spatial dimension is obtained according to the unit state of each spatial unit corresponding to the target space in the spatial dimension, and the unit state is obtained according to the device state of each target device in the spatial unit; the target device is a device corresponding to the target service type.
[0017] The above-mentioned device status processing method, apparatus, electronic device, computer-readable storage medium and computer program product obtain the spatial status of the target space in each spatial dimension respectively, and display the status object corresponding to the target service type of the target space according to the spatial status of the target space in each spatial dimension respectively. Among them, the status object is used to display the spatial status of the target space in each spatial dimension respectively, and the spatial status can be obtained according to the unit status of each spatial unit corresponding to the target space in the corresponding spatial dimension, and the unit status can be obtained according to the device status of each target device corresponding to the target service type in the corresponding spatial unit. As a result, the spatial status of the target space in each spatial dimension can be directly displayed in the application according to the target service type with the corresponding status object, and the user can conveniently and intuitively view and understand the status information in various spatial dimensions without performing more operations in the application, thereby improving the efficiency of information display. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 An application environment diagram of a device status processing method in an embodiment;
[0020] Figure 2 A schematic diagram of a flow chart of a method for processing device status in one embodiment;
[0021] Figure 3 is a schematic diagram of a state object in one embodiment;
[0022] Figure 4 is a schematic diagram of a state object in another embodiment;
[0023] Figure 5A schematic flow chart of the steps of obtaining the spatial state of a target space in one embodiment;
[0024] Figure 6 is a schematic diagram of a status page in one embodiment;
[0025] Figure 7 is a schematic diagram of a status page in another embodiment;
[0026] Figure 8 is a schematic diagram of a state object in yet another embodiment;
[0027] Fig. 9 is a structural block diagram of a device status processing apparatus in one embodiment;
[0028] Fig.10 FIG. 4 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0030] The device status processing method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown, the application environment can be a smart home system, which can include: cloud / cloud servers, routers, gateways, user terminals (such as mobile phones, tablets), multiple devices (such as smart lamps, smart curtains, smart speakers, smart TVs, smart sockets, smart air conditioners, sensors, switches, smart door locks, control devices), etc. In the smart home system, each device can be connected to the gateway through the ZIGBEE / Bluetooth / matter network, and the gateway and user terminal can be connected to the router through WiFi respectively. In addition, the user terminal can also establish a network connection with the cloud / cloud server through 2G / 3G / 4G / 5G, WiFi, etc., so that it can obtain data sent by the cloud / cloud server.
[0031] For the smart home system, the system configuration method can be: the corresponding application is installed on the user terminal, and at least one gateway device can be added to the application first. When adding other devices (such as smart lamps), you can click the add device button in the application interface and select the gateway device that the device needs to access in the add interface. The device can be added to the network corresponding to the gateway, and then form a local area network with other added devices and gateways, such as ZigBee network, Matter network, Bluetooth network, WIFI network, etc. When the application and the router and gateway are in the same local area network, the application can interact with the gateway and the devices connected to the gateway through the local area network path; when the application and the router and gateway are not in the same local area network, the application can interact with the gateway and the devices connected to the gateway through the wide area network path.
[0032] like Figure 1 The smart home system shown may include various smart home devices. In the smart home application, the user may want to quickly understand the current switch status, device status and other information of the whole house or a room. After processing, the application will be exited, so the efficiency of information search and control is required to be high. However, in the current technology, the smart home application can provide a display of the device status of each smart home device, which cannot meet the user's needs for comprehensive understanding of the overall family information and quick control. It requires the user to view and control each device separately. When there are many devices in the room, it is very inconvenient and cumbersome to find and control the device, and there is a problem of low information display efficiency.
[0033] In this regard, the method provided in the present application can directly display the spatial status of the target space in each spatial dimension with corresponding status objects according to the target service type in the application. The user can conveniently and intuitively view and understand the status information in various spatial dimensions without having to perform many operations in the application, thereby improving the efficiency of information display.
[0034] The method of the present application is described in detail below in conjunction with various embodiments and corresponding drawings.
[0035] In an exemplary embodiment, Figure 2 As shown, a device status processing method is provided, which can be applied to Figure 1 The user terminal in the embodiment can also be applied to smart home devices, servers, etc. The method may include the following steps:
[0036] Step S201, obtaining the spatial state of the target space in each spatial dimension.
[0037] Among them, the target space can be a space for placing various devices. The target space can be placed with a variety of devices. The target space can have one or more spatial dimensions, and the spatial dimensions of the target space can be determined by spatial attributes such as the spatial hierarchy and spatial structure of the target space. Taking the whole house as the target space as an example, the spatial dimensions of the whole house can include the whole house dimension, the floor dimension and the room dimension, wherein the room dimension can also be divided into the room area dimension in the room, etc. In actual applications, the various spatial dimensions of the target space can be set by the user according to the target space in combination with its actual needs.
[0038] In this step, the spatial state of the target space in each spatial dimension can be obtained, wherein the spatial state refers to the overall state of the target space in the spatial dimension, such as how many lights are on.
[0039] Step S202, according to the spatial state of the target space in each spatial dimension, the state object corresponding to the target service type of the target space is displayed. The state object is used to display the spatial state of the target space in each spatial dimension; the spatial state of the target space in the spatial dimension is obtained according to the unit state of each spatial unit corresponding to the target space in the spatial dimension, and the unit state is obtained according to the device state of each target device in the spatial unit; the target device is the device corresponding to the target service type.
[0040] In this step, after obtaining the spatial state of the target space in each spatial dimension, the state object corresponding to the target service type of the target space can be displayed in the page of the application according to the spatial state of the target space in each spatial dimension. Among them, the spatial state of the target space in each spatial dimension can be displayed by a state object corresponding to the target service type, and the spatial state of the target space in each spatial dimension can also be displayed by multiple state objects corresponding to the target service type. Among them, the target service type can represent the service type that needs to provide status display. As an example, the service type can be lighting, heating and cooling, environmental monitoring, security alarm, shading, etc. The target service type can also be set by the user.
[0041] The status object can be used to display the spatial status of the target space in each spatial dimension in the application page. The status object can be displayed in the application page in the form of a card containing information such as the spatial status, thereby displaying the spatial status of the target space in each spatial dimension.
[0042] The spatial state of the target space in the spatial dimension can be obtained according to the unit state of each spatial unit corresponding to the target space in the spatial dimension. The target space can correspond to one or more spatial units in a spatial dimension. For example, the spatial unit of the whole house in the whole house dimension is the whole house, the spatial unit of the whole house in the floor dimension is each floor, and the spatial unit of the whole house in the room dimension is each room. Therefore, the unit state of a spatial unit refers to the state of the spatial unit as a whole, such as the state of the whole floor, the state of the whole room, and so on.
[0043] The unit state of the space unit may be based on the device state of each target device in the space unit. The target device refers to the device corresponding to the target service type in the target space, such as the target service type of lighting, where the lamp can be used as the target device, such as the target service type of security alarm, where the camera can be used as the target device, etc. The device state of the target device may include the state of various device parameters of the target device, etc.
[0044] like Figure 3 and 4 In the example, the whole house is used as the target space, the spatial dimensions include the whole house and the room, and the target service type is lighting. Various styles of service cards are displayed as status objects to display the spatial status of the whole house in each spatial dimension. As a result, the status object corresponding to the target service type of the target space can be displayed in the page of the application to display the spatial status of the target space in each spatial dimension. The user can conveniently and intuitively view and understand the status information in various spatial dimensions without having to perform more operations in the application, thereby improving the efficiency of information display.
[0045] The device status processing method of this embodiment obtains the spatial status of the target space in each spatial dimension, and displays the status object of the target space corresponding to the target service type according to the spatial status of the target space in each spatial dimension. Among them, the status object is used to display the spatial status of the target space in each spatial dimension, and the spatial status can be obtained according to the unit status of each spatial unit corresponding to the target space in the corresponding spatial dimension, and the unit status can be obtained according to the device status of each target device corresponding to the target service type in the corresponding spatial unit. As a result, the spatial status of the target space in each spatial dimension can be directly displayed in the application according to the target service type with the corresponding status object, and the user can conveniently and intuitively view and understand the status information in various spatial dimensions without performing more operations in the application, thereby improving the efficiency of information display.
[0046] In an exemplary embodiment, after displaying the state object corresponding to the target service type of the target space according to the spatial state of the target space in each spatial dimension in step S202, the method of the present application may further include the following steps:
[0047] In response to the state control instruction of the state object, the device control instruction of the target space unit is obtained. The target space unit is the space unit to which the state control instruction acts; each target device in the target space unit is controlled according to the device control instruction to obtain the device state of each target device, so that the unit state of the target space unit reaches the target state indicated by the state control instruction.
[0048] This embodiment provides a scheme for controlling the unit state of a spatial unit based on a state object. In this embodiment, a user can trigger a state control instruction for a state object of a target space displayed in a page of an application. The triggering method may be a triggering operation on a state object in a page of an application, or a state control instruction on a state object triggered by voice, or a state control instruction on a state object triggered based on an automation scheme, etc. The triggering method is not limited here.
[0049] The state control instruction can be used to control the unit state of the target space unit, which is an instruction to control the state of the target space unit as a whole. The target space unit is the space unit to which the state control instruction acts, such as a specific floor, a specific room, the whole house, etc.
[0050] In this embodiment, the terminal can obtain the device control instruction of the target space unit in response to the state control instruction of the state object. Among them, the device control instruction refers to the instruction for controlling each target device in the target space unit, and the device control instruction can be obtained according to the state control instruction. The state control instruction is used to indicate the target state that the unit state of the target space unit needs to reach, so that the corresponding device control instruction can be obtained according to the state control instruction. According to the device control instruction, each target device in the target space unit can be controlled, and the device state of each target device can be obtained after the control, so that the unit state of the target space unit reaches the target state indicated by the state control instruction, that is, the overall state of the target space unit reaches the required target state by controlling the device state of each target device. As an example, the state control instruction can be used to indicate that the brightness and color temperature of the lamps on the target floor reach the specified value, then according to the state control instruction, the device control instruction for each lamp in the target floor can be obtained, and the device control instruction can be used to indicate that the brightness and color temperature reach the specified value, and each lamp executes the same device control instruction, so that the target floor is in a state where the brightness and color temperature of the lamp reach the specified value, and so on.
[0051] The solution of this embodiment can trigger the state control instructions for the state object in a variety of ways, obtain the device control instructions of the target space unit according to the state control instructions, and control each target device in the target space unit through the device control instructions, so that the target space unit reaches the target state indicated by the state control instructions, thereby realizing convenient control of the overall state of the target space unit.
[0052] In an exemplary embodiment, the state control instruction may include a target scenario instruction; the above-mentioned obtaining the device control instruction of the target space unit in response to the state control instruction of the state object may include: obtaining the device control instruction according to the space unit type of the target space unit in response to the target scenario instruction of the state object; the above-mentioned controlling each target device in the target space unit according to the device control instruction to obtain the device state of each target device so that the unit state of the target space unit reaches the target state indicated by the state control instruction may include: controlling each target device in a control manner corresponding to the space unit type according to the device control instruction to obtain the device state of each target device so that the unit state of the target space unit reaches the target state indicated by the target scenario instruction in a manner adapted to the change of the space unit type.
[0053] In this embodiment, the target scenario instruction can be triggered for the state object, so that the unit state of the target space unit reaches the target state indicated by the target scenario instruction in a way that adapts to the change of the space unit type. That is, the target scenario instruction can be executed in combination with the difference in the space unit type of the target space unit, so that the control of the target space unit based on the target scenario instruction is more in line with the use requirements, usage habits, etc. of the target space unit, improving the flexibility and scene adaptability of the space state control, and also realizing the differentiated control of space units of different space unit types.
[0054] Among them, the target scenario instruction can be a state control instruction under the AI scenario mode, and a variety of scenario instructions can be pre-configured, so that one or more scenario instructions can be selected as the target scenario instruction. The control of the target scenario instruction may be different for different spatial unit types of target spatial units. Among them, the spatial unit type is used to indicate the type of spatial unit, and the spatial unit can be classified according to the user's usage scenario, such as the spatial unit can be divided into bedrooms, living rooms, etc. The AI logic strategies of various scenario instructions can be pre-configured for different spatial unit types, which are used to form device control instructions based on the target scenario instructions combined with the spatial unit type.
[0055] Therefore, in this embodiment, the terminal can respond to the target scenario instruction for the state object, obtain the device control instruction according to the space unit type of the target space unit, control each target device in a control manner corresponding to the space unit type according to the device control instruction, and obtain the device state of each target device, so that the unit state of the target space unit reaches the target state indicated by the target scenario instruction in a change manner adapted to the space unit type. Among them, as described above, the same target scenario instruction can control each target device in a control manner corresponding to the space unit type with different device control instructions under different space unit types, and the device control instruction can be obtained according to the pre-configured AI logic strategy for configuring various scenario instructions for different space unit types. Therefore, based on the corresponding device control instruction, the unit state of the target space unit can reach the target state indicated by the target scenario instruction in a change manner adapted to the space unit type. As an example, taking the good night scenario commands for the bedroom and the living room as an example, the device control command corresponding to the good night scenario command for the bedroom can be to adjust the on lamps to the specified brightness: 10%, the specified color temperature: 3000k, and turn off all lamps after a delay of 5 minutes; the device control command corresponding to the good night scenario command for the living room can be to turn off all lamps, and if there is a night light, turn it off after a delay of 5 minutes, and so on.
[0056] In an exemplary embodiment, the above-mentioned obtaining a device control instruction for a target space unit in response to a state control instruction for a state object may include: obtaining a device control instruction for controlling target device parameters in response to a state control instruction for a state object; the target device parameters include one or more device parameters in a device parameter set; the device parameter set includes device parameters for each target device in the target space unit; the above-mentioned controlling each target device in the target space unit according to the device control instruction includes: sending a device control instruction for controlling the target device parameters to each target device in the target space unit; wherein the device control instruction is used to control a target device having at least one target device parameter.
[0057] The solution of this embodiment can generate a corresponding device control instruction according to the state control instruction and control each target device in the target space unit so that the unit state of the target space unit reaches the target state indicated by the state control instruction.
[0058] In this embodiment, the terminal can obtain a device control instruction for controlling the target device parameter in response to the state control instruction of the state object. The target device parameter may include one or more device parameters in a device parameter set, and the device parameter set includes the device parameters of each target device in the target space unit. That is, the device parameters of each target device in the target space unit can be first obtained to form a device parameter set, and then the device control instruction for controlling one or more device parameters in the device parameter set can be obtained according to the state control instruction and the device parameter set. Taking the lamps in the room as an example, the device parameters of the first lamp may include brightness and color temperature, and the device parameters of the second lamp may include brightness, so that the device parameter set is brightness and color temperature. For example, for a state control instruction for adjusting the brightness to a specified value, a device control instruction for controlling the brightness can be obtained; for example, for a state control instruction for adjusting the brightness to a specified value and the color temperature to a specified value, a device control instruction for controlling the brightness and the color temperature can be obtained.
[0059] Thus, the terminal can send a device control instruction for controlling the target device parameter to each target device in the target space unit to control the target device having the at least one target device parameter. That is, each target device in the target space unit will execute the same device control instruction. As in the above example, for a state control instruction such as adjusting the brightness to a specified value, a device control instruction for controlling the brightness can be obtained, and both the first lamp and the second lamp execute the device control instruction; for a state control instruction such as adjusting the brightness to a specified value, a device control instruction for controlling the brightness can be obtained, and both the first lamp and the second lamp execute the device control instruction. Among them, for example, the second lamp may lack the device parameter of color temperature, and the second lamp can skip the control of color temperature in the device control instruction and execute the control of brightness in the device control instruction.
[0060] The solution of this embodiment can send a unified device control instruction to each target device in the target space unit for control based on the state control instruction combined with the device parameter set of the target space unit, thereby improving control efficiency.
[0061] In an exemplary embodiment, Figure 5 As shown, the acquisition of the spatial state of the target space in each spatial dimension in step S201 may include the following steps:
[0062] Step S501, obtaining the spatial position of each target device having a target device type in the target space, and obtaining the device status of each target device. The target device type is a device type corresponding to the target service type.
[0063] In this step, the terminal can obtain the spatial position of each target device with the target device type in the target space, and obtain the device status of each target device. The target device type refers to the device type corresponding to the target service type, which is used to indicate that the device with the target device type can provide the service of the target service type, such as the target service type of lighting, then the target device type can be a lighting type, etc. The spatial position is the position of the target device in the target space, such as a living room, a room, a first floor, etc.
[0064] Step S502, acquiring the unit status of the space unit according to the spatial position, the ownership relationship of the space unit and the device status.
[0065] Step S503, obtaining the spatial state of the target space in each spatial dimension according to the unit state of each spatial unit.
[0066] In the above steps S502 and S503, the unit state of each spatial unit can be summarized according to the device state of each target device and the attribution relationship between the spatial position of each target device and the spatial unit of each spatial dimension in the target space. Among them, the attribution relationship may include whether the spatial position belongs to the spatial unit of the spatial dimension, etc. As an example, the whole house can have three spatial dimensions: whole house, floor and room, among which the hierarchical relationship can be whole house-floor-room, so that a device located in a room on the first floor can belong to the spatial unit of the room on the first floor, also to the spatial unit on the first floor, and also to the spatial unit of the whole house. By analogy, the unit state of the spatial unit of each spatial dimension in the target space can be obtained, and thus the spatial state of the target space in each spatial dimension can be obtained.
[0067] The solution of this embodiment can obtain the spatial state of the target space in each spatial dimension according to the device state of each device in the target space and the belonging relationship between the device and the spatial unit of the spatial dimension.
[0068] In an exemplary embodiment, obtaining the spatial position of each target device having the target device type in the target space in step S501 may include:
[0069] Obtain a device identification of the target device; determine the spatial position of the target device in the target space according to the device identification and the device position information in the device configuration information.
[0070] In this embodiment, the spatial position of the target device in the target space can be accurately determined by the device identification of the target device and the device location information in the device configuration information. Among them, the device identification can be used to uniquely identify the target device in the target space. The device configuration information can be the device configuration information obtained after the device is installed in the target space and the configuration is completed, and the device configuration information can include the device identification assigned to the target device. Among them, the device configuration information can also include device location information, and the device location information can be provided by the user when configuring the target device. The device location information can be used to identify the location of the target device in the target space, and the device location information can be associated and bound with the device identification of the target device in the device configuration information. Thus, the spatial position of the target device in the target space can be determined based on the device identification and the device location information in the device configuration information.
[0071] In an exemplary embodiment, obtaining the spatial position of each target device having the target device type in the target space and obtaining the device status of each target device in step S501 may include:
[0072] In response to the change information of the target devices in the target space, the spatial position and device status of each target device after the change are acquired.
[0073] In this embodiment, the target devices in the target space may change, such as adding or deleting target devices. Changing the target devices in the target space may generate target device change information, such as the addition or deletion of target devices, which may be obtained when the device status is reported. In response to the target device change information in the target space, the terminal may obtain the spatial position and device status of each target device after the change.
[0074] Therefore, the solution of this embodiment can adapt to changes such as addition and deletion of target devices, and can automatically include or remove them from the scope of one or more spatial units, greatly reducing editing costs, and can realize automatic management and control of target devices, thereby improving flexibility and scalability.
[0075] In an exemplary embodiment, displaying the state object corresponding to the target service type of the target space in step S202 may include: displaying a first state object. The first state object is a state object having a first display style; the first display style is used to display general information of the spatial state of the target space. After displaying the first state object, the method of the present application may further include: obtaining a state control instruction in response to a first operation triggered on the first state object.
[0076] In this embodiment, a first state object may be displayed in the page of the application program. The first state object is a state object having a first display style. The first display style may be used to display general information of the space state of the target space. Figure 3 3 shows three first state objects with the first display style (style 1) in the whole house lighting. The first state object can display the general information of the space state of the whole house, which can be 3 rooms are on, all lights are off, or there is no lighting equipment, etc. Figure 4 The figure shows three first state objects with the first display style (style one) in the living room lighting. The first state object can display the general information of the spatial status of the living room, which can be three lights on, all lights off, no lighting equipment, etc.
[0077] This makes it very convenient for users to intuitively view the overview information of the spatial state of the target space. Based on this, the terminal can respond to the first operation such as clicking, long pressing, etc. triggered by the first state object to obtain the state control instruction, so that users can issue the state control instruction by directly triggering the first state object to control the switch of the lamps in the whole house, for example.
[0078] In an exemplary embodiment, after displaying the first state object in the above embodiment, the method of the present application may further include:
[0079] In response to a second operation triggered on the first status object, a space status page of the target space is displayed; the space status page displays the unit status objects of each space unit; the unit status objects are used to display the unit status of the space unit; the unit status objects contain the state control components of each space unit; in response to a third operation triggered on the state control components, a state control instruction is obtained.
[0080] In this embodiment, a second operation such as clicking or long pressing the first state object can be triggered to enter the space state page of the target space. The space state page can display the unit state object of each space unit, corresponding to the state object of the target space, and the unit state object can be used to display the unit state of the space unit. Figure 3 As shown in FIG. 4, a second operation such as clicking or long pressing may be triggered on a first state object having a first display style (style 1), and the terminal may display the following Figure 6 Or the space status page of the target space shown in 7. The space status page may display unit status objects of space units such as the living room, and each unit status object may display the unit status of the corresponding space unit such as the living room, for example, two lights are on, etc. The unit status object may include a state control component of each space unit, and the state control component may be used to control the unit status of the corresponding space unit. Figure 6 and 7 As shown, the unit state object may include a control bar for the brightness of the living room lighting, a control button for the brightness, a control button for the color temperature, etc. Thus, the terminal may obtain a state control instruction in response to a third operation such as a click or a long press triggered on the state control component.
[0081] The solution of this embodiment can facilitate the user to enter the space status page of the target space through the first status object, and can view the unit status of the space unit on this page and issue status control instructions with the help of the corresponding unit status object.
[0082] In an exemplary embodiment, the status object corresponding to the target service type of the display target space in step S202 may include: displaying a second status object; the second status object is a status object with a second display style; the second display style is used to display the summary information of the unit status of each spatial unit; the second status object includes a status control component of each spatial unit; after displaying the second status object, the method of the present application may further include: obtaining a status control instruction in response to a third operation triggered on the status control component.
[0083] In this embodiment, a second state object may be displayed in the application page. The second state object is a state object with a second display style. The second display style may be used to display the overview information of the unit state of each spatial unit. The second state object may include a state control component of each spatial unit. Figure 3 and 4 The figure shows a plurality of second state objects with a second display style (style two) in the whole house lighting and the living room lighting. The second display style can be used to display general information of the unit status of, for example, the living room, such as how many lights are on, etc. The second state object can include, for example, the status control components of the living room, such as a brightness control bar, a switch button, a brightness control button, a color temperature control button, etc. of the living room.
[0084] This makes it very convenient for users to intuitively view the summary information of the unit status of each spatial unit in the target space, and can obtain state control instructions by triggering a third operation such as clicking, long pressing, etc. on the state control component of the spatial unit contained in the second state object. This makes it convenient for users to issue state control instructions directly on the second state object to control the switching of lamps in the living room, for example.
[0085] In an exemplary embodiment, after displaying the second state object, the method of the present application may further include:
[0086] In response to the fourth operation triggered on the second status object, the space status page of the target space is displayed; the space status page displays the unit status object of each space unit; the unit status object is used to display the unit status of the space unit; the unit status object contains the status control component of each space unit.
[0087] In this embodiment, the space status page of the target space can also be entered by triggering a fourth operation such as long pressing or clicking on the second state object. As described above, the space status page displays the unit status object of each space unit, which is used to display the unit status of the space unit and contains the state control component of each space unit. Figure 3 and 4 The second state objects of the whole house lighting and living room lighting shown in FIG. 1 and FIG. 2 can also be entered as follows: Figure 6 and 7 The space status page of the target space shown is used to view and control the unit status of the corresponding space unit.
[0088] In an exemplary embodiment, after displaying the space status page of the target space, the method of the present application may further include the following steps:
[0089] In response to the fifth operation triggered on the unit status object of the spatial unit, the unit status page of the spatial unit is displayed; the unit status page displays the state control component of the spatial unit and the device control component of each target device in the spatial unit; wherein, the state control component is used to obtain state control instructions, and the device control component is used to obtain target device control instructions for the target device.
[0090] like Figure 6 As shown, after displaying the space status page of the target space, the user can trigger a fifth operation such as clicking or long pressing on the unit status object of the space unit. For example, by clicking the unit status object of the living room, the terminal can display the unit status page of the space unit, which can display the state control component of the space unit and the device control components of each target device in the space unit. Figure 7 The page shown can also be used as a reference Figure 6 The unit status object of the space unit of the space status page of the target space shown triggers the fifth operation, that is, the page of the lighting service of a living room. The unit status page can display state control components such as control buttons for the switch lights in the living room and brightness control bars, and can also display device control components for each lighting device in the living room. Among them, the device control component can be used to obtain the target device control instruction for the corresponding target device, such as Figure 7The control card of each living room lamp shown can issue a target device control instruction by clicking, long pressing, etc. on the device control component, and can be used to individually control the corresponding target device.
[0091] The solution of this embodiment can enter the unit status page of the space unit through multiple levels of pages, and the unit status of the space unit can be controlled on this page, and the device status of each target device in the space unit can also be controlled, thereby improving the convenience and flexibility of status control.
[0092] In an exemplary embodiment, the above-mentioned displaying the space status page of the target space may include: if the target space belongs to a basic space unit, displaying the unit status page of the target space as the space status page.
[0093] The target space may correspond to a variety of space units according to the spatial dimension, including the basic space unit. The basic space unit may be the smallest space unit that the target space currently has. For example, the rooms and living rooms in the whole house may be used as its basic space unit. It should be noted that the living room and rooms may also be divided into areas to obtain smaller space units as basic space units. In this regard, if the target space belongs to the basic space unit, the terminal will display the unit status page of the target space as the space status page. Figure 7 As shown, taking the living room as the basic space unit as an example, the unit status page of the living room can be displayed as a space status page, in which status control components such as control buttons for switching lights in the living room and brightness control bars can be displayed. Device control components for each lighting device in the living room can also be displayed, so that each basic space unit can control the unit status and corresponding target devices in its unit status page.
[0094] In an exemplary embodiment, displaying the state object corresponding to the target service type of the target space according to the spatial state of the target space in each spatial dimension in step S202 may include:
[0095] According to the space security status of the target space, the security status object corresponding to the security service type of the target space is displayed. The space security status is obtained according to the device security status of each security device in the target space.
[0096] In this embodiment, the security status of the target space can be displayed through the security status object corresponding to the security service type of the target space, which is convenient for users to view the security status of the target space and can also ensure the safety of the target space. Figure 8A security status object with the whole house as the target space is shown in . Among them, the security status object can be used to display the spatial security status of the target space, and the spatial security status can be obtained according to the device security status of each security device in the target space. Among them, the security equipment may include cameras, door locks, human sensors, water immersion sensors, etc., and the corresponding device security status may include whether it is in the armed state, whether it is offline, whether a stranger is detected, whether a user unlocks the door, whether someone falls, etc. Therefore, the spatial security status of the target space can be displayed through the security status object.
[0097] In an exemplary embodiment, the security status object may include a first security status object; the first security status object may display the operating status information of each security device in the target space. And / or, the security status object may include a second security status object and a third security status object; the second security status object may be used to display the security event information of the target space unit corresponding to the target space dimension; the third security status object is used to display the security log information of the target space unit; the second security status object and / or the third security status object include a unit selection component for selecting the target space unit.
[0098] In this embodiment, the security status object may include a first security status object. The first security status object may display the operating status information of each security device in the target space, such as Figure 8 Among the security status objects shown, the first security status object can display whether and how many security devices in the whole house are offline, deployed, and other operating status information, so that users can have an overview of the operating status information of each security device in the target space.
[0099] In this embodiment, the security status object may include a second security status object and a third security status object. Among them, the second security status object can be used to display the security event information of the target space unit corresponding to the target space dimension of the target space. Among them, the target space unit corresponding to the target space dimension can be a space unit equipped with security equipment, and one or more security equipment can be arranged in each space unit, so that the second security status object can be used to display the security event information of the space unit corresponding to each space dimension in the target space in a targeted and comprehensive manner, such as displaying the real-time picture of the camera of each space unit, the alarm events occurring at each time point of the day, the equipment abnormality, the operation log and other security event information. Among them, the third security status object can be used to display the security log information of the target space unit, such as user 01 clearing the alarm, the sensor triggering the alarm (processed), etc. This can facilitate users to understand and view the security events of each space unit and the security processing done in a targeted and comprehensive manner.
[0100] The second security status object and / or the third security status object may include a unit selection component for selecting a target space unit. The unit selection component may be used to filter out security event information and security log information of the target space unit for display, and may exclude the influence of information display of other space units, so that users can specifically understand and view the security events of the target space unit and the security processing performed, etc.
[0101] As an application example, take the smart home scene as an example and comprehensive Figure 3 and 4 , Figures 6 to 8 The device status processing method of the present application is described.
[0102] This application example can provide service cards for the whole house as status objects. According to the service type, it can include lighting cards, heating and cooling cards, environmental monitoring cards, security alarm cards, sunshade cards, etc. Each type can provide cards for the whole house and each room. Its main functions can include an overview of the space status of the whole house and control instructions.
[0103] Taking lighting services as an example, the service card can provide:
[0104] 1. Status information overview: You can check how many devices are currently in each room of the house and what the switch status is. In the lighting service, two service cards can be added to the dashboard, one is the whole house lighting card, and the other is the room lighting card. Each room with lighting equipment can have a card. The whole house lighting card will show how many lights there are in the whole house and how many rooms are lit; the room lighting card will show how many lights there are in the current room and how many lights are turned on.
[0105] 2. Control instructions: 1) Full off / full on / AI light on in the whole house dimension (AI light on means that the corresponding light can be turned on based on the user's habits. For example, the user's usage habits can be intelligently recorded based on AI data. If a certain light in the whole house or the room is rarely turned on in the historical device log, it will not be turned on when the AI light is turned on. If the user always turns it on manually again after execution, it is possible that it will be turned on when the light is turned on later). 2) In the dimension of each room, in addition to full off / full on / AI light on, you can also perform refined control, including: brightness adjustment bar, AI instructions, AI light scene mode instructions, all of which will be issued based on the room, and all lights in the room will execute the same instruction. Among them, the light parameter adjustment can provide adjustment based on the light on to meet the needs of different usage scenarios. Among them, the system preset AI scene mode instructions, the instructions can be differentiated according to the type of room, and can be configured in the management background as an AI logic strategy. For example, the goodnight scene in the bedroom and the goodnight scene in the living room, due to the differences in the characteristics of the room, the scene mode instructions issued may be different. Among them, the good night scene in the bedroom can be that the lighting devices are turned on and adjusted to the specified brightness: 10%, the specified color temperature: about 3000k (devices without color temperature control capabilities can skip this item, and the color temperature value can be slightly fluctuated up and down if there is a difference in the granularity of adjustment), and then all lights are turned off after a delay of 5 minutes; the good night scene in the living room can be to turn off all lights directly, and if there is a night light, the night light will be turned off after a delay of 5 minutes.
[0106] The AI control instructions and scenario modes can also provide dimming intelligent control algorithms based on the type of lighting equipment in the space. Different types of lighting equipment can have different control methods. For example, lighting equipment types include ceiling lights, ordinary brightness and color temperature light strips, fantasy light strips, downlights, etc., which can include different parameter adjustment strategies, and no user configuration is required. Among them, instructions can include AI turning on lights (turning on corresponding lights based on user habits), brightening (adjusting to a suitable brighter brightness based on user habits), dimming (adjusting to a darker brightness based on user habits), warming (adjusting to a warmer light based on user habits), cooling (adjusting to a colder light based on user habits), etc. The dimming intelligent scenarios in the room can include dim light scenarios, refreshing scenarios, bright scenarios, all lights on, all lights off, etc.
[0107] In the whole house lighting card, you can check how many rooms in the current home are lit (for example, if there is at least one light device on in each room, it means that the room is lit), you can issue status control instructions for the whole house, or you can control each room in the house separately. The room lighting card can be a card for a single room, showing how many lights are on in the room, and you can control all the lights in the room in a unified way.
[0108] In the security alarm service: In the security guard function card, you can check how many security alarm devices are currently deployed and how many devices are offline in each space of the whole house. This can prompt users to operate the offline security alarm devices as soon as possible to restore them online, etc. In the function cards such as today's events and security logs, you can display the current security events and logs of each space in the whole house, and you can switch to view the situation of the whole house / a certain floor / a certain room through the filter.
[0109] In terms of implementation, the background preset rules can be established first: in the system background preset rules, the state mapping relationship between space and equipment and the conversion relationship between equipment status and instructions are established to form a space object model. The space object model can manage the status of all devices in the space in a unified manner and assign a unique identifier to each device. The space to which the device belongs can be confirmed by the unique identifier of the device. When the device reports the status or receives the issued instruction, the system confirms the space to which the device belongs and the device to which the instruction is sent through the unique identifier of the device, so as to achieve accurate device control. Then the status report and instruction issuance can be carried out: the status report and instruction issuance in the space can be carried out in the form of the space object model dimension, rather than for each single device in this space. When the device status changes, the status information can be reported according to the rules of the space object model, and the device status in the space can be updated. When issuing the status control instruction, the status control instruction can be converted into the device control command of the corresponding device according to the requirements of the status control instruction, and the device control command can be sent to each device through the intelligent gateway device.
[0110] For example, if any light device in the space is turned on, the space is considered "lights on", and if all lights are turned off, the space is considered "lights off". When issuing status control instructions, you can turn on all lights, and all lights in the room will be turned on. If not every device in the space has the same function, you can handle it as a collection of functions. For example, if you turn on the lights to a specified brightness and color temperature, all lights in the room will be turned on to the specified brightness and color temperature. If there is a light that does not support color temperature adjustment but only supports brightness adjustment, then only the brightness of this light can be adjusted.
[0111] For data processing flow: the backend server can receive the status information reported by the device, perform status conversion and judgment according to the space object model, update the status of the device in the space, and update it in the service card on the application page. At the same time, according to the needs of the status control instruction, the status control instruction can be converted into the corresponding device control command, and the device control command can be sent to each device through the intelligent gateway device to realize remote control of the device.
[0112] The state of the space is usually obtained through a comprehensive judgment of the state of the equipment. Taking the whole house lighting as an example, the system can determine the state of the entire space by judging the state information of each lamp in the space object model. The judgment rules are set according to the actual situation. In different states, the state of the space can be judged based on the state information of the equipment, such as switch state, brightness and other attributes. In this way, users can control and manage the space accordingly according to the state of the space and realize comprehensive control of the entire space.
[0113] As an example, suppose there are four lamps in a space, which are identified as lamp 1, lamp 2, lamp 3 and lamp 4. The state mapping table in the space object model can record the state information of each lamp. In the space, if the switch state of lamp 1, lamp 2 and lamp 4 is on, and the switch state of lamp 3 is off, then the state transformation and judgment can be performed according to the space object model, and the following state can be obtained: "There are 3 lights on", which is a space state. If the state control instruction of "turn off all lights" in this space is executed, lamp 1, lamp 2 and lamp 3 will all be turned off, and the space state can be updated to the state of "all lights are off". In addition, the current space state can be determined as "bright" when there are many lights on and the brightness value reaches a certain threshold. If the state of any lighting device changes, the space state can be updated again.
[0114] Therefore, the solution of this application example is based on the device status information presentation and overall quick control of the spatial object model, which can realize fast and overall control of multiple devices, monitor and update the device status changes in real time, ensure the execution effect of multiple instructions issued at the same time, and improve the convenience and efficiency of use. The device status information can be monitored and updated in real time through the spatial object model. When the status of the device changes, the system can timely update the information on the overview and control interface to ensure that the user obtains the latest device status, and can also more intuitively match the actual needs of the user. Among them, when a new device is added or an old device is removed, it can be automatically included in the same space or the whole house when the space (device) status is reported next time, realizing automatic management and control of the device, and improving its flexibility and scalability. Compared with the traditional group control solution, it does not need to edit and add the new device of the same type to the group after it is connected to the network, but can be directly included in the same space or the whole house. The scope is more flexible and more adaptable to changes in device additions and deletions, greatly reducing editing costs. In the control of the space (equipment) status, AI algorithm control instructions with spatial dimensions can also be used to provide personalized equipment control functions based on user habits and needs. Users no longer need to make complex configurations of automated action instructions for each space separately, thereby improving convenience.
[0115] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0116] Based on the same inventive concept, the embodiment of the present application also provides a device state processing device for implementing the device state processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more device state processing device embodiments provided below can refer to the limitations of the device state processing method above, and will not be repeated here.
[0117] In an exemplary embodiment, Fig. 9 As shown, a device state processing device is provided, and the device 900 may include:
[0118] The state acquisition module 901 is used to acquire the spatial state of the target space in each spatial dimension;
[0119] An object display module 902, configured to display a state object corresponding to a target service type of the target space according to the space state of the target space in each of the space dimensions;
[0120] Among them, the status object is used to display the spatial status of the target space in each of the spatial dimensions; the spatial status of the target space in the spatial dimension is obtained according to the unit status of each spatial unit corresponding to the target space in the spatial dimension, and the unit status is obtained according to the device status of each target device in the spatial unit; the target device is a device corresponding to the target service type.
[0121] In an exemplary embodiment, the device 900 may also include: a state control module, used to obtain a device control instruction of the target space unit in response to a state control instruction of the state object; the target space unit is the space unit acted upon by the state control instruction; each of the target devices in the target space unit is controlled according to the device control instruction to obtain the device state of each of the target devices, so that the unit state of the target space unit reaches the target state indicated by the state control instruction.
[0122] In an exemplary embodiment, the status acquisition module 901 is used to obtain the spatial position of each target device with a target device type in the target space, and obtain the device status of each target device; the target device type is a device type corresponding to the target service type; based on the attribution relationship between the spatial position and the spatial unit and the device status, the unit status of the spatial unit is obtained; based on the unit status of each spatial unit, the spatial state of the target space in each spatial dimension is obtained.
[0123] In an exemplary embodiment, the state acquisition module 901 is used to obtain the device identification of the target device; and determine the spatial position of the target device in the target space according to the device identification and the device position information in the device configuration information.
[0124] In an exemplary embodiment, the state acquisition module 901 is used to obtain the spatial position and the device state of each target device after the change in response to the change information of the target device in the target space.
[0125] In an exemplary embodiment, the state control instruction includes a target scenario instruction; a state control module is used to respond to the target scenario instruction of the state object and obtain the device control instruction according to the spatial unit type of the target spatial unit; according to the device control instruction, each of the target devices is controlled in a control manner corresponding to the spatial unit type to obtain the device state of each target device, so that the unit state of the target spatial unit reaches the target state indicated by the target scenario instruction in a manner adapted to the change of the spatial unit type.
[0126] In an exemplary embodiment, a state control module is used to obtain the device control instruction for controlling the target device parameters in response to the state control instruction of the state object; the target device parameters include one or more device parameters in a device parameter set; the device parameter set includes the device parameters of each of the target devices in the target space unit; the device control instruction for controlling the target device parameters is sent to each of the target devices in the target space unit; wherein the device control instruction is used to control the target device having at least one of the target device parameters.
[0127] In an exemplary embodiment, the object display module 902 is used to display a first state object; the first state object is the state object having a first display style; the first display style is used to display general information of the spatial state of the target space; the object display module 902 is also used to obtain a state control instruction in response to a first operation triggered on the first state object.
[0128] In an exemplary embodiment, the object display module 902 is also used to display the space status page of the target space in response to the second operation triggered on the first status object; the space status page displays the unit status object of each of the space units; the unit status object is used to display the unit status of the space unit; the unit status object contains the state control component of each of the space units; in response to the third operation triggered on the state control component, obtain the state control instruction.
[0129] In an exemplary embodiment, the object display module 902 is used to display a second state object; the second state object is the state object with a second display style; the second display style is used to display the general information of the unit state of each of the spatial units; the second state object includes a state control component of each of the spatial units; the object display module 902 is also used to obtain a state control instruction in response to a third operation triggered on the state control component.
[0130] In an exemplary embodiment, the object display module 902 is also used to display the space status page of the target space in response to the fourth operation triggered on the second state object; the space status page displays the unit status object of each of the space units; the unit status object is used to display the unit status of the space unit; the unit status object contains the status control component of each of the space units.
[0131] In an exemplary embodiment, the object display module 902 is also used to display the unit status page of the spatial unit in response to the fifth operation triggered on the unit status object of the spatial unit; the unit status page displays the status control component of the spatial unit and the device control component of each of the target devices in the spatial unit; wherein the status control component is used to obtain status control instructions, and the device control component is used to obtain target device control instructions for the target device.
[0132] In an exemplary embodiment, the object display module 902 is further configured to display the unit status page of the target space as the space status page if the target space belongs to a basic space unit.
[0133] In an exemplary embodiment, the object display module 902 is also used to display the security status object corresponding to the security service type of the target space according to the spatial security status of the target space; the spatial security status is obtained according to the device security status of each security device in the target space.
[0134] In an exemplary embodiment, the security status object includes a first security status object; the first security status object displays the operating status information of each of the security devices in the target space; and / or the security status object includes a second security status object and a third security status object; the second security status object is used to display the security event information of the target space unit corresponding to the target space dimension of the target space; the third security status object is used to display the security log information of the target space unit; the second security status object and / or the third security status object includes a unit selection component for selecting the target space unit.
[0135] Each module in the above-mentioned device status processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in an electronic device in the form of hardware, or can be stored in a memory in an electronic device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.
[0136] In an exemplary embodiment, an electronic device is provided. The electronic device may be a terminal or a smart home device. The internal structure diagram thereof may be as follows: Fig.10As shown. The electronic device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the electronic device is used to exchange information between the processor and an external device. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (Near Field Communication, NFC) or other technologies. When the computer program is executed by the processor, a device state processing method is implemented. The display unit of the electronic device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the electronic device casing, or an external keyboard, touchpad or mouse.
[0137] Those skilled in the art will understand that Fig.10 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0138] In one embodiment, an electronic device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0139] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0140] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0141] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0142] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0143] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0144] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A device status processing method, characterized in that: The method comprises: Obtain the spatial state of the target space in each spatial dimension; Displaying a state object corresponding to a target service type of the target space according to the space state of the target space in each of the space dimensions; Among them, the status object is used to display the spatial status of the target space in each of the spatial dimensions; the spatial status of the target space in the spatial dimension is obtained according to the unit status of each spatial unit corresponding to the target space in the spatial dimension, and the unit status is obtained according to the device status of each target device in the spatial unit; the target device is a device corresponding to the target service type.
2. The method according to claim 1, characterized in that After displaying the state object corresponding to the target service type of the target space according to the spatial state of the target space in each of the spatial dimensions, the method further includes: In response to the state control instruction for the state object, a device control instruction for a target space unit is obtained; the target space unit is the space unit to which the state control instruction acts; Each of the target devices in the target space unit is controlled according to the device control instruction to obtain the device state of each of the target devices, so that the unit state of the target space unit reaches the target state indicated by the state control instruction.
3. The method according to claim 1, characterized in that The obtaining of the spatial state of the target space in each spatial dimension includes: Acquire the spatial position of each target device having a target device type in the target space, and acquire the device status of each target device; the target device type is a device type corresponding to the target service type; Acquire the unit state of the spatial unit according to the spatial position, the belonging relationship of the spatial unit and the device state; The spatial state of the target space in each of the spatial dimensions is obtained according to the unit state of each of the spatial units.
4. The method according to claim 3, characterized in that The obtaining of the spatial position of each target device having a target device type in the target space includes: Obtaining a device identification of the target device; The spatial position of the target device in the target space is determined according to the device identification and the device position information in the device configuration information.
5. The method according to claim 3, characterized in that: The step of obtaining the spatial position of each target device having a target device type in the target space and obtaining the device status of each target device includes: In response to the change information of the target devices in the target space, the space position and the device state of each target device after the change are acquired.
6. The method according to claim 2, characterized in that The state control instruction includes a target scenario instruction; the device control instruction of the target space unit is obtained in response to the state control instruction of the state object, including: In response to the target scenario instruction for the state object, obtaining the device control instruction according to the spatial unit type of the target spatial unit; The controlling each of the target devices in the target space unit according to the device control instruction to obtain the device state of each of the target devices so that the unit state of the target space unit reaches the target state indicated by the state control instruction includes: According to the device control instruction, each of the target devices is controlled in a control manner corresponding to the spatial unit type to obtain the device state of each target device, so that the unit state of the target spatial unit reaches the target state indicated by the target scenario instruction in a manner adapted to the change of the spatial unit type.
7. The method according to claim 2, characterized in that The step of obtaining a device control instruction for a target space unit in response to the state control instruction for the state object includes: In response to the state control instruction of the state object, the device control instruction for controlling the target device parameter is obtained; the target device parameter includes one or more device parameters in a device parameter set; the device parameter set includes the device parameter of each of the target devices in the target space unit; The controlling each of the target devices in the target space unit according to the device control instruction includes: The device control instruction for controlling the target device parameter is sent to each of the target devices in the target space unit; wherein the device control instruction is used to control the target device having at least one of the target device parameters.
8. The method according to claim 1, characterized in that The display of the state object corresponding to the target service type of the target space includes: Displaying a first state object; the first state object is the state object having a first display style; the first display style is used to display general information of the space state of the target space; After displaying the first state object, the method further includes: In response to a first operation triggered on the first state object, a state control instruction is obtained.
9. The method according to claim 8, characterized in that After displaying the first state object, the method further includes: In response to a second operation triggered on the first status object, a space status page of the target space is displayed; the space status page displays a unit status object of each of the space units; the unit status object is used to display the unit status of the space unit; the unit status object includes a status control component of each of the space units; In response to a third operation triggered on the state control component, a state control instruction is obtained.
10. The method according to claim 1, characterized in that The display of the state object corresponding to the target service type of the target space includes: Displaying a second state object; the second state object is the state object having a second display style; the second display style is used to display the general information of the unit state of each of the spatial units; the second state object includes a state control component of each of the spatial units; After displaying the second state object, the method further includes: In response to a third operation triggered on the state control component, a state control instruction is obtained.
11. The method according to claim 10, characterized in that After displaying the second state object, the method further includes: In response to the fourth operation triggered on the second status object, the space status page of the target space is displayed; the space status page displays the unit status object of each of the space units; the unit status object is used to display the unit status of the space unit; the unit status object contains the status control component of each of the space units.
12. The method according to claim 9 or 11, characterized in that: After displaying the space status page of the target space, the method further includes: In response to a fifth operation triggered on the unit status object of the space unit, a unit status page of the space unit is displayed; the unit status page displays the state control component of the space unit and the device control component of each of the target devices in the space unit; The state control component is used to obtain state control instructions, and the device control component is used to obtain target device control instructions for the target device.
13. The method according to claim 9 or 11, characterized in that: The space status page displaying the target space includes: If the target space belongs to a basic space unit, the unit status page of the target space is displayed as the space status page.
14. The method according to claim 1, characterized in that The displaying of the state object corresponding to the target service type of the target space according to the space state of the target space in each of the space dimensions includes: According to the spatial security status of the target space, the security status object corresponding to the security service type of the target space is displayed; the spatial security status is obtained according to the device security status of each security device in the target space.
15. The method according to claim 14, characterized in that The security status object includes a first security status object; the first security status object displays the operation status information of each of the security devices in the target space; and / or, The security status object includes a second security status object and a third security status object; the second security status object is used to display the security event information of the target space unit corresponding to the target space dimension of the target space; The third security status object is used to display the security log information of the target space unit; the second security status object and / or the third security status object includes a unit selection component for selecting the target space unit.
16. A device status processing apparatus, characterized in that: The device comprises: A state acquisition module is used to obtain the spatial state of the target space in each spatial dimension; An object display module, configured to display a state object corresponding to a target service type of the target space according to the space state of the target space in each of the space dimensions; Among them, the status object is used to display the spatial status of the target space in each of the spatial dimensions; the spatial status of the target space in the spatial dimension is obtained according to the unit status of each spatial unit corresponding to the target space in the spatial dimension, and the unit status is obtained according to the device status of each target device in the spatial unit; the target device is a device corresponding to the target service type.
17. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 15 are implemented.
18. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 15 are implemented.
19. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 15 are implemented.