Coder Social home page Coder Social logo

krkeegan / insteon-mngr Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 498 KB

An Insteon management platform and python interface.

License: GNU General Public License v2.0

Python 84.27% CSS 0.06% HTML 6.31% JavaScript 9.36%
insteon insteon-hub home-automation home-assistant house-automation insteon-api python python-3

insteon-mngr's Introduction

Abandoned

I started work on this and then Insteon abandoned me. Insteon stopped updating the Hub as new devices were released. As a result, the Hub was never able to fulfill my hopes of handling the device config. In addition, Insteon stopped allowing people to sign up for API keys, so very few people would even be able to use this software.

This is probably all of the best, as I found Insteon-MQTT, and its local control is not subject to cloud restrictions.

I am going to leave this code here for reference, but in an archived state since it will never be revived.

The Problem

The Insteon Hub can:

  • control devices (on/off)
  • manage device attributes (default on levels and ramp rates)
  • link devices to hub scenes
  • provide access through the Insteon Restful API

The Insteon Hub cannot:

  • manage links between devices in your network!

Recently I have learned that Insteon has become very stingy with handing out API keys, with some users waiting weeks to months.

Others have also expressed a desire not to rely on a cloud based service for home automation because of potential security and privacy concerns as well as a lack of reliability of the cloud service.

The Goal

Initially, the goal was to create a simple interface for defining, scanning, and managing the links between the devices on your network. With the hope of using the Insteon API to enable home automation platforms such as Home Assistant https://github.com/balloob/home-assistant to add insteon support.

Now this project has expanded slightly to add support for local control of Insteon devices.

My hope is to keep this project tight and focused. The Insteon stack and protocol is a mess and would quickly engulf this project if I tried to add support for all Insteon features. Instead, I would like to add the minimal amount of support necessary to enable:

  • device link management
  • support for home-assistant or other home automation platforms

Status

A long way from being done. I have taken much of the code from other half-completed (or less) projects that I have started.

insteon-mngr's People

Contributors

devzzm avatar krkeegan avatar

Watchers

 avatar  avatar

insteon-mngr's Issues

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

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

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

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.

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.

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.

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.