Comments (4)
| but you agreed to my proposed change, right 🤔
you know, it looked good in theory, but then I discovered it won't work for my edge case. no problem, I'm not complaining at all. Thanks for the hard work ;)
from ecovacs-deebot.js.
Hi @dbochicchio
the latest iteration of the lib has broken my code, since I was watching for MoppingSystemInfo to get the status, even when not mopping.
but you agreed to my proposed change, right 🤔
#80 (comment)
The idea behind it is to carry both water info (if present) and clean info (I'm calling it from cleanspeed as well and maybe the function name is not fitting anymore). What do you think?
It's ok for me. I will change it later today.
from ecovacs-deebot.js.
Please check if this fits for your use case:
emitMoppingSystemReport() {
const vacuumPowerAdjustmentOk = !this.bot.hasVacuumPowerAdjustment() || (this.bot.cleanSpeed !== null);
const moppingSystemOk = !this.bot.hasMoppingSystem() || (this.bot.waterLevel !== null);
if (vacuumPowerAdjustmentOk && moppingSystemOk) {
let r = {
'cleanStatus': this.bot.cleanReport
};
if (this.bot.hasVacuumPowerAdjustment() && (this.bot.cleanSpeed !== null)) {
r['cleanInfo'] = {
'level': this.bot.cleanSpeed
}
}
if (this.bot.hasMoppingSystem() && (this.bot.waterLevel !== null)) {
r['waterInfo'] = {
'enabled': Boolean(Number(this.bot.waterboxInfo || 0)),
'level': this.bot.waterLevel
}
}
this.emit("MoppingSystemInfo", r);
}
}
from ecovacs-deebot.js.
I just made a commit based on my proposal from yesterday.
from ecovacs-deebot.js.
Related Issues (20)
- Implementation of the ability to also use the yeedi API HOT 16
- Crash while trying to read undefined data HOT 9
- Are there anyway to connect to the Ecovacs Robot without login? HOT 1
- No "ready" event received HOT 2
- Waterbox info HOT 4
- CleanReport and CleanSum HOT 12
- Move Left Right MoveTurnAround ? HOT 16
- ioBroker Warn Message HOT 1
- GetCleanLog serving old logs HOT 10
- Custom logging function HOT 1
- vacbot.disconnect(); HOT 27
- AirFreshening / aromamode not working HOT 20
- Request failed with status code 502/504 HOT 3
- No error event fired for "Charging dock not found" HOT 7
- Shortcut Command to remove current Map or Restore Map Backup ??? HOT 1
- Map get lost working on backup image HOT 1
- GB/WW api endpoint not found HOT 1
- Retrieve values for air quality returns code 500 HOT 10
- Some feedback on testing with the X2 Omni. HOT 4
- is it support R96? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ecovacs-deebot.js.