gbro115 / homebridge-roomba690 Goto Github PK
View Code? Open in Web Editor NEWHomebridge support for Roomba 690
License: Apache License 2.0
Homebridge support for Roomba 690
License: Apache License 2.0
In addition to On and Off commands, it really needs a Return to Home Base command since Off makes it stop where it is (except for the problem with this that I just entered).
Device appears in the home app but shows as ‘No Response’ after being installed on homebridge. Has an update to the Roomba broke compatibility?
I'm going to add something like this to the setPowerState -> else block.
Without it, pause() is called, and for some reason, the robot starts cleaning.
// If the Robot is currenlty not running, then we don't need to re-stop it.
if(state.cleanMissionStatus.phase != "run")
{
log("As status is currently [%s], we do not need to stop the Roomba", state.cleanMissionStatus.phase );
callback();
return;
}
If my roomba is offline (battery dies, etc), the rest of my Homebrdige setup becomes inoperable and goes offline. Simply getting the roomba back online fixes the problem. Is there any way this can be resolved so that hombridge simply bypasses the roomba if it is offline?
I just installed this plug-in and I am able to check the status and start Roomba from the Home app in iOS just fine. But I noticed that if I start Roomba and then tell it to stop, it does stop for a few seconds and then starts back up. In the Home app, it still shows as "off". If I take it again, Roomba stops and stays stopped, but now it shows as "on" in the Home app. Seems there's a problem there.
I have the plugin installed/configured on 2 homebridge hosts. My instance running on HOOBS, cannot get any status updates etc. I can ping the roomba from the host but the homebridge logs hang at attempts to get status updates.
I verified dorita980, etc are installed.
[Homebridge] [12/22/2019, 11:22:14 AM] Service is running on port 51826.
[Homebridge] [12/22/2019, 11:22:40 AM] [Roomba123] Power state requested for Roomba
[Homebridge] [12/22/2019, 11:22:40 AM] [Roomba123] Battery level requested for Roomba
[Homebridge] [12/22/2019, 11:22:40 AM] [Roomba123] Charging status requested for Roomba
[Homebridge] [12/22/2019, 11:22:43 AM] [Roomba123] Power state requested for Roomba
[Homebridge] [12/22/2019, 11:22:43 AM] [Roomba123] Battery level requested for Roomba
[Homebridge] [12/22/2019, 11:22:43 AM] [Roomba123] Charging status requested for Roomba
Again, my other homebridge host works just fine so I know my BLID, etc are correct. Any pointers would be helpful.
When attempting to install, I get this error.
ERR: MODULE_NOT_FOUND
ERR: Cannot find module 'internal/util/types'
I have my 690 in my basement, and from time-to-time it drops the connection to wifi, or is slow to respond. In the iRobot Home app, it shows as connected through the cloud, when it can't connect locally. The problem, is that when it is in this state, and not available on the local network, the roomba960 plugin doesn't seem to handle the connection refusal gracefully, and crashes the whole Homebridge instance. Here is the Homebridge error log of the event:
Thu, 28 Dec 2017 01:13:13 GMT Accessory [Homebridge] Getting value for Characteristic "On"
Thu, 28 Dec 2017 01:13:13 GMT Accessory [Homebridge] Getting value for Characteristic "Status Low Battery"
Thu, 28 Dec 2017 01:13:13 GMT Accessory [Homebridge] Got Characteristic "Status Low Battery" value: 0
/usr/local/lib/node_modules/homebridge-roomba690/node_modules/dorita980/lib/v2/local.js:30
throw e;
^
Error: Connection refused: Not authorized
at MqttClient._handleConnack (/usr/local/lib/node_modules/homebridge-roomba690/node_modules/mqtt/lib/client.js:871:15)
at MqttClient._handlePacket (/usr/local/lib/node_modules/homebridge-roomba690/node_modules/mqtt/lib/client.js:319:12)
at work (/usr/local/lib/node_modules/homebridge-roomba690/node_modules/mqtt/lib/client.js:261:12)
at Writable.writable._write (/usr/local/lib/node_modules/homebridge-roomba690/node_modules/mqtt/lib/client.js:271:5)
at doWrite (/usr/local/lib/node_modules/homebridge-roomba690/node_modules/readable-stream/lib/_stream_writable.js:406:64)
at writeOrBuffer (/usr/local/lib/node_modules/homebridge-roomba690/node_modules/readable-stream/lib/_stream_writable.js:395:5)
at Writable.write (/usr/local/lib/node_modules/homebridge-roomba690/node_modules/readable-stream/lib/_stream_writable.js:322:11)
at TLSSocket.ondata (_stream_readable.js:642:20)
at TLSSocket.emit (events.js:159:13)
at addChunk (_stream_readable.js:265:12)
at readableAddChunk (_stream_readable.js:252:11)
at TLSSocket.Readable.push (_stream_readable.js:209:10)
at TLSWrap.onread (net.js:598:20)
Please let me know if there is any other information that I can collect to aid in fixing this issue. I'm going to have to remove the 690 from my Homebridge for now, so it does not block my other devices from operating correctly.
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.