yinhangcode / homebridge-mi-robot_vacuum Goto Github PK
View Code? Open in Web Editor NEWXiaoMi robot vacuum plugins for HomeBridge.
XiaoMi robot vacuum plugins for HomeBridge.
Dear all,
I'm not sure if this is the right place for such a discussion, so please excuse me if I'm wrong here.
Unfortunately I'm very bad at programming, so I integrated Valetudo, which is a web server running directly on the rockrobo, into my homebridge (Homekit) environment in a very bad manner. (but it works ;-)
I use the homebridge-plugin cmdAccessory
to fire curl-commands with the API-calls for Valetudo. in my homebridge-config this looks similar to this:
{
"name": "RockroboDock",
"on_cmd": "curl 'http://<rockrobo-ip>/api/drive_home' -XPUT -H 'Origin: http://<rockrobo-ip>' -H 'Host: <rockrobo-ip>' -H 'DNT: 1' -H 'Connection: keep-alive' -H 'Content-Length: 0' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: de-de' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.1 Safari/605.1.15' -H 'Accept: */*' -H 'Referer: http://<rockrobo-ip>/'",
"off_cmd": "curl 'http://<rockrobo-ip>/api/pause_cleaning' -XPUT -H 'Origin: http://<rockrobo-ip>' -H 'Host: <rockrobo-ip>' -H 'DNT: 1' -H 'Connection: keep-alive' -H 'Content-Length: 0' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: de-de' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.1 Safari/605.1.15' -H 'Accept: */*' -H 'Referer: <rockrobo-ip>/'",
"polling": true,
"interval": "10",
"state_cmd": "/bin/false",
"manufacturer": "aebgit",
"type": "Switch"
},
I wonder if somebody more skilled than me, can use this as inspiration for a homebridge-module that uses the Valetudo web-api. In my eyes this would be a great benefit to the homebridge- and rockrobo-community, because the current solutions (like homebridge-xiaomi-mi-robot-vacuum
) that make use of the xiaomi-token are very unreliable.
Bet regards
Andreas
references:
https://github.com/Hypfer/Valetudo
https://github.com/nfarina/homebridge
https://www.npmjs.com/package/homebridge-xiaomi-mi-robot-vacuum
https://github.com/YinHangCode/homebridge-mi-robot_vacuum
Hello, is it possible that you change slider for the stages in 4 steps 1-4?
I think that would be better to adjust as before in percent 0-100.
Tried this plugin without success, log shows:
[MiRobotVacuumPlatform][ERROR]RobotVacuumFanAccessory - On - getOn Error: Error: Call to device timed out
I have correct IP address and token via --discover -sync
Vacuum firmware is 3.3.9_003077
Node 7.10.1
npm 4.2.0
nmap of vacuum IP address finds only port 22 filtered, no other ports.
Anything I can try to get it working?
Hi, is it planned to add a Charging status in future?
After 'miio' updated, it's not work with follwoing message.
TypeError: miio.Device is not a constructor
~~
Please check and update it.
Hi there
I'm getting the followings errors, any ideas? (I am using the decrypted 32 character token)
(node:9458) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Not able to initialize robot vacuum.
(node:9458) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:9458) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: Call to device timed out
[2017-12-21 17:51:02] [MiRobotVacuumPlatform] [MiRobotVacuumPlatform][ERROR]MiRobotVacuumFanAccessory - On - getOn Error: Error: Call to device timed out
[2017-12-21 17:51:06] [MiRobotVacuumPlatform] [MiRobotVacuumPlatform][ERROR]MiRobotVacuumFanAccessory - RotationSpeed - getRotationSpeed Error: Error: Call to device timed out
Hello, what is the difference to this plugin (homebridge-xiaomi-mi-robot-vacuum)?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.