Skip to content

About

Luna clockd. Turn your Lenovo Smart Clock Essential (CD-4N341Y) into a local voice satellite

Topics

Resources

Stars

10 stars

Watchers

2 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

clockd · luna

The clock starting up: the face glitches, luna forms on the display, then the time, weekday and weather appear

A local Home Assistant voice satellite for the Lenovo Smart Clock Essential.
Runs without Google or Lenovo services; the wake word is detected on the clock.

Voice satellite · Music Assistant speaker · Clock face and lights · Web UI


clockd replaces the Google Assistant / Cast software on a rooted Lenovo Smart Clock Essential (CD-4N341Y) with one static Go binary. "Luna" is Lenovo's own codename for the device.

Disclaimer

This is a personal project, inspired by a great device with lacking software, which would otherwise end up in the recycling bin. I have tried to make sure I'm not stepping on anyone's toes, since the Essential doesn't seem to have much interest around it at the moment. It was, and is, a way to learn how to take advantage of LLMs effectively on a project of this kind, and to take my mind off things in general. I have an extensive TODO list, so I'll probably keep working on this as time goes by.

Support

You can support this nonsense on Ko-fi if you feel like it.

Note

The clock must be unlocked and rooted first: the companion repository luna-unlock does that. Tested on the retail and the engineering firmware (which clocks).

At a glance

  • Voice: wake words detected on the clock, timers and announcements from Assist
  • Alarms: kept on the clock, set from the buttons, the web UI or Home Assistant
  • Music: a Music Assistant speaker with synchronised playback, a music library from a USB drive, and FM radio from an RTL-SDR stick (experimental)
  • Clock face: time, weekday and weather, with little eyes while it listens
  • Night schedule: dims the face and fades the night light
  • Local: no internet needed; what is switched off

The full list: Features. To get going: Quick start.

Web UI

Every setting lives in a web UI on the clock: no app, no account.

Status page: the face, weather, service and device cards Status page on a phone
Status: face, weather, services, device Phone layout
Display settings: clock face preview and brightness Alarms: the alarm list and the days it repeats
Display: face preview, brightness Alarms

Sixteen colour themes, light and dark; a few of them:

Light theme Solarized dark theme Gruvbox light theme
Light Solarized dark Gruvbox light
Rosé Pine theme Dark theme (the default)
Rosé Pine Dark (default)

Quick start

1. Unlock the clock over a USB-A to USB-A cable with luna-unlock.py from luna-unlock (its README has the prerequisites). Then make a backup before you install anything.

2. Install from a Linux or macOS PC with adb and curl. Get the source of the latest release, unpack it, and from its folder:

satellite/install-clock.sh --latest

It downloads and checks the signed package, shows which clock it found and asks before going on. Add --wifi "Home network" to save your Wi-Fi at the same time. More options.

3. Connect it. Without Wi-Fi the clock opens a hotspot, LenovoClock-XXXX, and scrolls "setup". Join it with a phone, press the button on top of the clock when asked, and pick your network.

4. Add it to Home Assistant. It shows up under Settings › Devices & services as an ESPHome device. The encryption key is in the clock's web UI.

That's it. Optionally, lock the clock again: adb closes, the web UI and ssh stay.

Going back to stock

Hold the alarm button and Vol- for 12 s: the clock restarts into the stock software. Hold them again for 12 s there to factory reset it. Details.

More

  • docs/faq.md: common questions (is it Android? what can I install?)
  • DETAILS.md: backup, setup tips, updating, features, how it works, building, security notes, credits
  • docs/notes.md: engineering notes, measurements and dead ends
  • CHANGELOG.md: what changed

The clock face glitches and the word luna forms on the display

A little easter egg (Display › Clock face)

Licence

GNU General Public License v3.0 or later. Releases up to 1.0.0 were published under the Apache License 2.0. Bundled third-party parts keep their own licences (Credits).

Not affiliated with Lenovo, Google, Nabu Casa or the Open Home Foundation. Lenovo's GPL source release was used for reference only and is not included.

About

Luna clockd. Turn your Lenovo Smart Clock Essential (CD-4N341Y) into a local voice satellite

Topics

Resources

Stars

10 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Contributors

Languages