@m1kad0/hannah-proto 3.7.2 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent.d.ts +17 -0
- package/dist/agent.js +24 -0
- package/dist/descriptor.binpb +0 -0
- package/package.json +1 -1
package/dist/agent.d.ts
CHANGED
|
@@ -235,6 +235,23 @@ export interface AgentDevice {
|
|
|
235
235
|
enumValues: EnumValues | undefined;
|
|
236
236
|
/** derived from ioBroker's common.write */
|
|
237
237
|
writable: boolean;
|
|
238
|
+
/**
|
|
239
|
+
* Grouping ID for the device this state belongs to (the adapter's own
|
|
240
|
+
* `deviceId`, one path segment up from state_id) — lets Core group sibling
|
|
241
|
+
* states without guessing from state_id's path depth. Empty = adapter hasn't
|
|
242
|
+
* been updated yet; Core falls back to its own path-depth heuristic (hannah#257).
|
|
243
|
+
*/
|
|
244
|
+
deviceId: string;
|
|
245
|
+
/**
|
|
246
|
+
* Semantic role of this specific state (e.g. "on", "level", "color", "current",
|
|
247
|
+
* "expected"), resolved by the adapter from the state's ioBroker common.role —
|
|
248
|
+
* same per-state basis as device_type, not aggregated across sibling states
|
|
249
|
+
* (a thermostat's "current" and "expected" states have different roles but
|
|
250
|
+
* belong to one device). Empty = adapter hasn't been updated yet or role is
|
|
251
|
+
* unresolvable; Core falls back to its iobroker.state_names default table
|
|
252
|
+
* (hannah#256, hannah#257).
|
|
253
|
+
*/
|
|
254
|
+
canonicalKey: string;
|
|
238
255
|
}
|
|
239
256
|
export interface AgentDevice_RoomNamesEntry {
|
|
240
257
|
key: string;
|
package/dist/agent.js
CHANGED
|
@@ -1487,6 +1487,8 @@ function createBaseAgentDevice() {
|
|
|
1487
1487
|
stateType: 0,
|
|
1488
1488
|
enumValues: undefined,
|
|
1489
1489
|
writable: false,
|
|
1490
|
+
deviceId: "",
|
|
1491
|
+
canonicalKey: "",
|
|
1490
1492
|
};
|
|
1491
1493
|
}
|
|
1492
1494
|
exports.AgentDevice = {
|
|
@@ -1524,6 +1526,12 @@ exports.AgentDevice = {
|
|
|
1524
1526
|
if (message.writable !== false) {
|
|
1525
1527
|
writer.uint32(88).bool(message.writable);
|
|
1526
1528
|
}
|
|
1529
|
+
if (message.deviceId !== "") {
|
|
1530
|
+
writer.uint32(98).string(message.deviceId);
|
|
1531
|
+
}
|
|
1532
|
+
if (message.canonicalKey !== "") {
|
|
1533
|
+
writer.uint32(106).string(message.canonicalKey);
|
|
1534
|
+
}
|
|
1527
1535
|
return writer;
|
|
1528
1536
|
},
|
|
1529
1537
|
decode(input, length) {
|
|
@@ -1619,6 +1627,20 @@ exports.AgentDevice = {
|
|
|
1619
1627
|
message.writable = reader.bool();
|
|
1620
1628
|
continue;
|
|
1621
1629
|
}
|
|
1630
|
+
case 12: {
|
|
1631
|
+
if (tag !== 98) {
|
|
1632
|
+
break;
|
|
1633
|
+
}
|
|
1634
|
+
message.deviceId = reader.string();
|
|
1635
|
+
continue;
|
|
1636
|
+
}
|
|
1637
|
+
case 13: {
|
|
1638
|
+
if (tag !== 106) {
|
|
1639
|
+
break;
|
|
1640
|
+
}
|
|
1641
|
+
message.canonicalKey = reader.string();
|
|
1642
|
+
continue;
|
|
1643
|
+
}
|
|
1622
1644
|
}
|
|
1623
1645
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1624
1646
|
break;
|
|
@@ -1656,6 +1678,8 @@ exports.AgentDevice = {
|
|
|
1656
1678
|
? shared_1.EnumValues.fromPartial(object.enumValues)
|
|
1657
1679
|
: undefined;
|
|
1658
1680
|
message.writable = object.writable ?? false;
|
|
1681
|
+
message.deviceId = object.deviceId ?? "";
|
|
1682
|
+
message.canonicalKey = object.canonicalKey ?? "";
|
|
1659
1683
|
return message;
|
|
1660
1684
|
},
|
|
1661
1685
|
};
|
package/dist/descriptor.binpb
CHANGED
|
Binary file
|
package/package.json
CHANGED