GithubHelp home page GithubHelp logo

go-daemon's People

Contributors

helto4real avatar

Watchers

 avatar

go-daemon's Issues

Architecture discussion: Areas support

General support for areas in hass

I want to implement a general application to support the new area feature in Home Assistant. The general idea is to make an go-daemon application to be able to do the most basic stuff people do with their automations connected to where the device is at.

Devices are set to areas in Hass and some configurations are set through custom attributes.

All following features can be turned on/off in app configuration.

Morning/day/evening/night sensor

Sunset/sunrise (including offsets) and time settings controls when is considered morning, day, evening and night.

  • Morning is sunrise +/- offset in minutes
  • Evening is sunset +/- offset in minutes
  • Morning is a time
  • Night is a time
  • Night can have weekend offset in minutes to delay (friday and saturday night)

Turn on/off ambient light at evening/night

  • Ambient lights are on at evenings and off att nights
  • Ambient lights are on if sun is set and is morning and off during the day
  • If an area has motion detector, the area is turned on in the morning only if dark and motion is detected. Keeps lit until daytime.
  • Ambient lights have custom attributes "ambient": true. An alternative solution could be that lights that are not ambient has custom attribute "ambient": false and non exisiting is considered as ambient.
  • Sunrise/Sunset offsets can be configured in application configuration

Night lights

  • If an area has motions detectors it will lit the lights in the area that has the custom attribute "night_light": true and it goes into night mode
  • Time in minutes for the light to be turned on before turned off without motion can be set in the app config

Media player in area

  • Magic cube event pauses/plays any media content if connected to same area
  • Magic cube event turns off media if played in the same area when shaking or custom event id
  • Button in area with custom attribute "media_play_pause": true pauses and plays current media
  • Button in area with custom attribute "media_next_prev": true skips to next or prev. song/movie what ever

Area events

  • Sends event if motion is detected in an area, this can support that one area could get events from another areas motion sensor or just you want to know if there is motion in a room that can have many motionsensor
  • Sends event *** if *** in an area ( to be defined)

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.