2026-10-22 22:05:56 +02:00
2026-10-22 22:05:56 +02:00
2026-05-15 17:20:09 +02:00
2026-10-22 21:08:07 +02:00
2026-10-22 21:09:32 +02:00
2026-10-22 21:09:32 +02:00
2026-10-22 21:08:07 +02:00
2026-10-22 21:08:07 +02:00

Light Preset Manager

Version française

L.P.M

Home Assistant custom integration with its Lovelace card: control a group of lights (on/off, brightness, colour temperature) and save up to four presets of their states, recalled with one tap. Home Assistant 2024.7.0 or later.

Installation

  1. Download light_preset_manager-X.Y.Z.zip from the project page on a2msystemes.org.
  2. Unzip it into config/custom_components/light_preset_manager/ of your Home Assistant installation.
  3. Add this line to configuration.yaml, then restart Home Assistant:
    light_preset_manager:
    

The card is loaded automatically by the integration (no Lovelace resource to add).

Card

type: custom:light-preset-manager
card_id: living_room      # required: unique identifier, presets are stored under it
group: light.living_room  # required: group or light controlled by the main buttons
title: Living room        # optional
lights:                   # optional: individual lights saved in presets
  - light.lamp_1
  - light.lamp_2
presets: 4                # optional: number of presets (1 to 4)

The card also has a visual editor.

Actions

light_preset_manager.save_preset, recall_preset, rename_preset, get_presets (see Developer tools > Actions).

Blueprint

Blueprints/Stybarr-groups.yaml: control a group of lights with an IKEA STYRBAR remote.

Development

  • Home Assistant in Docker: docker compose up -d (VS Code task Dev: Start All), then http://localhost:8123. The integration is mounted from custom_components/; restart Home Assistant after a Python change.
  • Card: npm install then npm run watch in frontend/; the built file goes to custom_components/light_preset_manager/frontend/ (committed).
  • Release file: python scripts/package.py → dist/light_preset_manager-X.Y.Z.zip (version from manifest.json).

License

MIT, see the LICENSE file.

S
Description
No description provided
Readme MIT
184 KiB
0 Stars 1 Watchers 0 Forks
v0.6.1
Latest
2026-10-22 21:09:35 +02:00
Languages
JavaScript 53.1%
TypeScript 38.4%
Python 8.5%