Skip to content

Commit

Permalink
Add commands for AIRBOT Z1
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbungle64 committed Dec 11, 2022
1 parent ff87318 commit 5da3ee3
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 32 deletions.
6 changes: 6 additions & 0 deletions nodes/deebot-command.html
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@
<option value="Disconnect" data-i18n="ecovacs-deebot-command.Disconnect"></option>
<option value="" data-i18n="ecovacs-deebot-command.dummy_cleaning"></option>
<option value="Clean" data-i18n="ecovacs-deebot-command.Clean"></option>
<option value="Clean_V2" data-i18n="ecovacs-deebot-command.Clean_V2"></option>
<option value="CustomArea" data-i18n="ecovacs-deebot-command.CustomArea"></option>
<option value="Edge" data-i18n="ecovacs-deebot-command.Edge"></option>
<option value="Spot" data-i18n="ecovacs-deebot-command.Spot"></option>
Expand All @@ -339,6 +340,7 @@
<option value="GetBatteryState" data-i18n="ecovacs-deebot-command.GetBatteryState"></option>
<option value="GetChargeState" data-i18n="ecovacs-deebot-command.GetChargeState"></option>
<option value="GetCleanState" data-i18n="ecovacs-deebot-command.GetCleanState"></option>
<option value="GetCleanState_V2" data-i18n="ecovacs-deebot-command.GetCleanState_V2"></option>
<option value="GetSleepStatus" data-i18n="ecovacs-deebot-command.GetSleepStatus"></option>
<option value="" data-i18n="ecovacs-deebot-command.dummy_cleaning_log"></option>
<option value="GetCleanLogs" data-i18n="ecovacs-deebot-command.GetCleanLogs"></option>
Expand Down Expand Up @@ -404,6 +406,10 @@
<option value="EnableAutoEmpty" data-i18n="ecovacs-deebot-command.EnableAutoEmpty"></option>
<option value="DisableAutoEmpty" data-i18n="ecovacs-deebot-command.DisableAutoEmpty"></option>
<option value="SetAutoEmpty" data-i18n="ecovacs-deebot-command.SetAutoEmpty"></option>
<option value="" data-i18n="ecovacs-deebot-command.dummy_air_purifier"></option>
<option value="Clean_V2" data-i18n="ecovacs-deebot-command.Clean_V2"></option>
<option value="GetCleanState_V2" data-i18n="ecovacs-deebot-command.GetCleanState_V2"></option>
<option value="GetAirQuality" data-i18n="ecovacs-deebot-command.GetAirQuality"></option>
</select></div>
</div>
<div class="form-row" id="node-input-arg-row">
Expand Down
24 changes: 15 additions & 9 deletions nodes/locales/de/deebot-command.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"AddVirtualBoundary": "+ Virtuelle Begrenzung erzeugen",
"Charge": "⏮ Zurück zur Ladestation",
"Clean": "► Automatische Reinigung starten",
"Clean_V2": "► Automatische Reinigung starten (V2)",
"Connect": "⏻ Verbindung herstellen",
"CustomArea": "► Benutzerdefinierten Bereich reinigen",
"DeleteVirtualBoundary": "– Virtuelle Begrenzung löschen",
Expand All @@ -25,9 +26,10 @@
"DisableAdvancedMode": "⚙ Erweiterten Modus ausschalten",
"EnableTrueDetect": "⚙ True Detect 3D einschalten",
"DisableTrueDetect": "⚙ True Detect 3D ausschalten",
"dummy_air_purifier": "--- AIRBOT (air purifier) ---",
"dummy_auto_empty_station": "--- Absaugstation ---",
"dummy_cleaning_log": "--- Reinigungsprotokoll und Verbrauchsmaterialien ---",
"dummy_cleaning": "--- Reinigung ---",
"dummy_cleaning_log": "--- Reinigungsprotokoll und Verbrauchsmaterialien ---",
"dummy_connection_handling": "--- Verbindung ---",
"dummy_manual_control": "--- Manuelle Steuerung ---",
"dummy_map_data": "--- Kartendaten, Bereiche und virtuelle Begrenzungen ---",
Expand All @@ -43,13 +45,15 @@
"Edge": "► Kanten-Reinigung starten",
"FindMe": "◎ Roboter suchen",
"GetAdvancedMode": "↶ Erweiterten Modus abfragen",
"GetAirQuality": "↶ Luftqualität abfragen (z.B. PM2.5, PM10)",
"GetAutoEmpty": "↶ Auto-Entleerung abfragen",
"GetBatteryState": "↶ Akkustand abfragen",
"GetChargerPos": "↶ Position der Ladestation abfragen",
"GetChargeState": "↶ Ladestatus abfragen",
"GetCleanLogs": "↶ Reinigungsprotokoll abfragen",
"GetCleanSpeed": "↶ Saugkraft abfragen",
"GetCleanState": "↶ Reinigungsstatus abfragen",
"GetCleanState_V2": "↶ Reinigungsstatus abfragen (V2)",
"GetCleanSum": "↶ Reinigungsstatistik abfragen",
"GetLifeSpan": "↶ Verbrauchsmaterialnutzung abfragen",
"GetMapImage": "↶ Bild der Karte abfragen",
Expand All @@ -72,20 +76,22 @@
"GetVolume": "↶ Lautstärke abfragen",
"GetWaterBoxInfo": "↶ Wassertank abfragen",
"GetWaterLevel": "↶ Wasserdurchflussrate abfragen",
"info_950Type": "Nur 950 basierte Modelle (z.B. OZMO 920/950, N8/T8/N9/T9 Serien)",
"info_950Type_V2": "Nur aktuelle Modelle (z.B. N8/T8/N9/T9 Serien)",
"info_non950Type": "Nur einige ältere Modelle (e.g. OZMO 930, Deebot 900/901)",
"info_ozmo930": "Funktioniert nur mit dem OZMO 930",
"info_950Type": "Nur 950 basierte Modelle (z.B. OZMO 920/950, N8/T8/T9/T10/X1 Serien)",
"info_950Type_V2": "Nur aktuelle Modelle (z.B. N8/T8/T9/T10/X1 Serien)",
"info_airPurifier": "Funktioniert auch für Modelle zur Luftreinigung (z.B. AIRBOT Z1)",
"info_airPurifier_only": "Nur für Modelle zur Luftreinigung (z.B. AIRBOT Z1)",
"info_canvasLibrary": "Die <a href=\"https://github.com/Automattic/node-canvas\" style=\"text-decoration:underline\" target=\"_blank\">canvas</a> Library muss <a href=\"https://github.com/mrbungle64/node-red-contrib-ecovacs-deebot#installation\" style=\"text-decoration:underline\" target=\"_blank\">installiert</a> sein",
"info_enableSimpleEvents": "<i>Ausgabe einfache Events aktivieren</i> muss aktiviert sein",
"info_experimental": "Experimenteller Status",
"info_laserType": "Nur Modelle mit Lasersteuerung",
"info_nonLaserType": "Nur Modelle ohne Lasersteuerung",
"info_mainBrush": "Nur Modelle mit Hauptbürste",
"info_moppingSystem": "Nur Modelle mit Wischfunktion",
"info_non950Type": "Nur einige ältere Modelle (e.g. OZMO 930, Deebot 900/901)",
"info_nonLaserType": "Nur Modelle ohne Lasersteuerung",
"info_notWorking": "Wird von den meisten Modellen nicht unterstützt",
"info_ozmo930": "Funktioniert nur mit dem OZMO 930",
"info_suctionStation": "Nur Modelle mit Absaugstation",
"info_trueDetect": "Nur Modelle mit TrueDetect 3D",
"info_experimental": "Experimenteller Status",
"info_enableSimpleEvents": "<i>Ausgabe einfache Events aktivieren</i> muss aktiviert sein",
"info_notWorking": "Wird von den meisten Modellen nicht unterstützt",
"info_worksOnlyOnce": "Funktioniert nur einmal in Folge (und bei manchen Modellen gar nicht)",
"label_areas": "IDs der Bereiche (z.B. <i>0,5</i>)",
"label_boundaryCoordinates": "Koordinaten der Begrenzung (z.B. <i>-1320,-1100,1705,1200</i>)",
Expand Down
24 changes: 15 additions & 9 deletions nodes/locales/en/deebot-command.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"AddVirtualBoundary": "+ Add virtual boundary",
"Charge": "⏮ Return to charging station",
"Clean": "► Start automatic cleaning",
"Clean_V2": "► Start automatic cleaning (V2)",
"Connect": "⏻ Connect",
"CustomArea": "► Start custom area cleaning",
"DeleteVirtualBoundary": "– Delete virtual boundary",
Expand All @@ -25,9 +26,10 @@
"DisableAdvancedMode": "⚙ Disable Advanced Mode",
"EnableTrueDetect": "⚙ Enable True Detect 3D",
"DisableTrueDetect": "⚙ Disable True Detect 3D",
"dummy_air_purifier": "--- AIRBOT (air purifier) ---",
"dummy_auto_empty_station": "--- Auto empty station ---",
"dummy_cleaning_log": "--- Cleaning log and consumable ---",
"dummy_cleaning": "--- Cleaning ---",
"dummy_cleaning_log": "--- Cleaning log and consumable ---",
"dummy_connection_handling": "--- Connection handling ---",
"dummy_manual_control": "--- Manual control ---",
"dummy_map_data": "--- Map data, spot areas and virtual boundaries ---",
Expand All @@ -43,13 +45,15 @@
"Edge": "► Start edge cleaning",
"FindMe": "◎ Find me",
"GetAdvancedMode": "↶ Retrieve Advanced Mode status",
"GetAirQuality": "↶ Retrieve values for air quality (e.g. PM2.5, PM10)",
"GetAutoEmpty": "↶ Retrieve auto empty status",
"GetBatteryState": "↶ Retrieve battery state",
"GetChargerPos": "↶ Retrieve charger position",
"GetChargeState": "↶ Retrieve charge state",
"GetCleanLogs": "↶ Retrieve clean logs",
"GetCleanSpeed": "↶ Retrieve vacuum power level",
"GetCleanState": "↶ Retrieve clean state",
"GetCleanState_V2": "↶ Retrieve clean state (V2)",
"GetCleanSum": "↶ Retrieve clean summary",
"GetLifeSpan": "↶ Retrieve accessories usage data",
"GetMapImage": "↶ Retrieve map image data",
Expand All @@ -72,20 +76,22 @@
"GetVolume": "↶ Retrieve volume",
"GetWaterBoxInfo": "↶ Retrieve water box info",
"GetWaterLevel": "↶ Retrieve water flow level",
"info_950Type": "950 type models only (e.g. OZMO 920/950, T8/T9 series)",
"info_950Type_V2": "Current models only (e.g. N8/T8/T9 series)",
"info_non950Type": "Some older models only (e.g. OZMO 930, Deebot 900/901)",
"info_ozmo930": "Works only on OZMO 930",
"info_950Type": "950 type models only (e.g. OZMO 920/950, N8/T8/T9/T10/X1 series)",
"info_950Type_V2": "Current models only (e.g. N8/T8/T9/T10/X1 series)",
"info_airPurifier": "Works also with air purifiers (e.g. AIRBOT Z1)",
"info_airPurifier_only": "Air purifiers only (e.g. AIRBOT Z1)",
"info_canvasLibrary": "Requires the <a href=\"https://github.com/mrbungle64/node-red-contrib-ecovacs-deebot#installation\" style=\"text-decoration:underline\" target=\"_blank\">installation</a> of the <a href=\"https://github.com/Automattic/node-canvas\" style=\"text-decoration:underline\" target=\"_blank\">canvas</a> library",
"info_enableSimpleEvents": "<i>Enable output of simple events</i> must be enabled",
"info_experimental": "Experimental",
"info_laserType": "Models with laser unit only",
"info_nonLaserType": "Models without laser unit only",
"info_mainBrush": "Models with main brush only",
"info_moppingSystem": "Models with mopping system only",
"info_non950Type": "Some older models only (e.g. OZMO 930, Deebot 900/901)",
"info_nonLaserType": "Models without laser unit only",
"info_notWorking": "Not supported by most models",
"info_ozmo930": "Works only on OZMO 930",
"info_suctionStation": "Models with suction station only",
"info_trueDetect": "Models with TrueDetect 3D only",
"info_experimental": "Experimental",
"info_enableSimpleEvents": "<i>Enable output of simple events</i> must be enabled",
"info_notWorking": "Not supported by most models",
"info_worksOnlyOnce": "Works only once in sequence (and on some models not at all)",
"label_areas": "IDs of the spot areas (e.g. <i>0,5</i>)",
"label_boundaryCoordinates": "Boundary coordinates (e.g. <i>-1320,-1100,1705,1200</i>)",
Expand Down
52 changes: 38 additions & 14 deletions resources/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,16 @@ const commands = {
payload: "AddVirtualBoundary"
},
"Charge": {
payload: "Charge"
payload: "Charge",
info: ["airPurifier"]
},
"Clean": {
payload: "Clean"
},
"Clean_V2": {
payload: "Clean_V2",
info: ["950Type_V2", "airPurifier"]
},
"Connect": {
payload: "Connect"
},
Expand Down Expand Up @@ -128,7 +133,12 @@ const commands = {
"FindMe": {
arg: "30",
label: "FindMe",
payload: "PlaySound"
payload: "PlaySound",
info: ["airPurifier"]
},
"GetAirQuality": {
info: ["airPurifier_only"],
payload: "GetAirQuality"
},
"GetAutoEmpty": {
info: ["suctionStation", "950Type_V2"],
Expand All @@ -139,14 +149,16 @@ const commands = {
payload: "GetAdvancedMode"
},
"GetBatteryState": {
payload: "GetBatteryState"
payload: "GetBatteryState",
info: ["airPurifier"]
},
"GetChargerPos": {
info: ["laserType"],
payload: "GetChargerPos"
},
"GetChargeState": {
payload: "GetChargeState"
payload: "GetChargeState",
info: ["airPurifier"]
},
"GetCleanLogs": {
payload: "GetCleanLogs"
Expand All @@ -157,8 +169,13 @@ const commands = {
"GetCleanState": {
payload: "GetCleanState"
},
"GetCleanState_V2": {
payload: "GetCleanState_V2",
info: ["950Type_V2", "airPurifier"]
},
"GetCleanSum": {
payload: "GetCleanSum"
payload: "GetCleanSum",
info: ["airPurifier"]
},
"GetLifeSpan": {
payload: "GetLifeSpan"
Expand Down Expand Up @@ -192,7 +209,8 @@ const commands = {
payload: "GetMaps"
},
"GetNetInfo": {
payload: "GetNetInfo"
payload: "GetNetInfo",
info: ["airPurifier"]
},
"GetOnOff_continuous_cleaning": {
arg: "continuous_cleaning",
Expand All @@ -211,14 +229,15 @@ const commands = {
payload: "GetOnOff"
},
"GetPosition": {
info: ["laserType"],
info: ["laserType", "airPurifier"],
payload: "GetPosition"
},
"GetSchedule": {
payload: "GetSchedule"
},
"GetSleepStatus": {
payload: "GetSleepStatus"
payload: "GetSleepStatus",
info: ["airPurifier"]
},
"GetSpotAreaInfo": {
arg: {
Expand All @@ -244,7 +263,7 @@ const commands = {
payload: "GetSpotAreas"
},
"GetTrueDetect": {
info: ["trueDetect", "950Type_V2"],
info: ["trueDetect", "950Type_V2", "airPurifier"],
payload: "GetTrueDetect"
},
"GetVirtualBoundaries": {
Expand Down Expand Up @@ -289,22 +308,23 @@ const commands = {
payload: "GetWaterLevel"
},
"MoveBackward": {
info: ["worksOnlyOnce"],
info: ["worksOnlyOnce", "airPurifier"],
payload: "MoveBackward"
},
"MoveForward": {
info: ["worksOnlyOnce"],
info: ["worksOnlyOnce", "airPurifier"],
payload: "MoveForward"
},
"MoveLeft": {
info: ["worksOnlyOnce"],
info: ["worksOnlyOnce", "airPurifier"],
payload: "MoveLeft"
},
"MoveRight": {
info: ["worksOnlyOnce"],
info: ["worksOnlyOnce", "airPurifier"],
payload: "MoveRight"
},
"Pause": {
info: ["airPurifier"],
payload: "Pause"
},
"PlaySound_custom": {
Expand All @@ -313,14 +333,16 @@ const commands = {
required: true,
type: "string"
},
info: ["airPurifier"],
label: "PlaySound (soundID)",
payload: "PlaySound"
},
"PlaySound": {
info: ["airPurifier"],
payload: "PlaySound"
},
"Relocate": {
info: ["950Type"],
info: ["950Type", "airPurifier"],
payload: "Relocate"
},
"RenameSpotArea": {
Expand Down Expand Up @@ -365,6 +387,7 @@ const commands = {
payload: "ResetLifeSpan"
},
"Resume": {
info: ["airPurifier"],
payload: "Resume"
},
"SetAutoEmpty": {
Expand Down Expand Up @@ -450,6 +473,7 @@ const commands = {
payload: "SpotArea"
},
"Stop": {
info: ["airPurifier"],
payload: "Stop"
}
};
Expand Down

0 comments on commit 5da3ee3

Please sign in to comment.