diff --git a/birbnetes.yml b/birbnetes.yml index 6bcda50..21c2ea0 100644 --- a/birbnetes.yml +++ b/birbnetes.yml @@ -210,6 +210,16 @@ components: bindingVersion: 0.1.0 payload: $ref: "#/components/schemas/controlPayload" + statusmessage: + name: statusmessage + title: Status message + summary: Status messages sent by devices to any interested parties + contentType: application/json + bindings: + mqtt: + bindingVersion: 0.1.0 + payload: + $ref: "#/components/schemas/statusPayload" schemas: wavePayload: @@ -253,7 +263,20 @@ components: sensorID: type: string format: uuid - summary: Unique ID used to identify a particular sensor on a device. + summary: Unique ID used to identify a particular sensor on a device. (May be wildcard or empty) command: type: string - enom: ["online", "offline"] \ No newline at end of file + enom: ["online", "offline"] + statusPayload: + type: object + properties: + deviceID: + type: string + format: uuid + summary: Unique ID used to identify a particular device in the system. + sensorID: + type: string + format: uuid + summary: Unique ID used to identify a particular sensor on a device. (May be wildcard or empty) + status: + type: string \ No newline at end of file