aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Crute <mcrute@gmail.com>2016-08-16 21:03:34 -0700
committerMike Crute <mcrute@gmail.com>2016-08-16 21:03:34 -0700
commit7d38702cc3579c23c3fd05d1aa59322c2748f88a (patch)
tree8530a4af8c2e564411829969f0562a1ad03edc5a
parent31a86f84ea63d38e31421619a351009804f9b264 (diff)
downloadubntmfi-7d38702cc3579c23c3fd05d1aa59322c2748f88a.tar.bz2
ubntmfi-7d38702cc3579c23c3fd05d1aa59322c2748f88a.tar.xz
ubntmfi-7d38702cc3579c23c3fd05d1aa59322c2748f88a.zip
Add latest findings for protocol
-rw-r--r--inform_protocol.md27
1 files changed, 21 insertions, 6 deletions
diff --git a/inform_protocol.md b/inform_protocol.md
index 65e41bf..4338784 100644
--- a/inform_protocol.md
+++ b/inform_protocol.md
@@ -83,12 +83,28 @@ following output payloads.
83 _type: reboot 83 _type: reboot
84 datetime: rfc3339 formatted date, server time 84 datetime: rfc3339 formatted date, server time
85 device_id: device ID from mongodb 85 device_id: device ID from mongodb
86 server_time_in_utc: server time in UTC as a unix timestamp (string)
87 time: server time as unix timestamp (int)
88 _id: unknown id string (5232701de4b0457a2f2f031f)
86 89
87### Heartbeat / No-Op 90### Heartbeat / No-Op
88 _type: noop 91 _type: noop
89 interval: next checkin time in seconds (integer) 92 interval: next checkin time in seconds (integer)
90 server_time_in_utc: server time in UTC as a unix timestamp (string) 93 server_time_in_utc: server time in UTC as a unix timestamp (string)
91 94
95### Locate Mode
96This mode didn't appear to change anything. My guess is that this should
97trigger the LED to blink as it does on the Unifi devices but appears to have no
98effect, at least on the mPower devices.
99
100 _type: cmd
101 cmd: locate
102 datetime: rfc3339 formatted date, server time
103 device_id: device ID from mongodb
104 server_time_in_utc: server time in UTC as a unix timestamp (string)
105 time: server time as unix timestamp (int)
106 _id: unknown id string (5232701de4b0457a2f2f031f)
107
92### Command 108### Command
93 _type: cmd 109 _type: cmd
94 _admin: admin data object 110 _admin: admin data object
@@ -101,17 +117,16 @@ following output payloads.
101 server_time_in_utc: server time in UTC as a unix timestamp (string) 117 server_time_in_utc: server time in UTC as a unix timestamp (string)
102 time: server time as unix timestamp (int) 118 time: server time as unix timestamp (int)
103 device_id: device ID from mongodb 119 device_id: device ID from mongodb
104 cmd: command to use (mfi-output) 120 cmd: command to use (mfi-output to change outputs)
105 mac: device mac address 121 mac: device mac address
106 model: device model (Outlet for mPower) 122 model: device model (Outlet for mPower)
107 off_volt: ?? (int) 123 off_volt: always 0?? (int)
108 port: device port to update (int) 124 port: device port to update (int)
109 sId: sensor ID 125 sId: sensor ID
110 timer: ?? (int) 126 timer: always 0?? (int)
111 val: output value (int) 127 val: output value (int)
112 volt: ?? (int) 128 volt: val and volt set to 1 to turn on, 0 to turn off (int)
113 129 dimmer_ramp: always 1?? (int) (only for switch and outlet)
114 // val and volt set to 1 to turn on, 0 to turn off
115 130
116 131
117## Input Payloads 132## Input Payloads