Coder Social home page Coder Social logo

ad_apps_ross's Introduction

Ross Apps for AppDaemon

These are some apps I use that others might find useful.

  1. LightFade
    Fade a light from 0 to brightness over X seconds
  2. Sonos
    1. describe_sonos_system() - dumps data about your system to logs/sonos_data.json upon startup
    2. play_favorite()
    3. stop()
  3. GentleWakeup
    This uses LightFade and Sonos to enable gentle alarms. At a certain time, fade the light on and fade the Sonos on. Then after some amount of time, turn both off.

(These areAppdaemon applications that works with Home Assistant home automation.)

Requirements

  1. AdPlus

LightFade

Fade a light from 0 to brightess over X seconds. Cancel if light is changed during the duration.

Events

Listens for light_fade.begin with data attributes:

data = {
    "entity_id": "light.xxx" 
    "brightness_start": 0 (optional)
    "brightness_end": 100 (required)
    "duration": 480 (required)
}

Sonos

describe_sonos_system()

Dumps data about your sonos system devices and favorites to logs/sonos_data.json. This is very handy in getting the data you need for GentleWakeup. (Or any other Sonos automation.)

play_favorite()

Listens for sonos_app.play_favorite with the following data. It will play the favorite, ramping to volume.

data = {
    "player_name": "SonosPlayerName",
    "favorite": {
        "uri": "x-sonosapi-radio:ST%3a36601058475458?sid=236&flags=8300&sn=6"
        "title": "Morning Music"
        }
    "volume": 25
}

stop()

Listens for sonos_app.stop and stops the music.

data = {
    "player_name": "SonosPlayerName"
}

GentleWakeup

This uses LightFade and Sonos to enable gentle alarms. At a certain time, fade the light on and fade the Sonos on. Then after some amount of time, turn both off.

See gentlewakup.yaml.sample for complete configuration.

This depends on SonosApp, LightFade, and AdPlus. (See above.)

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.