Skip to content

Automation Cookbook

Igor Kuz edited this page Jul 31, 2026 · 1 revision

Automation Cookbook

Party scene on a dashboard button

script:
  pool_party:
    alias: "Pool party"
    sequence:
      - action: htd_lync_pro.set_zones
        data:
          zones: [3, 4, 5, 6, 8]
          source: "Sonos"
          volume: 30
          offsets: { "3": 10, "6": -8 }
          others_off: true

Add a button card calling script.pool_party — one-tap party.

Follow-me audio

Import the blueprint (blueprints/follow_me.yaml in the repo — Settings → Automations & Scenes → Blueprints → Import Blueprint with the raw file URL), then create one automation per room: motion sensor + zone number + options (excluded zones, volume offset, turn-off of the room you left, active time window).

Tips: generous motion timeouts, keep turn_off_source on, exclude bedrooms. The service is a no-op when nothing is playing.

Announcements (amp override-RCA setups)

If your amps have an auto-ducking override input fed by e.g. a Raspberry Pi running VLC: set the VLC media player and your TTS engine in the integration Options once, then:

- action: htd_lync_pro.announce
  data: { message: "Dinner is ready!", volume_level: 0.6 }

The amps duck automatically when audio plays; the integration restores the player volume afterwards. Use media_url for chimes/mp3s.

Movie night (snapshot/restore)

script:
  movie_time:
    sequence:
      - action: htd_lync_pro.snapshot
      - action: htd_lync_pro.all_off
  movie_over:
    sequence:
      - action: htd_lync_pro.restore

Bedtime safety

Set Max power-on volume and Quiet hours in Options — a zone turned on at 2 AM gets clamped automatically, no automation needed.

Clone this wiki locally