Coder Social home page Coder Social logo

Comments (18)

jclark16 avatar jclark16 commented on September 28, 2024

I'm seeing the same behaviour since updating to version 0.2.13 of this plugin, and 1.1.6 of Homebridge. Unfortunately I didn't make a note of the previous versions, but it has been a while since I last updated.

Same symptom as described - if I restart Homebridge then it works nicely for a while and then reports ECONNRESET when trying to set state on the alarm which results in a SIGTERM and Homebridge restarting itself automatically, but also results in the alarm being inaccessible if I'm out of the house.

from homebridge-envisalink.

jclark16 avatar jclark16 commented on September 28, 2024

@dustindclark I found that the disconnection is happening as part of the proxy... I tried setting the proxyenable to false and haven't seen this issue since. Looking at the proxy logic, I cannot see what benefit it is giving this code. Is it necessary, or is it safe to disable it?

from homebridge-envisalink.

dustindclark avatar dustindclark commented on September 28, 2024

from homebridge-envisalink.

jclark16 avatar jclark16 commented on September 28, 2024

I just saw another issue where you commented on the Smartthings. That makes sense. I guess we could make the proxy option configurable, but that seems like a kludge as this should work fine. I think I'll throw some extra diag into nodealarmproxy and try to track down the source of the issue.

from homebridge-envisalink.

readylmay avatar readylmay commented on September 28, 2024

I have disabled the proxy and I am am getting this error as well. I also need to reboot my EnvisaLink 4 to allow connections to start up again.

Any thing else I can do beside setting Proxy to false?

from homebridge-envisalink.

jclark16 avatar jclark16 commented on September 28, 2024

I have disabled the proxy and I am am getting this error as well. I also need to reboot my EnvisaLink 4 to allow connections to start up again.

Any thing else I can do beside setting Proxy to false?

@readylmay are you getting this error after disabling the proxy? I haven't needed to reboot my EnvisaLink (I'm on 3, but I don't think that would make much difference) - just restart Homebridge.

from homebridge-envisalink.

readylmay avatar readylmay commented on September 28, 2024

No, I am not anymore. It required a few reboot cycles of the EnvisaLink and restarted home bridge, but rock solid ever since.

from homebridge-envisalink.

kmberi avatar kmberi commented on September 28, 2024

Hi Guys, real noob here, how do I turn off proxyenable?

from homebridge-envisalink.

jclark16 avatar jclark16 commented on September 28, 2024

Hi Guys, real noob here, how do I turn off proxyenable?

I'm submitting a PR to make this setting configurable. If you are comfortable modifying code I can tell you where to modify the setting.

from homebridge-envisalink.

kmberi avatar kmberi commented on September 28, 2024

Hi Guys, real noob here, how do I turn off proxyenable?

I'm submitting a PR to make this setting configurable. If you are comfortable modifying code I can tell you where to modify the setting.

Happy to back up and try tinker with the code?

from homebridge-envisalink.

kmberi avatar kmberi commented on September 28, 2024

Hi Guys, real noob here, how do I turn off proxyenable?

I'm submitting a PR to make this setting configurable. If you are comfortable modifying code I can tell you where to modify the setting.

Happy to tinker?

from homebridge-envisalink.

jclark16 avatar jclark16 commented on September 28, 2024

Sorry I missed this, @kmberi

Someone can correct me if there is a better way to do this, but how I have been trying changes is to go into the node_modules/homebridge-envisalink folder on my system (/usr/lib/node_modules/homebridge-envisalink/) and modifying index.js, look for "proxyenable: true," on line 113 and set it to false. Then restart home bridge to pick up the change.

from homebridge-envisalink.

kmberi avatar kmberi commented on September 28, 2024

from homebridge-envisalink.

kmberi avatar kmberi commented on September 28, 2024

Actually it worked for a while, now getting this error when I try to arm the alarm

5/15/2021, 1:24:33 PM [Envisalink] Attempting to set alarm state on partition 1 Alarm to 2 NIGHT_ARM
5/15/2021, 1:24:33 PM [Envisalink] Arming alarm to Stay/Night.
5/15/2021, 1:24:33 PM Got SIGTERM, shutting down Bridge...

from homebridge-envisalink.

jclark16 avatar jclark16 commented on September 28, 2024

Are you seeing it consistently? I have seen that once or twice in the past few months, but not enough to try tackling it as it is a bit involved from my initial look around.

The nodealarmproxy library that this uses to do the actual communications with Envisalink does not have robust disconnection or error handling. e.g. if it disconnects from the alarm for whatever reason, it doesn't try to re-establish a connection and instead throws an exception at the next command. I've looked at it a bit and refactored some things, but that bit of code hasn't been updated in a while so I'm a bit worried about "fixing" something which may break certain behaviours that are being relied on. As I also don't have an environment that would test the proxy capabilities I wouldn't be able to thoroughly verify that it was still functioning as expected.

from homebridge-envisalink.

kmberi avatar kmberi commented on September 28, 2024

It's happening every time I try to arm the alarm.

from homebridge-envisalink.

kmberi avatar kmberi commented on September 28, 2024

So my n00b mistake might help someone in future I had my EyezON.com password in the password section. Changed it to "user" and that was it. Feel pretty dumb but thrilled it's working now.

from homebridge-envisalink.

dustindclark avatar dustindclark commented on September 28, 2024

The crash from a bad password or IP address should be fixed in 0.4.0-beta.3. Please re-open if you're still having issues. Thanks.

from homebridge-envisalink.

Related Issues (20)

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.