Skip to content
All stories

Using Lullabies

Actual State: what your Hub has reported

A volume slider shows what you choose before the Hub replies. Learn how Desired State, Actual State, and connection messages fit together.

By the Lullabies team · · 3 min read

Written with AI assistance.

A phone and a tablet exchange two amber signal arcs beneath a crescent moon, with a small speaker beside the tablet
Illustration: Lullabies

You lower the volume on your Remote. The slider moves under your finger, but has the Hub changed the audio yet?

Lullabies keeps those two pieces of information separate. Desired State is what the parent asked for. Actual State is what the Hub reports. A changed control and a reply from the Hub are different steps, even when they happen close together.

One choice, followed by a reply

The Remote is the phone or watch you use to control a Nursery. The Hub is the dedicated phone or tablet that plays its audio.

When you change volume, the Remote writes Desired State. The Hub reads it, applies the change, and reports Actual State back. Actual State includes playback and volume, along with Hub battery and connection information.

That return journey matters. Saving what you asked for does not, by itself, establish what the Hub has done. Your Remote needs information from the Hub too.

Why the volume slider can move back

Suppose the Hub last reported 40%, and you move the slider to 25%. Those numbers are an example, not a suggested listening level.

While you move the control, it shows your choice immediately. It holds that choice briefly after you release it. Once that temporary display clears, the slider uses Actual State's volume when available. If no reported volume is available, it falls back to Desired State.

If the Hub is still reporting 40%, the slider can therefore return to 40%. A failed write also clears the temporary choice. The movement alone does not tell you which part failed; check the connection message and any feedback alongside the control.

The percentage is the app's volume setting. It does not measure how loud the Nursery is. The Hub's output and any connected speaker still matter, so a reported setting cannot replace checking the audio where it plays.

The sound title and timer need context too

A saved Go-To Sound names the audio you have chosen for the Nursery. While playback is stopped, that title can appear before the Hub plays anything. During playback, the Remote can use the Hub's reported track title; changing the Go-To Sound can also show a temporary switching message.

A visible sound name is therefore not enough to establish that audio has started. Read it alongside the playback feedback.

The same distinction helps with a Sleep Timer. A finite Sleep Timer fades over its final minute on the Hub. The Remote can calculate the countdown from the selected end time, but reaching zero on that countdown is separate from receiving the Hub's report that playback has stopped.

A report also needs a connection

Actual State is the Hub's report, not a fresh observation made by your Remote every time you look at the screen. If the connection is lost, previously received values cannot establish what is happening now.

Lullabies uses Hub presence and its periodic Heartbeat to assess availability. Read the connection message alongside playback and volume. A connected label alone does not establish that a particular change has been applied, and an old playback report does not establish that the Hub is still reachable.

For more on those messages, see Reconnecting vs Offline.

When the controls and audio disagree

  1. Release the control and read the feedback. The value under your finger may still be your temporary choice.
  2. Check the connection message. If it says Reconnecting or Offline, check both devices' connections before sending more changes.
  3. Check the Hub itself. Keep Hub Mode open with power connected, and check its selected audio output and speaker connection.
  4. Try one change once it is reachable. Look for the Hub's reply and check the audio, rather than treating the button press as confirmation.

Desired State tells you what you asked for. Actual State adds what the Hub reported back. When something looks wrong, checking both the reply and its connection context gives you a better place to start.

Keep reading