Giter VIP home page Giter VIP logo

Comments (6)

chase9 avatar chase9 commented on July 17, 2024

Hi Tim,

Agreed, but what do you think the plugin should do when we encounter fatal errors? Do you think a red line warning in the log is enough?

Also, I'm guessing the error here is that login failed due to missing MFA but could you please confirm?

from homebridge-node-alarm-dot-com.

tbaur avatar tbaur commented on July 17, 2024

Yeah. It could fail gracefully -- handle the error, report on it and not crash homebridge :) Then retry. Other plugins do this. It just needs better error handling here.

Looks like a server side error, not related to config. The API seems to fail sometimes, crash homebridge, then they recover and everything continues on.

from homebridge-node-alarm-dot-com.

tbaur avatar tbaur commented on July 17, 2024

I'm not sure if this is applicable, something new the myQ plugin is doing to add even more failure handling...

[9/20/2023, 12:03:58 PM] [myQ] myQ API: Switched to myQ cloud region: west.

They have multiple API endpoints, east and west. The plugin sees a failure and switches the API endpoint used, continues on. In this case it has helped a lot, but it's also how myQ has built their infra. Bit of extra effort to keep the plugin rolling. Maybe alarm.com has different options.

from homebridge-node-alarm-dot-com.

chase9 avatar chase9 commented on July 17, 2024

Just pushed up some code to the beta branch which will stop homebridge crashing the getAccountSettings() method fails.

from homebridge-node-alarm-dot-com.

tbaur avatar tbaur commented on July 17, 2024

from homebridge-node-alarm-dot-com.

chase9 avatar chase9 commented on July 17, 2024

Fixed in b7736ea

from homebridge-node-alarm-dot-com.

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.