These are some apps I use that others might find useful.
- LightFade
Fade a light from 0 to brightness over X seconds - Sonos
- describe_sonos_system() - dumps data about your system to logs/sonos_data.json upon startup
- play_favorite()
- stop()
- 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.)
Fade a light from 0 to brightess over X seconds. Cancel if light is changed during the duration.
Listens for light_fade.begin
with data attributes:
data = {
"entity_id": "light.xxx"
"brightness_start": 0 (optional)
"brightness_end": 100 (required)
"duration": 480 (required)
}
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.)
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
}
Listens for sonos_app.stop
and stops the music.
data = {
"player_name": "SonosPlayerName"
}
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.)