LaMetric Time (Device API v2): MP3 notifications + Gemini TTS playback + more local controls (HACS)

Hi all,

I built a small custom Home Assistant integration for LaMetric TIME that talks to the local Device API v2 (HTTPS :4343). The built-in HA lametric integration focuses on the older local API; Device API v2 unlocks some newer capabilities (notably MP3 URL playback as notification sound).

Why

I wanted reliable local control plus doorbell-style audio/visual notifications (MP3 + TTS), without depending on the cloud.

What you get (vs built-in integration)

  • Play MP3 from a URL on the LaMetric (doorbell sound, alerts, etc)
  • Play Home Assistant TTS (works with HA TTS providers, including Gemini-based ones if exposed as a HA tts.* entity)
  • Show a notification with animated icon + temperature (example below)
  • Local controls as entities/services (brightness, volume, etc)

Repo

GitHub: https://github.com/joeblack2k/lametric-time-v2

HACS (clickable button)


Open your Home Assistant instance and add this repository in HACS


Install (HACS)

  1. Click the HACS button above
  2. Install the integration
  3. Restart Home Assistant
  4. Add via Settings → Devices & services → Add integration → “LaMetric Time (Device API v2)”

Configuration

During setup you’ll enter:

  • Host/IP of the LaMetric (e.g. 192.168.2.193)
  • The Device API key from the LaMetric app
  • Home Assistant base URL reachable by the LaMetric (used for TTS mp3 URLs)

Examples

1) TTS: “Het is nu 600 graden”

service: lametric_v2.play_tts
data:
  message: "Het is nu 600 graden"
  tts_entity_id: tts.google_ai_tts

2) Doorbell MP3

service: lametric_v2.play_mp3_url
data:
  url: "https://example.com/doorbell.mp3"
  cycles: 2
  priority: warning

3) Animated red arrow + temperature (woonkamer)

service: lametric_v2.show_setpoint_change
data:
  temperature: "{{ states('sensor.switchbot_tempsensor_temperature') | float(0) }}"
  unit: "C"
  direction: "up"
  cycles: 3
  color: "FF0000"

Fork it if you want!

  • Device API v2 coverage (other endpoints worth exposing)
  • Entity model naming (to avoid conflicts with other LaMetric setups)
  • Any HA best practices I missed

If you test it, please include your LaMetric model + firmware/software version and which endpoints work/fail.

Thanks!