Swing2Sleep Smarla

The Swing2Sleep Smarla integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] enables Home Assistant to integrate Swing2Sleep (Smarla) motorized cradles. This integration will allow you to control your Smarla device.

Requirements

  • Swing2Sleep Smarla device with Version 1.6.X or later.
  • Swing2Sleep app.
  • Internet connectivity.

Registration

  1. Follow the instructions in the Swing2Sleep app.
  2. Connect the device to your Wi-Fi network.
  3. Follow the steps for Configuration until the access token field appears
  4. In the Swing2Sleep app, generate an access token under Settings.
  5. Copy the access token and continue with the Configuration.

Configuration

To add the Swing2Sleep Smarla device to your Home Assistant instance, use this My button:

Manual configuration steps

If the above My button doesn’t work, you can also perform the following steps manually:

  • Browse to your Home Assistant instance.

  • Go to Settings > Devices & services.

  • In the bottom right corner, select the Add Integration button.

  • From the list, select Swing2Sleep Smarla.

  • Follow the instructions on screen to complete the setup.

Provided entities

The Swing2Sleep Smarla integration provides one switch entity for each configured Smarla device as its main feature, allowing you to toggle the cradle’s oscillation. The firmware of each device can be monitored and updated through an update entity available on the device page.

Additionally, the integration sets up the following entities:

  • Switches
    • Smart mode: Enables or disables automatic intensity control.
  • Numbers
    • Intensity: Sets the intensity level (range: 0 to 100).
  • Sensors
    • Amplitude: Displays the current measured amplitude of the oscillation.
    • Period: Displays the current measured period of the oscillation.
    • Activity: Displays the current measured activity level.
    • Spring status: Displays the current status of the installed spring set on the cradle.
    • Swing count: Displays the total number of swings.
    • Total swing time: Displays the total swing time in seconds.
  • Buttons
    • Send diagnostics: Triggers a one-time event to send diagnostic data to the manufacturer.

Removing the integration

This integration follows standard integration removal.

To remove an integration instance from Home Assistant

  1. Go to Settings > Devices & services and select the integration card.
  2. From the list of devices, select the integration instance you want to remove.
  3. Next to the entry, select the three dots menu. Then, select Delete.

After deleting the integration, go to the Swing2Sleep app and remove the “Home Assistant” entry under Settings > Connected devices as well.