homebridge-roborock-matter 2.1.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.
Files changed (59) hide show
  1. package/.gitattributes +13 -0
  2. package/CHANGELOG.md +469 -0
  3. package/LICENSE +23 -0
  4. package/README.md +45 -0
  5. package/__tests__/testdata/b01_q7_get_prop_response.json +1 -0
  6. package/__tests__/testdata/b01_q7_map_fixture.json +16 -0
  7. package/config.schema.json +118 -0
  8. package/dist/crypto.js +65 -0
  9. package/dist/crypto.js.map +1 -0
  10. package/dist/index.js +10 -0
  11. package/dist/index.js.map +1 -0
  12. package/dist/live_message.js +25 -0
  13. package/dist/live_message.js.map +1 -0
  14. package/dist/logger.js +37 -0
  15. package/dist/logger.js.map +1 -0
  16. package/dist/matter_vacuum_accessory.js +1877 -0
  17. package/dist/matter_vacuum_accessory.js.map +1 -0
  18. package/dist/platform.js +441 -0
  19. package/dist/platform.js.map +1 -0
  20. package/dist/settings.js +8 -0
  21. package/dist/settings.js.map +1 -0
  22. package/dist/types.js +3 -0
  23. package/dist/types.js.map +1 -0
  24. package/dist/ui/index.js +741 -0
  25. package/dist/ui/index.js.map +1 -0
  26. package/docs/matter-rvc-updating-homebridge-report.md +120 -0
  27. package/homebridge-roborock-vacuum.code-workspace +7 -0
  28. package/homebridge-ui/public/index.html +257 -0
  29. package/homebridge-ui/public/index.js +1276 -0
  30. package/homebridge-ui/public/styles.css +611 -0
  31. package/homebridge-ui/server.js +3 -0
  32. package/package.json +91 -0
  33. package/roborockLib/i18n/de/translations.json +188 -0
  34. package/roborockLib/i18n/en/translations.json +208 -0
  35. package/roborockLib/i18n/es/translations.json +188 -0
  36. package/roborockLib/i18n/fr/translations.json +188 -0
  37. package/roborockLib/i18n/it/translations.json +188 -0
  38. package/roborockLib/i18n/nl/translations.json +188 -0
  39. package/roborockLib/i18n/pl/translations.json +188 -0
  40. package/roborockLib/i18n/pt/translations.json +188 -0
  41. package/roborockLib/i18n/ru/translations.json +188 -0
  42. package/roborockLib/i18n/uk/translations.json +188 -0
  43. package/roborockLib/i18n/zh-cn/translations.json +188 -0
  44. package/roborockLib/lib/RRMapParser.js +459 -0
  45. package/roborockLib/lib/b01Q7Adapter.js +468 -0
  46. package/roborockLib/lib/deviceFeatures.js +1349 -0
  47. package/roborockLib/lib/localConnector.js +629 -0
  48. package/roborockLib/lib/map/map.html +137 -0
  49. package/roborockLib/lib/map/zones.js +851 -0
  50. package/roborockLib/lib/message.js +402 -0
  51. package/roborockLib/lib/messageQueueHandler.js +411 -0
  52. package/roborockLib/lib/roborockAuth.js +178 -0
  53. package/roborockLib/lib/roborockCrypto.js +55 -0
  54. package/roborockLib/lib/roborockPackageHelper.js +142 -0
  55. package/roborockLib/lib/roborock_mqtt_connector.js +567 -0
  56. package/roborockLib/lib/sniffing/mitmproxy_roborock.py +300 -0
  57. package/roborockLib/lib/vacuum.js +992 -0
  58. package/roborockLib/roborockAPI.js +3635 -0
  59. package/tsconfig.roborockLib.json +17 -0
@@ -0,0 +1,137 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <script src="zones.js"></script>
5
+ <style>
6
+ body {
7
+ display: flex;
8
+ align-items: center;
9
+ background-color: #000000;
10
+ }
11
+
12
+ #myCanvas {
13
+ border: 2px solid #4f4f4f;
14
+ box-shadow: 0px 0px 10px #333;
15
+ border-radius: 15px;
16
+ /* image-rendering: pixelated; */
17
+ }
18
+
19
+ #addButton,
20
+ #deleteButton {
21
+ display: inline-block;
22
+ width: 100px;
23
+ }
24
+ #addButton {
25
+ margin-right: 0px;
26
+ }
27
+ #deleteButton {
28
+ margin-left: 0px;
29
+ }
30
+
31
+ #startButton,
32
+ #stopButton,
33
+ #pauseButton {
34
+ display: inline-block;
35
+ width: 100px;
36
+ }
37
+ #startButton,
38
+ #pauseButton {
39
+ margin-right: 0px;
40
+ }
41
+ #stopButton {
42
+ margin-left: 0px;
43
+ }
44
+
45
+ button,
46
+ select {
47
+ margin: 10px 20px;
48
+ padding: 10px 20px;
49
+ border-radius: 10px;
50
+ background-color: #2d9cdb;
51
+ color: #f0f0f0;
52
+ cursor: pointer;
53
+ transition: background-color 0.2s ease-in-out;
54
+ font-size: 16px;
55
+ font-weight: bold;
56
+ border: 1px solid #4f4f4f;
57
+ width: 200px;
58
+ }
59
+
60
+ button:hover,
61
+ select:hover {
62
+ background-color: #47a9dc;
63
+ }
64
+
65
+ button:disabled {
66
+ color: gray;
67
+ background-color: lightgray;
68
+ cursor: not-allowed;
69
+ }
70
+
71
+ .hovered-option {
72
+ background-color: #47a9dc !important;
73
+ }
74
+ </style>
75
+ </head>
76
+ <body>
77
+ <canvas id="myCanvas" width="450" height="450"></canvas>
78
+
79
+ <div id="popup" style="display: none; position: absolute">
80
+ <div
81
+ id="triangle"
82
+ style="
83
+ position: absolute;
84
+ width: 0;
85
+ height: 0;
86
+ border-style: solid;
87
+ border-width: 10px 5px 0 5px;
88
+ border-color: #ffffff transparent transparent transparent;
89
+ transform: translateY(1px);
90
+ "
91
+ ></div>
92
+
93
+ <img
94
+ id="popup-image"
95
+ src=""
96
+ style="width: 100px; height: 100px; border: 1px solid white"
97
+ />
98
+ </div>
99
+
100
+ <div
101
+ id="largePhoto"
102
+ style="top: 25px; left: 25px; display: none; position: absolute"
103
+ >
104
+ <img
105
+ id="largePhoto-image"
106
+ src=""
107
+ style="width: 415px; height: 415px; border: 1px solid white"
108
+ />
109
+ </div>
110
+
111
+ <div style="display: flex; flex-direction: column; align-items: center">
112
+ <div style="margin-left: auto">
113
+ <select id="robotSelect"></select>
114
+ </div>
115
+ <div style="margin-left: auto">
116
+ <select id="cleanCount">
117
+ <option value="1">1 Time</option>
118
+ <option value="2">2 Times</option>
119
+ <option value="3">3 Times</option>
120
+ </select>
121
+ </div>
122
+
123
+ <div style="display: flex" id="zoneButtons">
124
+ <button id="addButton">+ Zone</button>
125
+ <button disabled id="deleteButton">- Zone</button>
126
+ </div>
127
+ <div style="display: flex" id="robotButtons">
128
+ <button id="pauseButton" style="display: none">Pause</button>
129
+ <button id="startButton">Start</button>
130
+ <button id="stopButton">Stop</button>
131
+ </div>
132
+ <button id="dockButton">Dock</button>
133
+ <button id="goToButton">Go to</button>
134
+ <button id="resetZoomButton">Reset zoom</button>
135
+ </div>
136
+ </body>
137
+ </html>