forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathactions_service.proto
30 lines (24 loc) · 931 Bytes
/
actions_service.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
syntax = "proto3";
package chip.rpc;
import 'pw_protobuf_protos/common.proto';
enum ActionType {
WRITE_ATTRIBUTE = 0x00; // Write an cluster Attribute
RUN_COMMAND = 0x01; // Run a cluster Command
EMIT_EVENT = 0x02; // Emit a cluster Events
}
message Action {
ActionType type = 1; // ActionType above
uint32 delayMs = 2; // Delay and run action after xx ms
uint32 actionId = 3; // Align with Cluster Attribute/Event/Command ID
optional uint32 arg1 = 4; // 1st attribute
optional uint32 arg2 = 5; // 2nd attribute
optional uint32 arg3 = 6; // 3rd attribute
}
message ActionsRequest {
uint32 endpoint_id = 1;
uint32 cluster_id = 2;
repeated Action actions = 3; // Actions including Attribute Write / Event / Command
}
service Actions {
rpc Set(ActionsRequest) returns (pw.protobuf.Empty){}
}