Coder Social home page Coder Social logo

homebridge-roomba690's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

homebridge-roomba690's Issues

Cannot install

When attempting to install, I get this error.

ERR: MODULE_NOT_FOUND
ERR: Cannot find module 'internal/util/types'

Homebridge crash on unauthorized connection attempt

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.

Device shows no response in home app

Device appears in the home app but shows as ‘No Response’ after being installed on homebridge. Has an update to the Roomba broke compatibility?

Turning Roomba off when it is running results in it stopping and then starting back up

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.

Add a "return home" capability

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).

Unable to communicate to Roomba via HOOBS

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.

Homebridge goes offline if Roomba is disconnectedf

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?

Turning Roomba off when it is already in an inactive state will result in is starting a cleaning cycle

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;
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.