2025-07-22 23:21:34 +02:00
|
|
|
export type VinculumPd7Device = {
|
|
|
|
client?: {
|
|
|
|
// User-defined device name
|
2025-07-23 20:24:14 +02:00
|
|
|
name?: string | null;
|
|
|
|
} | null;
|
|
|
|
id: number;
|
|
|
|
// "Model", e.g. "zb - _TZ3040_bb6xaihh - TS0202"
|
|
|
|
model?: string | null;
|
|
|
|
// "Model alias", e.g. "TS0202"
|
|
|
|
modelAlias?: string | null;
|
2025-07-24 16:34:58 +02:00
|
|
|
functionality?:
|
|
|
|
| 'appliance'
|
|
|
|
| 'climate'
|
|
|
|
| 'energy'
|
|
|
|
| 'ev_charger'
|
|
|
|
| 'lighting'
|
|
|
|
| 'media'
|
|
|
|
| 'other'
|
|
|
|
| 'power'
|
|
|
|
| 'safety'
|
|
|
|
| 'security'
|
|
|
|
| 'shading'
|
|
|
|
| string
|
|
|
|
| null;
|
2025-07-23 20:24:14 +02:00
|
|
|
services?: Record<string, VinculumPd7Service> | null;
|
2025-07-22 23:21:34 +02:00
|
|
|
type?: {
|
2025-07-23 15:34:22 +02:00
|
|
|
// User-defined device type (e.g. "sensor", "chargepoint", or "light")
|
2025-07-23 20:24:14 +02:00
|
|
|
type?: string | null;
|
2025-07-23 15:34:22 +02:00
|
|
|
// User-defined device subtype (e.g. "presence" or "car_charger")
|
2025-07-23 20:24:14 +02:00
|
|
|
subtype?: string | null;
|
|
|
|
} | null;
|
|
|
|
};
|
|
|
|
|
|
|
|
export type VinculumPd7Service = {
|
|
|
|
// Address of the service, e.g. "/rt:dev/rn:zigbee/ad:1/sv:color_ctrl/ad:3_1"
|
|
|
|
addr: string;
|
|
|
|
// Whether the service is enabled or not.
|
|
|
|
enabled?: boolean | null;
|
|
|
|
// Interfaces exposed by the service, e.g. ['cmd.meter.get_report','evt.meter.report'].
|
|
|
|
intf?: string[] | null;
|
|
|
|
// Properties of the service, e.g. ['sup_units'] or ['sup_modes','sup_setpoints','sup_temperatures'].
|
|
|
|
props?: {
|
|
|
|
[key: string]: any;
|
|
|
|
} | null;
|
2025-07-22 23:21:34 +02:00
|
|
|
};
|