| 1 |
from typing import Any |
| 2 |
|
| 3 |
A3_MESSAGE: dict[str, Any] = { |
| 4 |
"command": "EVENT_APC_STATE", |
| 5 |
"payload": { |
| 6 |
"cookerId": "anova random-id", |
| 7 |
"type": "a3", |
| 8 |
"state": { |
| 9 |
"firmwareVersion": "ver 5.5.1", |
| 10 |
"isCooking": True, |
| 11 |
"currentTemperature": 96.1, |
| 12 |
"targetTemperature": 96.1, |
| 13 |
"timerInSeconds": 840, |
| 14 |
"unit": "f", |
| 15 |
"isTimerRunning": True, |
| 16 |
"isSpeakerOn": True, |
| 17 |
"isAlarmActive": False, |
| 18 |
"currentJobID": "random_job_id", |
| 19 |
"currentJob": { |
| 20 |
"jobType": "manual_cook", |
| 21 |
"jobStage": "cooking", |
| 22 |
"targetTemperature": 96.1, |
| 23 |
"timerLength": 840, |
| 24 |
"tempUnit": "f", |
| 25 |
"thresholdTemperature": 40, |
| 26 |
"thresholdTemperatureUnit": "f", |
| 27 |
}, |
| 28 |
"isKeepingWarm": False, |
| 29 |
"isCheckingTemperatureForIceBath": False, |
| 30 |
"isMonitoringIcebath": False, |
| 31 |
"isConnected": True, |
| 32 |
}, |
| 33 |
}, |
| 34 |
} |
| 35 |
|
| 36 |
A4_MESSAGE: dict[str, Any] = { |
| 37 |
"command": "EVENT_APC_STATE", |
| 38 |
"payload": { |
| 39 |
"cookerId": "XXXXXXXX", |
| 40 |
"type": "a4", |
| 41 |
"state": { |
| 42 |
"boot-id": "43435004281963", |
| 43 |
"job": { |
| 44 |
"cook-time-seconds": 0, |
| 45 |
"id": "98827197488379", |
| 46 |
"mode": "COOK", |
| 47 |
"ota-url": "", |
| 48 |
"target-temperature": 66.11, |
| 49 |
"temperature-unit": "F", |
| 50 |
}, |
| 51 |
"job-status": { |
| 52 |
"cook-time-remaining": 0, |
| 53 |
"job-start-systick": 1553, |
| 54 |
"provisioning-pairing-code": 0, |
| 55 |
"state": "COOKING", |
| 56 |
"state-change-systick": 1553, |
| 57 |
}, |
| 58 |
"network-info": { |
| 59 |
"bssid": "XXXXXXXX", |
| 60 |
"connection-status": "connected-station", |
| 61 |
"is-provisioning": False, |
| 62 |
"mac-address": "XXXXXXXX", |
| 63 |
"mode": "station", |
| 64 |
"security-type": "WPA2", |
| 65 |
"ssid": "XXXXXXXX", |
| 66 |
}, |
| 67 |
"pin-info": { |
| 68 |
"device-safe": 0, |
| 69 |
"water-leak": 0, |
| 70 |
"water-level-critical": 0, |
| 71 |
"water-temp-too-high": 0, |
| 72 |
}, |
| 73 |
"system-info-3220": { |
| 74 |
"firmware-version": "1.4.4", |
| 75 |
"firmware-version-raw": "VM176_A_01.04.04", |
| 76 |
"largest-free-heap-size": 28008, |
| 77 |
"stack-low-level": 180, |
| 78 |
"stack-low-task": 7, |
| 79 |
"systick": 15315965, |
| 80 |
"total-free-heap-size": 28688, |
| 81 |
}, |
| 82 |
"system-info-nxp": {"version-string": "VM171_A_01.04.04"}, |
| 83 |
"temperature-info": { |
| 84 |
"heater-temperature": 66.74, |
| 85 |
"triac-temperature": 54.99, |
| 86 |
"water-temperature": 66.09, |
| 87 |
}, |
| 88 |
}, |
| 89 |
}, |
| 90 |
} |
| 91 |
|
| 92 |
A6_MESSAGE: dict[str, Any] = { |
| 93 |
"command": "EVENT_APC_STATE", |
| 94 |
"payload": { |
| 95 |
"cookerId": "a6_device", |
| 96 |
"type": "a6", |
| 97 |
"state": { |
| 98 |
"version": 1, |
| 99 |
"updatedTimestamp": "2024-06-13T03:11:31Z", |
| 100 |
"systemInfo": { |
| 101 |
"deviceId": "a6_device", |
| 102 |
"online": True, |
| 103 |
"firmwareVersion": "01.01.12", |
| 104 |
"releaseTrack": "production", |
| 105 |
"firmwareUpdatedTimestamp": "2024-05-20T04:40:01Z", |
| 106 |
"lastConnectedTimestamp": "2024-06-13T01:34:31Z", |
| 107 |
"lastDisconnectedTimestamp": "2024-06-09T13:31:09Z", |
| 108 |
"hardwareVersion": "1.0.0", |
| 109 |
"triacsFailed": False, |
| 110 |
}, |
| 111 |
"state": { |
| 112 |
"mode": "idle", |
| 113 |
"temperatureUnit": "C", |
| 114 |
"processedCommandIds": [ |
| 115 |
"cd442f58-2b8f-42bb-9e17-17d0be83005f", |
| 116 |
"7bef2615-84e6-4736-bb9e-4ed2bc94c545", |
| 117 |
"91d01cba-de6c-40b4-9562-5c8b1e500cc4", |
| 118 |
"d52e0f5b-09af-4160-860a-5c48fa08ddd5", |
| 119 |
"d00ac964-d304-4fdf-9a0d-bf175bc7dc8f", |
| 120 |
"2426cd8d-e930-4f56-8edf-19032a6fff56", |
| 121 |
"ebcf91ee-c385-4612-8fab-675d4541e57c", |
| 122 |
"e038b103-61d3-4612-b20a-d73ee1e3e5df", |
| 123 |
"526596ec-592b-4c47-bb70-a3cf9bdf75a4", |
| 124 |
"84b3af5c-c31a-477c-9160-bd64caa32851", |
| 125 |
], |
| 126 |
"resumeAfterPowerInterruption": False, |
| 127 |
}, |
| 128 |
"nodes": { |
| 129 |
"lowWater": {"warning": False, "empty": False}, |
| 130 |
"waterTemperatureSensor": { |
| 131 |
"current": {"celsius": 24.72}, |
| 132 |
"setpoint": {"celsius": 57.2}, |
| 133 |
"enabled": True, |
| 134 |
}, |
| 135 |
"timer": {"mode": "idle", "initial": 7200}, |
| 136 |
}, |
| 137 |
"metadata": {}, |
| 138 |
}, |
| 139 |
}, |
| 140 |
} |
| 141 |
|
| 142 |
A7_MESSAGE: dict[str, Any] = { |
| 143 |
"command": "EVENT_APC_STATE", |
| 144 |
"payload": { |
| 145 |
"cookerId": "a7_device", |
| 146 |
"type": "a7", |
| 147 |
"state": { |
| 148 |
"version": 1, |
| 149 |
"updatedTimestamp": "2024-06-13T03:11:47Z", |
| 150 |
"systemInfo": { |
| 151 |
"deviceId": "a7_device", |
| 152 |
"online": True, |
| 153 |
"firmwareVersion": "01.01.12", |
| 154 |
"releaseTrack": "production", |
| 155 |
"firmwareUpdatedTimestamp": "2024-05-20T04:15:07Z", |
| 156 |
"lastConnectedTimestamp": "2024-06-13T02:41:07Z", |
| 157 |
"lastDisconnectedTimestamp": "2024-05-31T05:25:50Z", |
| 158 |
"hardwareVersion": "1.0.0", |
| 159 |
"triacsFailed": False, |
| 160 |
}, |
| 161 |
"state": { |
| 162 |
"mode": "idle", |
| 163 |
"temperatureUnit": "C", |
| 164 |
"processedCommandIds": [ |
| 165 |
"7345f32f-090f-4014-935d-a46855c35ca6", |
| 166 |
"fc3e31da-ddd1-4b82-991e-7b52f767ce42", |
| 167 |
"84ae5817-76e3-4dac-96d1-0f2a49979629", |
| 168 |
"a272b1df-baed-45d1-aaa4-9ab59eb3fff5", |
| 169 |
"9aa0ae14-f32b-4a63-9258-9d86463b89a6", |
| 170 |
"06d9ea5a-d19e-453a-989c-79158c18bc6e", |
| 171 |
"eb7ed511-807e-4bc8-ac87-bc0f9c88a605", |
| 172 |
"1fc21251-f1f6-49f9-8747-533edd79a3c3", |
| 173 |
"492231e1-c3b3-4750-8e5c-df07fa539477", |
| 174 |
"47d0f847-b5f4-4072-a22a-311c4e71ebcc", |
| 175 |
], |
| 176 |
"resumeAfterPowerInterruption": False, |
| 177 |
}, |
| 178 |
"nodes": { |
| 179 |
"lowWater": {"warning": False, "empty": False}, |
| 180 |
"waterTemperatureSensor": { |
| 181 |
"current": {"celsius": 25.25}, |
| 182 |
"setpoint": {"celsius": 84.4}, |
| 183 |
"enabled": True, |
| 184 |
}, |
| 185 |
"timer": {"mode": "idle", "initial": 36000}, |
| 186 |
}, |
| 187 |
"metadata": {}, |
| 188 |
}, |
| 189 |
}, |
| 190 |
} |
| 191 |
|
| 192 |
A7_COOKING: dict[str, Any] = { |
| 193 |
"command": "EVENT_APC_STATE", |
| 194 |
"payload": { |
| 195 |
"cookerId": "a7_id", |
| 196 |
"type": "a7", |
| 197 |
"state": { |
| 198 |
"cook": { |
| 199 |
"activeStageIndex": 0, |
| 200 |
"stageTransitionPendingUserAction": False, |
| 201 |
"activeStageId": "6b70634f-ed6b-9154-6b30-05e73cec7a4e", |
| 202 |
"stages": [ |
| 203 |
{ |
| 204 |
"do": { |
| 205 |
"timer": { |
| 206 |
"entry": { |
| 207 |
"conditions": { |
| 208 |
"and": { |
| 209 |
"nodes.waterTemperatureSensor.current.celsius": { |
| 210 |
">=": 54.17, |
| 211 |
"<=": 54.77, |
| 212 |
} |
| 213 |
} |
| 214 |
} |
| 215 |
}, |
| 216 |
"initial": 0, |
| 217 |
}, |
| 218 |
"type": "cook", |
| 219 |
"waterTemperatureSensor": {"setpoint": {"celsius": 54.47}}, |
| 220 |
}, |
| 221 |
"id": "6b70634f-ed6b-9154-6b30-05e73cec7a4e", |
| 222 |
"entry": { |
| 223 |
"conditions": { |
| 224 |
"and": { |
| 225 |
"nodes.waterTemperatureSensor.current.celsius": { |
| 226 |
"<=": 54.77, |
| 227 |
">=": 54.17, |
| 228 |
} |
| 229 |
} |
| 230 |
} |
| 231 |
}, |
| 232 |
"exit": {"conditions": {}}, |
| 233 |
"title": "Cook Stage", |
| 234 |
} |
| 235 |
], |
| 236 |
"originSource": "hardware", |
| 237 |
"activeStageStartedTimestamp": "2024-07-05T21:48:29Z", |
| 238 |
"startedTimestamp": "2024-07-05T21:48:29Z", |
| 239 |
"activeStageMode": "running", |
| 240 |
"cookId": "a098de4a-8714-2dd8-1bdc-d067008f2d4f", |
| 241 |
}, |
| 242 |
"nodes": { |
| 243 |
"lowWater": {"empty": False, "warning": False}, |
| 244 |
"timer": { |
| 245 |
"mode": "running", |
| 246 |
"initial": 1200, |
| 247 |
"startedAtTimestamp": "2024-07-05T21:49:10Z", |
| 248 |
}, |
| 249 |
"waterTemperatureSensor": { |
| 250 |
"enabled": True, |
| 251 |
"setpoint": {"celsius": 54.46}, |
| 252 |
"current": {"celsius": 55.27}, |
| 253 |
}, |
| 254 |
}, |
| 255 |
"state": { |
| 256 |
"temperatureUnit": "F", |
| 257 |
"resumeAfterPowerInterruption": False, |
| 258 |
"processedCommandIds": [ |
| 259 |
"876cfbc9-03f1-400b-89ec-ef5391270846", |
| 260 |
"e2e3ce06-45b4-4485-b4fa-9211c082b90d", |
| 261 |
], |
| 262 |
"mode": "cook", |
| 263 |
}, |
| 264 |
"systemInfo": { |
| 265 |
"firmwareVersion": "01.01.25", |
| 266 |
"deviceId": "5yMOd0D2lasOE2U8SkcIcS", |
| 267 |
"lastDisconnectedTimestamp": "2024-07-05T21:47:59Z", |
| 268 |
"triacsFailed": False, |
| 269 |
"releaseTrack": "production", |
| 270 |
"hardwareVersion": "1.0.0", |
| 271 |
"lastConnectedTimestamp": "2024-07-05T21:47:59Z", |
| 272 |
"online": True, |
| 273 |
"firmwareUpdatedTimestamp": "2024-06-07T18:56:03Z", |
| 274 |
}, |
| 275 |
"metadata": {}, |
| 276 |
"updatedTimestamp": "2024-07-05T21:49:56Z", |
| 277 |
"version": 1, |
| 278 |
}, |
| 279 |
}, |
| 280 |
} |