~/talk

Sweet home Scala 3

Talkat Scala Love in the City 2021 · on Saturday, 2021-02-13· [scala]
slides:none on file

Built a small production-ish automation engine that runs on a Raspberry Pi and talks to Home Assistant over Scala 3 with Home Assistant via WebSocket JSON. Uses custom typeclass-derived JSON formats (falls back to an unknown event), enqueues messages with monotonically increasing ids to match async responses, and models automations as pure-value triggers/actions with three-state reactions. Replaces Node-RED/Python for the fun of exploring derived JSON formats using Scala 3 typeclass derivation and Tasks/ZIO; demo toggles lights, shows notifications, and works, including a quirky compiler-driven RGB blink.

AI-written summary · about

  1. 0:00Start
  2. 5:22The Home Assistant
  3. 6:31Dashboard
  4. 11:35Set Up the Goals
  5. 13:35Communicate with Home Assistant
  6. 17:37Derived Json Format
  7. 21:01Fallback Member Extractor
  8. 27:52Triggers
  9. 31:15Recap the Automation
  10. 38:53Light Notification
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.