Code Monkey home page Code Monkey logo

insteon-mngr's People

Contributors

krkeegan avatar phareous avatar

Watchers

 avatar  avatar

insteon-mngr's Issues

Some way to Clean Bad Links

Links that would otherwise not appear in the group links page such as:

  • Controller links on a device for a group that DNE

ALDB Write Sequence Bind Address Might be Bad

I don't think this solution is good either, or is at least incomplete. Simultaneous queued sequences would still bind to the same address.

Bind needs to do something so that subsequent items see the address as taken

Stage or Queue Check ALDB Delta Calls

When calling the check_aldb_delta function, call the success function immediately if the delta value has been checked recently

Also when calling the check_aldb_delta function, check to see if the scan function is already running, and then just append the success function onto that sequence.

Trigger Timeouts

I think we need to add a timeout to the triggers, and a failure callback when the timeout is hit.

Otherwise, the ALDB Sequence could stall

Better Flow for Device Handlers (Send, Rcvd, Functions)

Right now when creating an InsteonDevice the flow resembles

  1. on init set to generic
  2. init calls functions.initialize_device which creates the groups and at least adds the root as group 0x01
  3. init also calls send_handler.intialize_device which runs a bunch of inits steps and calls Insteon_Device.update_device
  4. update_device uses the dev_cat data to re-init the various handlers to their proper type

This seems circuitous. Some of this is needed, for example we need a generic send and rcvd handler to do a dev_cat query. But if we could condense this down, I am sure we would avoid some gnarly errors.

Create Queue for ALDB Operations

I don't know if this could reuse the existing state_machine or not, or maybe all state_machine entries should be a queue?

But currently sending multiple aldb_Record deletes causes them all to try and run at the same time, which results in generally only one working.

In an ideal world, subsequent calls would skip the check_aldb_delta call and perhaps other things like the set_msb and such.

Identify Duplicate Links

Some links such as unknown and undefined should be fine.

But duplicate modem links and possibly defined links are obscured

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.