端点
A device can have multiple sensors, functions, or channels. For example, a dimmer capable of controlling four light circuits can be said to have four distinct functions or "channels". When a user interacts with the device, they are actually interacting with one of those channels, not the entire device.
Each of these functions or channels, in Gear Studio terminology, is called an "endpoint". 端点 have the following characteristics:
- They have a unique identifier within the device.
- They have a sensor type (temperature sensor, light, energy, volume, etc.)
- They have a description used in Gear to identify the endpoint more easily.
- They have an associated sector, indicating w此处 they are installed or w此处 they operate (their location within the facility).
- Depending on the sensor type, they may have other specific characteristics.
Below are some examples of endpoints in commonly used devices.
| Device | 端点 |
|---|---|
| Temperature and humidity sensor | 端点 1: temperature端点 2: humidity |
| 2-channel dimmer | 端点 1: dimmer channel 1端点 2: dimmer channel 2 |
| Electrical consumption meter | 端点 1: active and reactive energy meter端点 2: voltage meter端点 3: current meter端点 4: active power meter端点 5: power factor meter |
| 5-in-1 sensor (example: HPA-4416) | 端点 1: temperature sensor端点 2: humidity sensor端点 3: light sensor端点 4: motion detector端点 5: door/window opening detector |
更多信息
更多信息 about device and endpoint management, see the following tutorials:
设备控制
Gear Studio 允许控制支持驱动操作的设备,例如电器、调光器、恒温器、窗帘控制器等等。
Create an endpoint
IMPORTANT: as a general rule, endpoints can only be created on devices that correspond to user-defined device models. This is because when creating devices that correspond to models built into Gear Studio, the platform automatically creates all necessary endpoints.