GithubHelp home page GithubHelp logo

jurgen-kluft / go-home Goto Github PK

View Code? Open in Web Editor NEW
12.0 6.0 2.0 8.96 MB

Automated home with Philips HUE, Xiaomi, Wemo, Yee, Netgear using Golang, Emitter.IO

License: MIT License

Go 96.75% C++ 2.84% C 0.41%
pubsub hue wemo calendar darksky suncalc netgear yee xiaomi automation

go-home's Introduction

go-home

Automated home using Go.

Raspberry PI

gokrazy.org, a Go only OS for Raspberry PI.

Status

I am currently running this in the weekend, still testing some sub-processes and now focussing on Apple Home-Kit interaction so that we have an actual UI.

App Structure

Note: InfluxDB for tracking metrics and usage of some processes. Since all of this is written in Go it should be able to run anywhere, from a Raspberry PI, Arduino to a Windows/Mac machine.

  • Since every process is just running it's own logic want we need is a pub/sub server where every process can register itself to specific events that it is interested in. -> NATS Server (Pub/Sub server where you can subscribe to channel(s)) -> Researching the possibility of using zeroconf 'Service Discovery - mDNS'

  • Following sub-processes:

    • Apple HomeKit WIP, (Apple Home Kit accessory emulator, our UI solution)
    • Conbee II DECONZ Ok, (Philips HUE / IKEA / Xiaomi Aqara; lights, switches, sensors)
    • Wemo Ok, (Wemo wifi powerplug)
    • Config Ok, (A service that is the provider of configurations for all other services)
    • Presence Ok, (Connects to Netgear Router to obtain list of devices present on the network)
    • Flux Ok, (Calculates Color-Temperature and Brightness per day for Hue and Yee lights)
    • AQI Ok, (Air Quality Index)
    • Suncalc Ok, (Computes sun-rise, sun-set etc..)
    • Weather Ok, (Darksky)
    • Calendar Ok, (Reads calendars from icloud and determines active events and makes sensors out of them)
    • Shout Ok, (Has Slack as the back-end to send messages, but requires a VPN :-(, looking for something else)
    • Yee Ok, (Xiaomi Yee lighting, turn on/off, change CT and BRI)
    • Sony Bravia Remote Ok, (Turn on/off, HDMI Input, Volume for Sony Bravia TV(s))
    • Samsung TV Remote Ok, (Turn on/off Samsung TV(s))

Automation Logic

Automation, reacting to all events and executing automation rules, all written in Go.

Devices / Hardware

  • Netgear R6900
  • Conbee II DECONZ
  • Philips HUE lights
  • Xiaomi Yee lights
  • Xiaomi Aqara
    • Button Switch
    • Power Switch
    • Sensors (Motion, Magnet)
  • IKEA lights, switch and sensor
  • Wemo switch
  • Amazon Alexa
  • Samsung TV
  • Sony Bravia TV

go-home's People

Contributors

jurgen-kluft avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

go-home's Issues

Extracting hue/wemo into separate project

Hi,

I just stumbled across your repository as you stared and copied my go-netgear repo. Hope it suites your needs!

Would it be possible to extract the hue/wemo parts into different repositories? Since we are working on similar projects (https://github.com/homebot), I could easily integrate your part and contribute fixes/updates via PRs. Its much harder if its directly within this repo.

Thanks for your feedback.

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.