Giter Club home page Giter Club logo

home_automation's People

Contributors

csirac2 avatar mbainrot avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

home_automation's Issues

Implement timers

Basically a message queue triggered timer

E.g
sys -> !(re)start_timer|timer_name|timeout in seconds|topic|message
sys -> !stop_timer|timer_name

PIR Controlled Sensor Light:
lifx -> !turn_on|gnffj36743
sys -> !restart_timer|kitchen_auto_off|900|lifx|!turn_off|gnffj36743

Implement event script files (hasf)

Basically think mqtt files crossed with scripting

Main feature is basic conditions, thus allowing the ability to make deviations in event chains based on say time or variables

It's possible to traverse more than one folder for custom events

with a given file structure such as this

/home_automation/events/custom
└── lights
    ├── all_off
    │   └── all_off.mqtt
    └── all_on
        └── all_on.mqtt

And then when you feed it the following

mosquitto_pub -t custom -m 'lights/all_on'

It works, all_on/ gets traversed and all_on.mqtt gets evaulated but this might be undesirable as in theory one can traverse up and down the tree structure

Document and support the use of a custom DHCP code

isc-dhcp-server dhcpd.conf example

option homeautomation-server code 200 = text;
option homeautomation-server "your ip address";

This would tell clients where your automation server is, reducing the amount of configuration required /provided/ node-mcu's firmware has a way of getting the custom dhcp options and that we can find a code that won't break anything

TEST: Test device binding

Need to test:

  1. Whether server responds to sys,!register on sys_ack channel
  2. It subscribes to sys_%device_mac%
  3. It creates a tracking file
  4. It messages the client on sys_%device_mac% with "!registered"
  5. It messages the client on sys_%device_mac% with "!ping|1234"

Test: event folder creation

Check if it creates all of the folders it needs for both crontab, event triggering and finally device registration

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.