Skip to content

dahlb/ha_hatch

Repository files navigation

GitHub Release GitHub Activity License hacs

Project Maintenance BuyMeCoffee

A custom integration for Hatch Rest Sound Machines. This project is mostly from looking at other core integrations

Tested Devices

  • Rest Mini
  • Rest+
  • Rest 2nd gen
  • Rest+ 2nd gen

Feature Highlights

  • monitor device connectivity
  • start and stop sound machine with variety of built-in sounds (Rest mini & Rest+)
  • play favorites set in the Hatch app (Rest 2nd gen & Rest+ 2nd gen)
  • adjust the volume
  • monitor battery level (Rest+ & Rest+ 2nd gen)
  • adjust light brightness and color
  • turn rest plus on and off
  • turn clock on and off and adjust brightness (Rest+ 2nd gen)
  • turn Toddler Lock on and off (Rest+ 2nd gen)
  • monitor device charging status (Rest+ 2nd gen)

Installation

You can install this either manually copying files or using HACS. Configuration can be done on UI, you need to enter your username and password, (I know, translations are missing).

upstream limitation awslabs/aws-crt-python#315 is now automatically worked around thanks to code provided by https://github.com/qqaatw/

Troubleshooting

If you receive an error while trying to login, please go through these steps;

  1. You can enable logging for this integration specifically and share your logs, so I can have a deep dive investigation. To enable logging, update your configuration.yaml like this, we can get more information in Configuration -> Logs page
logger:
  default: warning
  logs:
    custom_components.ha_hatch: debug
    hatch_rest_api: debug

Usage

You can now use the following services:

  • Rest+ 2nd gen: activate scene to start a defined favorite
    • if you add new favorites reload the integration to update available scenes or restart ha
  • Media player: Select sound mode
    • Possible options here are: Stream, PinkNoise, Dryer, Ocean, Wind, Rain, Bird, Crickets, Brahms, Twinkle, RockABye
  • Media player: Set volume
  • Media player: Play
  • Media player: Stop
  • Light: Turn on
    • Possible values to modify:
      • brightness
      • hs_color
      • rgb_color
      • xy_color
  • Light: Turn off

Here are the basic colors from the app:

  • Orange
    • hs_color: 25.767, 69.658
    • rgb_color: 234, 141, 71
    • xy_color: 0.547, 0.379
  • Dark blue
    • hs_color: 212.368, 67.556
    • rgb_color: 73, 143, 225
    • xy_color: 0.173, 0.197
  • Light blue
    • hs_color: 187.586, 80.93
    • rgb_color: 41, 193, 215
    • xy_color: 0.158, 0.301
  • Green
    • hs_color: 153.051, 56.19
    • rgb_color: 92, 210, 157
    • xy_color: 0.208, 0.441
  • Pink
    • hs_color: 330.811, 60.163
    • rgb_color: 246, 98, 170
    • xy_color: 0.476, 0.248