haui

0.0.3 • Public • Published

haui

Haui, the "Home Automation UI"

Mainly just a placeholder for future goodness...but, it currently supports sending most X10 events via a CM11 interface and is configured via a simple JSON settings file.

WARNING: The X10 module being used has stability issues, at least with my own personal X10 interface...

Install and Setup

$ npm install haui -g
$ haui ./path/to/settings-file.json

Example Settings JSON

{
  "x10": { "serialPath": "/dev/ttyUSB0" },
  "port": 8000,
  "host": "127.0.0.1",
  "buttons": [
    {
      "type": "x10",
      "label": "Front - ON",
      "icon": "fa-lightbulb-o",
      "command": "ON",
      "house": "A",
      "unit": "1"
    },
    {
      "type": "x10",
      "label": "Front - OFF",
      "icon": "fa-lightbulb-o",
      "command": "OFF",
      "house": "A",
      "unit": "1"
    },
    {
      "type": "x10",
      "label": "Hall - ON",
      "icon": "fa-lightbulb-o",
      "command": "ON",
      "house": "A",
      "unit": "2"
    },
    {
      "type": "x10",
      "label": "Hall - OFF",
      "icon": "fa-lightbulb-o",
      "command": "OFF",
      "house": "A",
      "unit": "2"
    },
    {
      "type": "lirc",
      "label": "Kenwood - Power",
      "icon": "fa-power-off",
      "command": "send_once",
      "device": "Kenwood",
      "button": "Power"
    },
    {
      "type": "lirc",
      "label": "Kenwood - Volume Up",
      "icon": "fa-volume-up",
      "command": "send_once",
      "device": "Kenwood",
      "button": "Volume_Up"
    },
    {
      "type": "lirc",
      "label": "Kenwood - Volume Down",
      "icon": "fa-volume-down",
      "command": "send_once",
      "device": "Kenwood",
      "button": "Volume_Down"
    }
  ]
}

Screenshot

Screenshot

CHANGELOG

v0.0.3

v0.0.2

  • Fix path resolution, add optional logging with 'good'

v0.0.1

  • First release, sorely lacking in awesome...

TODO

  • Create a non-crap responsive UI
  • Break out device support into HAPI plugins

LICENSE

MIT

Readme

Keywords

Package Sidebar

Install

npm i haui

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • randallagordon