Coder Social home page Coder Social logo

deanshub / smarthome-js Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 4.45 MB

Home Page: https://medium.com/@deanshub/affordable-smart-home-diy-with-js-c7d3755e8b62

License: MIT License

JavaScript 93.37% HTML 6.16% CSS 0.47%
smarthome telegram-bot broadlink

smarthome-js's Introduction

Smart Home telegram bot

written in node js using Broadlink hardware and Telegram for UI

Smart Home DIY Bot

Install and Run

  1. copy the default.json file in the config directory with the name production.json and fill in the empty properties

  2. yarn

  3. yarn run dev

Read all about it in this medium post

Troubleshooting

if yarn throws error on node-gyp, try: npm install --global --production [email protected]
and
npm i win-audio --msvs_version=2015

smarthome-js's People

Contributors

deanshub avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

smarthome-js's Issues

security

test out security and use a secret to auth

log command

add a /log command that will display the last actions that were activated

service registry

registering a new device using mDNS so it'll be easier to discover both shelly and other devices

split devices into separate files

split devices/myDevices.json into files for each device and read the directory to get the full devices manifest
.bdl for broadlink key file devices
.json for the devices manifest

add timed actions

allow actions like "turn off the AC in half an hour" or "turn the AC on HOT at 8:00"

configurable commands

each device should have a json file with the commands he is able to do and this file should be dynamic enough so when you learn a new signal it appears automatically

name learned signal

when activating learn command the user should be able to write the name of the learned signal (the file will be saved with that name)

Master election

Refactor the way master is elected
And wait for commands after devices discovered

callback refactor

telegram callback should be refactored,
it should be easy to add from a command a callback

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.