Skip to content

Commit

Permalink
added dry status icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Popov committed Jul 31, 2024
1 parent 5474957 commit 8dece28
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

Node-Red Nodes for Xiaomi Roborock Vacuum connectivity.

<b>Important:</b> works and tested with Roborock s50 (gen2), Roborock s5 Max (gen3)

<b>Important:</b> works and tested with Roborock s50 (gen2), Roborock s5 Max (gen3), Roborock S8 Ultra Pro, Xiaomi S1
Available nodes are:
* miio-roborock-command: control your vacuum
* miio-roborock-event: get events from vacuum
Expand Down
2 changes: 1 addition & 1 deletion lib/miio-roborock-vocabulary.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ class MiioRoborockVocabulary {
del_timer: {name:"🕑 Timer: remove", link:"https://github.com/marcelrv/XiaomiRobotVacuumProtocol/blob/master/timer.md", args:true},

enable_log_upload: {name:"Enable log upload", link:"https://github.com/marcelrv/XiaomiRobotVacuumProtocol/blob/master/log_upload.md", args:false},
reset_consumable: {name:"Reset consumables", link:"https://github.com/marcelrv/XiaomiRobotVacuumProtocol/blob/master/consumable.md", args:true},
reset_consumable: {name:"Reset consumables", link:"https://github.com/marcelrv/XiaomiRobotVacuumProtocol/blob/master/consumable.md", args:false},
// app_wakeup_robot: {name:"app_wakeup_robot", link:"", args:false},

get_room_mapping: {name:"ⓘ Get room mapping", link:"https://github.com/marcelrv/XiaomiRobotVacuumProtocol/blob/master/room_mapping.md", args:false}
Expand Down
6 changes: 6 additions & 0 deletions nodes/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,12 @@ module.exports = function(RED) {
status.text += ' 💧';
}

//dry status
if ("dry_status" in node.server.status && parseInt(node.server.status.dry_status)) {
status.text += ' ♨ ';
}


node.status(status);
}

Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"email": "[email protected]"
},
"name": "node-red-contrib-miio-roborock",
"description": "Xiaomi Roborock connectivity nodes for node-red",
"version": "2.3.4",
"description": "Roborock connectivity nodes for node-red",
"version": "2.4.0",
"dependencies": {
"bootstrap-multiselect": "latest",
"events": "latest",
Expand All @@ -18,7 +18,8 @@
"xiaomi",
"miio",
"roborock",
"vacuum"
"vacuum",
"cleaner"
],
"license": "GPL",
"node-red": {
Expand Down

0 comments on commit 8dece28

Please sign in to comment.