# Transitions — Flexible time transitions

**URL:** <https://community.homey.app/t/transitions-flexible-time-transitions/443>\
**Category:** Apps\
**Tags:** app, tools\
**Created:** [August 24, 2018, 7:08pm UTC](https://community.homey.app/t/transitions-flexible-time-transitions/443 "2018-08-24T19:08:55Z")\
**Posts on this page:** 1\
**Showing post:** 29

<div class="post-metadata">

**Author:** ![TedTolboom](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tedtolboom/32/12081_2.png) [@TedTolboom](https://community.homey.app/u/TedTolboom)\
**Post date:** [October 22, 2018, 7:32pm UTC](https://community.homey.app/t/transitions-flexible-time-transitions/443/29 "2018-10-22T19:32:18Z")

</div>

Thanks for your work @robertklep

Sharing my Sonos Fade-in / Fade-out flows, based on the transitions app.

1.Trigger flow:

 ![03](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/c/cf93724b7b003ebb8a8348fb876f771ee7c0fa40.jpeg)

- Flow being triggered and based on the volume level will trigger either the fade-in or fade-out flow

2.Fade in flow:

 ![32](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/c/c7ae188556a80897c47effaed523ae0b6a960872.png)

- Start fade-in transition, with input: `0-0.1, 30s, 3s`; volume level from 0 to 10% (`0-0.1`), in 30 seconds, 3 seconds per step

3.Fade out flow:

 ![55](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/a/a8129eb055525a13d40c523e16ba1dd822bf9664.png)

- create a Better Logic variable (`Sonos-Fade-out`) to determine the transition duration based on the actual volume level (tag). I used 200x the volume level. ie. a volume level of 15% will use a transition duration of 30s.
- Start a transition with input `'# Set volume' tag - 0, 'Sonos-Fade-out's, 1s`; start level the actual volume level of the Sonos speaker, and duration defined by the BL variable `Sonos-Fade-out`.

4.Actual updating of the Sonos volume level

 ![15](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/3/3d83f9bdb066543218f4373303517c3b80405253.jpeg)

- Drag the `# Value` tag of the “Transition changed” trigger card over the slider of the “Set volume” action card

5.Stop playing once the transition is completed and volume level = 0

 ![30](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/3/32d8f05809af7e6634b931e940a0bb9ac88fa647.jpeg)

Flows 1-3 can also be combined into 1 flow, taking away the separate flow triggers. But in this case, I also trigger the same flow 2 and 3 from other flows (e.g. my wake-up flow triggered by the coffee machine)…

---

_[View the full topic](https://community.homey.app/t/transitions-flexible-time-transitions/443)._
